/* ============================================================
   Florafresh website — page layout
   Refreshed three-section site: Products · About · Contact.
   Built on the Florafresh design system (css/styles.css).
   ============================================================ */

.container { max-width: var(--container-xl); margin: 0 auto; }

/* ============================================================
   Decorative fruit silhouettes — faint navy watermark behind
   every page. Sits below all content; opaque sections (hero
   photo, navy bands, coral tints) naturally cover it, so it
   only reads over the cream sections.
   ============================================================ */
.layout { position: relative; }
.decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;        /* clip shapes that bleed off the edges */
  pointer-events: none;
  color: var(--ff-navy);
}
.decor__shape {
  position: absolute;
  height: auto;
  opacity: 0.06;           /* faint watermark texture */
}
/* Keep all real content above the decor layer. */
.layout > main,
.layout > .site-footer { position: relative; z-index: 1; }

/* ============================================================
   Header / Nav — sticky, translucent paper, blurred
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 32px);
  background: rgba(251, 248, 244, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.site-header__brand { display: flex; align-items: center; flex: none; }
.site-header__brand img { height: var(--logo-h, 92px); width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; flex: 1; }
.site-nav a {
  display: inline-block;
  border: none;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--ff-slate-600);
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color 160ms var(--ease-out), background 160ms var(--ease-out);
}
.site-nav a:hover { color: var(--ff-navy); }
.site-nav a.is-active {
  font-weight: 600;
  color: var(--ff-navy);
  text-decoration: underline;
  text-decoration-color: var(--ff-navy);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.site-header__action { flex: none; display: flex; align-items: center; gap: 10px; }

/* ---- Language switcher ---- */
.lang-switch { position: relative; }
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-navy);
  cursor: pointer;
  transition: background 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.lang-switch__btn:hover { background: var(--ff-slate-100); }
.lang-switch__chev { transition: transform 160ms var(--ease-out); }
.lang-switch__btn[aria-expanded="true"] .lang-switch__chev { transform: rotate(180deg); }
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: var(--z-sticky);
  min-width: 84px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.lang-switch__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--ff-navy);
  cursor: pointer;
}
.lang-switch__item:hover { background: var(--ff-slate-100); }
.lang-switch__item.is-active { font-weight: 700; color: var(--text-accent); }

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 8px;
  color: var(--ff-navy);
}

/* ============================================================
   Button — coral reserved for primary CTAs
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.005em;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 180ms var(--ease-out), box-shadow 180ms var(--ease-out),
              color 180ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--ff-coral); color: var(--ff-navy); border-color: var(--ff-coral); }
.btn--primary:hover {
  background: var(--ff-coral-600);
  border-color: var(--ff-coral-600);
  color: var(--ff-navy);
  box-shadow: var(--shadow-coral);
}

.btn--sm { padding: 8px 16px; font-size: 13px; min-height: 36px; }
.btn--md { padding: 11px 22px; font-size: 15px; min-height: 44px; }
.btn--lg { padding: 15px 30px; font-size: 16px; min-height: 54px; }
.btn--block { display: flex; width: 100%; }

/* ============================================================
   Card — white surface primitive
   ============================================================ */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius-lg);
  transition: box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.card--interactive { cursor: pointer; }
.card--interactive:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ============================================================
   Products
   ============================================================ */
.products {
  padding: clamp(40px, 6vw, 96px) clamp(20px, 5vw, 64px) clamp(48px, 6vw, 88px);
  scroll-margin-top: 76px;
}
.products__header { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.products__title {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 144;
  font-weight: 540;
  margin-top: 18px;
}
.products__lead {
  font-family: var(--font-body);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--ff-slate-600);
  margin-top: 22px;
  max-width: 52ch;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(20px, 2.5vw, 30px);
}

.product-card { overflow: hidden; }
.product-card__media {
  aspect-ratio: 4 / 3;
  background: var(--surface-card);
  overflow: hidden;
}
.product-card__media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product-card__body { padding: var(--space-6); }
.product-card__name {
  font-size: 28px;
  letter-spacing: -0.018em;
  font-variation-settings: "SOFT" 40, "opsz" 90;
  font-weight: 560;
}
.product-card__note {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ff-slate-600);
  line-height: 1.55;
  margin-top: 8px;
}

.products__footnote {
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--ff-slate-500);
  margin-top: clamp(28px, 3vw, 40px);
  letter-spacing: 0.01em;
}

/* ============================================================
   About — navy framing + paper photo strip
   ============================================================ */
.about { background: var(--ff-navy); color: var(--ff-paper); }

.about__split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  align-items: stretch;
}
.about__copy {
  padding: clamp(48px, 6vw, 104px) clamp(20px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about__eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ff-coral-300);
}
.about__title {
  color: var(--ff-paper);
  font-size: clamp(32px, 4.2vw, 56px);
  letter-spacing: -0.022em;
  margin-top: 18px;
  font-variation-settings: "SOFT" 40, "opsz" 120;
  font-weight: 540;
  max-width: 15ch;
}
.about__prose {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  color: rgba(251, 248, 244, 0.78);
  margin-top: 24px;
  max-width: 46ch;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about__figure {
  margin: 0;
  min-height: clamp(320px, 38vw, 560px);
  position: relative;
  overflow: hidden;
}
.about__figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.about__strip { background: var(--ff-paper); color: var(--ff-navy); padding: clamp(40px, 5vw, 80px) clamp(20px, 5vw, 72px); }
.about__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}
.about__gallery figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}
.about__gallery img { width: 100%; height: clamp(220px, 24vw, 300px); object-fit: cover; display: block; }
.about__gallery figcaption {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ff-slate-500);
  padding: 14px 16px;
}

/* ============================================================
   Contact
   ============================================================ */
.contact { padding: clamp(48px, 6vw, 104px) clamp(20px, 5vw, 64px); scroll-margin-top: 76px; }
.contact__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 5vw, 72px);
}
.contact__title {
  font-size: clamp(32px, 4.2vw, 52px);
  letter-spacing: -0.022em;
  margin-top: 16px;
  font-variation-settings: "SOFT" 40, "opsz" 110;
  font-weight: 540;
  max-width: 14ch;
}
.contact__intro {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ff-slate-600);
  margin-top: 20px;
  max-width: 46ch;
}
.contact__details { margin-top: 36px; display: flex; flex-direction: column; gap: 24px; }
.contact__details dt {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ff-slate-500);
  margin-bottom: 6px;
}
.contact__details dd { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--ff-navy); }
.contact__emails { display: flex; flex-direction: column; gap: 6px; }
.contact__emails a { color: var(--ff-coral-600); font-weight: 500; }

.contact__card { padding: clamp(24px, 3vw, 36px); }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-navy);
  letter-spacing: 0.005em;
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ff-navy);
  background: var(--surface-card);
  border: 1.5px solid var(--ff-slate-300);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  outline: none;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.field textarea { resize: vertical; min-height: 116px; }
.field input:focus,
.field textarea:focus {
  border-color: var(--ff-coral);
  box-shadow: 0 0 0 3px rgba(255, 125, 110, 0.18);
}

/* honeypot — visually hidden, off-screen, not announced */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.contact__sent { text-align: center; padding: 40px 10px; }
.contact__sent-mark {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ff-coral-100);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.contact__sent h3 { font-size: 24px; font-variation-settings: "SOFT" 40, "opsz" 90; font-weight: 560; }
.contact__sent p { font-family: var(--font-body); font-size: 15px; color: var(--ff-slate-600); margin-top: 8px; }
[hidden] { display: none !important; }

/* ============================================================
   Footer — deepest navy
   ============================================================ */
.site-footer { background: var(--ff-navy-900); color: var(--ff-paper); padding: clamp(44px, 5vw, 72px) clamp(20px, 5vw, 64px) 36px; }
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  align-items: start;
}
.site-footer__brand img { height: 50px; width: auto; }
.site-footer__tagline { font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: rgba(251, 248, 244, 0.6); margin-top: 18px; max-width: 30ch; }
.site-footer__head {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ff-coral-300);
  margin-bottom: 14px;
}
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.site-footer__links a { font-family: var(--font-body); font-size: 14.5px; color: rgba(251, 248, 244, 0.78); cursor: pointer; }
.site-footer__links a:hover { color: var(--ff-paper); }
.site-footer__contact { font-family: var(--font-body); font-size: 14.5px; line-height: 1.7; color: rgba(251, 248, 244, 0.78); }
.site-footer__contact a { color: var(--ff-coral-300); }
.site-footer__bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer__bar span { font-family: var(--font-ui); font-size: 13px; color: rgba(251, 248, 244, 0.5); }
.site-footer__bar .loc { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }

/* ============================================================
   Responsive — collapse nav on small screens
   ============================================================ */
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-header__brand img { --logo-h: 68px; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ff-paper);
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 16px 16px;
    flex: none;
  }
  .site-nav { display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; border-radius: var(--radius-md); }
  .site-header { position: sticky; }
}

/* ============================================================
   Shared band primitives
   ============================================================ */
:root { --gutter: clamp(18px, 4vw, 32px); }

.home-band { padding: var(--space-9) var(--gutter); }
.home-band--tint { background: var(--ff-coral-050); }
.home-band__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  color: var(--ff-navy);
}
.home-band__title--center { text-align: center; }
.home-band__body {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---- Band 1: Hero ---- */
.home-hero {
  position: relative;
  min-height: clamp(440px, 72vh, 680px);
  display: flex;
  align-items: center;
  background-image: url(/assets/img/orchard-land.webp);
  background-size: cover;
  background-position: center;
}
.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 18, 38, 0.45), rgba(0, 18, 38, 0.65));
  z-index: 1;
}
.home-hero__inner {
  position: relative;
  z-index: 2;
  padding: var(--space-9) var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}
.home-hero__tagline {
  margin: 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 18, 38, 0.5);
}
.home-hero__sub {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 18, 38, 0.5);
}

/* ---- Band 2 / generic split ---- */
.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-6), 5vw, var(--space-9));
  align-items: center;
}
.home-split__media { margin: 0; }
.home-split__media img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---- Band 3: What we grow ---- */
.home-grow__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.home-grow__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.home-grow__media { aspect-ratio: 4 / 3; overflow: hidden; }
.home-grow__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-grow__media-fallback { width: 100%; height: 100%; background: var(--ff-navy); }
.home-grow__body { padding: var(--space-5); }
.home-grow__name {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ff-navy);
}
.home-grow__blurb { margin: 0; line-height: 1.6; color: var(--text-secondary); }

/* ---- Band 4: Cultivating our orchard ---- */
.home-cultivate {
  position: relative;
  background-size: cover;
  background-position: center;
}
.home-cultivate__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 18, 38, 0.6), rgba(0, 18, 38, 0.72));
}
.home-cultivate__inner { position: relative; }
.home-cultivate .home-band__title { color: #fff; }
.home-cultivate .home-band__body { color: rgba(255, 255, 255, 0.92); }
.home-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}
.home-chip {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 0.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
}

/* ---- Band 5: Flora Fresh Friends ---- */
.home-friends__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  max-width: 60ch;
}

/* ============================================================
   Products page — intro + variety carousels
   ============================================================ */
.products-page { padding: var(--space-9) var(--gutter); }
.products-page__intro { max-width: 60ch; margin-bottom: var(--space-8); }
.products-page__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ff-navy);
}
.products-page__lead { margin: 0; font-size: 1.125rem; line-height: 1.7; color: var(--text-secondary); }

.products__outro {
  margin: var(--space-9) auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.products-segment { margin-top: var(--space-8); }
.products-segment__title {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--ff-navy);
}

/* ---- Carousel ---- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border: 1px solid rgba(0, 30, 70, 0.12);
  box-shadow: 0 10px 30px rgba(0, 30, 70, 0.08);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  height: clamp(380px, 58vh, 560px);
  overflow: hidden;
}
.carousel__media {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  /* Comfortable padding so the fruit floats centred and clears the caption. */
  padding: clamp(28px, 5vw, 52px);
  padding-bottom: clamp(120px, 18vh, 170px);
}
/* Per-product surface wash — fruit-matched tint behind the fruit cutout.
   apple → peach, pear → butter, cherry → blush (tokens in styles.css). */
.carousel--apples   .carousel__media { background: var(--ff-apple-wash); }
.carousel--pears    .carousel__media { background: var(--ff-pear-wash); }
.carousel--cherries .carousel__media { background: var(--ff-cherry-wash); }
.carousel__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.carousel__media-fallback { position: absolute; inset: 0; background: var(--ff-navy); }

/* Caption strip — sits cleanly on the light card, no fill. */
.carousel__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-5) clamp(18px, 4vw, 28px);
  background: transparent;
}
.carousel__name {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--ff-navy);
}
.carousel__blurb {
  margin: 0;
  max-width: 56ch;
  line-height: 1.6;
  color: var(--ff-navy);
}

.carousel__nav {
  position: absolute;
  top: calc(50% - 22px);
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--ff-navy);
  color: #fff;
  cursor: pointer;
}
.carousel__nav--prev { left: 14px; }
.carousel__nav--next { right: 14px; }
.carousel__nav:hover { background: var(--ff-navy-700); }
.carousel__nav:disabled { opacity: 0.35; cursor: default; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-4);
}
.carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--ff-slate-300);
  cursor: pointer;
}
.carousel__dot.is-active { background: var(--ff-navy); }

/* On small screens the card goes full-width but stays tall. */
@media (max-width: 720px) {
  .carousel { max-width: none; }
}

/* ============================================================
   About page
   ============================================================ */
.about-page { padding: var(--space-9) var(--gutter); display: flex; flex-direction: column; gap: var(--space-9); }
.about-page__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ff-navy);
}
.about-page__subtitle {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--ff-navy);
}
.about-page__body { margin: 0; max-width: 65ch; font-size: 1.0625rem; line-height: 1.75; color: var(--text-secondary); }

.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-6), 5vw, var(--space-9)); align-items: center; }
.about-split--reverse { direction: rtl; }
.about-split--reverse > * { direction: ltr; }
.about-split__media { margin: 0; }
.about-split__media img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-seasons__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.about-seasons__item {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--ff-coral-050);
  line-height: 1.6;
  color: var(--ff-navy);
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .home-split,
  .about-split { grid-template-columns: 1fr; }
  .about-split--reverse { direction: ltr; }
  .home-grow__cards { grid-template-columns: 1fr; }
  .about-seasons__list { grid-template-columns: 1fr; }
}

/* ============================================================
   Motion — restrained, reduced-motion-safe.
   ============================================================ */

/* Layout for the Reveal wrappers around grid cards (motion-independent,
   so cards stay equal height regardless of motion preference). */
.home-grow__cards > .reveal { display: flex; }
.home-grow__cards > .reveal > .home-grow__card { flex: 1; }

/* All actual motion is gated behind no-preference. Because the .reveal base
   (opacity: 0) lives here too, reduced-motion users never have content hidden —
   they get a fully static, fully visible site. */
@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveal */
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  /* Hero — gentle fade-up on load, independent of scroll */
  .home-hero__inner { animation: heroFadeUp 0.7s ease both; }
  @keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }

  /* Hover-lift — small, soft, ~200ms */
  .home-grow__card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .home-grow__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .about__gallery figure { transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .about__gallery figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
}

/* Belt-and-suspenders: for reduced-motion, neutralise every transform /
   transition / animation (including the pre-existing card-hover lift). */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .home-hero__inner { animation: none !important; }
  .home-hero__video { display: none; }
  .card--interactive:hover,
  .home-grow__card:hover,
  .about__gallery figure:hover { transform: none !important; box-shadow: var(--shadow-xs); }
}

/* ============================================================
   Gallery page — masonry grid + lightbox
   ============================================================ */
.gallery-page { padding: var(--space-9) var(--gutter); }
.gallery-page__intro { max-width: 70ch; margin-bottom: var(--space-8); }
.gallery-page__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ff-navy);
}
.gallery-page__lead { margin: 0; font-size: 1.125rem; line-height: 1.7; color: var(--text-secondary); }

/* ---- Packaging section (between intro and grid) ----
   Four brand mockups: one row of 4 on desktop, 2x2 below the cutover (no
   single-column tier). Tiles are buttons that open the shared lightbox (one
   merged cycle with the grid). They mirror .gallery-tile tokens (radius-md,
   shadow-xs, zoom-in); per-fruit wash shows as the lazy-load placeholder +
   corner bleed behind each full-bleed image. Crate keeps the neutral cream
   (--ff-paper). No max-width: the row of 4 spans the same full content width as
   the gallery grid below it. */
.packaging-section { margin: 0 0 var(--space-9); }
.packaging-section__title {
  margin: 0 0 var(--space-6);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--ff-navy);
}
.packaging-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2x2 below the cutover */
  gap: var(--space-4);
}
/* Four-across cutover — desktop shows one row of 4. May drop to 768 if the
   4-up tiles read too tight around ~780px. */
@media (min-width: 900px) { .packaging-grid { grid-template-columns: repeat(4, 1fr); } }
.packaging-tile {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ff-paper);
  box-shadow: var(--shadow-xs);
  cursor: zoom-in;
}
.packaging-tile img { width: 100%; height: auto; display: block; }
.packaging-tile:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.packaging-tile--crate    { background: var(--ff-paper); }
.packaging-tile--apples   { background: var(--ff-apple-wash); }
.packaging-tile--cherries { background: var(--ff-cherry-wash); }
.packaging-tile--pears    { background: var(--ff-pear-wash); }

/* Masonry via CSS columns; tiles avoid breaking across columns.
   Column ladder: 4 >=1100, 3 768-1099, 2 480-767, 1 <380. */
.gallery-grid { column-count: 4; column-gap: var(--space-4); }
@media (max-width: 1099px) { .gallery-grid { column-count: 3; } }
@media (max-width: 767px)  { .gallery-grid { column-count: 2; } }
@media (max-width: 379px)  { .gallery-grid { column-count: 1; } }

.gallery-tile {
  break-inside: avoid;
  display: block;
  width: 100%;
  margin: 0 0 var(--space-4);
  padding: 0;
  border: none;
  background: var(--ff-paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-xs);
}
.gallery-tile img { width: 100%; height: auto; display: block; }
.gallery-tile:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;             /* above the sticky header (--z-sticky: 100) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 32px);
  background: rgba(0, 18, 38, 0.88);
}
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.lightbox__btn {
  position: fixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: none;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ---- Videos section (first on the page) ----
   Desktop (>=900px): a single row of 5 tiles. Below: a horizontal scroll-snap
   strip that swipes natively (same recipe as .carousel__track) — no JS. Tiles
   are 16:9 with a centred play glyph; clicking opens the VideoOverlay. */
.videos-section { margin: 0 0 var(--space-9); }
.videos-section__title {
  margin: 0 0 var(--space-6);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--ff-navy);
}
.videos-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;          /* swipe strip: ~1.4 tiles in view */
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* keep tiles clear of the scroll edges */
  padding-bottom: var(--space-2);
}
.videos-grid::-webkit-scrollbar { display: none; }
.videos-tile {
  position: relative;
  scroll-snap-align: start;
  margin: 0;
  padding: 0;
  border: none;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ff-paper);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
}
.videos-tile__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.videos-tile:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
/* Centred play glyph on a subtle dark disc for contrast over any thumbnail. */
.videos-tile__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
}
.videos-tile__play svg {
  width: 56px;
  height: 56px;
  padding: 13px 11px 13px 15px;
  box-sizing: border-box;
  border-radius: var(--radius-pill);
  background: rgba(0, 18, 38, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
/* Desktop: one row of 5, no scroll. */
@media (min-width: 900px) {
  .videos-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(5, 1fr);
    overflow-x: visible;
    padding-bottom: 0;
  }
}

/* ---- Video overlay (parallel to the photo lightbox) ---- */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;             /* same layer as .lightbox, above sticky header */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 32px);
  background: rgba(0, 18, 38, 0.88);
}
.video-overlay__frame {
  width: min(90vw, 1280px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.video-overlay__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-overlay__close { top: 16px; right: 16px; }
