/* Mom's Tofu shared layout layer - core CSS only, no external fonts or CDN */

:root {
  --lay-max: 1180px;
  --lay-gap: 36px;
  --lay-accent: #c08a4a;
  --lay-accent-dark: #9a6a33;
  --lay-ink: #23201d;
  --lay-muted: #5d5751;
  --lay-bg-soft: #faf7f2;
}

/* ---------- grid ---------- */
.lay-row {
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
}
.lay-row > .lay-row-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lay-gap);
  align-items: flex-start;
  max-width: var(--lay-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.lay-row.lay-row-middle > .lay-row-inner { align-items: center; }
.lay-row.lay-row-full { padding-left: 0; padding-right: 0; }
.lay-row.lay-row-full > .lay-row-inner { max-width: none; padding: 0 20px; }

.lay-col {
  flex: 1 1 calc(var(--lay-w, 100%) - var(--lay-gap));
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.lay-text-center { text-align: center; }

@media (max-width: 900px) {
  :root { --lay-gap: 24px; }
  .lay-row > .lay-row-inner { flex-direction: column; flex-wrap: nowrap; }
  .lay-col { flex: 1 1 auto !important; width: 100% !important; max-width: 100% !important; }
  .lay-row, .lay-row.lay-row-full > .lay-row-inner { padding-left: 16px; padding-right: 16px; }
  .lay-row[style*="padding-left"], .lay-row[style*="padding-right"] { padding-left: 16px !important; padding-right: 16px !important; }
  .lay-col[style*="padding-left"], .lay-col[style*="padding-right"] { padding-left: 0 !important; padding-right: 0 !important; }
}

/* ---------- typography ---------- */
.lay-text, .lay-col { line-height: 1.75; }
.lay-text p { margin: 0 0 1.1em; color: var(--lay-muted); font-size: 1.02rem; }
.lay-text p:last-child { margin-bottom: 0; }
.lay-heading { margin: 0 0 .5em; line-height: 1.25; color: var(--lay-ink); }
.lay-heading + .lay-text { margin-top: .2em; }
.lay-text blockquote {
  margin: 0; padding: 8px 0 8px 22px;
  border-left: 3px solid var(--lay-accent);
  font-size: 1.05rem; font-style: italic; color: var(--lay-ink);
}

/* ---------- media ---------- */
.lay-figure { margin: 0 0 18px; }
.lay-figure img, .lay-image, .lay-gallery img { max-width: 100%; height: auto; display: block; border-radius: 6px; }
.lay-align-center { text-align: center; }
.lay-align-center img { margin-left: auto; margin-right: auto; }
.lay-align-right img { margin-left: auto; }
.lay-figure-title {
  margin: 10px 0 0; text-align: center; font-size: .95rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--lay-accent-dark);
}
.lay-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px; margin: 10px 0 6px;
}
.lay-gallery-item { margin: 0; }
.lay-gallery-item img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.lay-embed { position: relative; width: 100%; margin: 0 0 10px; }
.lay-embed iframe { width: 100% !important; max-width: 100%; border: 0; display: block; min-height: 320px; }
.lay-sep { border: 0; border-top: 1px solid #e6e0d8; margin: 28px 0; }
.lay-space { width: 100%; }
@media (max-width: 900px) { .lay-space { height: 20px !important; } }

/* ---------- buttons ---------- */
.lay-btn-wrap { margin: 18px 0 0; }
.lay-btn, a.lay-btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  background: var(--lay-accent); color: #fff !important; text-decoration: none !important;
  font-weight: 600; letter-spacing: .03em; line-height: 1.2; border: 0;
  transition: background .2s ease;
}
.lay-btn:hover, a.lay-btn:hover { background: var(--lay-accent-dark); color: #fff !important; }

/* ---------- hero ---------- */
.lay-hero {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 62vh; padding: 90px 20px; text-align: center;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  margin: 0 0 10px;
}
.lay-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,14,10,.52), rgba(20,14,10,.62));
}
.lay-hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.lay-hero-sub {
  margin: 0 0 10px; color: #f3d9b4; letter-spacing: .22em; text-transform: uppercase;
  font-size: .82rem; font-weight: 600;
}
.lay-hero-title {
  margin: 0 0 16px; color: #fff; line-height: 1.15;
  font-size: clamp(30px, 5vw, 54px); font-weight: 700; text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.lay-hero-text { margin: 0 auto 26px; color: #f2ece4; max-width: 640px; font-size: 1.05rem; line-height: 1.7; }
.lay-hero .lay-btn { margin: 0 6px 8px; }
@media (max-width: 600px) { .lay-hero { min-height: 48vh; padding: 64px 18px; } }

/* ---------- info cards ---------- */
.lay-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.lay-card {
  background: var(--lay-bg-soft); border: 1px solid #efe7db; border-radius: 10px;
  padding: 24px; text-align: center;
}
.lay-card h4 { margin: 0 0 8px; color: var(--lay-ink); font-size: 1.1rem; }
.lay-card p { margin: 0; color: var(--lay-muted); font-size: .98rem; line-height: 1.6; }

/* ---------- section spacing ---------- */
.lay-section { padding: 62px 0; }
.lay-section-soft { background: var(--lay-bg-soft); }
@media (max-width: 900px) { .lay-section { padding: 42px 0; } }

/* ---------- safety: nothing overflows sideways ---------- */
html, body { max-width: 100%; }
body { overflow-x: hidden; }
.lay-row img, .lay-row iframe, .lay-row table { max-width: 100%; }

/* ---------- hide shop leftovers ---------- */
.header .cart, .header-cart, .et-cart, .cart-toggle, .et-icon-cart,
.rodich-cart, .header-cart-icon, .mini-cart, .widget_shopping_cart,
.site-header-cart, .wcmenucart, li.menu-item-cart { display: none !important; }

/* ================= fremont (goodresto theme) fixes ================= */
.wp-theme-goodresto { --lay-accent: #c0392b; --lay-accent-dark: #9b2d21; }
.wp-theme-goodresto header.header.desk,
.wp-theme-goodresto header.header.desk.transparent-true {
  background: #fff !important;
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
}
.wp-theme-goodresto header.header.desk .logo .normal-logo { display: none !important; }
.wp-theme-goodresto header.header.desk .logo .sticky-logo {
  display: inline-block !important; position: relative !important;
  margin: 0 !important; top: auto !important; left: auto !important; max-width: 200px !important;
}
.wp-theme-goodresto header.header.desk .header-menu a,
.wp-theme-goodresto header.header.desk .header-menu a .txt,
.wp-theme-goodresto header.header.desk .sidebar-toggle { color: #23201d !important; }
.wp-theme-goodresto header.header.desk .header-menu a:hover .txt { color: #c0392b !important; }
.wp-theme-goodresto header.header-mobile { background: #fff !important; }
.wp-theme-goodresto header.header-mobile .mobile-logo { filter: none; }
.wp-theme-goodresto header.header-mobile .mob-menu-toggle span,
.wp-theme-goodresto header.header-mobile .mob-menu-toggle span:before,
.wp-theme-goodresto header.header-mobile .mob-menu-toggle span:after { background: #23201d !important; }
.wp-theme-goodresto #wrap { padding-top: 120px; }
@media (max-width: 1024px) { .wp-theme-goodresto #wrap { padding-top: 84px; } }
.wp-theme-goodresto .lay-hero { margin-top: -10px; }
.wp-theme-goodresto .et-custom-title { letter-spacing: .2em; text-transform: uppercase; }

/* ================= millbrae (rodich theme) fixes ================= */
.lay-hero + .lay-row { margin-top: 40px; }

/* hero CTA grouping + misc fixes */
.lay-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.lay-hero-inner p:empty { display: none; }
.wp-theme-goodresto header.header.desk .logo .sticky-logo { opacity: 1 !important; }
#monkeyAccess { top: auto !important; bottom: 24px !important; }
@media (max-width: 900px) { #monkeyAccess { bottom: 12px !important; transform: scale(.8); transform-origin: bottom right; } }
.lay-row[style*="padding-top: 120px"] { padding-top: 64px !important; }
@media (max-width: 900px) { .lay-row[style*="padding-top"] { padding-top: 36px !important; } .lay-row[style*="padding-bottom"] { padding-bottom: 28px !important; } }

/* fremont mobile header: use the dark logo on the white bar */
.wp-theme-goodresto header.header-mobile .logo a {
  display: inline-block; width: 200px; height: 45px;
  background: url(https://fremont.momstofu.com/wp-content/uploads/2020/03/LOGO.png) left center / contain no-repeat;
}
.wp-theme-goodresto header.header-mobile .logo a img { opacity: 0; width: 200px; height: 45px; }
@media (max-width: 1024px) { .wp-theme-goodresto #wrap { padding-top: 140px; } }

/* full-width rows that carry a background photo: keep text readable */
.lay-row-full[style*="background-image"] { position: relative; }
.lay-row-full[style*="background-image"]::before {
  content: ""; position: absolute; inset: 0; background: rgba(18,12,8,.48); pointer-events: none;
}
.lay-row-full[style*="background-image"] > .lay-row-inner { position: relative; z-index: 1; }
.lay-row-full[style*="background-image"] h1,
.lay-row-full[style*="background-image"] h2,
.lay-row-full[style*="background-image"] h3,
.lay-row-full[style*="background-image"] h4,
.lay-row-full[style*="background-image"] p { color: #fff; }
.lay-row-full[style*="background-image"] .roch-headlin-secondary { color: #f3d9b4 !important; }

/* ---- injected mobile nav (millbrae / rodich) ---- */
#lay-mnav-btn { display: none; }
#lay-mnav { display: none; }
@media (max-width: 991px) {
  #lay-mnav-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    position: absolute; right: 64px; top: 10px; z-index: 1001;
    width: 42px; height: 38px; padding: 8px 9px; border: 1px solid #e3ded6;
    border-radius: 8px; background: #fff; cursor: pointer;
  }
  #lay-mnav-btn span { display: block; height: 2px; width: 100%; background: #23201d; border-radius: 2px; }
  #lay-mnav-btn.is-open span:nth-child(2) { opacity: 0; }
  #lay-mnav {
    display: block; position: fixed; top: 0; right: -100%; width: min(78vw, 320px); height: 100%;
    background: #fff; box-shadow: -8px 0 28px rgba(0,0,0,.18); z-index: 10000;
    padding: 76px 24px 24px; overflow-y: auto; transition: right .25s ease;
  }
  #lay-mnav.is-open { right: 0; }
  #lay-mnav .lay-mnav-list { list-style: none; margin: 0; padding: 0; }
  #lay-mnav .lay-mnav-list li { border-bottom: 1px solid #f0ebe3; }
  #lay-mnav .lay-mnav-list li a {
    display: block; padding: 14px 4px; color: #23201d !important; text-decoration: none;
    font-size: 1.02rem; letter-spacing: .02em;
  }
  #lay-mnav .lay-mnav-list li a:hover { color: var(--lay-accent) !important; }
  #lay-mnav .lay-mnav-list ul { list-style: none; margin: 0 0 6px 12px; padding: 0; }
  .roch-header-menu-wrapper .container { position: relative; }
}

/* script-font subtitles must not collide with the title underneath on small screens */
@media (max-width: 991px) {
  .roch-headlin-secondary { line-height: 1.3 !important; font-size: 30px !important; margin-bottom: 6px !important; }
  .roch-headlin-primary, .roch-title { line-height: 1.25 !important; }
}

/* hero spans the full window even inside a padded theme container */
.lay-hero { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
