/* ============================================================
   Heritage Farms — Global Stylesheet
   Brand tokens, layout system, components.
   ============================================================ */

:root {
  --navy: #1A2845;
  --navy-deep: #131D33;
  --navy-soft: #2A3B5C;
  --cream: #F5EFE0;
  --cream-warm: #FAF6E8;
  --paper: #FBF8F0;
  --gold: #C9A961;
  --gold-soft: #D9BD7A;
  --sage: #6B7B5A;
  --terracotta: #B5613B;
  --ink: #2A2A2A;
  --muted: #6B6B6B;
  --line: #E6DFCE;

  --radius: 4px;
  --shadow-soft: 0 14px 30px -16px rgba(26, 40, 69, 0.18);
  --shadow-lift: 0 24px 50px -20px rgba(26, 40, 69, 0.28);
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.005em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { color: var(--ink); }
a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
img, svg { max-width: 100%; display: block; }

.container { width: min(var(--max), 92%); margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-soft); }
.btn-ghost-light { background: transparent; color: var(--cream); border: 1px solid rgba(245, 239, 224, 0.4); }
.btn-ghost-light:hover { background: rgba(245, 239, 224, 0.1); border-color: var(--cream); }
.btn-ghost-dark { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: var(--cream); }

/* ============================================================
   Utility top bar
   ============================================================ */
.utility-bar {
  background: var(--navy-deep);
  color: rgba(245, 239, 224, 0.75);
  font-size: 0.82rem;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.utility-bar a { color: rgba(245, 239, 224, 0.85); }
.utility-bar a:hover { color: var(--gold-soft); }
.utility-links { display: flex; gap: 1.4rem; }

/* ============================================================
   Header / Nav
   ============================================================ */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 240, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark { width: 96px; height: auto; flex-shrink: 0; object-fit: contain; }
.hero-logo {
  width: 100%;
  max-width: 630px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.35));
}
.brand-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1;
}
.brand-text small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.25rem;
}
nav ul { display: flex; gap: 2rem; list-style: none; align-items: center; }
nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 0.4rem 0;
}
nav a:hover { color: var(--gold); }
nav a.active { color: var(--gold); }
nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
}
.nav-cta {
  background: var(--navy);
  color: var(--cream);
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-weight: 500;
}
.nav-cta:hover { background: var(--navy-soft); color: var(--cream-warm); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--navy); }

/* ---- Homepage-only: redesigned header for logo-led brand ---- */
.site--lg .nav-row {
  padding: 0.4rem 0;
  align-items: center;
}
.site--lg .brand {
  /* Shrink bar by ~20% — logo overflows symmetrically, see body.home padding-top */
  margin: -1.45rem 0;
}
body.home { padding-top: 1.45rem; }

/* Homepage section labels match menu bar typography */
body.home .section-head .eyebrow {
  font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--navy);
}
body.home .section-head h2 {
  font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.1vw, 3.2rem);
  letter-spacing: 0.02em;
  margin-top: 0.4rem;
  margin-bottom: 0.25rem;
}
body.home .section-head .lead { margin-top: 0.25rem; }

/* ============================================================
   Photo product card (homepage)
   ============================================================ */
.product-card--photo {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  text-align: left;
  position: relative;
}
.product-card--photo:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}
/* Expand the media anchor's click target to cover the whole card */
.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.product-card__caption { position: relative; z-index: 0; }
.product-card__media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--cream);
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.product-card--photo:hover .product-card__media img {
  transform: scale(1.04);
}
.product-card__caption {
  padding: 1.25rem 1.25rem 1.5rem;
  text-align: left;
}
.product-card__caption h3 {
  font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.product-card__caption p {
  font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 0.65rem;
  min-height: 2.7em;
}
.product-card__size {
  display: block;
  font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.55;
}

/* Homepage product grid: lock to 4 columns on desktop */
body.home .card-grid {
  grid-template-columns: repeat(4, 1fr);
  row-gap: 3rem;
}
@media (max-width: 880px) {
  body.home .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  body.home .card-grid { grid-template-columns: 1fr; }
}
.site--lg .brand-mark {
  width: auto;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(26,40,69,0.15));
  /* Compensate for asymmetric whitespace in the PNG (more empty space below content) */
  transform: translateY(5px);
}
.site--lg nav ul { gap: 2.4rem; }
.site--lg nav a {
  font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}
.site--lg nav a:hover { color: var(--navy); opacity: 0.7; }
.site--lg nav a.active { color: var(--navy); }
.site--lg nav a.active::after { display: none; }
@media (max-width: 880px) {
  .site--lg .brand-mark { height: 80px; }
  .site--lg .brand { margin: 0; }
}

/* ============================================================
   Hero stripe (thin band above hero, color from logo's drop-shadow)
   ============================================================ */
.hero-stripe {
  height: 10px;
  width: 100%;
  background: #d9d9d9;
}

/* ============================================================
   Homepage video hero
   ============================================================ */
.video-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--cream);
  isolation: isolate;
}
.video-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.video-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19,29,51,0.45) 0%, rgba(26,40,69,0.25) 60%, rgba(19,29,51,0.4) 100%);
  z-index: -1;
}
.video-hero__title {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 0 1.5rem;
}
.video-hero__title h1 {
  font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 6.2vw, 6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 2px 28px rgba(0,0,0,0.4);
  margin: 0;
  white-space: nowrap;
}
.video-hero__sub {
  margin-top: 1.25rem;
  font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 1;
  text-shadow: 0 1px 14px rgba(0,0,0,0.45);
}
.video-hero__content {
  padding: 6rem 0;
  max-width: 760px;
}
.video-hero__content h1 {
  color: var(--cream);
  margin-bottom: 1.25rem;
}
.video-hero__content h1 em {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 500;
}
.video-hero__content p.lead {
  color: rgba(245, 239, 224, 0.9);
  font-size: 1.18rem;
  max-width: 56ch;
  margin-bottom: 2.25rem;
}
.video-hero__content .hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 880px) {
  .video-hero { min-height: 50vh; }
  .video-hero__content { padding: 4rem 0; }
}

/* ============================================================
   Page hero (interior pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 5rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 140%;
  background: radial-gradient(circle, rgba(201,169,97,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { color: var(--cream); margin-bottom: 1rem; }
.page-hero .crumb {
  color: var(--gold-soft);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.page-hero p { color: rgba(245, 239, 224, 0.85); max-width: 60ch; margin: 0 auto; font-size: 1.08rem; }

/* Anchor offset so #products lands below the sticky header */
#products { scroll-margin-top: 220px; }
@media (max-width: 880px) { #products { scroll-margin-top: 100px; } }

/* Photo background variant — set --bg-image inline */
.page-hero--photo {
  background:
    linear-gradient(135deg, rgba(19,29,51,0.7) 0%, rgba(26,40,69,0.55) 100%),
    var(--bg-image) var(--bg-pos, center) / cover no-repeat;
  min-height: 40vh;
  display: flex;
  align-items: center;
}
.page-hero--photo .container { width: 100%; }
.page-hero--photo::before { display: none; }

/* Match page-hero typography to the homepage style */
body.home .page-hero h1 {
  font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3.8vw, 3.2rem);
  white-space: nowrap;
}
body.home .page-hero .crumb {
  font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.04em;
  color: var(--cream);
}
body.home .page-hero p {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
}
body.home .split-text h2,
body.home .contact-info h2 {
  font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
body.home .split-text .eyebrow,
body.home .step .num,
body.home .step h3,
body.home .feature h3 {
  font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
body.home .step h3,
body.home .feature h3 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
body.home .steps-band h2 {
  font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
body.home .split-text p,
body.home .step p,
body.home .feature p {
  font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Food safety: two photos stacked on the right of a split layout */
.fs-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2rem;
  height: 100%;
}
.fs-photo {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
}
.fs-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   Sections
   ============================================================ */
section.block { padding: 5.5rem 0; }
section.block.alt { background: var(--cream-warm); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head .lead { margin: 1rem auto 0; }

/* ============================================================
   Home hero
   ============================================================ */
.home-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 5.5rem 0 6.5rem;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.home-hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.home-hero h1 { color: var(--cream); margin-bottom: 1.25rem; }
.home-hero h1 em { font-style: italic; color: var(--gold-soft); font-weight: 500; }
.home-hero p.lead { color: rgba(245, 239, 224, 0.88); font-size: 1.18rem; max-width: 52ch; margin-bottom: 2.25rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-mark { display: flex; align-items: center; justify-content: center; }
.hero-mark svg { width: 100%; max-width: 380px; filter: drop-shadow(0 20px 50px rgba(0,0,0,0.35)); }

/* ============================================================
   Stats strip
   ============================================================ */
.strip {
  background: var(--cream);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.strip .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}
.strip-item small {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
}
.strip-item span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   Cards + grids
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--gold-soft);
}
.product-card.coming { opacity: 0.85; }
.product-visual {
  aspect-ratio: 4 / 3;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.product-visual svg { width: 60%; height: 60%; }
.product-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { margin-bottom: 0.5rem; }
.product-body p { font-size: 0.93rem; color: var(--muted); flex: 1; }
.badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: 0.75rem;
}
.badge.coming { color: var(--terracotta); }
.product-card a.cta-link {
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  border-top: 1px solid var(--line);
  padding: 0.9rem 1.5rem;
  transition: all 0.2s;
}
.product-card a.cta-link:hover { background: var(--navy); color: var(--cream); }

/* ============================================================
   Two-column block (image + text)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split-illustration {
  background: var(--navy);
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.split-illustration svg { width: 100%; height: 100%; }
.split-text h2 { margin-bottom: 1.25rem; }
.split-text p { font-size: 1.02rem; margin-bottom: 1.1rem; }
.split-text .btn { margin-top: 0.75rem; }

/* ============================================================
   Process steps (Our Farms)
   ============================================================ */
.steps-band {
  background: var(--navy);
  color: var(--cream);
  padding: 6rem 0;
}
.steps-band h2 { color: var(--cream); }
.steps-band .eyebrow { color: var(--gold-soft); }
.steps-band p { color: rgba(245, 239, 224, 0.88); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}
.step {
  border-top: 2px solid var(--gold);
  padding-top: 1.4rem;
}
.step .num {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--gold-soft);
  letter-spacing: 0.1em;
}
.step h3 {
  color: var(--cream);
  margin: 0.5rem 0 0.75rem;
}
.step p { font-size: 0.95rem; }

/* ============================================================
   Foodservice teaser
   ============================================================ */
.teaser {
  background: var(--cream-warm);
  padding: 5rem 0;
}
.teaser .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.teaser-illust {
  background: var(--navy);
  border-radius: var(--radius);
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 600;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 300;
  transition: transform 0.2s;
}
details[open] .faq-q::after { content: '–'; }
.faq-a {
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info p { margin-bottom: 1rem; color: var(--ink); }
.contact-info strong {
  color: var(--navy);
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
form { display: flex; flex-direction: column; gap: 1rem; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
/* Push the contact form down so the first row aligns with the "Reach..." heading */
.contact-wrap #contactForm { margin-top: 2.4rem; }
label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
  display: block;
  font-weight: 500;
}
input, select, textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); }
textarea { resize: vertical; min-height: 110px; }
form button {
  align-self: flex-start;
  background: var(--navy);
  color: var(--cream);
  padding: 0.95rem 2rem;
  border: none;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
form button:hover { background: var(--navy-soft); }

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--navy-deep);
  color: rgba(245, 239, 224, 0.75);
  padding: 4rem 0 2rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.foot-brand .brand-text { color: var(--cream); }
.foot-brand p { font-size: 0.92rem; margin-top: 1rem; max-width: 32ch; color: rgba(245, 239, 224, 0.55); }
.foot-brand .brand-mark { width: auto; height: 140px; object-fit: contain; }
.foot-col h4 {
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.foot-col a {
  display: block;
  color: rgba(245, 239, 224, 0.7);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}
.foot-col a:hover { color: var(--gold-soft); }
.foot-col .foot-meta {
  display: block;
  color: rgba(245, 239, 224, 0.55);
  font-size: 0.92rem;
  padding: 0.4rem 0;
}
.foot-bar {
  border-top: 1px solid rgba(245, 239, 224, 0.15);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* ============================================================
   Foodservice features table
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.feature {
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature .ico {
  width: 44px;
  height: 44px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--navy);
}
.feature h3 { margin-bottom: 0.5rem; }
.feature p { font-size: 0.94rem; color: var(--muted); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .menu-toggle { display: block; }
  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1rem 5%;
    gap: 0.25rem;
    display: none;
  }
  nav ul.open { display: flex; }
  nav ul li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); width: 100%; }
  nav ul li:last-child { border: none; }
  .nav-cta { display: none; }
  .home-hero { padding: 4rem 0 4rem; }
  .home-hero .container { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero-ctas { justify-content: center; }
  .split, .contact-wrap, .teaser .container { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.reverse > :first-child { order: 0; }
  .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  section.block, .steps-band, .teaser, .home-hero { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  form .row { grid-template-columns: 1fr; }
  .utility-bar .container { font-size: 0.78rem; }
  .utility-links { gap: 1rem; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
  .brand-text { font-size: 1.1rem; }
  .brand-mark { width: 66px; height: auto; }
  .utility-bar { display: none; }
}

/* ============================================================
   Product detail pages
   ============================================================ */
.product-top {
  padding: 4rem 0 3rem;
  text-align: center;
  background: var(--paper);
}
.product-top__photo {
  max-width: 720px;
  margin: 0 auto 2rem;
  display: block;
}
.product-top__photo img {
  width: 100%;
  height: auto;
  display: block;
}
body.home .product-top h1 {
  font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.1vw, 3.2rem);
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0 0 1rem;
}
.product-top__sub {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.6;
}

.nutrition-section {
  background: var(--cream-warm);
  padding: 4rem 0;
}
.nutrition-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 880px) {
  .nutrition-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* FDA-style nutrition facts panel */
.nutrition-facts {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 0.85rem 1rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1.25;
}
.nutrition-facts h2 {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0 0 0.2rem;
  font-family: inherit;
  text-transform: none;
  color: var(--ink);
}
.nutrition-facts .nf-serving {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.3rem;
}
.nutrition-facts .nf-amount {
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.5rem;
}
.nutrition-facts .nf-calories {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 8px solid var(--ink);
  padding-bottom: 0.2rem;
  font-weight: 900;
}
.nutrition-facts .nf-calories .label { font-size: 1.4rem; }
.nutrition-facts .nf-calories .val { font-size: 2.2rem; line-height: 1; }
.nutrition-facts .nf-dv {
  text-align: right;
  font-size: 0.7rem;
  font-weight: 700;
  margin: 0.4rem 0 0.2rem;
}
.nutrition-facts .nf-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  padding: 0.3rem 0;
}
.nutrition-facts .nf-row.indent { padding-left: 1rem; }
.nutrition-facts .nf-row.indent2 { padding-left: 2rem; }
.nutrition-facts .nf-row.bold { font-weight: 700; }
.nutrition-facts .nf-row.thick { border-bottom-width: 4px; }
.nutrition-facts .nf-foot {
  font-size: 0.65rem;
  margin-top: 0.5rem;
  line-height: 1.3;
}

/* Product / pallet info tables */
.product-spec h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0 0 1rem;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  background: var(--paper);
}
.spec-table th, .spec-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.spec-table th {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--navy);
  background: var(--cream);
}
.spec-table td { color: var(--ink); }

.barcode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.barcode-card {
  background: var(--paper);
  padding: 1rem;
  border: 1px solid var(--line);
  text-align: center;
}
.barcode-card .label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
  display: block;
}
.barcode-card .bars {
  font-family: 'Libre Barcode 39', monospace;
  font-size: 2.5rem;
  letter-spacing: 0;
  color: var(--ink);
  line-height: 1;
}
.barcode-card .digits {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--ink);
  margin-top: 0.3rem;
}
