/* =========================================================
   STAR FARM — MAIN STYLESHEET
   ---------------------------------------------------------
   HOW THIS FILE IS ORGANIZED (read this when you want to edit):
   1. Design tokens (colors, fonts, spacing) — change look here
   2. Reset & base styles
   3. Layout helpers (container, section spacing)
   4. Header / navigation
   5. Buttons & forms
   6. Hero (homepage banner)
   7. Cards (products, pricing, gallery)
   8. Wave divider (the milk-pour signature shape)
   9. Footer
   10. Cart drawer
   11. Scroll-reveal animation
   12. Responsive (mobile) rules
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Brand name is used in HTML text directly — to rename your
     business, just find & replace "Star Farm" in every .html file */

  /* Colors — dark navy + white, matching the Star Farm logo */
  --color-bg: #ffffff;          /* page background — mostly white */
  --color-bg-alt: #eef2f8;      /* pale blue-grey for alternating sections */
  --color-primary: #16294b;     /* dark navy — header/footer/headings */
  --color-primary-dark: #0d1b34;
  --color-accent: #d9b54a;      /* gold, from the logo's star — highlights, badges */
  --color-accent-2: #16294b;    /* navy — buttons, calls to action */
  --color-text: #1b2430;        /* main body text */
  --color-text-muted: #5c6577;  /* secondary text */
  --color-white: #ffffff;
  --color-border: #dde3ec;

  /* Fonts */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", Arial, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --radius: 10px;
  --radius-pill: 999px;
  --max-width: 1120px;
}

/* ---------- 2. RESET & BASE ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 var(--space-sm); }

a {
  color: var(--color-primary);
  text-decoration: none;
}

img { max-width: 100%; display: block; }

.text-muted { color: var(--color-text-muted); }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--color-accent-2);
  display: inline-block;
  margin-bottom: var(--space-xs);
}

/* ---------- 3. LAYOUT HELPERS ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

/* ---------- 4. HEADER / NAV ---------- */
.site-header {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.brand svg { width: 32px; height: 32px; }

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-white);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-white);
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
  border-bottom: 2px solid var(--color-accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-white);
  padding: 0.3rem;
  cursor: pointer;
  line-height: 0;
}

.nav-toggle svg { width: 24px; height: 24px; }

.nav-toggle-line {
  transform-origin: 12px 12px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .line-1 { transform: translate(0, 6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .line-2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .line-3 { transform: translate(0, -6px) rotate(-45deg); }

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-toggle {
  position: relative;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.3rem;
}

.cart-toggle svg { width: 24px; height: 24px; }

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 10. CART DRAWER ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 52, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 200;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 92vw);
  background: var(--color-white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.18);
}

.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h3 { color: var(--color-white); margin: 0; }

.cart-close {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-sm) var(--space-md);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; }
.cart-item-size { font-size: 0.78rem; color: var(--color-text-muted); }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
}

.qty-btn-sm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  line-height: 1;
  font-family: var(--font-mono);
}

.cart-item-price {
  font-family: var(--font-mono);
  font-weight: 600;
  min-width: 64px;
  text-align: right;
  color: var(--color-primary);
}

.cart-remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 0.78rem;
  text-decoration: underline;
  padding: 0;
}

.cart-empty {
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-lg) 0;
}

.cart-footer {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  border-top: 1px solid var(--color-border);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.cart-footer .btn { width: 100%; text-align: center; }
.cart-footer p.text-muted { font-size: 0.78rem; margin: var(--space-xs) 0 0; text-align: center; }

/* ---------- 11. SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.card-grid .reveal:nth-child(1) { transition-delay: 0s; }
.card-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.card-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.card-grid .reveal:nth-child(4) { transition-delay: 0.36s; }

/* gentle continuous drift, used for hero decorations and the bottle photo */
@keyframes floatLoop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.floating-drop {
  position: absolute;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.18;
  animation: floatLoop 6s ease-in-out infinite;
}

/* ---------- 5. BUTTONS & FORMS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  font-family: var(--font-body);
  font-size: 1rem;
  position: relative;
}

.btn::after {
  content: "→";
  display: inline-block;
  transform: translateX(-4px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(22, 41, 75, 0.22);
}

.btn:hover::after {
  transform: translateX(0);
  opacity: 1;
}

.btn:active {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent-2);
  color: var(--color-white);
}
.btn-primary:hover { background: #0d1b34; }

.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-outline:hover { background: var(--color-white); color: var(--color-primary); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25); }

.btn-outline-dark {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline-dark:hover { background: var(--color-primary); color: var(--color-white); box-shadow: 0 10px 20px rgba(22, 41, 75, 0.25); }

.btn-secondary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}
.btn-secondary:hover { background: #c2a03e; }

form {
  display: grid;
  gap: var(--space-sm);
  max-width: 560px;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.3rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-white);
}

input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 1px;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: var(--space-xs);
  border-radius: var(--radius);
  display: none;
}

.form-status.visible { display: block; }
.form-status.success { background: #e9edf5; color: var(--color-primary-dark); }
.form-status.error { background: #fbe9e9; color: #b3261e; }

/* ---------- 6. HERO ---------- */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 70%, var(--color-bg-alt) 100%);
  color: var(--color-text);
  padding: var(--space-xl) 0;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero h1 { color: var(--color-primary); }

/* Bold, stacked headline — each line/word fades and slides up in its
   own beat instead of the whole heading appearing at once, with a
   soft blur-to-focus finish for extra polish. */
.hero-copy > .eyebrow {
  display: inline-block;
  opacity: 0;
  animation: heroLineIn 0.6s ease-out 0s forwards;
}

.hero-copy > p {
  opacity: 0;
  animation: heroLineIn 0.6s ease-out 0.5s forwards;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  animation: heroLineIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-line:nth-child(1) { animation-delay: 0.05s; }
.hero-line:nth-child(2) { animation-delay: 0.24s; }
.hero-line:nth-child(3) { animation-delay: 0.43s; }

/* The middle line ("still cold") gets a gold shimmer sweep once it
   lands, as a small signature flourish. */
.hero-line:nth-child(2) {
  background: linear-gradient(100deg,
    var(--color-primary) 40%,
    var(--color-accent) 50%,
    var(--color-primary) 60%);
  background-size: 240% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    heroLineIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.24s forwards,
    heroShimmer 2.2s ease-in-out 1.1s forwards;
}

@keyframes heroLineIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes heroShimmer {
  to { background-position: -40% 0; }
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  animation: heroLineIn 0.7s ease-out 0.62s forwards;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Circular "fresh daily" badge that floats near the product photo and
   spins its ring slowly — a small signature flourish, like a stamp. */
.hero-badge {
  position: absolute;
  top: 6%;
  right: 4%;
  width: 92px;
  height: 92px;
  z-index: 3;
  animation: heroBadgeIn 0.6s ease-out 0.8s backwards, floatLoop 5s ease-in-out 0.8s infinite;
}

.hero-badge svg { width: 100%; height: 100%; }

.hero-badge-ring {
  animation: spin 16s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes heroBadgeIn {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* the freshness-fill bottle animation */
.fill-liquid {
  animation: fillUp 2.2s ease-out forwards;
  transform-origin: bottom;
}

@keyframes fillUp {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.hero-product-photo {
  max-height: 420px;
  min-height: 200px;
  width: auto;
  min-width: 140px;
  filter: drop-shadow(0 25px 30px rgba(22, 41, 75, 0.18));
  animation: riseIn 0.8s ease-out, floatLoop 5s ease-in-out 0.8s infinite;
  border-radius: var(--radius);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .hero-product-photo { max-height: 260px; min-height: 160px; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 7. CARDS ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(22, 41, 75, 0.14);
  border-color: var(--color-accent);
}

/* Pricing / package cards: force equal height and pin the button to the
   bottom so cards with different amounts of text still line up cleanly. */
.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card > .btn:last-child {
  margin-top: auto;
  padding-top: var(--space-sm);
}

.pricing-card-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  margin-bottom: var(--space-sm);
}

.pricing-card-icon-wrap .card-icon {
  margin-bottom: 0;
  width: 26px;
  height: 26px;
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-sm);
}

.card-photo {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: var(--space-sm);
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}

/* Product listing page (products.html): wider columns and a taller
   photo box than the shared .card/.card-photo defaults, so the
   product images are easy to see at a glance instead of feeling
   cramped in a small square. Scoped to #dynamic-categories so it
   doesn't affect pricing cards or the homepage teaser cards, which
   reuse the same .card / .card-photo classes. */
#dynamic-categories .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

#dynamic-categories .card-photo {
  height: 320px;
}

@media (max-width: 640px) {
  #dynamic-categories .card-photo {
    height: 240px;
  }
}

/* Homepage 'What people order most' teaser cards — same idea, scoped
   to #home-featured-products so pricing cards elsewhere on the site
   (which reuse .card-grid / .card) aren't affected. */
#home-featured-products .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

#home-featured-products .card-photo {
  height: 320px;
}

@media (max-width: 640px) {
  #home-featured-products .card-photo {
    height: 240px;
  }
}

.card-link-wrap {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link-wrap:hover h3 { color: var(--color-accent-2); text-decoration: underline; }

.product-subhead {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: -0.4rem 0 var(--space-xs);
}

.price {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  color: var(--color-accent-2);
  margin: var(--space-xs) 0;
}

.price span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Product cards: make every card in a row the same height and pin the
   size-picker/buy controls to the bottom, so cards with a badge or a
   longer product name don't throw off the alignment of the row. */
.card-grid .card:not(.pricing-card) {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-grid .card:not(.pricing-card) .card-link-wrap {
  flex: 1;
}

/* size picker: one dropdown per product, price updates on selection */
.size-picker {
  margin-top: var(--space-sm);
}

.size-select-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.size-select {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  background: var(--color-white);
  color: var(--color-text);
}

.size-select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.size-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
  white-space: nowrap;
  min-width: 56px;
  text-align: right;
}

.size-actions {
  display: flex;
  gap: 0.5rem;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
}

.qty-stepper-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.qty-stepper-btn:hover { background: var(--color-bg-alt); }

.qty-stepper-input {
  width: 46px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.35rem 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-text);
  /* hide the native up/down arrows so it reads as one clean control */
  -moz-appearance: textfield;
}

.qty-stepper-input::-webkit-outer-spin-button,
.qty-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-stepper-unit {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.btn-add, .btn-buy, .btn-ask {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.5rem 0.4rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  border: 1.5px solid var(--color-primary);
  background: var(--color-white);
  color: var(--color-primary);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-add:hover {
  background: var(--color-bg-alt);
  transform: translateY(-1px);
}

.btn-buy {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-buy:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-ask {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary-dark);
}

.btn-ask:hover { background: #c2a03e; }

/* small toast confirming an item was added */
.cart-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

.cart-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.category-heading {
  margin: var(--space-lg) 0 var(--space-sm);
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.category-heading h2 {
  margin: 0;
}

.category-heading .eyebrow {
  margin-bottom: 0;
}

.category-heading:first-of-type { margin-top: 0; }

.pricing-card.featured {
  border-color: var(--color-accent-2);
  border-width: 2px;
  position: relative;
  overflow: visible; /* .card sets overflow:hidden for photo-zoom elsewhere,
                         which was clipping the "Most Popular" badge above */
}

/* ---------- Products page: quick-nav, badges, category icons ---------- */
.quick-nav {
  position: static;
  z-index: 90;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 0.7rem 0;
}

section[id] {
  scroll-margin-top: 88px; /* header height + a little breathing room, for anchor jumps */
}

.quick-nav-list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick-nav-list::-webkit-scrollbar { display: none; }

.quick-nav-list a {
  display: inline-block;
  white-space: nowrap;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-nav-list a:hover,
.quick-nav-list a.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(22, 41, 75, 0.25);
}

.category-heading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.category-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--color-accent);
  animation: floatLoop 4s ease-in-out infinite;
}

.category-heading-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.category-heading-text .eyebrow { margin-bottom: 0; }
.category-heading-text h2 { margin: 0; }

.card {
  position: relative;
  overflow: hidden;
}

.card-photo {
  transition: transform 0.35s ease;
}

.card:hover .card-photo {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 2;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* Wraps the top-left badges (tag + discount) so they stack vertically
   instead of overlapping when a product has both. The out-of-stock
   badge stays independent, pinned to the top-right. */
.card-badges-top-left {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.card-badges-top-left .product-badge {
  position: static;
}

.discount-badge {
  background: #d9756a;
  color: var(--color-white);
}

.tag-badge {
  background: var(--color-primary);
  color: var(--color-white);
}

.out-of-stock-badge {
  background: #4a4a4a;
  color: var(--color-white);
  left: auto;
  right: var(--space-sm);
}

/* On product.html the badges sit inline under the product name,
   not pinned to the corner of a photo like they are on the cards. */
#product-badges .product-badge {
  position: static;
  display: inline-block;
  margin: 0 0.4rem 0.4rem 0;
  box-shadow: none;
}

.price-original {
  color: var(--color-text-muted);
  text-decoration: line-through;
  font-size: 0.85em;
  margin-right: 0.3rem;
}

.size-picker:has(.size-select:disabled) {
  opacity: 0.7;
}

/* Bestsellers showcase strip */
.showcase-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-md);
}

.showcase-card {
  position: relative;
  background: linear-gradient(160deg, #1d3660 0%, #16294b 50%, #0c1930 100%);
  border: 1px solid rgba(217, 181, 74, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--color-white);
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 14px 30px -12px rgba(9, 17, 33, 0.55);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.showcase-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 181, 74, 0.4);
  box-shadow: 0 22px 40px -14px rgba(9, 17, 33, 0.65);
}

/* Soft vignette behind the photo so it blends into the navy instead of
   sitting on top of it like a sticker */
.showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 55% at 50% 38%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.showcase-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-md) var(--space-md) var(--space-lg);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35));
  transition: transform 0.45s ease;
}

.showcase-card:hover .showcase-card-photo {
  transform: scale(1.04);
}

.showcase-card-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-md) var(--space-md) var(--space-sm);
  background: linear-gradient(0deg, rgba(9, 17, 33, 0.96) 0%, rgba(9, 17, 33, 0.72) 55%, rgba(9, 17, 33, 0) 100%);
}

.showcase-card-body h3 {
  color: var(--color-white);
  margin: 0 0 0.3rem;
  font-size: 1.4rem;
}

.showcase-card-body p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  margin: 0;
}

.showcase-card-body .rating-count {
  color: rgba(255, 255, 255, 0.6);
}

.showcase-card-body .stars-empty {
  color: rgba(255, 255, 255, 0.28);
}

/* Frosted, hairline badge instead of a solid gold block — reads as a
   quiet label rather than a loud sticker */
.showcase-card .product-badge {
  background: rgba(9, 17, 33, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(217, 181, 74, 0.55);
  color: var(--color-accent);
  box-shadow: none;
}

/* ---------- Blog ---------- */
.blog-featured {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.blog-featured-photo {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.blog-featured-body {
  padding: var(--space-md);
  max-width: 720px;
}

.blog-featured-body .eyebrow { color: var(--color-accent-2); }
.blog-featured-body h2 { margin-bottom: 0.4rem; }
.blog-featured-body p { color: var(--color-text-muted); }
.blog-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.blog-card {
  display: flex;
  flex-direction: column;
}

.blog-card-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
  background: var(--color-bg-alt);
}

.blog-card .blog-meta { color: var(--color-text-muted); }
.blog-card h3 { margin-bottom: 0.3rem; }
.blog-card p { color: var(--color-text-muted); font-size: 0.92rem; }

.blog-delete-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
  background: none;
  border: 1px solid #d9756a;
  color: #b3261e;
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.blog-delete-btn:hover { background: #fbe9e9; }

/* Admin post composer */
.blog-composer {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.blog-composer h3 { margin-bottom: var(--space-xs); }

.blog-composer textarea {
  min-height: 120px;
  resize: vertical;
}

.blog-image-preview {
  margin-top: 0.5rem;
  max-width: 220px;
  border-radius: 8px;
  display: none;
}

.pricing-card.featured::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -12px;
  left: var(--space-md);
  background: var(--color-accent-2);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(20,51,42,0.85));
  color: var(--color-white);
  padding: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ---------- 8. WAVE DIVIDER (signature shape) ---------- */
.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 100%;
}

/* ---------- EMAIL CAPTURE (popup + footer signup) ---------- */
.email-popup {
  position: fixed;
  right: var(--space-md);
  bottom: -400px;
  width: 320px;
  max-width: calc(100vw - var(--space-md) * 2);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(22, 41, 75, 0.2);
  padding: var(--space-sm) var(--space-sm) var(--space-md);
  z-index: 200;
  transition: bottom 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.email-popup.is-visible { bottom: var(--space-md); }

.email-popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
}

.email-popup-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0 1.5rem 0.3rem 0;
}

.email-popup-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.email-popup-form { display: flex; gap: 0.5rem; }
.email-popup-form input { flex: 1; }
.email-popup-form button { flex-shrink: 0; }

.email-popup-note {
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-top: var(--space-xs);
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .email-popup { left: var(--space-sm); right: var(--space-sm); width: auto; }
}

.footer-signup-form { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.footer-signup-form input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}
.footer-signup-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.footer-signup-note { font-size: 0.85rem; margin-top: 0.4rem; min-height: 1.2em; }

/* ---------- COOKIE NOTICE ---------- */
.cookie-notice {
  position: fixed;
  left: var(--space-md);
  right: var(--space-md);
  bottom: var(--space-md);
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: space-between;
  box-shadow: 0 20px 40px rgba(22, 41, 75, 0.25);
  z-index: 210;
  transform: translateY(150%);
  transition: transform 0.4s ease;
}

.cookie-notice.is-visible { transform: translateY(0); }
.cookie-notice p { margin: 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); flex: 1 1 320px; }
.cookie-notice a { color: var(--color-white); text-decoration: underline; }
.site-footer {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-grid h4 {
  color: var(--color-accent);
  font-size: 1rem;
}

.footer-grid a, .footer-grid p {
  color: rgba(255,255,255,0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--space-sm);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- 10. RESPONSIVE ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.breadcrumb a { color: var(--color-text-muted); text-decoration: underline; }
.breadcrumb a:hover { color: var(--color-primary); }

/* ---------- Plan finder form ---------- */
.checkbox-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  background: var(--color-white);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.checkbox-pill:has(input:checked) {
  border-color: var(--color-accent-2);
  background: var(--color-bg-alt);
}

.checkbox-pill input {
  width: auto;
  margin: 0;
}

.plan-finder-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.plan-finder-form .form-row {
  margin-bottom: var(--space-sm);
}

.plan-finder-form .form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.plan-finder-success {
  text-align: center;
  padding: var(--space-lg);
}

.plan-finder-success .card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
}

.plan-breakdown {
  margin-top: var(--space-sm);
}

.plan-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 0.2rem 0;
}

.plan-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-sm);
  margin: var(--space-sm) 0 0.3rem;
  font-weight: 600;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.product-photo-large {
  width: 100%;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.product-photo-large img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  margin: 0 auto;
}

.product-story p { color: var(--color-text-muted); }

.product-not-found {
  display: none;
  text-align: center;
  padding: var(--space-xl) 0;
}
/* ---------- AUTH PAGES (login/signup) — reuse the site's existing
   form/button styles above; this just adds the centered card wrapper ---------- */
.auth-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md);
  max-width: 440px;
  margin: 0 auto;
  box-shadow: 0 12px 24px rgba(22, 41, 75, 0.08);
}

.auth-box h1 {
  margin-top: 0;
}

.auth-box form {
  max-width: none;
}

.auth-box .form-status.error {
  background: #fbe9e9;
  color: #b3261e;
}

/* Small circular account icon shown in the nav once logged in */
.user-avatar {
  display: none; /* toggled to flex by auth-nav.js when logged in */
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.user-avatar:hover {
  transform: translateY(-2px);
}
@media (max-width: 860px) {
  .hero {
    padding: var(--space-md) 0 var(--space-lg);
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-sm);
  }

  /* Show the product photo right under the nav first, so the first
     screenful is a photo + a short line — not a wall of plain-color
     text — then the headline follows underneath. */
  .hero-visual { order: -1; }

  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }

  .hero-copy > p { font-size: 0.95rem; }

  .hero-actions { justify-content: center; }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero { padding: var(--space-sm) 0 var(--space-md); }
  .hero-copy > .eyebrow { font-size: 0.68rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
  }

  .nav-links.open { display: flex; }

  .site-header { position: relative; }
}

/* Product grids become a swipeable, snap-scrolling row instead of a
   tall stack — one card at a time, with the next one peeking in on
   the right so it reads as "swipe" rather than "scroll forever".
   Covers phones and tablets alike (not just narrow phone widths). */
@media (max-width: 900px) {
  #dynamic-categories .card-grid,
  #home-featured-products .card-grid,
  .showcase-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--space-sm);
    margin: 0 calc(var(--space-md) * -1);
    padding: 0.25rem var(--space-md) 1rem;
    cursor: grab;
  }

  #dynamic-categories .card-grid.is-dragging,
  #home-featured-products .card-grid.is-dragging,
  .showcase-strip.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
  }

  #dynamic-categories .card-grid::-webkit-scrollbar,
  #home-featured-products .card-grid::-webkit-scrollbar,
  .showcase-strip::-webkit-scrollbar {
    display: none;
  }

  #dynamic-categories .card-grid > .card,
  #home-featured-products .card-grid > .card,
  .showcase-strip > .showcase-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    user-select: none;
    -webkit-user-drag: none;
  }

  #dynamic-categories .card-grid > .card img,
  #home-featured-products .card-grid > .card img,
  .showcase-strip > .showcase-card img {
    -webkit-user-drag: none;
    pointer-events: none;
  }

  #dynamic-categories .card-photo,
  #home-featured-products .card-photo {
    height: 200px;
  }
}

/* ---------- 12. REVIEWS & STAR RATINGS ---------- */
.stars {
  position: relative;
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 2px;
  vertical-align: middle;
}

.stars-lg { font-size: 1.4rem; }

.stars-empty { color: var(--color-border); }

.stars-filled {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--color-accent);
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.3rem 0 0.6rem;
}

.rating-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.reviews-block {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: var(--space-md);
}

.reviews-summary-text {
  font-family: var(--font-mono);
  color: var(--color-text-muted);
}

.review-form {
  max-width: 480px;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  gap: var(--space-xs);
}

.star-picker {
  display: flex;
  gap: 0.3rem;
  margin-bottom: var(--space-sm);
}

.star-picker-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-border);
  padding: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.star-picker-btn:hover,
.star-picker-btn.is-active {
  color: var(--color-accent);
}

.star-picker-btn:hover { transform: scale(1.1); }

.review-login-prompt { margin-bottom: var(--space-lg); }

.review-as {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-xs);
}

.review-list {
  display: grid;
  gap: var(--space-sm);
  max-width: 640px;
}

.review-item {
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.review-item-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.review-author {
  font-weight: 600;
  font-size: 0.9rem;
}

.review-comment {
  color: var(--color-text-muted);
  margin: 0;
}

.review-photo {
  margin-top: 0.6rem;
  max-width: 220px;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* ---------- 13. HOMEPAGE — ABOUT / STORY SECTIONS ---------- */

/* Two-column "our story" block: photo one side, text the other.
   Add .story-split--reverse to flip which side the photo is on. */
.story-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-lg);
  align-items: center;
}

.story-split--reverse .story-split-photo { order: 2; }
.story-split--reverse .story-split-copy { order: 1; }

.story-split-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-bg-alt);
}

.story-split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-split-badge {
  position: absolute;
  left: var(--space-sm);
  bottom: var(--space-sm);
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  box-shadow: 0 12px 24px rgba(22, 41, 75, 0.18);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--color-primary);
  max-width: 200px;
}

.story-split-copy h2 { margin-bottom: var(--space-sm); }
.story-split-copy p { color: var(--color-text-muted); }
.story-split-copy .btn { margin-top: var(--space-xs); }

/* Numbered "how it works" process row — three steps, farm to door */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.process-step {
  position: relative;
  padding: var(--space-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.process-step-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.process-step h3 { margin-bottom: 0.3rem; }
.process-step p { color: var(--color-text-muted); margin-bottom: 0; }

/* Full-bleed dark "mission" band with a quiet background pattern */
.mission-band {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.mission-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 70% at 15% 20%, rgba(217, 181, 74, 0.14) 0%, rgba(217, 181, 74, 0) 70%),
    radial-gradient(45% 60% at 90% 80%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.mission-band .container { position: relative; }

.mission-band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.mission-band h2 { color: var(--color-white); }

.mission-band-values {
  display: grid;
  gap: var(--space-sm);
}

.mission-value {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.mission-value-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(217, 181, 74, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-value-icon svg { width: 20px; height: 20px; }

.mission-value h4 { color: var(--color-white); margin: 0 0 0.2rem; font-family: var(--font-body); font-size: 1rem; }
.mission-value p { color: rgba(255, 255, 255, 0.72); margin: 0; font-size: 0.92rem; }

.mission-band p.lede {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
}

/* Soft white glows so the band isn't a flat block of navy */
.mission-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.mission-glow-1 {
  width: 340px;
  height: 340px;
  top: -120px;
  right: 8%;
  background: rgba(255, 255, 255, 0.10);
}

.mission-glow-2 {
  width: 220px;
  height: 220px;
  bottom: -100px;
  left: 4%;
  background: rgba(255, 255, 255, 0.06);
}

/* Headline reads in one line at a time, same cadence as the hero */
.mission-heading { overflow: visible; }

.mission-line {
  display: block;
}

.mission-band .reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mission-band .eyebrow.reveal { transition-delay: 0s; }
.mission-line.reveal:nth-of-type(1) { transition-delay: 0.08s; }
.mission-line.reveal:nth-of-type(2) { transition-delay: 0.2s; }
.mission-line.reveal:nth-of-type(3) { transition-delay: 0.32s; }
.mission-band p.lede.reveal { transition-delay: 0.44s; }
.mission-band .btn.reveal { transition-delay: 0.56s; }

.mission-band-values .mission-value.reveal:nth-child(1) { transition-delay: 0.15s; }
.mission-band-values .mission-value.reveal:nth-child(2) { transition-delay: 0.3s; }
.mission-band-values .mission-value.reveal:nth-child(3) { transition-delay: 0.45s; }

/* Final call-to-action banner, before the footer */
.cta-banner {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-lg);
  text-align: center;
  margin: 0 var(--space-md);
}

.cta-banner h2 { margin-bottom: 0.4rem; }
.cta-banner p { color: var(--color-text-muted); margin-bottom: var(--space-md); }

.cta-banner-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .story-split,
  .story-split--reverse .story-split-photo,
  .story-split--reverse .story-split-copy {
    order: initial;
  }
  .story-split {
    grid-template-columns: 1fr;
  }
  .story-split-copy { text-align: center; }
  .story-split-copy .btn { display: inline-block; }

  .process-steps { grid-template-columns: 1fr; }

  .mission-band-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cta-banner { margin: 0; border-radius: 0; }
}
