/* ==========================================================================
   Uncle Mimi's Kitchen — main.css
   A warm, handcrafted, editorial design system for a Martha's Vineyard bakery.
   Organized: tokens → reset → base → layout → components → sections → utilities
   ========================================================================== */

/* ----- Fonts (self-hosted, no third-party requests) ---------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ----- Design tokens ----------------------------------------------------- */
:root {
  /* Color — "Vineyard Green": cool near-white ground, pine-green brand,
     warm terracotta secondary accent, deep green-ink text. */
  --cream:        #f5f8f4;   /* base background (cool near-white) */
  --cream-deep:   #e8f0e6;   /* tinted section background (soft sage) */
  --paper:        #ffffff;
  --ink:          #1b2a21;   /* deep pine ink — text + footer */
  --ink-soft:     #45564b;
  --ink-faint:    #7d8c81;
  --line:         #d9e4d8;
  --green:        #2c5f47;   /* primary brand + CTAs */
  --green-d:      #204835;
  --terracotta:   #bb5a37;   /* warm secondary accent (eyebrows) */
  --terracotta-d: #9b4a2d;
  --olive:        #5f6a45;
  --cranberry:    #8a3b44;
  --logo-maroon:  #6c2531;   /* hand-drawn "MIMI" mark */

  /* Semantic */
  --bg:           var(--cream);
  --bg-alt:       var(--cream-deep);
  --surface:      var(--paper);
  --text:         var(--ink);
  --text-muted:   var(--ink-soft);
  --accent:       var(--green);      /* primary accent = green */
  --accent-ink:   var(--green-d);
  --warm:         var(--terracotta); /* warm eyebrow accent */
  --warm-ink:     var(--terracotta-d);
  --focus:        #1c5a8a;

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1rem, 0.96rem + 0.22vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.45rem);
  --step-2:  clamp(1.55rem, 1.40rem + 0.75vw, 2.05rem);
  --step-3:  clamp(1.95rem, 1.70rem + 1.25vw, 2.90rem);
  --step-4:  clamp(2.45rem, 2.00rem + 2.30vw, 4.20rem);

  /* Spacing scale */
  --space-2xs: 0.375rem;
  --space-xs:  0.625rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  clamp(3rem, 2rem + 4vw, 5.5rem);
  --space-2xl: clamp(4rem, 2.5rem + 6vw, 8rem);

  /* Layout */
  --measure: 68ch;
  --wrap: 1180px;
  --wrap-wide: 1320px;
  --radius: 10px;
  --radius-lg: 16px;
  --header-h: 0px; /* no header on mobile — set at the desktop breakpoint below */

  --shadow-sm: 0 1px 2px rgba(42, 33, 27, 0.06), 0 2px 6px rgba(42, 33, 27, 0.05);
  --shadow-md: 0 6px 22px rgba(42, 33, 27, 0.10);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
:target { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* ----- Accessibility helpers -------------------------------------------- */
.skip-link {
  position: absolute; left: 0; top: -100%;
  background: var(--ink); color: #fff;
  padding: 0.7rem 1.1rem; border-radius: 0 0 var(--radius) 0;
  z-index: 100; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.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;
}

/* ----- Layout primitives ------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--wide { width: min(100% - 2.5rem, var(--wrap-wide)); }
.section { padding-block: var(--space-2xl); }
.section--tint { background: var(--bg-alt); }
.section__head { max-width: var(--measure); margin-bottom: var(--space-lg); }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm-ink);
  margin-bottom: var(--space-xs);
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--warm); display: inline-block; }
.section__title { font-size: var(--step-3); }
.section__intro { font-size: var(--step-1); color: var(--text-muted); margin-top: var(--space-sm); }

/* ----- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.5rem;
  font-weight: 600; font-size: var(--step-0);
  text-decoration: none; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-1px); }
.btn--light { background: rgba(255,253,248,0.92); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.75); }
.btn--outline-light:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* ==========================================================================
   Header & navigation
   ========================================================================== */
.site-header {
  display: none; /* no header/nav bar on mobile — reinstated at the desktop breakpoint below */
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
  background: color-mix(in srgb, var(--cream) 96%, transparent);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.6rem var(--space-md);
  min-height: var(--header-h); padding-block: 0.6rem;
}
.brand {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--step-1); line-height: 1; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: baseline; gap: 0.5ch;
}
.brand:hover { color: var(--ink); }
.brand__mark { color: var(--terracotta); }
.brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.5em; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); }
.brand--logo { display: inline-flex; align-items: center; }
.brand__img { height: clamp(38px, 5vw, 52px); width: auto; }

.brand--drawn { display: inline-flex; align-items: center; gap: 0.6ch; }
.brand__mark-svg { height: clamp(34px, 4.6vw, 46px); width: auto; overflow: visible; }
.brand--drawn small {
  display: block; font-family: var(--font-body); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint); align-self: flex-end; padding-bottom: 0.35rem;
}

/* Always visible at every width — no toggle, no overlay, nothing to
   animate on open, so there's no scroll/GPU-compositor interaction left
   that could glitch. On narrow screens the links become their own
   horizontally scrollable row instead of wrapping or hiding. */
.primary-nav {
  order: 3; flex-basis: 100%;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.primary-nav::-webkit-scrollbar { display: none; }
.primary-nav ul {
  list-style: none; display: flex; align-items: center;
  gap: clamp(1.1rem, 4vw, 2rem); padding: 0; flex-wrap: nowrap; width: max-content;
}
.primary-nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: var(--step-0);
  padding: 0.4rem 0; position: relative; white-space: nowrap;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right 0.25s var(--ease);
}
.primary-nav a:hover, .primary-nav a[aria-current="true"] { color: var(--ink); }
.primary-nav a:hover::after, .primary-nav a[aria-current="true"]::after { right: 0; }
.header-actions { display: inline-flex; align-items: center; gap: var(--space-sm); }

/* Freezes the page at its current scroll position while an overlay is open.
   `top` is set inline by JS to the negative scroll offset — plain
   `overflow: hidden` alone doesn't reliably stop iOS Safari's momentum
   scroll from continuing to move the page behind a fixed overlay. */
body.no-scroll { position: fixed; overflow: hidden; width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(26,18,12,0.55) 0%, rgba(26,18,12,0.30) 42%, rgba(26,18,12,0.62) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  min-height: min(88vh, 760px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(4rem, 8vw, 8rem); color: #fff;
}
.hero__content { max-width: 46rem; }
.hero .eyebrow { color: #ffe9d8; }
.hero .eyebrow::before { background: #ffd9b8; }
.hero__title { color: #fff; font-size: var(--step-4); font-weight: 500; }
.hero__title--logo { line-height: 0; }
.hero__logo {
  width: clamp(200px, 24vw, 340px); height: auto;
  filter: drop-shadow(0 3px 14px rgba(0,0,0,0.4));
}
.hero__tagline {
  margin-top: var(--space-md); font-size: var(--step-1);
  color: #fdf4ea; max-width: 34ch; line-height: 1.5;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.hero__actions { margin-top: var(--space-lg); display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero__scroll { margin-top: var(--space-xl); font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: #f0e2d4; display: inline-flex; align-items: center; gap: 0.5rem; }

/* ==========================================================================
   Story
   ========================================================================== */
.story__grid { display: grid; gap: var(--space-lg); align-items: center; }
.story__body p + p { margin-top: var(--space-md); }
.story__lead { font-family: var(--font-display); font-size: clamp(1.3rem, 1.16rem + 0.55vw, 1.7rem); line-height: 1.35; color: var(--ink); font-weight: 400; }
.story__body { max-width: var(--measure); }
.sign-figure { margin: 0; }
.sign-figure__frame {
  background: var(--paper); padding: clamp(0.75rem, 2vw, 1.25rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  transform: rotate(-0.6deg);
}
.sign-figure img { width: 100%; height: auto; border-radius: 6px; }
.sign-figure figcaption {
  margin-top: var(--space-sm); font-size: var(--step--1); color: var(--ink-faint);
  font-style: italic; text-align: center;
}

/* ==========================================================================
   Products
   ========================================================================== */
.product-grid {
  display: grid; gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: 1fr;
}
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__zoom {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; background: none; display: block; cursor: zoom-in;
}
.product-card__zoom-icon {
  position: absolute; right: 0.65rem; bottom: 0.65rem; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(20, 26, 22, 0.55); color: #fff;
  display: grid; place-items: center;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.product-card__zoom-icon svg { width: 17px; height: 17px; }
.product-card__zoom:hover .product-card__zoom-icon,
.product-card__zoom:focus-visible .product-card__zoom-icon {
  background: rgba(20, 26, 22, 0.8); transform: scale(1.08);
}
.product-card__body { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-2xs); flex: 1; }
.product-card__name { font-size: var(--step-2); }
.product-card__desc { color: var(--text-muted); font-size: var(--step-0); }
.tag {
  align-self: flex-start; margin-top: var(--space-2xs);
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.04em;
  color: var(--olive-d); background: color-mix(in srgb, var(--olive) 15%, var(--cream));
  padding: 0.25rem 0.7rem; border-radius: 999px;
}
/* Blue prize-ribbon badge with an accessible hover/focus tooltip */
.ribbon-badge {
  position: absolute; top: var(--space-sm); left: var(--space-sm); z-index: 3;
  width: 42px; height: 56px; cursor: help;
  display: block; border-radius: 6px;
}
.ribbon-badge svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(20,30,25,0.35)); }
.ribbon-badge__tip {
  position: absolute; top: calc(100% + 6px); left: -4px;
  width: max-content; max-width: 210px;
  background: var(--ink); color: #fff;
  font-family: var(--font-body); font-size: var(--step--1); line-height: 1.35;
  padding: 0.55rem 0.7rem; border-radius: 8px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  pointer-events: none; z-index: 4;
}
.ribbon-badge__tip strong { display: block; font-weight: 700; margin-bottom: 0.1rem; }
.ribbon-badge__tip::before {
  content: ""; position: absolute; bottom: 100%; left: 14px;
  border: 6px solid transparent; border-bottom-color: var(--ink);
}
.ribbon-badge:hover .ribbon-badge__tip,
.ribbon-badge:focus .ribbon-badge__tip,
.ribbon-badge:focus-visible .ribbon-badge__tip {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* ==========================================================================
   Meet the Bakers (team)
   ========================================================================== */
.team-grid { display: grid; gap: clamp(1.5rem, 3vw, 2rem); grid-template-columns: 1fr; }
.team-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.team-card__media { position: relative; margin: 0; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card__media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(20, 26, 22, 0.78), transparent 80%);
  color: #fff; font-size: var(--step--1); padding: var(--space-lg) var(--space-sm) var(--space-sm);
}
.team-card__body { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-xs); flex: 1; }
.team-card__name { font-size: var(--step-2); }
.team-card__body p { color: var(--text-muted); }
.team-card__body p + p { margin-top: var(--space-xs); }

/* ==========================================================================
   Inquiries / Contact
   ========================================================================== */
.contact__grid { display: grid; gap: var(--space-lg); }
.contact__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow-sm);
}
.contact__card h3 { font-size: var(--step-2); margin-bottom: var(--space-xs); }
.contact__card p { color: var(--text-muted); margin-bottom: var(--space-md); max-width: 46ch; }
.contact__card--media { padding: 0; overflow: hidden; }
.contact__card-media { margin: 0; aspect-ratio: 16 / 10; background: var(--bg-alt); }
.contact__card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact__card-content { padding: clamp(1.5rem, 4vw, 2.75rem); }
.contact__card--feature { max-width: 900px; margin: 0 auto; }
.contact-methods { display: flex; flex-direction: column; gap: var(--space-sm); }
.contact-method {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-sm); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: var(--cream);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.contact-method:hover { border-color: var(--accent); background: var(--paper); transform: translateY(-1px); color: var(--ink); }
.contact-method__icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, var(--cream)); color: var(--accent-ink);
}
.contact-method__icon svg { width: 20px; height: 20px; }
.contact-method__label { font-size: var(--step--1); color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; display: block; }
.contact-method__value { font-size: var(--step-1); font-weight: 600; word-break: break-word; }

/* ==========================================================================
   Locations
   ========================================================================== */
.locations-note {
  display: flex; gap: var(--space-sm); align-items: flex-start;
  background: color-mix(in srgb, var(--olive) 10%, var(--cream));
  border: 1px solid color-mix(in srgb, var(--olive) 25%, var(--line));
  border-radius: var(--radius); padding: var(--space-md);
  color: var(--olive-d); max-width: 60ch; margin-bottom: var(--space-lg);
  font-size: var(--step-0);
}
.locations-note svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.location-grid { display: grid; gap: clamp(1.5rem, 3vw, 2rem); grid-template-columns: 1fr; }
.location-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.location-card__media { aspect-ratio: 3 / 2; background: var(--bg-alt); }
.location-card__media img { width: 100%; height: 100%; object-fit: cover; }
.location-card__body { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-xs); flex: 1; }
.location-card__name { font-size: var(--step-1); }
.location-card address { font-style: normal; color: var(--text-muted); line-height: 1.5; }
.location-card__phone { text-decoration: none; color: var(--ink); font-weight: 500; display: inline-block; }
.location-card__phone:hover { color: var(--accent); }
.location-card__actions { margin-top: auto; padding-top: var(--space-sm); display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.location-card__actions .btn { min-height: 42px; padding: 0.5rem 1rem; font-size: var(--step--1); }

.map-embed {
  position: relative; margin-top: var(--space-sm);
  aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-alt);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed__fallback {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  gap: 0.5rem; padding: var(--space-sm); color: var(--text-muted); font-size: var(--step--1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #ece0d2; padding-block: var(--space-xl); }
.site-footer a { color: #f4e8da; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
.footer__about { display: flex; flex-direction: column; align-items: flex-start; }
.footer__logo {
  display: inline-flex; align-items: center; background: var(--paper);
  border-radius: var(--radius); padding: 0.6rem 1rem; margin-bottom: var(--space-sm);
}
.footer__logo img { height: 34px; width: auto; display: block; }
.footer__brand { font-family: var(--font-display); font-size: var(--step-2); color: #fff; }
.footer__brand .brand__mark { color: #e9a97f; }
.footer__tag { color: #b8a894; margin-top: var(--space-xs); max-width: 32ch; }
.footer-col h2 { color: #fff; font-size: var(--step-0); font-family: var(--font-body); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-sm); }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer__social { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer__social svg { width: 20px; height: 20px; flex: none; }
.footer__social:hover { text-decoration: none; color: #fff; }
.footer__social span { text-decoration: underline; text-underline-offset: 0.15em; }
.footer__bottom {
  margin-top: var(--space-xl); padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: space-between; align-items: center;
  color: #b8a894; font-size: var(--step--1);
}

/* ==========================================================================
   Product photo lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 70;
  visibility: hidden; pointer-events: none;
}
.lightbox__scrim {
  position: absolute; inset: 0; background: rgba(18, 14, 11, 0.86);
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.lightbox__dialog {
  position: relative; z-index: 1;
  max-width: min(92vw, 1100px); max-height: 90vh;
  margin: 5vh auto 0; padding: 0 var(--space-md);
  display: flex; flex-direction: column; align-items: center;
  transform: scale(0.97); opacity: 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.lightbox[data-open="true"] { visibility: visible; pointer-events: auto; }
.lightbox[data-open="true"] .lightbox__scrim { opacity: 1; }
.lightbox[data-open="true"] .lightbox__dialog { transform: scale(1); opacity: 1; }
.lightbox__img {
  display: block; max-width: 100%; max-height: 76vh; width: auto; height: auto;
  border-radius: var(--radius); box-shadow: var(--shadow-md); background: var(--bg-alt);
}
.lightbox__caption {
  margin-top: var(--space-sm); color: #f4ede2; font-family: var(--font-display);
  font-size: var(--step-1); text-align: center;
}
.lightbox__caption:empty { display: none; }
.lightbox__close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(20, 16, 12, 0.55); color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { background: rgba(20, 16, 12, 0.8); }

/* ==========================================================================
   Responsive — mobile-first upgrades
   ========================================================================== */
@media (min-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__actions .btn { min-width: 190px; }
}
@media (min-width: 720px) {
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact__card--feature {
    display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  }
  .contact__card--feature .contact__card-media { aspect-ratio: auto; height: 100%; }
  .contact__card--feature .contact__card-content { display: flex; flex-direction: column; justify-content: center; }
}
@media (min-width: 860px) {
  :root { --header-h: 76px; }
  .site-header { display: block; }
  .site-header__inner { flex-wrap: nowrap; padding-block: 0; }
  .primary-nav {
    order: 0; flex-basis: auto; flex: 1 1 auto; min-width: 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .primary-nav ul { width: max-content; }
  .story__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-xl); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__content { max-width: 40rem; }
}
@media (min-width: 1080px) {
  .location-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

/* ----- Scroll reveal -------------------------------------------------------
   Default state is fully visible — safe with JS disabled. JS (menu.js) adds
   .is-hidden right after load, then removes it via IntersectionObserver as
   each element scrolls into view. Never applied under reduced-motion. */
[data-reveal] { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-hidden { opacity: 0; transform: translateY(22px); }

/* ----- Motion preferences ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .product-card:hover { transform: none; }
  .product-card:hover .product-card__media img { transform: none; }
}

/* ----- Print ------------------------------------------------------------- */
@media print {
  .site-header, .lightbox, .hero__actions, .map-embed { display: none !important; }
  body { color: #000; background: #fff; }
}
