/* ==========================================================================
   Comfort Ngoo Legacy Incorporated
   styles.css

   Contents
   1.  Design tokens
   2.  Reset and base
   3.  Layout helpers
   4.  Typography and section furniture
   5.  Buttons
   6.  Announcement bar, header, navigation
   7.  Hero
   8.  Legacy
   9.  Cards, grids, priorities
   10. Farm development timeline
   11. Heritage (deep green band)
   12. Leadership, partnerships, impact
   13. Contact and form
   14. Footer and back-to-top
   15. Reveal animation
   16. Responsive
   17. Print
   ========================================================================== */


/* 1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Palette */
  --green-deep:    #083C2A;
  --green-dark:    #062E21;
  --gold:          #D6A33A;
  --gold-burnish:  #B77A20;
  /* Darker burnished gold reserved for small text on light backgrounds,
     so the eyebrow and label type clears WCAG AA contrast. */
  --gold-ink:      #8A5A12;
  --red:           #A72B18;
  --cream:         #F8F1E3;
  --parchment:     #EFE2C7;
  --charcoal:      #27231F;

  /* Derived tones */
  --ink:           var(--charcoal);
  --ink-soft:      #55504A;
  --ink-onDark:    #F3EAD7;
  --ink-onDarkSoft:#C9D6CB;
  --rule:          rgba(8, 60, 42, 0.16);
  --rule-onDark:   rgba(214, 163, 58, 0.30);
  --card-bg:       #FFFDF7;

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing and shape */
  --container: 1160px;
  --container-narrow: 820px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 14px;
  --radius-lg: 22px;

  /* Shadows — kept soft, never harsh */
  --shadow-sm: 0 2px 6px rgba(8, 60, 42, 0.06);
  --shadow:    0 10px 30px -14px rgba(8, 60, 42, 0.28);
  --shadow-lg: 0 24px 60px -28px rgba(8, 60, 42, 0.42);

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


/* 2. RESET AND BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Keeps anchored sections clear of the sticky header */
  scroll-padding-top: 6.5rem;
  -webkit-text-size-adjust: 100%;
  /* The off-canvas menu parks beyond the right edge; clip it so it never
     creates a horizontal scrollbar. "clip" is preferred because, unlike
     "hidden", it does not turn the element into a scroll container. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

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

a { color: var(--green-deep); text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--green-deep);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* Visible focus for every interactive element */
:focus-visible {
  outline: 3px solid var(--gold-burnish);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 999;
  background: var(--green-deep); color: var(--cream);
  padding: 0.75rem 1.25rem; border-radius: 0 0 10px 10px;
  font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }


/* 3. LAYOUT HELPERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

/* Background variants only — no padding here, so nothing cancels out */
.section--parchment { background: var(--parchment); }

.section--deep {
  background: var(--green-deep);
  color: var(--ink-onDark);
}
.section--deep h2,
.section--deep h3 { color: var(--cream); }

/* Faint paper grain over the two solid bands, so they don't read as flat blocks */
.section--parchment::before,
.section--deep::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,0.5) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,0.04) 0 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
}
.section--deep::before { opacity: 0.35; }
.section > .container { position: relative; z-index: 1; }


/* 4. TYPOGRAPHY AND SECTION FURNITURE
   ========================================================================== */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 0.9rem;
}
.eyebrow--light { color: var(--gold); }

.section__head {
  max-width: 62ch;
  margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;
}

.section__title {
  font-size: clamp(2rem, 1.3rem + 2.9vw, 3.15rem);
  font-weight: 500;
  margin-bottom: 0.4em;
}

.section__lede {
  font-size: clamp(1.03rem, 1rem + 0.3vw, 1.18rem);
  color: var(--ink-soft);
  margin: 0;
}
.section__head--light .section__lede { color: var(--ink-onDarkSoft); }

/* Signature motif: the crest's root system, redrawn as a section rule */
.rootrule {
  display: block;
  width: clamp(150px, 22vw, 220px);
  height: auto;
  margin: 1.6rem auto 0;
  fill: none;
  stroke: var(--gold-burnish);
  stroke-width: 1.1;
  stroke-linecap: round;
  opacity: 0.85;
}

.note {
  margin: 2.5rem auto 0;
  max-width: 58ch;
  text-align: center;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
}

.link {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
}
.link:hover { color: var(--gold-ink); }

.section--deep .link { color: var(--gold); }
.section--deep .link:hover { color: var(--cream); }
.link--onlight { color: var(--green-deep) !important; }


/* 5. BUTTONS
   ========================================================================== */
.btn {
  --btn-py: 0.85rem;
  --btn-px: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-py) var(--btn-px);
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              color 0.18s var(--ease), border-color 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--green {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--cream);
  box-shadow: var(--shadow);
}
.btn--green:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #3A2A08;
  box-shadow: var(--shadow-sm);
}
.btn--gold:hover { background: var(--gold-burnish); border-color: var(--gold-burnish); color: #FFF8E8; }

.btn--outline {
  background: transparent;
  border-color: var(--green-deep);
  color: var(--green-deep);
}
.btn--outline:hover { background: var(--green-deep); color: var(--cream); }

.btn--sm { --btn-py: 0.55rem; --btn-px: 1.1rem; font-size: 0.85rem; }
.btn--lg { --btn-py: 1rem;    --btn-px: 2.2rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.cta { text-align: center; margin-top: clamp(2.25rem, 4vw, 3rem); }


/* 6. ANNOUNCEMENT BAR, HEADER, NAVIGATION
   ========================================================================== */
.announce {
  background: var(--green-dark);
  color: var(--parchment);
  text-align: center;
}
.announce__text {
  margin: 0;
  padding: 0.6rem var(--gutter);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 241, 227, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.25s var(--ease);
}
.header.is-stuck { box-shadow: 0 6px 24px -16px rgba(8, 60, 42, 0.55); }

.header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.6rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand__mark { width: 46px; height: auto; }

.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: 0.005em;
}
.brand__sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.5rem);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__link:hover { color: var(--green-deep); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--green-deep); font-weight: 600; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
  cursor: pointer;
}
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars span {
  display: block;
  height: 1.8px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(6, 46, 33, 0.45);
  backdrop-filter: blur(2px);
}


/* 7. HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
  background:
    linear-gradient(180deg, #FDF9F0 0%, var(--cream) 42%, var(--parchment) 100%);
  text-align: center;
}

/* Sunrise rays behind the crest — the crest's own sunburst, extended into the page */
.hero__rays {
  position: absolute;
  top: -14%;
  left: 50%;
  width: min(1500px, 165vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background:
    repeating-conic-gradient(from 0deg at 50% 50%,
      rgba(214, 163, 58, 0.16) 0deg 1.6deg,
      transparent 1.6deg 6deg);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 12%, rgba(0,0,0,0.55) 34%, transparent 62%);
          mask-image: radial-gradient(circle at 50% 42%, #000 12%, rgba(0,0,0,0.55) 34%, transparent 62%);
  pointer-events: none;
}

/* Soft cultivated-field bands along the bottom edge */
.hero__fields {
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  pointer-events: none;
  background:
    repeating-linear-gradient(96deg,
      rgba(8, 60, 42, 0.055) 0 3px,
      transparent 3px 22px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 85%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 85%);
}

.hero__inner { position: relative; z-index: 1; }

.hero__logo {
  width: clamp(230px, 34vw, 420px);
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  filter: drop-shadow(0 18px 34px rgba(8, 60, 42, 0.22));
}

.hero__title {
  font-size: clamp(2.35rem, 1.4rem + 4.2vw, 4.4rem);
  font-weight: 500;
  line-height: 1.06;
  margin: 0 0 0.55em;
  color: var(--green-deep);
}

.hero__lede {
  max-width: 62ch;
  margin: 0 auto;
  font-size: clamp(1.05rem, 1rem + 0.45vw, 1.24rem);
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: clamp(1.8rem, 3.5vw, 2.5rem);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(2.25rem, 4.5vw, 3.25rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  max-width: 640px;
  margin-inline: auto;
}
.trust__item {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.trust__item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}


/* 8. LEGACY
   ========================================================================== */
.legacy__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  max-width: 1040px;
  margin-inline: auto;
}

.legacy__body p {
  font-size: clamp(1.02rem, 1rem + 0.25vw, 1.12rem);
  color: var(--ink);
}
.legacy__body p:first-child::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.7em;
  line-height: 0.82;
  font-weight: 600;
  color: var(--green-deep);
  padding: 0.06em 0.1em 0 0;
}

.quote {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--red);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow);
  text-align: center;
}
.quote__text { margin: 0; }
.quote__text p {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.1rem + 1.3vw, 1.95rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.32;
  color: var(--green-deep);
  margin: 0;
}
.quote__meta {
  margin: 1.25rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}


/* 9. CARDS, GRIDS, PRIORITIES
   ========================================================================== */
.grid { display: grid; gap: clamp(1.15rem, 2.2vw, 1.75rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card-bg);
  border: 1px solid rgba(8, 60, 42, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card__title {
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.42rem);
  font-weight: 600;
  margin-bottom: 0.35em;
}
.card__text { color: var(--ink-soft); margin: 0; }

.card__role {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 0.9rem;
}

/* Mission / Vision pair */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 1000px;
  margin-inline: auto;
}
.card--pillar {
  padding: clamp(2rem, 3.5vw, 2.9rem);
  border-top: 3px solid var(--gold);
}
.card__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem);
  font-weight: 600;
  color: var(--green-deep);
  margin: 0 0 0.7rem;
}
.card__lead {
  font-size: clamp(1.02rem, 1rem + 0.25vw, 1.12rem);
  color: var(--ink);
  margin: 0;
}

.card--person { border-top: 3px solid var(--rule); }
.card--person:hover { border-top-color: var(--gold); }

/* Line icons */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: rgba(214, 163, 58, 0.14);
  color: var(--green-deep);
}
.icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* 10. FARM DEVELOPMENT TIMELINE
   ==========================================================================
   Built as a taproot descending the page, matching the roots in the crest. */
.phases {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  padding-left: clamp(2.25rem, 5vw, 3.25rem);
}
.phases::before {
  content: "";
  position: absolute;
  left: clamp(0.6rem, 1.4vw, 0.95rem);
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: linear-gradient(180deg,
    var(--gold) 0%,
    var(--gold-burnish) 60%,
    rgba(183, 122, 32, 0.15) 100%);
  border-radius: 2px;
}

.phase { position: relative; padding-bottom: clamp(2rem, 4vw, 3rem); }
.phase:last-child { padding-bottom: 0; }

.phase__node {
  position: absolute;
  left: calc(clamp(0.6rem, 1.4vw, 0.95rem) - clamp(2.25rem, 5vw, 3.25rem) - 6px);
  top: 0.55rem;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(214, 163, 58, 0.16);
}

.phase__body {
  background: var(--card-bg);
  border: 1px solid rgba(8, 60, 42, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.8vw, 2.1rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.phase__body:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.phase__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 0.4rem;
}
.phase__title {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 0.85em;
}

.ticks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
}
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-burnish);
}


/* 11. HERITAGE BAND
   ========================================================================== */
.heritage__text {
  max-width: 68ch;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  color: var(--ink-onDark);
}

.commitments {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 900px;
  margin-inline: auto;
}
.commitment {
  position: relative;
  padding: 1.25rem 1.5rem 1.25rem 3.4rem;
  background: rgba(255, 253, 247, 0.06);
  border: 1px solid var(--rule-onDark);
  border-radius: var(--radius);
  color: var(--cream);
  font-weight: 500;
}
.commitment::before {
  content: "";
  position: absolute;
  left: 1.3rem; top: 1.55rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(214, 163, 58, 0.2);
}


/* 12. PARTNERSHIPS AND IMPACT
   ========================================================================== */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  max-width: 900px;
  margin-inline: auto;
}
.tag {
  background: var(--card-bg);
  border: 1px solid rgba(8, 60, 42, 0.12);
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--green-deep);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.tag:hover { border-color: var(--gold); transform: translateY(-2px); }

.goal {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border-bottom: 3px solid var(--gold);
  padding: clamp(1.75rem, 3vw, 2.4rem) clamp(1.4rem, 2.4vw, 1.9rem);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.goal:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.goal__title {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 500;
  margin: 0;
  line-height: 1.25;
}


/* 13. CONTACT AND FORM
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}

.contact__subtitle {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6rem;
}
.contact__aside > *:not(:last-child) { margin-bottom: 1.9rem; }
.contact__address {
  font-style: normal;
  font-size: 1.08rem;
  color: var(--cream);
  line-height: 1.75;
}
.contact__note { color: var(--ink-onDarkSoft); margin: 0; }

.form {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.2vw, 2.6rem);
  box-shadow: var(--shadow-lg);
}

.field { margin-bottom: 1.15rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.field__label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green-deep);
  margin-bottom: 0.4rem;
}
.req { color: var(--red); }

.field__input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #FFFDF7;
  border: 1.5px solid rgba(8, 60, 42, 0.18);
  border-radius: 10px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field__input:hover { border-color: rgba(8, 60, 42, 0.34); }
.field__input:focus {
  outline: none;
  border-color: var(--gold-burnish);
  box-shadow: 0 0 0 3px rgba(214, 163, 58, 0.24);
}
.field__textarea { resize: vertical; min-height: 130px; }

.field__select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23083C2A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 17px;
}

/* Error state */
.field__input.is-invalid {
  border-color: var(--red);
  background: #FFF7F5;
}
.field__error {
  min-height: 0;
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--red);
}

.form__hint {
  margin: 1rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  text-align: center;
}

.form__success {
  margin-top: 1.4rem;
  padding: 1.25rem 1.4rem;
  background: rgba(8, 60, 42, 0.07);
  border: 1.5px solid var(--green-deep);
  border-radius: var(--radius);
}
.form__success-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--green-deep);
  margin: 0 0 0.35rem;
}
.form__success-text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}


/* 14. FOOTER AND BACK TO TOP
   ========================================================================== */
.footer {
  background: var(--green-dark);
  color: var(--ink-onDarkSoft);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer__mark { width: 74px; margin-bottom: 1.1rem; }
.footer__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 0.3rem;
}
.footer__tagline {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}
.footer__place { margin: 0; font-size: 0.95rem; }

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}
.footer__list li { margin-bottom: 0.6rem; }
.footer__link {
  color: var(--ink-onDarkSoft);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.18s var(--ease);
}
.footer__link:hover { color: var(--gold); text-decoration: underline; }

.footer__base {
  border-top: 1px solid var(--rule-onDark);
  padding-block: 1.4rem;
}
.footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
}
.footer__base-inner p { margin: 0; }
.footer__motto { font-style: italic; color: var(--gold); }

.totop {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--green-deep);
  color: var(--cream);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.2s var(--ease);
}
.totop.is-visible { opacity: 1; transform: translateY(0); }
.totop:hover { background: var(--gold-burnish); }
.totop svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}


/* 15. REVEAL ANIMATION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* If JavaScript never runs, nothing should stay invisible */
.no-js .reveal { opacity: 1; transform: none; }


/* 16. RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__list { gap: 0.85rem; }
  .nav__link { font-size: 0.86rem; }
  .brand__name { font-size: 1.05rem; }
}

@media (max-width: 940px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .legacy__grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

/* Mobile navigation */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    z-index: 96;
    width: min(340px, 86vw);
    height: 100dvh;
    padding: 5.5rem 1.75rem 2rem;
    background: var(--cream);
    border-left: 1px solid var(--rule);
    box-shadow: -18px 0 50px -30px rgba(8, 60, 42, 0.7);
    overflow-y: auto;
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 0.32s var(--ease), visibility 0.32s var(--ease);
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__list li { border-bottom: 1px solid var(--rule); }
  .nav__list li.nav__cta-item { border-bottom: 0; margin-top: 1.5rem; }

  .nav__link {
    display: block;
    padding: 0.95rem 0;
    font-size: 1.05rem;
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--gold-ink); }

  .nav__cta-item .btn { width: 100%; --btn-py: 0.85rem; font-size: 0.95rem; }

  /* Stops the page scrolling behind the open menu */
  body.nav-open { overflow: hidden; }
}

@media (max-width: 800px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .commitments { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .goal { min-height: 0; }
  .legacy__body p:first-child::first-letter { font-size: 3.1em; }
  .footer__base-inner { flex-direction: column; }
}

/* Motion preferences honoured everywhere */
@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;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .goal:hover, .tag:hover, .phase__body:hover { transform: none; }
}


/* 17. PRINT
   ========================================================================== */
@media print {
  .announce,
  .header,
  .nav-scrim,
  .totop,
  .hero__rays,
  .hero__fields,
  .hero__actions,
  .form,
  .skip-link { display: none !important; }

  body { background: #fff; color: #000; font-size: 11pt; }

  .section,
  .hero { padding-block: 1.2cm; break-inside: avoid; }
  .section--deep { background: #fff !important; color: #000 !important; }
  .section--deep h2, .section--deep h3,
  .commitment, .contact__address, .heritage__text { color: #000 !important; }
  .section--parchment::before, .section--deep::before { display: none; }

  .card, .goal, .phase__body, .quote, .commitment {
    box-shadow: none !important;
    border: 1px solid #999 !important;
    break-inside: avoid;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__logo { width: 6cm; }

  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* ==========================================================================
   18. NEW SECTIONS — Stats, Master Plan, Timeline, Our Land, School,
       Vision 2040, Get Involved, Story
   ========================================================================== */

/* Impact stats */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.stat {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2vw, 1.8rem) 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--rule);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat__icon { font-size: 2rem; display: block; margin-bottom: 0.4rem; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1;
  margin-bottom: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* Master Plan farm grid */
.farmplan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 30% 20%, rgba(214, 163, 58, 0.08), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(8, 60, 42, 0.09), transparent 60%),
    var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.farmplan__zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.5rem;
  background: rgba(255,253,247,0.7);
  border: 1px dashed rgba(8,60,42,0.25);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.farmplan__zone:hover { transform: scale(1.04); background: var(--parchment); }
.farmplan__icon { font-size: 1.8rem; }
.farmplan__label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-deep);
}

/* Timeline */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-burnish) 100%);
  border-radius: 2px;
}
.tline {
  position: relative;
  padding-left: 68px;
  padding-block: 1.1rem;
}
.tline__dot {
  position: absolute;
  left: 0;
  top: 1rem;
  width: 46px;
  height: 46px;
  background: var(--green-deep);
  color: var(--gold);
  border: 3px solid var(--parchment);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.tline__title {
  font-size: 1.4rem;
  margin: 0 0 0.25em;
  color: var(--green-deep);
}
.tline__text { margin: 0; color: var(--ink-soft); }

/* Our Land, Our People — cinematic band */
.landpeople {
  position: relative;
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  background:
    linear-gradient(135deg, #0b3a26 0%, #1c5a3a 50%, #2d7f4a 100%);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.landpeople::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(96deg, rgba(0,0,0,0.08) 0 3px, transparent 3px 24px),
    radial-gradient(circle at 30% 30%, rgba(214,163,58,0.25), transparent 60%);
  z-index: -1;
}
.landpeople__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,46,33,0.55), rgba(6,46,33,0.75));
  z-index: -1;
}
.landpeople__inner { text-align: center; max-width: 820px; }
.landpeople__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.6rem);
  line-height: 1.35;
  font-style: italic;
  color: var(--cream);
  margin: 1rem 0 0;
}

/* Jovan Public School gallery */
.schoolgrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  margin-bottom: 2rem;
}
.schoolgrid__lead {
  grid-row: 1 / span 2;
  margin: 0;
}
.schoolgrid__lead img,
.schoolgrid__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  transition: transform 0.4s var(--ease);
  box-shadow: var(--shadow);
}
.schoolgrid__lead img { aspect-ratio: 4 / 5; }
.schoolgrid figure { margin: 0; }
.schoolgrid figure:hover img { transform: scale(1.02); }
.schoolgrid figcaption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
}

/* Vision 2040 */
.v2040 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
}
.v2040__card {
  padding: 1.6rem 1rem;
  text-align: center;
  background: rgba(255,253,247,0.06);
  border: 1px solid var(--rule-onDark);
  border-radius: var(--radius-lg);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.v2040__card:hover {
  transform: translateY(-4px);
  background: rgba(214,163,58,0.12);
}
.v2040__icon { font-size: 2.2rem; display: block; margin-bottom: 0.5rem; }
.v2040__label {
  font-size: 1.05rem;
  color: var(--cream);
  margin: 0;
}

/* Get Involved cards */
.involve { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.involve__icon { font-size: 2.4rem; }
.involve .btn { margin-top: 0.4rem; }

/* Story page */
.story { max-width: 760px; margin: 0 auto; }
.story__body h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
.story__lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  font-style: italic;
  color: var(--green-deep);
  padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--gold);
  background: var(--parchment);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem;
}
.story__quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--gold-ink);
  border-left: 3px solid var(--gold);
  padding: 0.6rem 1.2rem;
  margin: 1.5rem 0;
}
.story__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.story__gallery figure { margin: 0; }
.story__gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.story__gallery figcaption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
}

/* Responsive tweaks for new sections */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .v2040 { grid-template-columns: repeat(2, 1fr); }
  .schoolgrid {
    grid-template-columns: 1fr 1fr;
  }
  .schoolgrid__lead { grid-row: auto; grid-column: 1 / -1; }
  .schoolgrid__lead img { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .farmplan { grid-template-columns: repeat(2, 1fr); }
  .v2040 { grid-template-columns: 1fr 1fr; }
  .schoolgrid { grid-template-columns: 1fr; }
  .tline { padding-left: 58px; }
}
