/* =====================================================================
   Megga Coffee — styles
   Warm café theme: soft cream, beige cards, caramel accents.
   Mobile-first. Breakpoints: 600px, 900px, 1020px.
   ===================================================================== */

/* Fonts are hosted with the site (no extra trip to Google). Phones too old
   for woff2 just use their built-in font. */
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("assets/fonts/outfit-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}

/* Browsers without <dialog> support (older iPhones) would otherwise show the photo viewers on the page. */
dialog:not([open]) { display: none; }

:root {
  /* surfaces: warm ivory and honey-cream, taken from the café photo */
  --page: #faf6f0;
  --band: #f2e8da;
  --card: #f4ebde;
  --white: #fffcf7;
  --line: #e4d6c3;
  --line-2: #d4c2aa;

  /* text: espresso browns */
  --ink: #2b2118;
  --text: #4a3c2f;
  --muted: #6b5a48;

  /* accents: caramel from the photo (passes contrast on every background) */
  --caramel: #975826;
  --caramel-dark: #7d461c;
  --caramel-soft: #efdcc3;
  --star: #b07a3e;
  --green: #2e7d32;
  --red: #b3261e;

  --display: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 16px rgba(90, 60, 40, .07);
  --shadow: 0 16px 36px rgba(90, 60, 40, .13);
  --header-h: 96px;
  --container: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-family: var(--display); font-weight: 600; color: var(--ink); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
[role="list"], .nav-list, .footer-links { list-style: none; }
a { color: var(--caramel); text-underline-offset: 3px; }
a:hover { color: var(--caramel-dark); }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--caramel); color: #fff; padding: .6rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.noscript { padding: 1rem; text-align: center; background: var(--band); margin: 0; }

.icon, .brand-mark, .placeholder-icon, .tag-icon, .star, .leaf-art { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }

.eyebrow { margin: 0 0 .8rem; color: var(--ink); font-family: var(--display); font-size: .78rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; }
.section-title { font-size: 1.8rem; font-size: clamp(1.8rem, 3.6vw, 2.4rem); letter-spacing: -.01em; margin-bottom: 1.1rem; }
.lined { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.lined::before, .lined::after { content: ""; flex: 0 1 110px; height: 1px; background: var(--line-2); }
.center { text-align: center; }
.accent { color: var(--caramel); }
.text-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--caramel); font-family: var(--display); font-weight: 600; text-decoration: none; }
.text-link .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.center-link { text-align: center; margin: 2rem 0 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .7rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent; font-family: var(--display); font-size: 1rem; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 19px; height: 19px; }
.btn-caramel { background: linear-gradient(180deg, #a8652f, var(--caramel)); color: #fff; box-shadow: 0 6px 16px rgba(151, 88, 38, .25); }
.btn-caramel:hover { background: var(--caramel-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--caramel); }
.btn-outline:hover { background: var(--caramel); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.btn-row.center { justify-content: center; }

/* header: centred logo, split navigation */
.site-header { position: -webkit-sticky; position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 240, .97); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(90, 60, 40, .07); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: inline-flex; flex-direction: column; align-items: center; color: var(--ink); text-decoration: none; line-height: 1; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 26px; height: 20px; color: var(--caramel); margin-bottom: 4px; }
.brand-name { font-family: var(--display); font-size: .8rem; font-size: clamp(.8rem, 3.2vw, 1.2rem); font-weight: 600; letter-spacing: .09em; text-align: center; }
.brand-sub { margin-top: 6px; font-size: .58rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--text); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav { position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0; display: none; flex-direction: column; padding: 1rem 20px 2rem; background: var(--page); overflow-y: auto; }
.site-nav.is-open { display: flex; }
.nav-list { display: flex; flex-direction: column; }
.nav-list a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--display); font-size: 1.15rem; font-weight: 500; text-decoration: none; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--caramel); }
@media (min-width: 1020px) {
  .header-inner { min-height: 104px; justify-content: center; }
  .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .brand-mark { width: 30px; height: 22px; }
  .brand-name { font-size: 1rem; font-size: clamp(1rem, 1.5vw, 1.4rem); }
  .brand-sub { font-size: .64rem; }
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; flex: 1; flex-direction: row; justify-content: space-between; padding: 0; background: none; overflow: visible; }
  .nav-list { flex-direction: row; gap: 1.75rem; gap: clamp(1.75rem, 3vw, 2.75rem); }
  .nav-left { padding-left: 0px; padding-left: clamp(0px, 4vw, 70px); }
  .nav-right { padding-right: 0px; padding-right: clamp(0px, 4vw, 70px); }
  .nav-list a { position: relative; padding: .4rem 0; border: 0; font-size: 1rem; }
  .nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--caramel); transform: scaleX(0); transition: transform .25s var(--ease); }
  .nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
}

/* hero (every page) */
.hero { position: relative; overflow: hidden; background: var(--band); }
.hero-media { position: relative; height: 240px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; top: 0; right: 0; bottom: -1px; left: 0; background: linear-gradient(180deg, rgba(242, 232, 218, 0) 45%, var(--band) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 1.5rem; padding-bottom: 3rem; }
.hero-title { font-size: 2.3rem; font-size: clamp(2.3rem, 7vw, 3.2rem); letter-spacing: -.02em; line-height: 1.05; margin-bottom: 1rem; }
.hero-lead { max-width: 30rem; font-size: 1.08rem; color: var(--text); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.hero-home .hero-title { font-size: 2.25rem; font-size: clamp(2.25rem, 7.5vw, 3.6rem); text-wrap: balance; }
@media (min-width: 900px) {
  .hero { display: flex; align-items: center; min-height: 320px; }
  .hero-home { min-height: 400px; min-height: clamp(400px, 30vw, 460px); }
  .hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; height: auto; }
  .hero-media::after { top: 0; right: 0; bottom: 0; left: -2px; background: linear-gradient(90deg, var(--band) 0%, rgba(242, 232, 218, .7) 9%, rgba(242, 232, 218, .2) 17%, rgba(242, 232, 218, 0) 26%); }
  .hero-home .hero-media img {
    object-position: 50% 62%;
    transform: scale(1.17);
    transform-origin: left 62%;
  }
  .hero-content { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero-content > * { max-width: 34rem; }
  .hero-title { font-size: 2.6rem; font-size: clamp(2.6rem, 4vw, 3.4rem); }
  .hero-home .hero-title { font-size: 3rem; font-size: clamp(3rem, 4.5vw, 4rem); }
}

.status { display: inline-flex; align-items: center; gap: .45rem; padding: .22rem .7rem; border-radius: 999px; font-family: var(--sans); font-size: .78rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; background: var(--white); border: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.status:empty { display: none; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-open { color: var(--green); }
.status.is-closed { color: var(--red); }
.status-detail { color: var(--muted); font-weight: 500; }

.section { padding: 4rem 0; }
.section-head { text-align: center; margin-bottom: 2rem; }
@media (min-width: 900px) { .section { padding: 5rem 0; } }

.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; width: 100%; height: 100%; background: linear-gradient(150deg, #f3e8d8 0%, #e3cfb3 100%); color: var(--caramel); }
.placeholder-icon { width: 44px; height: 44px; }
.placeholder-label { font-family: var(--display); font-weight: 600; text-align: center; padding: 0 1rem; color: var(--ink); }

/* menu cards */
.menu-cards { padding-bottom: 1rem; }
.menu-cards + .story { padding-top: 2rem; }
.card-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.menu-card { display: flex; flex-direction: column; height: 100%; padding: .6rem; background: var(--card); border-radius: 18px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.mc-media { display: block; aspect-ratio: 4 / 3; border-radius: 13px; overflow: hidden; background: var(--white); }
.mc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.menu-card:hover .mc-media img { transform: scale(1.05); }
.mc-body { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; padding: .85rem .5rem .35rem; flex: 1; }
.mc-text { display: flex; flex-direction: column; gap: .3rem; }
.mc-title { font-family: var(--display); font-size: 1.08rem; font-weight: 600; line-height: 1.2; }
.mc-sub { font-size: .62rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.mc-arrow { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--caramel-soft); color: var(--caramel); transition: background-color .25s, color .25s; }
.mc-arrow .icon { width: 18px; height: 18px; stroke-width: 2; }
.menu-card:hover .mc-arrow { background: var(--caramel); color: #fff; }
@media (min-width: 900px) {
  .card-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
  .mc-title { font-size: 1.25rem; }
}

/* story */
.story-grid { display: grid; gap: 2.25rem; align-items: center; }
.story-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.story-text { position: relative; }
.story-text p { font-size: 1.05rem; max-width: 33rem; position: relative; z-index: 1; }
.story-text .btn { position: relative; z-index: 1; margin-top: .5rem; }
.leaf-art { position: absolute; right: -10px; top: -20px; width: 150px; height: 150px; color: #dcc3a3; stroke-width: 1.3; pointer-events: none; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1.5rem; max-width: 33rem; }
.facts li { display: flex; flex-direction: column; gap: .15rem; padding: 1rem .75rem; background: var(--card); border-radius: var(--radius); text-align: center; }
.facts strong { font-family: var(--display); font-size: 1.7rem; font-weight: 600; color: var(--caramel); line-height: 1.1; }
.facts span { font-size: .8rem; color: var(--muted); }
@media (min-width: 900px) { .story-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }

/* homepage gallery strip */
.gallery-strip { padding-top: 1rem; }
.strip { display: flex; gap: .6rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; }
.strip li { flex: 0 0 62%; scroll-snap-align: start; }
.strip-photo { display: block; height: 170px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.strip-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.strip-photo:hover img { transform: scale(1.05); }
@media (min-width: 900px) {
  .strip { overflow: visible; }
  .strip li { flex: 1 1 0; }
  .strip li:nth-child(2) { flex-grow: 1.2; }
  .strip li:nth-child(3) { flex-grow: 1.4; }
  .strip li:nth-child(4) { flex-grow: .8; }
  .strip-photo { height: 160px; }
}

/* reviews band */
.reviews-band { background: var(--band); }
.review-cards { display: grid; gap: 1rem; }
.review-card { display: flex; flex-direction: column; gap: .7rem; padding: 1.5rem 1.6rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.review-text { margin: 0; color: var(--ink); flex: 1; }
.review-by { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: .9rem; }
.review-badge { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--caramel-soft); color: var(--caramel); }
.review-badge .icon { width: 16px; height: 16px; }
.stars { display: inline-flex; gap: 3px; }
.star { width: 18px; height: 18px; color: var(--star); }
.star.is-full { fill: var(--star); }
@media (min-width: 900px) { .review-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }

/* Habesha roots (About page) */
.ethiopia { background: radial-gradient(70% 90% at 85% 15%, rgba(236, 214, 182, .7), transparent 60%), var(--band); }
.ethiopia-grid { display: grid; gap: 2.5rem; align-items: center; }
.amharic { font-family: "Noto Sans Ethiopic", "Nyala", var(--sans); font-size: .62em; font-weight: 500; color: var(--caramel); margin-left: .35rem; vertical-align: middle; }
.flag-bar { display: flex; width: 84px; height: 4px; border-radius: 2px; overflow: hidden; margin-bottom: 1.4rem; }
.flag-bar span { flex: 1; }
.flag-bar span:nth-child(1) { background: var(--caramel); }
.flag-bar span:nth-child(2) { background: #c08a4e; }
.flag-bar span:nth-child(3) { background: #dcb88a; }
.ethiopia-lead { font-size: 1.05rem; max-width: 34rem; }
.roots-list { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.roots-list li { display: flex; gap: 1rem; align-items: flex-start; }
.roots-list .icon { flex: none; width: 46px; height: 46px; padding: 10px; border-radius: 50%; color: var(--caramel); background: var(--caramel-soft); stroke-width: 1.5; }
.roots-list h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.roots-list h3 [lang="am"] { font-family: "Noto Sans Ethiopic", "Nyala", var(--sans); color: var(--caramel); }
.roots-list p { margin: 0; color: var(--muted); font-size: .95rem; }
.roots-list em { color: var(--ink); }
.ethiopia-media { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.eth-photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; }
.eth-photo img { width: 100%; height: 100%; object-fit: cover; }
.eth-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .8rem .6rem; background: linear-gradient(0deg, rgba(40, 25, 15, .75), transparent); color: #fff; font-size: .85rem; }
.eth-main { grid-column: 1 / -1; aspect-ratio: 16 / 11; }
@media (min-width: 960px) {
  .ethiopia-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .ethiopia-media { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; }
  .eth-main { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; min-height: 460px; }
  .eth-photo:not(.eth-main) { aspect-ratio: auto; }
}

/* gallery page + viewer */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.gallery-item { position: relative; margin: 0; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .75rem; background: linear-gradient(0deg, rgba(40, 25, 15, .7), transparent); color: #fff; font-size: .9rem; pointer-events: none; }
.gallery-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-more { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 2rem 0 0; color: var(--muted); }
.gallery-more .icon { color: var(--caramel); }
@media (min-width: 600px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
.lightbox { width: 94vw; max-width: 1100px; width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius-lg); background: #241a14; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgba(30, 20, 14, .82); }
.lightbox-figure { margin: 0; }
.lightbox-figure img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.lightbox-figure figcaption { padding: .8rem 1.2rem 1rem; font-family: var(--display); font-size: 1.1rem; }
.lightbox-btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--caramel); color: #fff; cursor: pointer; }
.lightbox-btn .icon { stroke-width: 2.2; }
.lightbox-close { top: -14px; right: -14px; }
.lightbox-prev { left: 10px; top: 40%; }
.lightbox-next { right: 10px; top: 40%; }
@media (min-width: 1000px) { .lightbox-prev { left: -64px; } .lightbox-next { right: -64px; } }

/* reviews page */
.rating-card { max-width: 640px; margin: 0 auto; padding: 2.5rem 1.5rem; text-align: center; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.rating { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.rating-value { font-family: var(--display); font-size: 4rem; font-weight: 600; line-height: 1; color: var(--caramel); }
.rating .star { width: 28px; height: 28px; }
.rating-count { color: var(--muted); margin: 1rem 0 0; }
.topics-title { font-size: 1.5rem; margin-bottom: .35rem; }
.topic-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; max-width: 760px; margin: 0 auto; }
.topic-list li { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.1rem; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 500; box-shadow: var(--shadow-sm); }
.topic-list .icon { width: 20px; height: 20px; color: var(--caramel); }
.review-steps { max-width: 760px; margin: 2.5rem auto 0; padding: 2rem 1.5rem; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); text-align: center; }
.steps { list-style: none; padding: 0; margin: 1.25rem auto 1.5rem; display: grid; gap: .6rem; max-width: 26rem; text-align: left; }
.steps li { display: flex; align-items: center; gap: .8rem; color: var(--ink); }
.steps span { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--caramel); color: #fff; font-weight: 700; font-size: .9rem; }

/* contact page */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-list { font-style: normal; margin-bottom: 1.75rem; }
.contact-row { display: flex; gap: .85rem; align-items: flex-start; color: var(--ink); }
.contact-row .icon { color: var(--caramel); }
.contact-row a { color: var(--ink); }
.hours-title { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; font-size: 1.3rem; margin-bottom: .75rem; }
.hours-title .icon { color: var(--caramel); }
.hours-table { width: 100%; max-width: 26rem; border-collapse: collapse; font-size: .95rem; }
.hours-table th, .hours-table td { padding: .45rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours-table th { font-weight: 500; color: var(--ink); }
.hours-table td { text-align: right; color: var(--muted); }
.hours-table .is-today th, .hours-table .is-today td { color: var(--caramel); font-weight: 600; }
.map-wrap { min-height: 320px; border-radius: var(--radius-lg); overflow: hidden; background: var(--band); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.ways { display: grid; gap: 1rem; }
.way { padding: 1.75rem 1.5rem; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.way > .icon { width: 52px; height: 52px; padding: 12px; margin-bottom: 1rem; border-radius: 50%; background: var(--caramel-soft); color: var(--caramel); }
.way h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.way p { color: var(--muted); margin-bottom: .75rem; }
@media (min-width: 760px) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.section-lead { max-width: 44rem; margin: 1rem auto 0; color: var(--muted); }
.why-megga .center-link { margin-top: 2rem; }
.menu-cards + .why-megga { padding-top: 2rem; }
@media (min-width: 760px) { .ways-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ways-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; }
  .map-wrap, .map-wrap iframe { min-height: 480px; }
}

/* visit band (every page) + footer */
.visit-band { background: var(--page); border-top: 1px solid var(--line); padding: 2.5rem 0; }
.visit-grid { display: grid; gap: 1.75rem; }
.visit-title { font-size: 1.6rem; margin-bottom: .9rem; }
.visit-sub { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; font-size: 1.05rem; margin-bottom: .8rem; }
.visit-row { display: flex; gap: .75rem; align-items: flex-start; margin: 0 0 .55rem; color: var(--ink); font-size: .95rem; }
.visit-row .icon { width: 20px; height: 20px; color: var(--caramel); margin-top: 2px; }
.visit-row a { color: var(--ink); text-decoration: none; }
.hours-groups { margin: 0; display: grid; gap: .4rem; }
.hours-groups div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; font-size: .95rem; }
.hours-groups dt { color: var(--ink); font-weight: 500; }
.hours-groups dd { margin: 0; }
.visit-cta .btn { margin-bottom: 1rem; }
.visit-cta .visit-row { color: var(--text); max-width: 18rem; }
@media (min-width: 900px) {
  .visit-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 0; }
  .visit-col { padding: 0 2.25rem; }
  .visit-col:first-child { padding-left: 0; }
  .visit-col + .visit-col { border-left: 1px solid var(--line); }
}
.site-footer { background: var(--band); border-top: 1px solid var(--line); padding: 1.5rem 0; font-size: .88rem; color: var(--muted); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; }
.footer-links a { color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 500; }
.footer-links a:hover { color: var(--caramel); }
.footer-note, .footer-copy { margin: 0; }

/* ---------- FAQ (Contact page) ---------- */

.faq-inner { max-width: 860px; }
.faq-list { display: grid; gap: .75rem; }
.faq-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-family: var(--display); font-size: 1.08rem; font-weight: 600; color: var(--ink);
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--caramel-soft); color: var(--caramel);
  font-size: 1.3rem; font-weight: 500; line-height: 1;
  transition: transform .25s var(--ease), background-color .25s, color .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--caramel); color: #fff; }
.faq-item summary:hover { color: var(--caramel); }
.faq-answer { padding: 0 1.4rem 1.2rem; color: var(--text); }
.faq-answer p { margin: 0; }

/* menu page */
.menu-intro { padding-top: .9rem; padding-bottom: .6rem; padding-block: clamp(.9rem, 3vw, 2.25rem) clamp(.6rem, 2vw, 1.25rem); }
.menu-intro h1 { margin: 0; font-size: 1.45rem; font-size: clamp(1.45rem, 5vw, 2.4rem); }
.menu-about { max-width: 65ch; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); }
.menu-about h2 { font-size: 1.15rem; margin-bottom: .4rem; color: var(--ink); }
.menu-about p { margin: 0; }
.menu-tools { position: -webkit-sticky; position: sticky; top: var(--header-h); z-index: 40; background: var(--page); box-shadow: 0 6px 14px rgba(90, 60, 40, .06); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.menu-tabs { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; margin-right: -20px; padding-right: 20px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs ul { display: flex; gap: .4rem; padding: .7rem 0; width: max-content; }
.tab { display: inline-flex; align-items: center; min-height: 40px; padding: .45rem 1rem; border-radius: 999px; border: 1px solid transparent; color: var(--ink); font-family: var(--display); font-size: .95rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, transform .15s var(--ease); }
.tab:hover { border-color: var(--line-2); color: var(--ink); }
.tab.is-active { background: var(--caramel); color: #fff; }
.menu-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding-top: 1.5rem; padding-bottom: .5rem; }
.search { position: relative; flex: 1 1 100%; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search input { width: 100%; min-height: 48px; padding: .7rem 1rem .7rem 2.75rem; background: var(--white); border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); font: inherit; }
.search input:focus { outline: none; border-color: var(--caramel); box-shadow: 0 0 0 3px rgba(151, 88, 38, .18); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem .95rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; }
.chip:hover { border-color: var(--caramel); }
.chip[aria-pressed="true"] { background: var(--caramel); color: #fff; border-color: var(--caramel); }
.menu-count { flex-basis: 100%; margin: 0; color: var(--muted); font-size: .88rem; min-height: 1.2em; }
@media (min-width: 760px) { .search { flex: 1 1 320px; max-width: 420px; } }
.menu-body { padding-bottom: 4rem; }
.menu-cat { padding: 2rem 0 .5rem; }
.menu-cat-title { font-size: 1.6rem; font-size: clamp(1.6rem, 4vw, 2.1rem); padding-bottom: .75rem; margin-bottom: .5rem; border-bottom: 1px solid var(--line-2); }
.menu-list { display: grid; column-gap: 2.75rem; }
@media (min-width: 900px) { .menu-list { grid-template-columns: 1fr 1fr; } }
.menu-item { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.menu-item.has-photo { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; align-items: start; }
.item-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--band); }
.item-name { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .45rem; font-size: 1.12rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.item-tags { display: inline-flex; gap: .25rem; }
.tag-icon { width: 18px; height: 18px; }
.tag-v { color: var(--green); }
.tag-s { color: #c0392b; }
.tag-gf { color: #b7791f; }
.item-price { color: var(--caramel); font-family: var(--display); font-size: 1.08rem; font-weight: 600; white-space: nowrap; }
.item-desc { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
@media (min-width: 680px) {
  .menu-item.has-photo { grid-template-columns: 78px minmax(0, 1fr); gap: 1.1rem; }
  .item-thumb { width: 78px; height: 78px; }
  .item-name { font-size: 1.2rem; }
}
.menu-empty { text-align: center; color: var(--muted); padding: 3rem 0; }
.legend { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 2.5rem; color: var(--muted); font-size: .88rem; }
.legend li { display: inline-flex; align-items: center; gap: .4rem; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .menu-card:hover { transform: none; }
}

/* ---------- menu page: phone-first (customers arrive by QR code) ---------- */

/* On phones only the category bar stays pinned; the logo bar scrolls away */
@media (max-width: 1019px) {
  body[data-page="menu"] .site-header { position: relative; }
  body[data-page="menu"] .menu-tools { top: 0; }
}

.menu-bar { display: flex; align-items: center; gap: .5rem; }
.sections-btn {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  min-height: 40px; padding: .4rem .9rem .4rem .7rem;
  border: 1.5px solid var(--caramel); border-radius: 999px;
  background: var(--white); color: var(--caramel);
  font-family: var(--display); font-size: .92rem; font-weight: 600;
  cursor: pointer;
}
.sections-btn .icon { width: 18px; height: 18px; }
.sections-btn[aria-expanded="true"] { background: var(--caramel); color: #fff; }

/* Floats over the menu (doesn't push the page down) */
.sections-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  border-top: 1px solid var(--line);
  background: var(--page);
  box-shadow: 0 18px 30px rgba(90, 60, 40, .18);
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .9rem 0 1.2rem;
}
.sections-title { margin: 0 0 .7rem; font-family: var(--display); font-weight: 600; color: var(--muted); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.sections-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.section-link {
  display: flex; align-items: center; gap: .5rem;
  min-height: 56px; padding: .45rem .6rem .45rem .45rem;
  background: var(--card); border-radius: 12px;
  color: var(--ink); text-decoration: none;
}
.section-link:hover { background: var(--caramel-soft); color: var(--ink); }
.section-link:focus-visible { background: var(--caramel-soft); color: var(--ink); }
.section-link img { width: 40px; height: 40px; flex: none; object-fit: cover; border-radius: 8px; }
.section-name { flex: 1; min-width: 0; font-family: var(--display); font-size: .88rem; font-weight: 600; line-height: 1.2; }
.section-count { flex: none; min-width: 26px; padding: .1rem .45rem; border-radius: 999px; background: var(--white); color: var(--caramel); font-size: .75rem; font-weight: 700; text-align: center; }
@media (min-width: 760px) { .sections-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Dish photo button + viewer */
.thumb-btn { display: block; padding: 0; border: 0; background: none; border-radius: 12px; cursor: zoom-in; }
.thumb-btn:focus-visible { outline-offset: 2px; }
.dish-viewer { width: 92vw; max-width: 520px; width: min(520px, 92vw); }
.dish-viewer .lightbox-figure img { aspect-ratio: 1; object-fit: cover; max-height: 70vh; }
.dish-caption { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: baseline; }
.dish-name { font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.dish-price { font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: #f0b07a; }
.dish-desc { grid-column: 1 / -1; color: rgba(255, 255, 255, .75); font-family: var(--sans); font-size: .95rem; }
.dish-desc:empty { display: none; }
.dish-credit { grid-column: 1 / -1; color: rgba(255, 255, 255, .6); font-family: var(--sans); font-size: .75rem; }
.dish-credit:empty { display: none; }
.dish-credit a { color: inherit; }
.photo-credits { margin: .4rem 0 0; font-size: .75rem; opacity: .8; }
.photo-credits a { color: inherit; }

/* Back to top */
.to-top {
  display: none;
  position: fixed; right: 16px; bottom: 18px; z-index: 45;
  place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--caramel); color: #fff;
  box-shadow: 0 8px 20px rgba(90, 60, 40, .3);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
/* Only on wider screens: on phones it would cover prices, and "Sections" already jumps anywhere */
@media (min-width: 900px) { .to-top { display: grid; } }
.to-top:hover { background: var(--caramel-dark); color: #fff; }
.to-top .icon { width: 22px; height: 22px; stroke-width: 2.2; }

.menu-empty { display: grid; justify-items: center; gap: .5rem; }

/* Phones: filters on one swipeable row, tighter spacing so dishes show sooner */
@media (max-width: 599px) {
  .menu-filters { padding-top: 1rem; gap: .6rem; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -20px; padding-right: 20px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .menu-cat { padding-top: 1.25rem; }
}
.menu-empty p { margin: 0; }

/* Menu page goes straight to the dishes */
.menu-tools { border-top: 0; }
.menu-bar { padding-top: .1rem; padding-bottom: .1rem; }
.search-btn {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; margin-left: .15rem;
  border: 1.5px solid var(--line-2); border-radius: 50%;
  background: var(--white); color: var(--ink);
  cursor: pointer;
  position: relative; z-index: 1;
}
.search-btn .icon { width: 19px; height: 19px; }
.search-btn[aria-expanded="true"], .search-btn.is-filtering { border-color: var(--caramel); background: var(--caramel); color: #fff; }
.menu-tabs {
  margin-right: 0; padding-right: 0; padding-left: .35rem;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent 100%);
}
/* Fade the left edge too, but only once the tabs have been scrolled sideways */
.menu-tabs.is-scrolled {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 24px), transparent 100%);
}
.search-panel { border-top: 1px solid var(--line); background: var(--page); }
.search-panel .menu-filters { padding-top: .75rem; padding-bottom: .75rem; }
.search-panel .menu-count:empty { display: none; }

/* Slim section heading instead of a big photo banner */
.menu-cat { padding: 1.4rem 0 .25rem; }
.menu-body > div > .menu-cat:first-child { padding-top: .9rem; }
.cat-heading { display: flex; align-items: center; gap: .75rem; padding-bottom: .65rem; border-bottom: 2px solid var(--line); }
.cat-heading .menu-cat-title { flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; font-size: 1.45rem; }
.cat-count { flex: none; padding: .15rem .6rem; border-radius: 999px; background: var(--card); color: var(--muted); font-size: .78rem; font-weight: 600; }
@media (min-width: 760px) {
  .cat-heading .menu-cat-title { font-size: 1.85rem; }
}

/* Small phones: the Sections button becomes a grid icon so more category tabs fit */
@media (max-width: 479px) {
  .sections-btn { width: 42px; height: 42px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; }
  .sections-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-bar { gap: .35rem; }
  .tab { padding: .4rem .8rem; font-size: .9rem; }
}

/* ---------- Menu items as soft cards ---------- */

.menu-list { gap: .7rem; padding-top: .9rem; }
.menu-item {
  position: relative;
  padding: .7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(80, 52, 28, .05);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.menu-item:hover { border-color: var(--line-2); box-shadow: 0 10px 22px rgba(80, 52, 28, .1); }
.menu-item.has-photo { grid-template-columns: 76px minmax(0, 1fr); gap: .9rem; align-items: center; }
.thumb-btn { border-radius: 14px; }
.item-thumb { width: 76px; height: 76px; border-radius: 14px; }

.item-body { display: grid; gap: .35rem; min-width: 0; }
.item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.item-name { display: block; font-size: 1.08rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.item-price {
  flex: none;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: #f3e2c9;
  color: var(--caramel-dark);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
.item-desc { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }

.item-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .12rem .55rem .12rem .45rem;
  border-radius: 999px;
  font-size: .74rem; font-weight: 600; line-height: 1.5;
}
.tag-pill .tag-icon { width: 14px; height: 14px; }
.tag-pill-v { background: #e6f1e2; color: #2d6a31; }
.tag-pill-s { background: #fbe6df; color: #a3311d; }
.tag-pill-gf { background: #f6ead2; color: #7d5410; }

/* Section heading with a caramel accent */
.cat-heading { position: relative; border-bottom: 0; padding-bottom: .5rem; }
.cat-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; border-radius: 3px; background: var(--caramel); }

@media (min-width: 680px) {
  .menu-item.has-photo { grid-template-columns: 92px minmax(0, 1fr); gap: 1rem; }
  .item-thumb { width: 92px; height: 92px; }
  .item-name { font-size: 1.15rem; }
}
@media (min-width: 900px) {
  .menu-list { gap: .9rem 1.1rem; }
  .menu-item:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) { .menu-item:hover { transform: none; } }
/* Phones: slightly tighter cards so five dishes fit on the first screen */
@media (max-width: 679px) {
  .menu-list { gap: .5rem; padding-top: .75rem; }
  .menu-item { padding: .5rem .6rem .5rem .5rem; border-radius: 16px; }
  .menu-item.has-photo { grid-template-columns: 68px minmax(0, 1fr); gap: .75rem; }
  .item-thumb { width: 68px; height: 68px; border-radius: 12px; }
}
/* No right-edge fade once the last tab is in view */
.menu-tabs.at-end {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px);
}

/* ---------- Photo banner between menu sections ---------- */

.cat-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 104px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--band);
  box-shadow: 0 6px 18px rgba(80, 52, 28, .14);
}
.cat-banner img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
/* Warm espresso fade so the white title is readable on any photo */
.cat-banner::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background:
    linear-gradient(90deg, rgba(43, 33, 24, .82) 0%, rgba(43, 33, 24, .5) 50%, rgba(43, 33, 24, .1) 100%),
    linear-gradient(0deg, rgba(43, 33, 24, .35) 0%, transparent 60%);
}
.cat-banner-text {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  width: 100%;
  padding: 0 1rem .85rem 1.1rem;
}
.cat-banner .menu-cat-title {
  margin: 0; padding: 0; border: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.cat-banner .cat-count {
  flex: none;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
}
@media (min-width: 760px) {
  .cat-banner { height: 150px; }
  .cat-banner-text { padding: 0 1.4rem 1.1rem 1.6rem; }
  .cat-banner .menu-cat-title { font-size: 2rem; }
}

/* ---------- Phones: tighter, easier to scan ---------- */
.strip { scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
@media (max-width: 640px) {
  .section { padding: 3rem 0; }
  .section-head { margin-bottom: 1.5rem; }
  /* Side rules squeeze long headings into 3 lines on a phone */
  .lined { display: block; }
  .lined::before, .lined::after { content: none; }
  .section-lead { font-size: .98rem; }

  /* Homepage menu cards: shorter subtitles */
  .mc-sub { letter-spacing: .08em; font-size: .66rem; }
  .mc-body { padding: .7rem .35rem .2rem; }

  /* Feature cards (Why Megga, Getting here): icon beside text, not above it */
  .way { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 1rem; padding: 1.15rem 1.15rem 1.05rem; }
  .way > .icon { grid-row: 1 / span 3; width: 44px; height: 44px; padding: 10px; margin: 0; }
  .way > :not(.icon) { grid-column: 2; }
  .way h3 { font-size: 1.1rem; margin-bottom: .25rem; }
  .way p { font-size: .94rem; margin-bottom: .45rem; }
  .ways { gap: .75rem; }

  .gallery-more { align-items: flex-start; text-align: left; }
  .gallery-more .icon { flex: none; margin-top: .2em; }
}

/* Without JavaScript (or before it runs) the menu is a plain list, so hide the buttons that need it. */
html:not(.js) [data-sections-toggle],
html:not(.js) [data-search-toggle] { visibility: hidden; }

/* ---------- Page not found (404.html) ---------- */
.notfound { padding: 4.5rem 0 5rem; text-align: center; }
.notfound .section-title { margin-bottom: .6rem; }
.notfound .btn-row { margin-top: 2rem; }

/* ---------- Older phones ---------- */

/* Square photo tiles and 4:3 cards on phones that don't know aspect-ratio (before iOS 15 / 2021). */
@supports not (aspect-ratio: 1) {
  .gallery-item { height: 0; padding-top: 100%; }
  .gallery-item > .gallery-open, .gallery-item > img, .gallery-item > .placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
  .mc-media { position: relative; height: 0; padding-top: 75%; }
  .mc-media > img, .mc-media > .placeholder { position: absolute; top: 0; left: 0; }
}

/* Photo viewers on phones without <dialog> (iPhones before iOS 15.4): script.js opens the same
   box as a fixed panel in the middle of the screen. The wide shadow is the dark backdrop. */
.lightbox.is-fallback {
  display: block; position: fixed; top: 50%; left: 50%; z-index: 200; margin: 0;
  -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 200vmax rgba(30, 20, 14, .82);
}

/* Phones that ignore "gap" in rows (before about 2021): script.js adds .no-flexgap and the
   spacing comes back as margins. */
.no-flexgap .btn .icon:first-child, .no-flexgap .chip .icon, .no-flexgap .sections-btn .icon { margin-right: .45rem; }
.no-flexgap .btn .icon:last-child:not(:first-child), .no-flexgap .text-link .icon { margin-left: .4rem; }
.no-flexgap .btn-row .btn { margin: 0 .9rem .9rem 0; }
.no-flexgap .hero-lead .status { margin-right: .6rem; }
.no-flexgap .status-dot { margin-right: .4rem; }
.no-flexgap .strip li + li, .no-flexgap .menu-tabs li + li, .no-flexgap .menu-bar > * + * { margin-left: .5rem; }
.no-flexgap .review-card > * + * { margin-top: .7rem; }
.no-flexgap .review-badge, .no-flexgap .gallery-more .icon, .no-flexgap .topic-list .icon { margin-right: .55rem; }
.no-flexgap .roots-list .icon, .no-flexgap .steps span, .no-flexgap .contact-row .icon, .no-flexgap .visit-row .icon { margin-right: .8rem; }
.no-flexgap .hours-title .icon, .no-flexgap .visit-sub .icon, .no-flexgap .legend .tag-icon { margin-right: .5rem; }
.no-flexgap .hours-title .status, .no-flexgap .visit-sub .status { margin-left: .5rem; }
.no-flexgap .topic-list li { margin: .3rem; }
.no-flexgap .footer-links li { margin: .15rem .7rem; }
.no-flexgap .footer-inner > * + * { margin-top: .6rem; }
.no-flexgap .chip { margin: 0 .5rem .5rem 0; }
.no-flexgap .legend li { margin: 0 1.5rem .5rem 0; }
.no-flexgap .section-link img { margin-right: .5rem; }
.no-flexgap .item-price, .no-flexgap .cat-count, .no-flexgap .section-count, .no-flexgap .mc-arrow { margin-left: .6rem; }
.no-flexgap .tag-pill { margin: 0 .35rem .2rem 0; }
.no-flexgap .tag-pill .tag-icon { margin-right: .3rem; }
.no-flexgap .stars .star + .star { margin-left: 3px; }
@media (max-width: 479px) { .no-flexgap .sections-btn .icon { margin-right: 0; } }
@media (min-width: 1020px) { .no-flexgap .nav-list li + li { margin-left: 2.2rem; } }

/* ---------- Light motion ----------
   Only opacity and transform, so it stays smooth on slow phones. Phones too old to understand
   this @media line, and anyone who has "reduce motion" switched on, simply get no animation. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
  @keyframes pulse { from { opacity: .5; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }

  /* Top of each page: the heading, text and buttons rise in one after another */
  .hero-content > * { animation: rise .55s var(--ease) both; }
  .hero-content > :nth-child(2) { animation-delay: .07s; }
  .hero-content > :nth-child(3) { animation-delay: .14s; }
  .hero-content > :nth-child(4) { animation-delay: .21s; }

  /* Cards in a row fade in one after another instead of all at once */
  .js .card-row > .reveal:nth-child(2), .js .ways > .reveal:nth-child(2), .js .review-cards > .reveal:nth-child(2), .js .gallery-grid > .reveal:nth-child(even) { transition-delay: .08s; }
  .js .card-row > .reveal:nth-child(3), .js .ways > .reveal:nth-child(3), .js .review-cards > .reveal:nth-child(3) { transition-delay: .16s; }
  .js .card-row > .reveal:nth-child(4), .js .ways > .reveal:nth-child(4) { transition-delay: .24s; }

  /* A tap gives a small press-in, so the phone feels like it answered */
  .btn:active { transform: scale(.97); }
  .menu-card:active { transform: scale(.985); }
  .tab:active, .chip:active, .sections-btn:active, .search-btn:active, .section-link:active, .thumb-btn:active, .nav-toggle:active { transform: scale(.95); }
  .chip, .sections-btn, .search-btn, .section-link, .thumb-btn, .nav-toggle { transition: transform .15s var(--ease), background-color .2s, color .2s, border-color .2s; }

  /* Panels and viewers ease in instead of snapping */
  .sections-panel:not([hidden]), .search-panel:not([hidden]) { animation: drop .22s var(--ease); }
  .faq-item[open] .faq-answer { animation: rise .3s var(--ease); }
  dialog.lightbox[open]:not(.is-fallback) { animation: pop .22s var(--ease); }
  dialog.lightbox[open]::backdrop { animation: fade .22s; }
  .lightbox.is-fallback { animation: fade .22s; }
  @media (max-width: 1019px) {
    .site-nav.is-open { animation: fade .2s; }
    .site-nav.is-open .nav-list { animation: rise .3s var(--ease) both; }
    .site-nav.is-open .nav-right { animation-delay: .06s; }
  }

  /* "Open now": the green dot pulses three times, then rests */
  .status.is-open .status-dot { position: relative; }
  .status.is-open .status-dot::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; background: currentColor; opacity: 0; animation: pulse 1.6s ease-out 3; }
}
