/* =========================================================
   Mattocks Riverview Farms - Design System
   ========================================================= */

/* ===== Tokens ===== */
:root {
  /* Surfaces */
  --bg: #f5f0e8;
  --bg-deep: #ebe3d4;
  --white: #ffffff;

  /* Brand */
  --olive: #4a5c3a;
  --olive-dark: #3a4a2e;
  --olive-light: #6c805a;

  /* Tans / accents */
  --tan: #c8b89a;
  --tan-light: #e8dfd0;
  --tan-dark: #a89070;

  /* Text - all pass WCAG AA on --bg */
  --text: #2c2c2c;
  --text-light: #5a5a5a;        /* was #6b6b6b - now passes 4.5:1 on --bg */
  --text-on-olive: #ffffff;
  --text-on-olive-muted: #d4e4ce;  /* solid replacement for rgba whites */
  --text-nav: #e8f0e4;             /* solid replacement for nav rgba */

  /* Focus */
  --focus-ring: 3px solid #f0a040;
  --focus-offset: 2px;

  /* Type */
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1100px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(58, 74, 46, 0.08);
  --shadow-md: 0 4px 12px rgba(58, 74, 46, 0.12);
  --shadow-lg: 0 12px 32px rgba(58, 74, 46, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 280ms;
  --dur-slow: 600ms;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; }

/* ===== Base ===== */
html { font-size: 16px; scroll-behavior: smooth; }

/* Sticky-footer flex column on body */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; color: var(--text-light); }
strong { font-weight: 600; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ===== Global Focus Ring ===== */
:focus { outline: none; }
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: 4px;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--olive);
  color: var(--white);
  padding: 0.625rem 1rem;
  border-radius: 4px;
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
}

/* ===== Header / Nav ===== */
.site-header {
  background: var(--olive);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.main-nav { display: flex; gap: 0.125rem; }
.main-nav a {
  color: var(--text-nav);
  font-size: 0.9375rem;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.main-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}
.main-nav a.active,
.main-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-weight: 600;
}
.main-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  background: var(--tan);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: 4px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: var(--olive-dark);
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 14s var(--ease-out);
}
.hero.is-visible img { transform: scale(1.08); }
.hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--olive) 0%, var(--olive-dark) 60%, #2d3a23 100%);
  position: relative;
}
.hero-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(200, 184, 154, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(200, 184, 154, 0.12) 0%, transparent 40%);
}
.hero.sepia img { filter: sepia(0.45) contrast(1.05) saturate(0.9); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.65) 100%);
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}
.hero-overlay > div {
  max-width: 800px;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-rise var(--dur-slow) var(--ease-out) 0.15s forwards;
}
.hero-overlay h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.hero-overlay p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.125rem;
  margin-top: 0.75rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  max-width: 600px;
}

@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Section Bar ===== */
.section-bar {
  background: var(--olive);
  color: var(--white);
  padding: 0.875rem 0;
  margin: 3rem 0 0;
  position: relative;
}
.section-bar::before,
.section-bar::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--olive-dark);
}
.section-bar::before { top: 0; }
.section-bar::after { bottom: 0; }
.section-bar .container { display: flex; align-items: center; gap: 0.75rem; }
.section-bar h2 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
}
.section-bar h2::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--tan);
  margin-right: 0.875rem;
  vertical-align: middle;
}

/* ===== Ornamental Divider ===== */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 2.5rem 0;
  color: var(--tan-dark);
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--tan);
}
.divider svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

/* ===== Photo-Text Row ===== */
.photo-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 4rem 0;
}
.photo-text-row.reverse > .text-block { order: -1; }
.photo-text-row .img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}
.photo-text-row img,
.photo-text-row .img-placeholder {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform var(--dur-slow) var(--ease-out);
}
.photo-text-row .img-wrap:hover img { transform: scale(1.04); }
.photo-text-row .img-placeholder {
  background: linear-gradient(135deg, var(--tan-light) 0%, var(--tan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
  font-size: 0.875rem;
}
.photo-text-row .img-placeholder::after {
  content: '🌿';
  font-size: 2rem;
  opacity: 0.4;
}
.photo-text-row .text-block h2 { margin-bottom: 1rem; }
.photo-text-row .text-block p { color: var(--text); font-size: 1.0625rem; }

/* ===== Timeline (RESTRUCTURED) ===== */
/* Entries alternate sides; photos sit ADJACENT to the center line, not on it. */
.timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent 0%, var(--tan) 6%, var(--tan) 94%, transparent 100%);
  transform: translateX(-50%);
}

.timeline-entry {
  position: relative;
  width: 50%;
  margin-bottom: 3.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.timeline-entry.entry-left {
  margin-right: 50%;
  padding-right: 2.5rem;
  flex-direction: row-reverse;
  text-align: right;
  justify-content: flex-start;
}
.timeline-entry.entry-right {
  margin-left: 50%;
  padding-left: 2.5rem;
  text-align: left;
  justify-content: flex-start;
}

.timeline-node {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}
.timeline-photo,
.timeline-photo-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--tan), var(--shadow-md);
  background: var(--tan-light);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.timeline-photo:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 2px var(--olive), var(--shadow-lg);
}
.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--olive);
  margin-top: 0.625rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.timeline-text { flex: 1; min-width: 0; }
.timeline-text h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: var(--olive-dark);
}
.timeline-text p {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.65;
}

/* Connector dot from photo to center line */
.timeline-entry.entry-left::after,
.timeline-entry.entry-right::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 2.5rem;
  height: 2px;
  background: var(--tan);
  transform: translateY(calc(-50% - 16px));
}
.timeline-entry.entry-left::after { right: 0; }
.timeline-entry.entry-right::after { left: 0; }

/* ===== Family Grid ===== */
.family-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 3rem 0;
}
.family-card {
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  transition: transform var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}
.family-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.5);
}
.family-card-photo,
.family-card-photo-placeholder {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--tan);
  background: var(--tan-light);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.family-card:hover .family-card-photo,
.family-card:hover .family-card-photo-placeholder {
  border-color: var(--olive);
  box-shadow: var(--shadow-md);
}
.family-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.4rem;
  color: var(--olive-dark);
}
.family-card p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.6;
}

.grandparents-feature {
  display: flex;
  gap: 4rem;
  justify-content: center;
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--tan);
  margin-bottom: 2.5rem;
}
.grandparents-feature .family-card-photo,
.grandparents-feature .family-card-photo-placeholder {
  width: 180px;
  height: 180px;
  border-width: 4px;
}
.grandparents-feature .family-card h3 { font-size: 1.5rem; }
.grandparents-feature .family-card p { max-width: 320px; margin: 0 auto; }

/* ===== Gallery ===== */
.gallery-filters {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  padding: 2rem 0 1.75rem;
}
.gallery-filter-btn {
  background: transparent;
  border: 2px solid var(--tan);
  color: var(--text);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  min-height: 44px;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.gallery-filter-btn:hover {
  background: var(--tan-light);
  border-color: var(--tan-dark);
}
.gallery-filter-btn:active { transform: scale(0.97); }
.gallery-filter-btn[aria-pressed="true"],
.gallery-filter-btn.active {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--white);
}

.gallery-grid {
  columns: 2;
  column-gap: 1.25rem;
  padding-bottom: 3rem;
}
.gallery-grid figure {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.gallery-grid figure:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gallery-grid img {
  width: 100%;
  border-radius: 6px 6px 0 0;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.gallery-grid figure:hover img { transform: scale(1.03); }
.gallery-grid .img-placeholder {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--tan-light) 0%, var(--tan) 100%);
  border-radius: 6px 6px 0 0;
}
.gallery-grid figcaption {
  font-size: 0.875rem;
  color: var(--text-light);
  padding: 0.625rem 0.875rem 0.875rem;
  line-height: 1.5;
}

/* ===== Sub-Tab Nav ===== */
.sub-tab-nav {
  background: var(--tan-light);
  border-bottom: 2px solid var(--tan);
  margin-bottom: 2.5rem;
}
.sub-tab-nav ul {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.sub-tab-nav a {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  min-height: 48px;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.sub-tab-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.4);
}
.sub-tab-nav a.active,
.sub-tab-nav a[aria-current="page"] {
  color: var(--olive);
  border-bottom-color: var(--olive);
  font-weight: 600;
}

/* ===== Content Section ===== */
.content-section { padding: 2.5rem 0 3rem; }
.content-section h2 { margin-bottom: 1.25rem; }
.content-section p { font-size: 1.0625rem; max-width: 720px; }

.icon-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--olive) 0%, var(--olive-dark) 100%);
  border-radius: 10px;
  padding: 2.25rem 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-md);
}
.icon-card { text-align: center; color: var(--white); }
.icon-card svg {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.875rem;
  color: var(--tan);
}
.icon-card strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.0625rem;
  font-family: var(--font-heading);
  font-weight: 600;
}
.icon-card p {
  font-size: 0.9375rem;
  color: var(--text-on-olive-muted);
  margin: 0;
}

/* ===== Pull Quote / Blockquote ===== */
.pull-quote,
blockquote {
  position: relative;
  margin: 2.5rem auto;
  max-width: 720px;
  padding: 1.75rem 2rem 1.75rem 3rem;
  background: var(--white);
  border-left: 4px solid var(--olive);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.pull-quote::before,
blockquote::before {
  content: '\201C';
  position: absolute;
  left: 0.875rem;
  top: 0.625rem;
  font-size: 3rem;
  color: var(--tan);
  font-family: Georgia, serif;
  line-height: 1;
}
.pull-quote cite,
blockquote cite {
  display: block;
  margin-top: 0.875rem;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--text-light);
  font-family: var(--font-body);
}
.pull-quote cite::before,
blockquote cite::before { content: '\2014\00a0'; }

/* ===== What's New ===== */
.news-list { padding: 2rem 0 3rem; }
.news-card {
  background: var(--white);
  border: 1px solid var(--tan);
  border-radius: 8px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--olive-light);
}
.news-date {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.news-card h3 { margin-bottom: 0.625rem; color: var(--olive-dark); }

/* ===== Footer ===== */
.site-footer {
  background: var(--olive);
  color: var(--text-on-olive-muted);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.9375rem;
  margin-top: 4rem;
  border-top: 1px solid var(--olive-dark);
}
.site-footer p { margin: 0; }

/* ===== 404 Page ===== */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
  min-height: 60vh;
}
.error-page .error-code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 600;
  color: var(--olive);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
}
.error-page h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  color: var(--text);
}
.error-page p {
  color: var(--text-light);
  max-width: 480px;
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}
.error-page .btn-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--olive);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  min-height: 44px;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.error-page .btn-home:hover {
  background: var(--olive-dark);
  transform: translateY(-2px);
}

/* ===== Farm Stats Strip ===== */
.farm-stats {
  background: var(--bg-deep);
  border-top: 1px solid var(--tan);
  border-bottom: 1px solid var(--tan);
  padding: 2rem 0;
}
.farm-stats .container {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.farm-stat { text-align: center; }
.farm-stat .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--olive);
  display: block;
  line-height: 1.1;
}
.farm-stat .stat-label {
  font-size: 0.8125rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.375rem;
  display: block;
  font-weight: 500;
}

/* ===== Goals List ===== */
.goals-list {
  list-style: none;
  counter-reset: goals-counter;
  margin: 1.5rem 0 0;
}
.goals-list li {
  counter-increment: goals-counter;
  position: relative;
  padding: 1.125rem 1.25rem 1.125rem 3.75rem;
  margin-bottom: 0.75rem;
  background: var(--white);
  border-radius: 8px;
  border-left: 3px solid var(--olive-light);
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  line-height: 1.65;
}
.goals-list li::before {
  content: counter(goals-counter);
  position: absolute;
  left: 1rem;
  top: 1.125rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--olive);
  width: 1.75rem;
  height: 1.75rem;
  background: var(--tan-light);
  border-radius: 50%;
  text-align: center;
  line-height: 1.75rem;
}
.goals-list li strong {
  color: var(--olive-dark);
  display: block;
  margin-bottom: 0.125rem;
}

/* ===== Trust Section ===== */
.trust-section {
  background: var(--white);
  border: 1px solid var(--tan);
  border-radius: 8px;
  padding: 2rem 2.25rem;
  margin: 0 0 2.5rem;
  box-shadow: var(--shadow-sm);
}
.trust-section h3 { color: var(--olive-dark); margin-bottom: 0.5rem; }
.trust-section > p {
  color: var(--text-light);
  font-size: 0.9375rem;
  max-width: 640px;
  margin-bottom: 1.25rem;
}
.trustees-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.trustee-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--tan-light);
  border: 1px solid var(--tan);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}
.trustee-chip svg {
  width: 14px;
  height: 14px;
  color: var(--olive);
  flex-shrink: 0;
}

/* ===== Vision / Mission Band ===== */
.vision-band {
  background: var(--olive);
  color: var(--white);
  padding: 3rem 0;
}
.vision-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.vision-band h2 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.vision-band h2::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--tan);
  margin-right: 0.75rem;
  vertical-align: middle;
}
.vision-band p {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-on-olive-muted);
  margin: 0;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 300ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 360ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 420ms; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 480ms; }
.reveal-stagger.is-visible > *:nth-child(n+10) { transition-delay: 540ms; }

/* ===== Responsive: Tablet (1024px) ===== */
@media (min-width: 1024px) {
  .gallery-grid { columns: 3; }
}

/* ===== Responsive: Mobile (<= 768px) ===== */
@media (max-width: 768px) {
  /* Logo: smaller font so full name fits on one line */
  .site-logo { font-size: 0.9rem; }
  .header-inner { padding: 0 1rem; gap: 0.5rem; }

  .hero { height: 380px; }
  .hero-overlay { padding: 1.75rem; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--olive);
    flex-direction: column;
    padding: 0.75rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 0.875rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
  }
  .main-nav a[aria-current="page"]::after { display: none; }
  .nav-toggle { display: flex; }

  .photo-text-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
  }
  .photo-text-row.reverse > .text-block { order: 0; }
  .photo-text-row img,
  .photo-text-row .img-placeholder { height: 280px; }

  /* Timeline (mobile): vertical storytelling stack with left rail.
     Each entry: year chip → heading → rectangular hero photo → body text. */
  .timeline {
    padding: 2rem 0 1rem;
    max-width: 100%;
    border-left: 2px solid var(--tan);
    margin: 0 1rem 0 1.5rem;
  }
  .timeline::before { display: none; }

  .timeline-entry,
  .timeline-entry.entry-left,
  .timeline-entry.entry-right {
    width: 100% !important;
    margin: 0 0 3rem 0 !important;
    padding: 0 0 0 1.5rem !important;
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-areas:
      "year"
      "heading"
      "photo"
      "body";
    gap: 0.875rem;
    text-align: left !important;
    align-items: start !important;
    position: relative;
  }
  .timeline-entry:last-child { margin-bottom: 0.5rem !important; }

  /* Make wrappers transparent so children participate in entry's grid */
  .timeline-node,
  .timeline-text {
    display: contents !important;
  }

  /* Kill desktop connector lines */
  .timeline-entry::after,
  .timeline-entry.entry-left::after,
  .timeline-entry.entry-right::after { display: none !important; }

  /* Prominent rail marker -  sits on the line, aligned with the year chip */
  .timeline-entry::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--olive);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--tan);
    transform: translateX(-50%);
    z-index: 2;
  }

  /* Year as olive chip badge */
  .timeline-year {
    grid-area: year;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    background: var(--olive);
    color: var(--text-on-olive);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0 !important;
    box-shadow: var(--shadow-sm);
  }

  /* Heading: large and prominent */
  .timeline-text h3 {
    grid-area: heading;
    font-size: 1.4rem;
    line-height: 1.25;
    color: var(--olive-dark);
    margin: 0;
  }

  /* Photo: keep the circular brand motif from desktop, scaled up + centered */
  .timeline-photo,
  .timeline-photo-placeholder {
    grid-area: photo;
    width: 105px;
    height: 105px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg);
    box-shadow: 0 0 0 2px var(--tan), var(--shadow-md);
    background: var(--tan-light);
    justify-self: start;
    margin: 0.5rem 0 0.25rem;
  }
  .timeline-photo:hover {
    transform: none;
    box-shadow: 0 0 0 2px var(--tan), var(--shadow-md);
  }

  /* Body text */
  .timeline-text p {
    grid-area: body;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    margin: 0;
  }

  /* Reset desktop node positioning */
  .timeline-node { position: static !important; }

  /* Family grid: 2-col but with smaller circles so they actually fit */
  .family-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .family-card { padding: 0.5rem 0.25rem; }
  .family-card-photo,
  .family-card-photo-placeholder { width: 90px; height: 90px; }
  .family-card h3 { font-size: 1rem; }
  .family-card p { font-size: 0.875rem; }

  .grandparents-feature {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
  }
  .grandparents-feature .family-card-photo,
  .grandparents-feature .family-card-photo-placeholder {
    width: 130px;
    height: 130px;
  }

  .gallery-grid { columns: 1; }

  .farm-stats .container { gap: 1.75rem; }
  .farm-stat .stat-number { font-size: 1.75rem; }

  .vision-band .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .trust-section { padding: 1.5rem; }

  .icon-row {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .sub-tab-nav ul {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .sub-tab-nav a {
    white-space: nowrap;
    padding: 0.875rem 1.1rem;
  }

  .pull-quote,
  blockquote {
    padding: 1.5rem 1.25rem 1.5rem 2.25rem;
    font-size: 1.0625rem;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero img { transform: none !important; }
}
