/* ============================================================
   Mae-Mart Farms — style.css
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

/* ── Adobe Fonts loaded via head.php (typekit kit ID from admin Settings)
   Fonts: Mundial Narrow Variable (display) · Deuterium Variable (accent)
   Fallback: Nunito (Google Fonts, loaded below) · DM Sans (body)            ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,700;0,800;0,900;1,800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Palette */
  --cream:      #F8F5EF;
  --cream-dk:   #EFE9DF;
  --white:      #FFFFFF;
  --dark:       #1C2028;
  --charcoal:   #363B45;
  --mid:        #6B7280;
  --muted:      #9CA3AF;
  --border:     #E2DDD6;
  --border-lt:  #EDE9E2;

  /* Brand */
  --blue:       #4D7AB0;
  --blue-dk:    #3A6090;
  --blue-lt:    #EDF3FB;
  --blue-mid:   #C5D8EE;
  --gold:       #C49535;
  --gold-lt:    #FBF5E6;
  --gold-mid:   #E8C96A;

  /* Type */
  /* Adobe Fonts names — update once kit is active in admin Settings */
  --font-display: 'mundial-narrow-variable', 'Nunito', system-ui, sans-serif;
  --font-accent:  'deuterium-variable', 'Nunito', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing / Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   32px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.1);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);

  /* Nav */
  --nav-h: 88px;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select {
  font-family: inherit; font-size: inherit;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .55rem .75rem;
  width: 100%;
  outline: none;
  background: var(--white);
}
input:focus, textarea:focus, select:focus { border-color: var(--blue); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Typography helpers ─────────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--blue);
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.18;
  letter-spacing: -.005em;
}
.section-title em {
  font-style: italic;
  font-weight: 800;
  color: var(--blue);
}
.section-sub {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.7;
  max-width: 540px;
  margin-top: .875rem;
}
.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-pad {
  padding: 6rem 0;
}
.section-pad-lg {
  padding: 8rem 0;
}
.section-pad-sm {
  padding: 3.5rem 0;
}
@media (max-width: 768px) {
  .section-pad    { padding: 4rem 0; }
  .section-pad-lg { padding: 5rem 0; }
  .section-pad-sm { padding: 2.5rem 0; }
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header .section-sub { margin-left: auto; margin-right: auto; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  letter-spacing: .01em;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 10px rgba(77,122,176,.35);
}
.btn-primary:hover {
  background: var(--blue-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77,122,176,.45);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .8rem 1.75rem;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,.5);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.1);
}
.btn-careers {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.btn-careers:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

/* ══════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════ */

/* ── Shared nav structure ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}
/* Shrink nav on scroll */
.site-nav.scrolled {
  height: 64px;
}

/* Default state — always solid (non-hero pages) */
.site-nav.scrolled,
.site-nav:not(.nav-hero) {
  background: rgba(248,245,239,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,.07);
}
/* Scrolled height already set above — override needed for non-hero pages too */
.site-nav:not(.nav-hero).scrolled {
  height: 64px;
}

/* Hero state — transparent until user scrolls */
.site-nav.nav-hero:not(.scrolled):not(.nav-open) {
  background: transparent;
  box-shadow: none;
}
/* Hero nav open — always solid so drawer feels grounded */
.site-nav.nav-hero.nav-open:not(.scrolled) {
  background: rgba(248,245,239,.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ── Logo ── */
.nav-brand { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo-img {
  height: 64px;
  width: auto;
  display: block;
  transition: filter .3s ease, height .35s ease;
}
/* Shrink logo when nav scrolls */
.site-nav.scrolled .nav-logo-img {
  height: 44px;
}
/* Hero transparent nav — white logo via CSS filter */
.site-nav.nav-hero:not(.scrolled):not(.nav-open) .nav-logo-img {
  filter: brightness(0) invert(1);
}
/* Solid nav — natural logo colors (transparent PNG, no blend mode needed) */
.site-nav.scrolled .nav-logo-img,
.site-nav:not(.nav-hero) .nav-logo-img,
.site-nav.nav-open .nav-logo-img {
  filter: none;
}

/* ── Nav dropdown ───────────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: 0;
  font-family: inherit;
}
.nav-dropdown-chevron {
  transition: transform .2s ease;
  flex-shrink: 0;
  opacity: .6;
}
.nav-dropdown.open .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + .75rem);
  left: -1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  min-width: 240px;
  padding: .5rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .7rem .875rem;
  border-radius: var(--r-md);
  transition: background .15s;
}
.nav-dropdown-item:hover { background: var(--cream); }
.ndi-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--blue-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.ndi-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.ndi-text strong {
  font-size: .85rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}
.ndi-text span {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.3;
}

/* ── Mobile drawer group ── */
.drawer-group-trigger {
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.07);
  letter-spacing: -.01em;
}
.drawer-chevron {
  transition: transform .22s ease;
  opacity: .4;
}
.drawer-group.open .drawer-chevron { transform: rotate(180deg); opacity: .7; }

.drawer-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
.drawer-group.open .drawer-sub { grid-template-rows: 1fr; }
.drawer-sub-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.drawer-sub-inner > a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .875rem;
  margin: 0 -.5rem;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  transition: background .15s, color .15s;
}
.drawer-sub-inner > a:hover {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.9);
}
.drawer-sub-inner > a:first-child { margin-top: .5rem; }
.drawer-sub-inner > a:last-child  { margin-bottom: .875rem; }
.drawer-sub > a {
  min-height: 0;
}

/* ── Desktop nav links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
  margin-left: auto;
}
.nav-link {
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem .95rem;
  border-radius: var(--r-sm);
  transition: color .18s, background .18s, font-size .35s;
  white-space: nowrap;
}
.site-nav.scrolled .nav-link {
  font-size: .84rem;
}
/* Hero transparent: white links */
.site-nav.nav-hero:not(.scrolled):not(.nav-open) .nav-link {
  color: rgba(255,255,255,.88);
}
.site-nav.nav-hero:not(.scrolled):not(.nav-open) .nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,.12);
}
/* Solid nav: dark links */
.site-nav.scrolled .nav-link,
.site-nav:not(.nav-hero) .nav-link {
  color: var(--charcoal);
}
.site-nav.scrolled .nav-link:hover,
.site-nav:not(.nav-hero) .nav-link:hover {
  color: var(--blue);
  background: var(--blue-lt);
}

/* ── Right side: CTA + burger ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.15rem;
  background: var(--blue);
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  border-radius: 50px;
  white-space: nowrap;
  transition: background .18s, transform .15s;
}
.nav-cta:hover { background: var(--blue-dk); transform: translateY(-1px); }

/* ── Burger ── */
.nav-burger {
  display: none;
  align-items: center;
  gap: .45rem;
  padding: .45rem .65rem .45rem .55rem;
  background: none;
  border: 1.5px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
/* Transparent hero: ghost white border */
.site-nav.nav-hero:not(.scrolled):not(.nav-open) .nav-burger {
  border-color: rgba(255,255,255,.3);
}
.site-nav.nav-hero:not(.scrolled):not(.nav-open) .nav-burger:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
}
/* Solid nav: subtle border */
.site-nav.scrolled .nav-burger,
.site-nav:not(.nav-hero) .nav-burger,
.site-nav.nav-open .nav-burger {
  border-color: var(--border);
  background: var(--white);
}
.site-nav.scrolled .nav-burger:hover,
.site-nav:not(.nav-hero) .nav-burger:hover,
.site-nav.nav-open .nav-burger:hover {
  border-color: var(--blue);
}

/* The three lines */
.nav-burger-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4.5px;
  width: 18px;
  height: 16px;
  flex-shrink: 0;
}
.nav-burger-bars span {
  display: block;
  height: 1.75px;
  border-radius: 2px;
  transition: transform .28s cubic-bezier(.16,1,.3,1), opacity .2s, width .2s;
  transform-origin: center;
}
/* Bar colours */
.site-nav.nav-hero:not(.scrolled):not(.nav-open) .nav-burger-bars span { background: var(--white); }
.site-nav.scrolled .nav-burger-bars span,
.site-nav:not(.nav-hero) .nav-burger-bars span,
.site-nav.nav-open .nav-burger-bars span { background: var(--charcoal); }

/* Animate to X when open */
.site-nav.nav-open .nav-burger-bars span:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
.site-nav.nav-open .nav-burger-bars span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-nav.nav-open .nav-burger-bars span:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }

/* Menu / Close label */
.nav-burger-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  line-height: 1;
  position: relative;
  height: 1em;
  overflow: hidden;
  width: 40px;
}
.nav-burger-menu,
.nav-burger-close {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  transition: transform .28s cubic-bezier(.16,1,.3,1), opacity .2s;
}
.nav-burger-close { transform: translateY(100%); opacity: 0; }
.site-nav.nav-open .nav-burger-menu { transform: translateY(-100%); opacity: 0; }
.site-nav.nav-open .nav-burger-close { transform: translateY(0); opacity: 1; }
/* Label colours */
.site-nav.nav-hero:not(.scrolled):not(.nav-open) .nav-burger-label { color: rgba(255,255,255,.9); }
.site-nav.scrolled .nav-burger-label,
.site-nav:not(.nav-hero) .nav-burger-label,
.site-nav.nav-open .nav-burger-label { color: var(--charcoal); }

/* ── Mobile drawer — dark navy ── */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 998;
  background: #0d1c2e;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .38s cubic-bezier(.16,1,.3,1), opacity .25s ease;
  pointer-events: none;
  padding-top: var(--nav-h);
}
.nav-drawer[aria-hidden="false"] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer nav {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.75rem 2rem;
}
/* Main nav links */
.nav-drawer nav > a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  letter-spacing: -.01em;
  transition: color .15s;
  display: block;
}
.nav-drawer nav > a:hover { color: var(--white); }
.nav-drawer nav > a:last-of-type:not(.drawer-cta) { border-bottom: none; }

/* CTA at bottom of drawer */
.nav-drawer nav .drawer-cta {
  margin-top: 1.25rem;
  padding: .875rem 1.25rem;
  background: var(--blue);
  color: var(--white) !important;
  border-radius: var(--r-md);
  font-weight: 700;
  text-align: center;
  transition: background .18s;
  display: block;
}
.nav-drawer nav .drawer-cta:hover { background: var(--blue-dk); border-bottom: none !important; }

/* ── Responsive ── */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-right { margin-left: auto; }
}
@media (max-width: 520px) {
  .nav-cta { display: none; }
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Background ── */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.09); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Bottom gradient — darkens for text readability */
  background: linear-gradient(
    to top,
    rgba(8,12,22,.88)  0%,
    rgba(8,12,22,.55) 38%,
    rgba(8,12,22,.15) 65%,
    transparent       100%
  );
}
/* Top vignette — separate element so both gradients work independently */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Top gradient — ensures nav is always legible regardless of photo brightness */
  background: linear-gradient(
    to bottom,
    rgba(8,12,22,.62)  0%,
    rgba(8,12,22,.25) 18%,
    transparent       42%
  );
  pointer-events: none;
}

/* ── Body — pushes content to bottom ── */
.hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: flex-end;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 2.5rem;
}

/* ── Vertical decorative label ── */
.hero-vert-label {
  position: absolute;
  right: 1.5rem;
  bottom: 2.5rem;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: rgba(255,255,255,.3);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  user-select: none;
}

/* ── Content block ── */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 760px;
}

/* ── Meta line ── */
.hero-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.5);
}
.hero-meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-mid);
  box-shadow: 0 0 7px var(--gold-mid);
  flex-shrink: 0;
}
.hero-meta-sep { opacity: .35; }

/* ── Title ── */
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--white);
  line-height: 1.04;
  letter-spacing: -.01em;
  display: flex;
  flex-direction: column;
  gap: .1em;
}
.hero-title-top {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  color: rgba(255,255,255,.92);
}
.hero-title-bottom {
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  /* Indent the second line slightly for stagger effect */
  padding-left: .08em;
}
.hero-title em {
  font-style: italic;
  font-weight: 900;
  /* Gold underline treatment instead of just color */
  color: var(--gold-mid);
  position: relative;
  display: inline-block;
}
.hero-title em::after {
  content: '';
  position: absolute;
  bottom: .06em;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-mid);
  opacity: .4;
  border-radius: 2px;
}

/* ── Bottom row: sub + actions side by side ── */
.hero-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-top: .5rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-sub {
  font-size: .9rem;
  color: rgba(255,255,255,.62);
  line-height: 1.6;
  flex: 1;
}

/* ── Action links — text-style, not pill buttons ── */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-shrink: 0;
}
.hero-link-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  padding-bottom: .2rem;
  border-bottom: 2px solid var(--gold-mid);
  transition: color .18s, border-color .18s, gap .18s;
}
.hero-link-primary:hover {
  color: var(--gold-mid);
  border-color: var(--gold-mid);
  gap: .75rem;
}
.hero-link-ghost {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding-bottom: .15rem;
  transition: color .18s, border-color .18s;
}
.hero-link-ghost:hover {
  color: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.5);
}

/* ── Grain ticker strip — flush at base of hero ── */
/* Sticky state: detaches from hero, fixes below the nav on desktop */
.hero-strip.strip-is-sticky {
  position: fixed;
  top: 64px;  /* scrolled nav height */
  bottom: auto;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  animation: stripSlideDown .25s cubic-bezier(.16,1,.3,1) both;
}
@keyframes stripSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-strip {
  position: relative;
  z-index: 2;
  background: rgba(8,12,22,.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.hero-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.hero-strip-label {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
  flex-shrink: 0;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(74,222,128,.5);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.5); }
  60%  { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.hero-strip-tickers {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  overflow: hidden;
}

/* Individual ticker item */
.grain-ticker-item {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}
.grain-ticker-item:first-child {
  padding-left: 0;
}
.grain-ticker-item.loading {
  color: rgba(255,255,255,.3);
  font-size: .75rem;
  font-style: italic;
  border: none;
}
.ticker-crop {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
}
.ticker-price {
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.ticker-unit {
  font-size: .65rem;
  font-weight: 500;
  color: var(--gold-mid);
  letter-spacing: .04em;
}
.hero-strip-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold-mid);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  padding: .28rem .65rem;
  border: 1px solid rgba(232,201,106,.25);
  border-radius: 50px;
  transition: border-color .18s, background .18s;
}
.hero-strip-link:hover {
  border-color: rgba(232,201,106,.55);
  background: rgba(232,201,106,.07);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .hero-vert-label { display: none; }
  .hero-title-top  { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero-title-bottom { font-size: clamp(2.4rem, 9vw, 3.4rem); }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; gap: .875rem; }
}

/* ══════════════════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════════════════ */

.page-hero {
  position: relative;
  height: 52vh;
  min-height: 340px;
  max-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* ── Photo background ── */
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,12,22,.82)  0%,
    rgba(8,12,22,.45) 45%,
    rgba(8,12,22,.18) 100%
  );
}
/* Top nav vignette */
.page-hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,12,22,.55)  0%,
    rgba(8,12,22,.2)  20%,
    transparent       45%
  );
  pointer-events: none;
}

/* ── Solid fallback (no image) ── */
.page-hero-solid {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f1e2e 0%, #1a3050 100%);
  z-index: 0;
}

/* ── Content ── */
.page-hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 1.5rem) 1.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* ── Breadcrumb ── */
.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.page-hero-breadcrumb a {
  color: rgba(255,255,255,.45);
  transition: color .18s;
}
.page-hero-breadcrumb a:hover { color: rgba(255,255,255,.8); }
.ph-bc-sep { color: rgba(255,255,255,.2); }
.ph-bc-current { color: var(--gold-mid); }

/* ── Title ── */
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.06;
  letter-spacing: -.01em;
  margin: 0;
}
.page-hero-title em {
  font-style: italic;
  color: var(--gold-mid);
}

/* ── Subtitle ── */
.page-hero-sub {
  font-size: .95rem;
  color: rgba(255,255,255,.58);
  line-height: 1.6;
  max-width: 520px;
  margin: 0;
}

@media (max-width: 768px) {
  .page-hero { height: 44vh; min-height: 280px; }
  .page-hero-title { font-size: clamp(1.9rem, 7vw, 2.8rem); }
}

/* ══════════════════════════════════════════════════════
   GRAIN SECTION
══════════════════════════════════════════════════════ */
.grain-section {
  padding: 5rem 0 4rem;
  background: var(--cream);
}
.grain-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.grain-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s;
}
.grain-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.grain-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  background: linear-gradient(135deg, var(--blue-lt) 0%, rgba(196,149,53,.08) 100%);
  border-bottom: 1px solid var(--border);
}
.crop-icon {
  width: 56px;
  height: 70px;
  color: var(--blue);
  opacity: .85;
}

/* Subtle per-crop tint on the icon area */
.grain-card[data-crop="corn"]     .grain-card-icon { background: linear-gradient(135deg, rgba(196,149,53,.1) 0%, rgba(232,201,106,.06) 100%); }
.grain-card[data-crop="corn"]     .crop-icon { color: #b8860b; }
.grain-card[data-crop="soybeans"] .grain-card-icon { background: linear-gradient(135deg, rgba(77,122,176,.1) 0%, rgba(77,122,176,.04) 100%); }
.grain-card[data-crop="soybeans"] .crop-icon { color: var(--blue); }
.grain-card[data-crop="wheat"]    .grain-card-icon { background: linear-gradient(135deg, rgba(180,140,60,.12) 0%, rgba(196,149,53,.05) 100%); }
.grain-card[data-crop="wheat"]    .crop-icon { color: #a0782a; }
.grain-card[data-crop="rye"]      .grain-card-icon { background: linear-gradient(135deg, rgba(90,110,80,.12) 0%, rgba(90,110,80,.04) 100%); }
.grain-card[data-crop="rye"]      .crop-icon { color: #5a6e50; }

/* Remove old img styles from grain-card-icon */
.grain-card-icon img {
  height: 140px;
  overflow: hidden;
}
.grain-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.grain-card:hover .grain-card-icon img { transform: scale(1.04); }
.grain-card-body {
  padding: 1.25rem;
}
.grain-card-crop {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .875rem;
  letter-spacing: -.005em;
}
.grain-card-prices { margin-bottom: 1rem; }
.grain-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border-lt);
}
.grain-price-row:last-child { border-bottom: none; }
.grain-price-label {
  font-size: .72rem;
  font-weight: 500;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.grain-price-val {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--charcoal);
  min-width: 60px;
  text-align: right;
}
.grain-price-val.featured {
  font-size: 1rem;
  color: var(--blue-dk);
  font-weight: 700;
}
.grain-price-val.loaded {
  animation: priceIn .4s ease;
}
@keyframes priceIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Price value states */
.grain-price-val {
  transition: opacity .3s;
}
.grain-price-val.loaded {
  animation: priceReveal .4s ease forwards;
}
@keyframes priceReveal {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.grain-price-val.error {
  color: var(--muted);
  font-size: .85em;
}

.grain-card-link {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  transition: color .15s;
}
.grain-card-link:hover { color: var(--blue-dk); }
.grain-disclaimer {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: var(--muted);
  background: var(--gold-lt);
  border: 1px solid rgba(196,149,53,.2);
  border-radius: var(--r-md);
  padding: .75rem 1.1rem;
}
.grain-disclaimer a { color: var(--blue); font-weight: 500; margin-left: .35rem; }
.grain-disclaimer svg { flex-shrink: 0; stroke: var(--gold); }

/* ══════════════════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════════════════ */
.about-section {
  padding: 6rem 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-media {
  position: relative;
}
.about-img-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.about-img-frame:hover .about-img { transform: scale(1.03); }
.about-stat-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  line-height: 1.2;
}
.about-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  font-style: italic;
}
.about-stat-label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .8;
}
.about-content { padding-right: 1rem; }
.about-text {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.about-values {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}
.about-value {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.about-value-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-lt);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-value strong {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .2rem;
}
.about-value p {
  font-size: .82rem;
  color: var(--mid);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════
   CAREERS SECTION
══════════════════════════════════════════════════════ */
.careers-section {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}
.careers-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.careers-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.careers-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28,48,80,.88) 0%,
    rgba(28,32,55,.80) 100%
  );
}
.careers-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.careers-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold-mid);
  border: 1px solid rgba(232,201,106,.35);
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.careers-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 1.25rem;
}
.careers-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.72);
  max-width: 440px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════
   CTA STRIP
══════════════════════════════════════════════════════ */
.cta-strip {
  background: var(--blue-lt);
  border-top: 1px solid var(--blue-mid);
  border-bottom: 1px solid var(--blue-mid);
  padding: 3.5rem 0;
}
.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-strip-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .35rem;
  letter-spacing: -.01em;
}
.cta-strip-sub {
  font-size: .9rem;
  color: var(--mid);
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */

.site-footer {
  background: #0f1e2e;  /* deep navy — bookends the dark hero */
}

/* ── Main row ── */
.footer-main {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-main-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* ── Logo + tagline ── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  flex-shrink: 0;
}
.footer-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.footer-tagline {
  font-size: .8rem;
  line-height: 1.65;
  color: rgba(255,255,255,.38);
  font-style: italic;
}

/* ── Nav — horizontal pill links ── */
.footer-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  padding: .4rem .85rem;
  border-radius: 50px;
  border: 1px solid transparent;
  transition: color .18s, border-color .18s, background .18s;
  white-space: nowrap;
}
.footer-nav a:hover {
  color: var(--white);
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
}

/* ── Right: social + location ── */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .875rem;
  flex-shrink: 0;
}
.footer-social {
  display: flex;
  gap: .5rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  transition: border-color .18s, color .18s, background .18s;
}
.footer-social a:hover {
  border-color: rgba(255,255,255,.45);
  color: var(--white);
  background: rgba(255,255,255,.07);
}
.footer-location {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  color: rgba(255,255,255,.3);
  letter-spacing: .04em;
}

/* ── Sub-footer — brand blue bar ── */
.footer-bottom {
  background: var(--blue);
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-bottom p {
  font-size: .7rem;
  color: rgba(255,255,255,.7);
}
.footer-bottom p:first-child {
  color: rgba(255,255,255,.92);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-main-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  .footer-brand { align-items: center; }
  .footer-right { align-items: center; }
}
@media (max-width: 520px) {
  .footer-bottom-inner {
    height: auto;
    padding: .75rem 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: .2rem;
  }
}

/* ══════════════════════════════════════════════════════
   CAREERS & APPLY PAGES
══════════════════════════════════════════════════════ */

/* ── Why section ── */
.cr-why { background: var(--white); }
.cr-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.cr-why-text {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.cr-why-body {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.78;
  margin: 0;
}

.cr-values {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cr-value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background .15s;
}
.cr-value-item:last-child { border-bottom: none; }
.cr-value-item:hover { background: var(--cream); }
.cr-value-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: .45rem;
}
.cr-value-item strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .25rem;
}
.cr-value-item p {
  font-size: .825rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Listings ── */
.cr-listings { background: var(--cream); }
.cr-listings-header {
  margin-bottom: 2.5rem;
}
.cr-listings-header .section-title {
  margin-top: .25rem;
}

/* Empty state */
.cr-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.cr-empty-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--blue-lt);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cr-empty h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--dark); margin: 0; }
.cr-empty p  { font-size: .875rem; color: var(--muted); max-width: 360px; margin: 0; }

/* Job cards grid */
.cr-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.cr-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: box-shadow .2s, transform .2s;
}
.cr-card:hover {
  box-shadow: 0 10px 36px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.cr-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.cr-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--blue-lt);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cr-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.01em;
  margin: 0 0 .4rem;
}
.cr-card-types {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.cr-type-tag {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  padding: .2rem .55rem;
  border-radius: 50px;
  background: var(--cream);
  color: var(--charcoal);
  border: 1px solid var(--border);
}
.cr-card-overview {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cr-card-actions {
  display: flex;
  gap: .75rem;
  margin-top: auto;
  padding-top: .5rem;
}
.cr-apply-btn  { flex: 1; justify-content: center; white-space: nowrap; }
.cr-detail-btn { flex: 1; justify-content: center; white-space: nowrap; }
@media (max-width: 380px) {
  .cr-card-actions { flex-direction: column; }
  .cr-apply-btn, .cr-detail-btn { width: 100%; }
}

/* ── Apply page ── */
.ap-section { background: var(--cream); }

.ap-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

/* Success state */
.ap-success {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid rgba(74,222,128,.3);
  border-radius: var(--r-lg);
  padding: 2rem;
}
.ap-success-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(74,222,128,.15);
  color: #16a34a;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ap-success h3 { font-family: var(--font-display); font-weight: 800; margin: 0 0 .4rem; color: var(--dark); }
.ap-success p  { font-size: .875rem; color: var(--muted); margin: 0 0 .75rem; }

/* Error banner */
.ap-error-banner {
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.25);
  color: #dc2626;
  border-radius: var(--r-md);
  padding: .875rem 1rem;
  font-size: .875rem;
  margin-bottom: 1.5rem;
}

/* Form wrapper */
.ap-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.25rem;
}
.ap-form-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.ap-form-header h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--dark);
  margin: 0 0 .4rem;
}
.ap-form-header p {
  font-size: .82rem;
  color: var(--muted);
  margin: 0;
}
.ap-req { color: #dc2626; }

/* Form layout */
.ap-row { margin-bottom: 1.25rem; }
.ap-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ap-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.ap-field label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--charcoal);
}
.ap-field input,
.ap-field select,
.ap-field textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.ap-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.5rem;
}
.ap-field textarea { resize: vertical; min-height: 120px; }
.ap-field input:focus,
.ap-field select:focus,
.ap-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(77,122,176,.12);
}
.ap-field-note {
  font-size: .75rem;
  color: var(--muted);
  margin: .25rem 0 0;
}

/* File upload */
.ap-file-wrap { position: relative; }
.ap-file-wrap input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  width: 100%;
  height: 100%;
}
.ap-file-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: .875rem;
  color: var(--muted);
  transition: border-color .15s, background .15s;
  background: var(--cream);
}
.ap-file-wrap:hover .ap-file-label,
.ap-file-wrap.has-file .ap-file-label {
  border-color: var(--blue);
  background: var(--blue-lt);
  color: var(--blue);
}

/* Submit row */
.ap-form-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: .5rem;
  flex-wrap: wrap;
}
.ap-submit {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 180px;
  justify-content: center;
}
.ap-submit-spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ap-disclaimer {
  font-size: .75rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
  min-width: 200px;
}

/* Sidebar */
.ap-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.ap-sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.ap-sidebar-card h4 {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
}
.ap-sidebar-card p {
  font-size: .82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.ap-sidebar-muted { font-size: .82rem; color: var(--muted); }
.ap-pos-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin: 0;
}
.ap-pos-list a {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: .45rem .6rem;
  border-radius: var(--r-sm);
  transition: background .15s, color .15s;
}
.ap-pos-list a:hover,
.ap-pos-list a.active {
  background: var(--blue-lt);
  color: var(--blue);
}
.ap-back-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: .25rem;
}
.ap-back-link:hover { text-decoration: underline; }
.ap-contact-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: .35rem 0;
  transition: color .15s;
}
.ap-contact-row:hover { color: var(--blue); }

/* Responsive */
@media (max-width: 900px) {
  .cr-why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ap-grid { grid-template-columns: 1fr; }
  .ap-sidebar { position: static; }
}
@media (max-width: 600px) {
  .ap-row-2 { grid-template-columns: 1fr; }
  .ap-form-wrap { padding: 1.5rem; }
  .cr-cards { grid-template-columns: 1fr; }
  .cr-listings-header { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════════════ */

.ct-section { background: var(--cream); }

.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* ── Left: info panel ── */
.ct-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.ct-intro-body {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.78;
  margin: 0;
}

/* Primary contact items — phone & email */
.ct-primaries {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.ct-primary-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.ct-primary-item:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 24px rgba(77,122,176,.1);
  transform: translateX(4px);
}
.ct-primary-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--blue-lt);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .18s;
}
.ct-primary-item:hover .ct-primary-icon {
  background: var(--blue);
  color: var(--white);
}
.ct-primary-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.ct-primary-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
.ct-primary-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.01em;
}
.ct-primary-arrow {
  color: var(--muted);
  flex-shrink: 0;
  transition: color .18s, transform .18s;
}
.ct-primary-item:hover .ct-primary-arrow {
  color: var(--blue);
  transform: translateX(3px);
}

/* Address & secondary details */
.ct-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  background: #0f1e2e;
  border-radius: var(--r-lg);
}
.ct-detail-item {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
}
.ct-detail-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.08);
  color: var(--gold-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}
.ct-detail-label {
  display: block;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.35);
  margin-bottom: .2rem;
}
.ct-detail-value {
  display: block;
  font-size: .88rem;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
}
.ct-inline-link {
  display: block;
  color: var(--gold-mid);
  font-weight: 600;
  margin-top: .2rem;
  font-size: .82rem;
}
.ct-inline-link:hover { text-decoration: underline; }

/* ── Right: form ── */
.ct-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.ct-form-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.ct-form-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--dark);
  margin: 0 0 .35rem;
  letter-spacing: -.01em;
}
.ct-form-header p {
  font-size: .82rem;
  color: var(--muted);
  margin: 0;
}
.ct-form-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: .25rem;
  flex-wrap: wrap;
}
.ct-submit { min-width: 160px; justify-content: center; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .ct-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .ct-form-wrap { position: static; }
}
@media (max-width: 480px) {
  .ct-form-wrap { padding: 1.5rem; }
  .ct-primary-value { font-size: .92rem; }
}

/* ── Grain bid summary card ── */
.gb-bid-summary {
  margin-bottom: 1.25rem;
  border: 1.5px solid var(--blue);
  border-radius: var(--r-lg);
  overflow: hidden;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.gb-bid-summary-inner {
  padding: 1.25rem 1.5rem;
  background: var(--blue-lt);
}
.gb-bid-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .35rem 0;
  border-bottom: 1px solid rgba(77,122,176,.15);
}
.gb-bid-row:last-of-type { border-bottom: none; }
.gb-bid-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
}
.gb-bid-val {
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
}
.gb-bid-note {
  font-size: .75rem;
  color: var(--muted);
  margin: .75rem 0 0;
  line-height: 1.55;
}
.gb-bid-note a { color: var(--blue); font-weight: 600; }
.gb-price-loading {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 500;
  font-style: italic;
}

/* ══════════════════════════════════════════════════════
   CAREER DETAIL PAGE
══════════════════════════════════════════════════════ */

.cd-page { background: var(--cream); }

.cd-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

/* ── Main content ── */
.cd-types {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 2rem;
}

.cd-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 2.25rem;
  margin-bottom: 1.25rem;
}
.cd-block h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.01em;
  margin: 0 0 1.1rem;
  padding-bottom: .875rem;
  border-bottom: 1px solid var(--border);
}
.cd-block p {
  font-size: .9rem;
  color: var(--charcoal);
  line-height: 1.78;
  margin: 0;
}

/* Responsibility list */
.cd-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin: 0;
}
.cd-list li {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  font-size: .875rem;
  color: var(--charcoal);
  line-height: 1.65;
}
.cd-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: .52rem;
}

/* Skills list — slightly different treatment */
.cd-list-skills li::before {
  background: var(--gold);
}

.cd-back {
  margin-top: .5rem;
}
.cd-back a {
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue);
}
.cd-back a:hover { text-decoration: underline; }

/* ── Sidebar ── */
.cd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.cd-sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.cd-sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
  letter-spacing: -.01em;
}
.cd-sidebar-card h4 {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
}
.cd-sidebar-card p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.cd-apply-card {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--blue-lt) 0%, var(--white) 60%);
}
.cd-apply-btn {
  width: 100%;
  justify-content: center;
}
.cd-sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: .25rem 0;
}
.cd-sidebar-or {
  font-size: .72rem !important;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700 !important;
  color: var(--muted) !important;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .cd-grid {
    grid-template-columns: 1fr;
  }
  .cd-sidebar {
    position: static;
    /* Move sidebar above content on mobile */
    order: -1;
  }
  .cd-apply-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem; }
  .cd-apply-card h3 { flex: 1 0 100%; }
  .cd-apply-card p  { flex: 1; margin: 0; }
  .cd-apply-btn { width: auto; }
  .cd-sidebar-divider, .cd-sidebar-or { display: none; }
}

/* ══════════════════════════════════════════════════════
   HISTORY PAGE
══════════════════════════════════════════════════════ */

/* ── Intro stat bar ── */
.ht-intro { background: #0f1e2e; }
.ht-intro-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.ht-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: 0 3.5rem;
  text-align: center;
}
.ht-stat-n {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1;
}
.ht-stat-l {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  max-width: 160px;
  line-height: 1.45;
}
.ht-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

/* ── Timeline section ── */
.ht-section {
  background: var(--cream);
  padding: 5rem 0 6rem;
}

/* ── Era block ── */
.ht-era-block {
  margin-bottom: 1.5rem;
}
.ht-era-block:last-of-type { margin-bottom: 3rem; }

/* Era label — sits above each block like a chapter heading */
.ht-era-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.ht-era-label::before,
.ht-era-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.ht-era-label span {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--blue);
  white-space: nowrap;
  padding: 0 .25rem;
}

/* ── Two-column grid ── */
.ht-era-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  min-height: 380px;
}
/* Photo always on the correct side */
.ht-era-grid.photo-left  { }
.ht-era-grid.photo-right .ht-photo-panel { order: 2; }
.ht-era-grid.photo-right .ht-events-stack { order: 1; }

/* ── Photo panel ── */
.ht-photo-panel {
  position: relative;
  overflow: hidden;
  background-color: var(--dark);
  min-height: 340px;
}
.ht-photo-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  transition: transform .7s ease;
}
.ht-era-block:hover .ht-photo-panel::before {
  transform: scale(1.04);
}
.ht-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8,12,22,.45) 0%,
    rgba(8,12,22,.15) 100%
  );
  z-index: 1;
}
.ht-photo-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
}

/* ── Events stack ── */
.ht-events-stack {
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.25rem 2.5rem;
  gap: 0;
}

.ht-event {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 1.25rem;
  align-items: start;
}

.ht-event-year {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -.01em;
  padding-top: .15rem;
  line-height: 1.3;
  text-align: right;
}

.ht-event-content h3 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.01em;
  margin: 0 0 .35rem;
  line-height: 1.25;
}
.ht-event-content p {
  font-size: .825rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.ht-event-content p em {
  font-style: normal;
  font-weight: 700;
  color: var(--charcoal);
}

.ht-event-divider {
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0 1.25rem 5.25rem; /* indent to align with text, not year */
}

/* ── End cap ── */
.ht-end-cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.ht-end-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(77,122,176,.15), 0 0 0 10px rgba(77,122,176,.06);
}
.ht-end-cap p {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .ht-era-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .ht-photo-panel {
    min-height: 260px;
  }
  .ht-era-grid.photo-right .ht-photo-panel { order: 1; }
  .ht-era-grid.photo-right .ht-events-stack { order: 2; }
  .ht-events-stack { padding: 1.75rem; }
  .ht-stat { padding: 0 1.5rem; }
  .ht-divider { display: none; }
}
@media (max-width: 480px) {
  .ht-event { grid-template-columns: 56px 1fr; gap: 0 .875rem; }
  .ht-event-divider { margin-left: 4.25rem; }
  .ht-events-stack { padding: 1.25rem; }
}

/* ══════════════════════════════════════════════════════
   GRAIN PRICING PAGE
══════════════════════════════════════════════════════ */

/* ── Intro bar ── */
.gp-intro-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
.gp-intro-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.gp-intro-left {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  color: var(--muted);
}
.gp-intro-right {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
}
.gp-fx-label {
  text-transform: uppercase;
  font-size: .65rem;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--muted);
}
.gp-fx-rate {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .92rem;
  color: var(--dark);
}
.gp-last-updated {
  font-size: .72rem;
  color: var(--muted);
  padding-left: .75rem;
  border-left: 1px solid var(--border);
}

/* ── Page wrapper ── */
.gp-page {
  background: var(--cream);
  padding: 3rem 0 5rem;
}

/* ── Each crop section ── */
.gp-crop-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}
.gp-crop-section:last-child { margin-bottom: 0; }

/* ── Crop header ── */
.gp-crop-header {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0 1.75rem;
  align-items: center;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, var(--cream) 0%, var(--white) 60%);
}

.gp-crop-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gp-crop-icon .crop-icon {
  width: 38px;
  height: 48px;
}

/* Per-crop icon tints — reuse existing variables */
#gp-corn     .gp-crop-icon { background: rgba(196,149,53,.1);  }
#gp-corn     .crop-icon    { color: #b8860b; }
#gp-soybeans .gp-crop-icon { background: rgba(77,122,176,.1);  }
#gp-soybeans .crop-icon    { color: var(--blue); }
#gp-wheat    .gp-crop-icon { background: rgba(180,140,60,.12); }
#gp-wheat    .crop-icon    { color: #a0782a; }
#gp-rye      .gp-crop-icon { background: rgba(90,110,80,.12);  }
#gp-rye      .crop-icon    { color: #5a6e50; }

.gp-crop-title-block {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.gp-crop-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -.02em;
  margin: 0;
}
.gp-crop-sub {
  font-size: .8rem;
  color: var(--muted);
  margin: 0;
}

/* Headline price — right side */
.gp-crop-headline {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .25rem;
}
.gp-live-tag, .gp-manual-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .2rem .55rem;
  border-radius: 50px;
}
.gp-live-tag {
  background: rgba(74,222,128,.12);
  color: #16a34a;
  border: 1px solid rgba(74,222,128,.3);
}
.gp-manual-tag {
  background: rgba(77,122,176,.1);
  color: var(--blue);
  border: 1px solid rgba(77,122,176,.25);
}
.pulse-dot.small { width: 5px; height: 5px; }

.gp-headline-price {
  display: flex;
  align-items: baseline;
  gap: .35rem;
}
.gp-headline-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -.03em;
  line-height: 1;
  transition: color .3s;
}
.gp-headline-num.loaded { color: var(--blue); }
.gp-headline-currency {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.gp-headline-usd {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 500;
  min-height: 1.2em;
}

/* ── Table ── */
.gp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.gp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.gp-table thead tr {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.gp-table th {
  padding: .85rem 1.25rem .85rem 2rem;
  text-align: left;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  white-space: nowrap;
}
.gp-table th:not(:first-child) { text-align: right; }
.gp-th-note {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  opacity: .7;
}
.gp-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.gp-table tbody tr:last-child { border-bottom: none; }
.gp-table tbody tr:hover { background: var(--cream); }

.gp-row-top td { font-weight: 600; }

.gp-table td {
  padding: 1rem 1.25rem 1rem 2rem;
  color: var(--charcoal);
  vertical-align: middle;
}
.gp-table td:not(:first-child) { text-align: right; }

/* Label cell */
.gp-td-label {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.gp-best-badge {
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: var(--blue);
  color: var(--white);
  padding: .18rem .5rem;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Basis colouring */
.gp-basis-val.positive { color: #16a34a; }
.gp-basis-val.negative { color: #dc2626; }

/* Live cell values */
.gp-cell-val { color: var(--muted); }
.gp-cell-val.loaded { color: var(--charcoal); }
.gp-cell-val.error  { color: var(--muted); }

.gp-cad-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  color: var(--muted);
  transition: color .3s;
}
.gp-cad-val.loaded { color: var(--dark); }

/* ── Crop footer ── */
.gp-crop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.gp-crop-footer p {
  font-size: .75rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.gp-contact-link {
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
}
.gp-contact-link:hover { text-decoration: underline; }

/* ── Disclaimer & CTA ── */
.gp-disclaimer-section { background: var(--white); border-top: 1px solid var(--border); }
.gp-disclaimer-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.gp-disclaimer-text h4,
.gp-cta-box h4 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .5rem;
}
.gp-disclaimer-text p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.72;
}
.gp-cta-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.gp-cta-box p { font-size: .82rem; color: var(--muted); margin: 0; }
.gp-phone-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: .25rem;
}
.gp-phone-link:hover { color: var(--blue); }

/* ── Lock a Bid button column ── */
.gp-th-bid  { width: 110px; }
.gp-td-bid  { text-align: right; padding-right: 1.25rem; }
.gp-bid-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .875rem;
  background: var(--blue);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  border-radius: 50px;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}
.gp-bid-btn:hover { background: var(--blue-dk); transform: translateY(-1px); }


/* ── Responsive ── */
@media (max-width: 900px) {
  .gp-crop-header { grid-template-columns: 56px 1fr; gap: 1rem; }
  .gp-crop-headline { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-top: .75rem; border-top: 1px solid var(--border); }
  .gp-headline-price { flex-direction: row; align-items: baseline; }
  .gp-headline-num { font-size: 1.5rem; }
  .gp-table th, .gp-table td { padding-left: 1rem; }
  .gp-disclaimer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gp-crop-header { padding: 1.25rem; gap: .75rem 1.25rem; }
  .gp-crop-footer { flex-direction: column; align-items: flex-start; }
  .gp-table { font-size: .8rem; }
  .gp-td-label { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════════════ */

/* ── Intro section ── */
.about-intro { background: var(--white); }

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about-intro-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.about-intro-text .section-eyebrow { margin-bottom: 0; }
.about-intro-text .section-title { margin: 0; }

.about-lead {
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.78;
  margin: 0;
}
.about-body {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.78;
  margin: 0;
}

/* Stat row */
.about-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  margin-top: .5rem;
}
.about-stat {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.about-stat-n {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -.02em;
  line-height: 1;
}
.about-stat-l {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* Image */
.about-intro-image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 24px 64px rgba(0,0,0,.12);
}
.about-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.about-intro-image:hover img { transform: scale(1.03); }
.about-intro-image-caption {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  padding: .3rem .65rem;
  border-radius: 50px;
}

@media (max-width: 900px) {
  .about-intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-intro-image { max-width: 560px; }
}

/* ── Mission & Vision — dark band ── */
.about-mv {
  background: #0f1e2e;
  color: var(--white);
}
.about-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 5rem;
  align-items: start;
}
.about-mv-divider {
  background: rgba(255,255,255,.1);
  height: 100%;
  min-height: 160px;
  align-self: stretch;
}
.about-mv-item {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.about-mv-num {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--gold-mid);
  text-transform: uppercase;
}
.about-mv-item h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.01em;
  line-height: 1.15;
  margin: 0;
}
.about-mv-item p {
  font-size: .925rem;
  color: rgba(255,255,255,.58);
  line-height: 1.82;
  margin: 0;
}
@media (max-width: 768px) {
  .about-mv-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-mv-divider { display: none; }
}

/* ── Goals ── */
.about-goals { background: var(--cream); }
.about-goals-header {
  text-align: center;
  max-width: 500px;
  margin: 0 auto 4rem;
}
.about-goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.about-goal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.about-goal-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  transform: translateY(-3px);
}
/* Subtle top accent line */
.about-goal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold-mid));
  opacity: 0;
  transition: opacity .25s;
}
.about-goal-card:hover::before { opacity: 1; }

.about-goal-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--blue-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.about-goal-num {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
}
.about-goal-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.01em;
  line-height: 1.3;
  margin: 0;
}
.about-goal-card p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.72;
  margin: 0;
}
@media (max-width: 768px) {
  .about-goals-grid { grid-template-columns: 1fr; }
}

/* ── Photo slider — multi-image ── */
.about-slider { background: var(--cream); padding-top: 0; }

.farm-slider {
  position: relative;
  user-select: none;
}

/* Overflow wrapper — clips the track, allows peek on right */
.farm-slider-viewport {
  overflow: hidden;
  border-radius: var(--r-lg);
}

/* Sliding track */
.farm-slider-track {
  display: flex;
  gap: .75rem;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.farm-slide {
  flex: 0 0 calc((100% - 1.5rem) / 3 - .25rem);  /* 3 visible + peek */
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
}
.farm-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .55s ease;
}
.farm-slide:hover img { transform: scale(1.04); }

/* Controls row below the slider */
.farm-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
}

.farm-slider-dots {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, width .25s, border-radius .25s;
}
.slider-dot.active {
  width: 22px;
  border-radius: 3px;
  background: var(--blue);
}

.farm-slider-arrows {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.farm-slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s, transform .15s;
}
.farm-slider-btn:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  transform: scale(1.06);
}
.farm-slider-btn:disabled {
  opacity: .35;
  cursor: default;
  transform: none;
}

@media (max-width: 900px) {
  /* 2 visible on tablet */
  .farm-slide { flex: 0 0 calc((100% - .75rem) / 2 - .375rem); }
}
@media (max-width: 560px) {
  /* 1.2 visible on mobile — hint at next */
  .farm-slide { flex: 0 0 85%; aspect-ratio: 4/3; }
  .farm-slider-viewport { border-radius: var(--r-md); }
}

/* Also add .btn-secondary since we reference it on this page */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--charcoal);
  background: transparent;
  transition: border-color .18s, color .18s, background .18s;
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-lt);
}

/* ══════════════════════════════════════════════════════
   PRIVATE PAGE
══════════════════════════════════════════════════════ */
.private-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: var(--dark);
}
.private-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  width: 100%; max-width: 360px;
  text-align: center;
}
.private-card h1 { font-size: 1.25rem; margin-bottom: .5rem; }
.private-card p  { font-size: .875rem; color: var(--mid); margin-bottom: 1.5rem; }
.private-card input { margin-bottom: 1rem; }
.private-card button {
  width: 100%; padding: .65rem;
  background: var(--dark); color: var(--white);
  border-radius: var(--r-sm); font-weight: 600;
}
.private-error { color: #c0392b; font-size: .8rem; margin-top: .5rem; }

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grain-cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid  { grid-template-columns: 1fr; gap: 3rem; }
  .about-media { max-width: 560px; margin: 0 auto; }
  .about-content { padding-right: 0; }
  .about-stat-badge { right: .5rem; bottom: .5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --nav-h: 72px; }
  .nav-logo-img { height: 44px; }
  .grain-cards { grid-template-columns: 1fr; }
  .grain-strip-items { gap: 1rem; overflow-x: auto; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .cta-strip-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════
   ADMIN BAR OFFSET
══════════════════════════════════════════════════════ */
body.has-admin-bar { padding-top: 40px; }
body.has-admin-bar .site-nav { top: 40px; }

/* ── reCAPTCHA badge z-index fix ── */
.grecaptcha-badge {
  z-index: 1001 !important;
}
