/* ==========================================================================
   Vertical Paradise Farms — site stylesheet
   Bold agricultural: condensed display type, deep green fields, high contrast.
   No framework, no jQuery. Roughly 1 file, ~900 lines.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Greens, dark to light */
  --ink:        #0F1A08;
  --green-950:  #14210C;
  --green-900:  #1B2E10;
  --green-800:  #24401A;
  --green-700:  #335A1F;
  --green-600:  #457A26;
  --green-500:  #5E9A2C;
  --lime-400:   #86C232;
  --lime-300:   #A8D64E;
  --lime-200:   #C8E88B;
  --lime-100:   #E4F3C9;

  /* Neutrals */
  --cream:      #F8F6EF;
  --sand:       #EDE9DC;
  --sand-dark:  #DDD7C4;
  --white:      #FFFFFF;
  --slate-700:  #3A3F35;
  --slate-500:  #6B7163;
  --slate-300:  #A9AEA0;

  /* Accent — harvest rust, used sparingly for seasonal cues */
  --rust:       #C2551F;
  --rust-dark:  #97400F;
  --rust-light: #F6E3D8;

  /* Semantic */
  --bg:            var(--cream);
  --bg-alt:        var(--sand);
  --text:          var(--green-950);
  --text-muted:    var(--slate-500);
  --text-on-dark:  #EEF3E4;
  --text-on-dark-muted: #A9BE8E;
  --rule:          #D8D3C2;
  --rule-dark:     rgba(255, 255, 255, 0.16);

  /* Borders on interactive controls and chart marks. WCAG 1.4.11 requires
     3:1 against the adjacent surface, which the decorative --rule tone
     (1.33:1 on cream) does not meet. Verified: 3.57:1 on --cream. */
  --border-control: #7E8474;

  /* Focus ring. Lime is only legible on the dark surfaces (7.80:1 on
     --green-950) and fails on cream at 1.99:1, so light surfaces get the
     dark green ring instead (7.40:1). */
  --focus-ring:     var(--green-700);

  /* Type */
  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body:    'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Fluid type scale */
  --fs-hero:  clamp(3rem, 1.6rem + 6.2vw, 6.5rem);
  --fs-h1:    clamp(2.5rem, 1.5rem + 4.2vw, 4.75rem);
  --fs-h2:    clamp(2rem, 1.35rem + 2.7vw, 3.5rem);
  --fs-h3:    clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  --fs-lead:  clamp(1.125rem, 1.03rem + 0.4vw, 1.375rem);
  --fs-body:  1.0625rem;
  --fs-small: 0.9375rem;
  --fs-micro: 0.8125rem;
  --fs-stat:  clamp(3rem, 1.9rem + 4.6vw, 5.5rem);

  /* Layout */
  --wrap:      78rem;
  --wrap-slim: 46rem;
  --gutter:    clamp(1.25rem, 0.7rem + 2.4vw, 3rem);
  --section-y: clamp(3.5rem, 2rem + 6vw, 7.5rem);
  --radius:    4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(15, 26, 8, 0.06), 0 2px 8px rgba(15, 26, 8, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 26, 8, 0.08), 0 12px 32px rgba(15, 26, 8, 0.07);

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

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--green-600); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li + li { margin-top: 0.35em; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

button { font: inherit; }

address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Dark surfaces flip the ring to lime, which is the legible choice there. */
.site-header, .hero, .section--dark, .page-head, .site-footer,
.cta-band, .visit-card, .supply-grid { --focus-ring: var(--lime-400); }

::selection { background: var(--lime-300); color: var(--green-950); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--slim { max-width: var(--wrap-slim); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }

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

.section--dark {
  background: var(--green-900);
  color: var(--text-on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark a { color: var(--lime-300); }
.section--dark a:hover { color: var(--lime-200); }

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -100px;
  z-index: 999;
  background: var(--green-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 0.5rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: var(--lime-400);
  flex: none;
}
.section--dark .eyebrow { color: var(--lime-300); }
.section--dark .eyebrow::before { background: var(--lime-400); }

.display  { font-size: var(--fs-h1); text-transform: uppercase; letter-spacing: -0.01em; }
.h2       { font-size: var(--fs-h2); text-transform: uppercase; }
.h3       { font-size: var(--fs-h3); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--slate-700);
  max-width: 42ch;
}
.section--dark .lead { color: var(--text-on-dark-muted); }

.measure { max-width: 62ch; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--green-800);
  --btn-fg: var(--white);
  --btn-bd: var(--green-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  min-height: 3rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bd);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease),
              border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.btn:hover {
  --btn-bg: var(--green-950);
  --btn-bd: var(--green-950);
  color: var(--white);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

.btn--lime  { --btn-bg: var(--lime-400); --btn-bd: var(--lime-400); --btn-fg: var(--green-950); }
.btn--lime:hover { --btn-bg: var(--lime-300); --btn-bd: var(--lime-300); color: var(--green-950); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--green-800); --btn-bd: var(--green-800); }
.btn--ghost:hover { --btn-bg: var(--green-800); color: var(--white); }

.section--dark .btn--ghost { --btn-fg: var(--text-on-dark); --btn-bd: rgba(255,255,255,0.4); }
.section--dark .btn--ghost:hover { --btn-bg: var(--white); color: var(--green-950); --btn-bd: var(--white); }

.btn--block { width: 100%; }

.btn[aria-disabled="true"],
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn .ico { width: 1.15em; height: 1.15em; flex: none; }

/* Small chip used for the not-yet-live ordering app */
/* Light-surface default. Verified 6.85:1 (green-700 on lime-100). */
.chip-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--lime-100);
  color: var(--green-700);
  border: 1px solid var(--green-600);
}

/* Dark-surface variant. Verified 9.89:1 (lime-300 on green-950) and
   6.80:1 on green-800, which is the CTA band. */
.cta-band .chip-soon,
.section--dark .chip-soon,
.site-footer .chip-soon {
  background: rgba(168, 214, 78, 0.14);
  color: var(--lime-300);
  border-color: rgba(168, 214, 78, 0.55);
}

/* --------------------------------------------------------------------------
   6. Site header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-950);
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--rule-dark);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
  margin-right: auto;
  padding-block: 0.6rem;
}
.brand img { width: 34px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-top: 3px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--rule-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

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

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }

.nav__link {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  text-decoration: none;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  position: relative;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav__link:hover { color: var(--lime-300); background: rgba(255, 255, 255, 0.06); }
.nav__link[aria-current="page"] { color: var(--lime-300); }
.nav__link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.3rem;
  height: 2px;
  background: var(--lime-400);
}

.nav__cta { margin-left: 0.6rem; }
.nav__cta .btn { padding: 0.6rem 1.15rem; min-height: 2.6rem; font-size: 0.9375rem; }

@media (max-width: 60rem) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--green-950);
    border-bottom: 1px solid var(--rule-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--gutter) 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid var(--rule-dark);
    font-size: 1.15rem;
  }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; }
  .site-header__inner { position: relative; }
}

/* --------------------------------------------------------------------------
   7. Hero — split, photo-forward
   -------------------------------------------------------------------------- */

.hero { background: var(--green-950); color: var(--text-on-dark); overflow: hidden; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  min-height: min(78vh, 44rem);
}

.hero__media { position: relative; }
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,26,8,0.35) 0%, rgba(15,26,8,0) 45%);
}

.hero__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 1rem + 5vw, 5rem) clamp(1.5rem, 0.5rem + 4vw, 4.5rem);
}

.hero__title {
  font-size: var(--fs-hero);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.35em;
  letter-spacing: -0.02em;
}
.hero__title .accent { color: var(--lime-400); display: block; }

.hero__lead {
  font-size: var(--fs-lead);
  color: var(--text-on-dark-muted);
  max-width: 34ch;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-dark);
}
.hero__meta div { line-height: 1.25; }
.hero__meta dt {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 0.25rem;
}
.hero__meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
}

@media (max-width: 60rem) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { aspect-ratio: 16 / 10; }
  .hero__media img { position: static; }
  .hero__media::after { background: linear-gradient(180deg, rgba(15,26,8,0.15), rgba(15,26,8,0.45)); }
}

/* --------------------------------------------------------------------------
   8. Stat strip
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.section--dark .stats { background: var(--rule-dark); border-color: var(--rule-dark); }

.stat {
  background: var(--bg);
  padding: clamp(1.75rem, 1rem + 2vw, 2.75rem) clamp(1.25rem, 0.5rem + 2vw, 2rem);
}
.section--dark .stat { background: var(--green-900); }
.section--sand .stat { background: var(--bg-alt); }

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--green-700);
  margin-bottom: 0.35rem;
}
.section--dark .stat__num { color: var(--lime-400); }

.stat__label {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}
.section--dark .stat__label { color: var(--text-on-dark-muted); }

.stat__note { font-size: var(--fs-small); color: var(--slate-700); margin: 0; }
.section--dark .stat__note { color: var(--text-on-dark-muted); }

/* --------------------------------------------------------------------------
   9. Alternating photo / text bands
   -------------------------------------------------------------------------- */

.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}
.band + .band { margin-top: var(--section-y); }

.band--flip .band__media { order: 2; }

.band__media { position: relative; }
.band__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.band__media--tall img { aspect-ratio: 3 / 4; }

/* A small stacked second image, offset over the first */
.band__media--stack { padding-bottom: 3.5rem; padding-right: 3rem; }
.band__media--stack .band__inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  border: 6px solid var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.band__media--stack .band__inset img { aspect-ratio: 1 / 1; border-radius: 2px; }
.section--sand .band__media--stack .band__inset { border-color: var(--bg-alt); }

.band__body h2 { margin-bottom: 0.55em; }

.band__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.85rem;
}
.band__list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0;
  font-size: var(--fs-small);
}
.band__list li::before {
  content: '';
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-top: 0.55em;
  background: var(--lime-400);
  border-radius: 1px;
  transform: rotate(45deg);
}

.band__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }

@media (max-width: 55rem) {
  .band { grid-template-columns: 1fr; gap: 2rem; }
  .band--flip .band__media { order: 0; }
  .band__media--stack { padding-bottom: 0; padding-right: 0; }
  .band__media--stack .band__inset { display: none; }
}

/* --------------------------------------------------------------------------
   10. Section headers
   -------------------------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}
.section-head__text { max-width: 46ch; }
.section-head h2 { margin-bottom: 0.35em; }
.section-head p { margin: 0; color: var(--text-muted); font-size: var(--fs-lead); }
.section--dark .section-head p { color: var(--text-on-dark-muted); }

/* --------------------------------------------------------------------------
   11. Product cards
   -------------------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: clamp(1.25rem, 0.5rem + 2vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.product-grid > li { margin: 0; }

.product {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              border-color 0.18s var(--ease);
}
.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sand-dark);
}

.product__media { position: relative; background: var(--sand); }
.product__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product__tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius);
  background: var(--green-950);
  color: var(--lime-300);
}
.product__tag--seasonal { background: var(--rust); color: var(--white); }

.product__body { padding: 1.35rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.product__body h3 { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 0.3em; }
.product__body p { font-size: var(--fs-small); color: var(--slate-700); margin: 0; }

.product__varieties {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-micro);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   12. Seasonal availability chart
   -------------------------------------------------------------------------- */

.availability-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.availability {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.availability caption {
  text-align: left;
  font-size: var(--fs-small);
  color: var(--text-muted);
  padding-bottom: 1rem;
}
.section--dark .availability caption { color: var(--text-on-dark-muted); }

.availability th, .availability td { padding: 0; }

.availability thead th {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding: 0 0 0.75rem;
  width: 6.5%;
}
.availability thead th:first-child { text-align: left; width: 22%; }
.section--dark .availability thead th { color: var(--text-on-dark-muted); }

.availability tbody th {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.5rem 1rem 0.5rem 0;
  white-space: nowrap;
  color: var(--text);
}
.section--dark .availability tbody th { color: var(--white); }

.availability tbody tr + tr th,
.availability tbody tr + tr td { border-top: 1px solid var(--rule); }
.section--dark .availability tbody tr + tr th,
.section--dark .availability tbody tr + tr td { border-top-color: var(--rule-dark); }

.availability td { padding: 0.5rem 2px; }

/* Three states must be distinguishable without relying on colour (WCAG
   1.4.1) and must clear 3:1 against the page (WCAG 1.4.11). So each state
   differs in fill AND in pattern: solid, diagonally striped, or empty. */
.avail-cell {
  display: block;
  height: 1.6rem;
  border-radius: 2px;
  background: transparent;
  border: 1.5px solid var(--border-control);
}
.section--dark .avail-cell { border-color: rgba(255, 255, 255, 0.45); }

.avail-cell--peak {
  background: var(--green-700);
  border-color: var(--green-700);
}
.avail-cell--some {
  border-color: var(--green-700);
  background-color: transparent;
  background-image: repeating-linear-gradient(
    45deg,
    var(--green-700) 0, var(--green-700) 2px,
    transparent 2px, transparent 6px
  );
}
.section--dark .avail-cell--peak { background: var(--lime-400); border-color: var(--lime-400); }
.section--dark .avail-cell--some {
  border-color: var(--lime-400);
  background-image: repeating-linear-gradient(
    45deg,
    var(--lime-400) 0, var(--lime-400) 2px,
    transparent 2px, transparent 6px
  );
}

/* Current-month column gets a tint so the highlight is not colour-only —
   the header text is also bolded and marked up with <strong>. */
.availability td.is-current .avail-cell,
.availability th.is-current { position: relative; }
.availability .is-current { background: rgba(94, 154, 44, 0.09); }

/* The table is wider than a phone. Make the scroll container focusable so
   it can be reached and scrolled with a keyboard (WCAG 2.1.1). */
.availability-scroll:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.avail-key {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-muted);
}
.section--dark .avail-key { color: var(--text-on-dark-muted); }
.avail-key span { display: inline-flex; align-items: center; gap: 0.5rem; }
.avail-key i {
  width: 1.4rem;
  height: 1rem;
  border-radius: 2px;
  display: inline-block;
  border: 1.5px solid var(--border-control);
  background: transparent;
}
.avail-key i.k-peak { background: var(--green-700); border-color: var(--green-700); }
.avail-key i.k-some {
  border-color: var(--green-700);
  background-image: repeating-linear-gradient(
    45deg, var(--green-700) 0, var(--green-700) 2px, transparent 2px, transparent 6px
  );
}

/* --------------------------------------------------------------------------
   13. Who we supply
   -------------------------------------------------------------------------- */

.supply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.supply-cell {
  background: var(--green-900);
  min-height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}
.supply-cell img { max-height: 3.25rem; width: auto; opacity: 0.9; }

.supply-cell--empty {
  color: var(--text-on-dark-muted);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
}

/* --------------------------------------------------------------------------
   14. Order-app CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--green-800);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1rem + 3.5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  right: -3rem;
  top: -3rem;
  width: 16rem;
  height: 16rem;
  border: 2px solid rgba(168, 214, 78, 0.16);
  border-radius: 50%;
  pointer-events: none;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.4em; }
.cta-band p { color: var(--lime-200); margin: 0; max-width: 52ch; }
.cta-band__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  position: relative;
}

@media (max-width: 55rem) {
  .cta-band { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   15. Contact page — form and map
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}
@media (max-width: 60rem) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 1.35rem; }
.field:last-of-type { margin-bottom: 0; }

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-800);
  margin-bottom: 0.45rem;
}
.field .req { color: var(--rust); margin-left: 0.15rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--border-control);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  min-height: 3rem;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease),
              box-shadow 0.15s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23335A1F' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate-700); }

.field input::placeholder, .field textarea::placeholder { color: var(--slate-500); opacity: 1; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(94, 154, 44, 0.18);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--rust);
  background: var(--rust-light);
}

.field__hint { font-size: var(--fs-micro); color: var(--text-muted); margin: 0.4rem 0 0; }
.field__error {
  font-size: var(--fs-micro);
  color: var(--rust-dark);
  font-weight: 600;
  margin: 0.4rem 0 0;
}

/* Honeypot — hidden from people, visible to naive bots. Must never use
   display:none alone, which some bots detect. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.form-footer .btn { flex: none; }
.form-footer__note { font-size: var(--fs-micro); color: var(--text-muted); margin: 0; flex: 1 1 14rem; }

.cf-turnstile { margin-bottom: 1.25rem; min-height: 65px; }

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  margin-bottom: 1.75rem;
  font-size: var(--fs-small);
}
.alert h3 { font-size: 1.25rem; text-transform: uppercase; margin-bottom: 0.25em; }
.alert p:last-child { margin-bottom: 0; }
.alert--ok   { background: var(--lime-100); border-color: var(--green-600); color: var(--green-900); }
.alert--err  { background: var(--rust-light); border-color: var(--rust); color: var(--rust-dark); }

/* Visit / map card */
.visit-card {
  background: var(--green-900);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.visit-card__map { position: relative; aspect-ratio: 4 / 3; background: var(--green-800); }
.visit-card__map iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.9); }
.visit-card__body { padding: clamp(1.35rem, 1rem + 1.5vw, 2rem); }
.visit-card__body h2, .visit-card__body h3 { color: var(--white); }

.visit-detail {
  display: flex;
  gap: 0.9rem;
  padding-block: 1rem;
  border-top: 1px solid var(--rule-dark);
}
.visit-detail:first-of-type { border-top: 0; padding-top: 0; }
.visit-detail__icon { flex: none; width: 1.35rem; height: 1.35rem; color: var(--lime-400); margin-top: 0.15rem; }
.visit-detail dt {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 0.2rem;
}
.visit-detail dd { margin: 0; color: var(--white); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--green-950);
  color: var(--text-on-dark-muted);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 0;
  font-size: var(--fs-small);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  padding-bottom: 3rem;
}
@media (max-width: 62rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h2 {
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.1rem;
}

.site-footer a { color: var(--text-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--lime-300); text-decoration: underline; }

.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-list li { margin: 0; }

.footer-brand__logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; }
.footer-brand__logo img { width: 38px; height: auto; }
.footer-brand__logo span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.05;
}

.social-row { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.social-row a {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius);
  color: var(--text-on-dark);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.social-row a:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.32); }
.social-row svg { width: 1.15rem; height: 1.15rem; }

.footer-bottom {
  border-top: 1px solid var(--rule-dark);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-micro);
}
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   17. Page header (interior pages)
   -------------------------------------------------------------------------- */

.page-head {
  background: var(--green-900);
  color: var(--text-on-dark);
  padding-block: clamp(2.75rem, 1.5rem + 4vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-head h1 { color: var(--white); font-size: var(--fs-h1); text-transform: uppercase; }
.page-head p { color: var(--text-on-dark-muted); font-size: var(--fs-lead); max-width: 50ch; margin: 0; }
.page-head__inner { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.breadcrumb li { margin: 0; }
.breadcrumb a { color: var(--text-on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--lime-300); }
.breadcrumb li + li::before { content: '/'; margin-right: 0.5rem; opacity: 0.5; }

/* --------------------------------------------------------------------------
   18. Prose (terms page)
   -------------------------------------------------------------------------- */

.prose { max-width: 68ch; }
.prose h2 { font-size: var(--fs-h3); text-transform: uppercase; margin-top: 2.5rem; }
.prose h3 { font-size: 1.25rem; margin-top: 2rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ol { padding-left: 1.35rem; }
.prose li { margin-bottom: 0.5rem; }
.prose small { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   19. Reveal-on-scroll (progressive enhancement)
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20. Forced colours / high contrast
   -------------------------------------------------------------------------- */

@media (forced-colors: active) {
  /* Windows High Contrast strips background images and custom colours.
     Re-assert the borders that carry meaning so nothing becomes invisible. */
  .btn { border: 2px solid ButtonText; }
  .avail-cell { border: 2px solid CanvasText; forced-color-adjust: none; }
  .avail-cell--peak { background: Highlight; border-color: Highlight; }
  .avail-cell--some { background: Canvas; border-color: CanvasText; }
  .product, .form-card, .visit-card, .supply-cell { border: 1px solid CanvasText; }
  .nav__link[aria-current="page"]::after { background: Highlight; }
  :focus-visible { outline: 3px solid Highlight; }
}

/* The alert is focused programmatically after a failed submit, so it needs
   a visible ring even though it is not normally focusable. */
.alert:focus { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   21. Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 9pt; }
}
