:root {
  color-scheme: light;
  --green-950: #112614;
  --green-900: #17351c;
  --green-800: #23512b;
  --green-700: #2f6b36;
  --green-600: #3d8844;
  --green-100: #eaf5e8;
  --gold-500: #d7a629;
  --gold-100: #fff6dd;
  --brown-700: #715224;
  --cream: #fffaf0;
  --paper: #ffffff;
  --ink: #1b211d;
  --muted: #59635b;
  --line: rgba(27, 33, 29, .12);
  --shadow: 0 24px 80px rgba(17, 38, 20, .14);
  --radius: 24px;
  --radius-sm: 14px;
  --container: min(1120px, calc(100% - 2rem));
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .22em; }

button, input, textarea, select { font: inherit; }

.container { width: var(--container); margin-inline: auto; }

.skip-link {
  position: fixed;
  inset-block-start: .75rem;
  inset-inline-start: .75rem;
  z-index: 1000;
  transform: translateY(-150%);
  background: var(--green-950);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 999px;
}
.skip-link:focus { transform: translateY(0); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 240, .88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(17, 38, 20, .08); }

.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 800; color: var(--green-950); }
.brand-mark { display: grid; place-items: center; inline-size: 46px; block-size: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--green-700), var(--gold-500)); color: #fff; font-size: .92rem; letter-spacing: .03em; }
.brand-text { font-size: 1.02rem; }

.nav-menu { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { display: inline-flex; padding: .65rem .8rem; border-radius: 999px; color: var(--green-950); text-decoration: none; font-weight: 700; font-size: .94rem; }
.nav-menu a:is(:hover, :focus-visible), .nav-menu a.is-active { background: var(--green-100); color: var(--green-800); }
.nav-toggle { display: none; inline-size: 46px; block-size: 46px; border: 0; background: var(--green-100); border-radius: 999px; padding: 12px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--green-900); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.muted { background: #f3f8ee; }
.hero { padding-block: clamp(4rem, 9vw, 8rem); background: radial-gradient(circle at top right, rgba(215, 166, 41, .22), transparent 34%), linear-gradient(180deg, #fffaf0 0%, #f5f6e6 100%); overflow: clip; }
.hero-grid, .split-grid, .services-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.eyebrow { margin: 0 0 .85rem; color: var(--green-700); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; }
h1, h2, h3 { margin-block: 0; color: var(--green-950); line-height: 1.08; }
h1, h2 { font-family: var(--font-display); }
h1 { font-size: clamp(3rem, 7vw, 5.9rem); letter-spacing: -.055em; max-width: 11ch; }
h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); letter-spacing: -.035em; }
h3 { font-size: 1.18rem; }
p { margin-block: 1rem 0; }
.hero-lede, .section-heading p, .section-copy > p { color: var(--muted); font-size: 1.05rem; }
.hero-lede { max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-block: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.15rem; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green-700); color: #fff; box-shadow: 0 18px 40px rgba(47, 107, 54, .24); }
.button-primary:hover { background: var(--green-800); }
.button-secondary { background: #fff; color: var(--green-800); border: 1px solid var(--line); }

.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 2rem 0 0; }
.hero-stats div { background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; }
.hero-stats dt { font-weight: 900; color: var(--green-800); font-size: 1.1rem; }
.hero-stats dd { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.hero-media { position: relative; }
.hero-media img, .image-stack img, .product-card, .map-card, .team-photo img, .impact-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-media img { aspect-ratio: 4 / 5; object-fit: cover; }
.floating-card { position: absolute; inset-inline-start: -1.25rem; inset-block-end: 2rem; max-width: 280px; padding: 1rem; border-radius: 18px; background: rgba(255,255,255,.92); border: 1px solid var(--line); box-shadow: var(--shadow); }
.floating-card strong, .floating-card span { display: block; }
.floating-card span { color: var(--muted); font-size: .9rem; }

.section-heading { max-width: 780px; margin-inline: auto; text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.cards-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.card { background: var(--paper); padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(17,38,20,.06); }
.card p { color: var(--muted); font-size: .96rem; }
.image-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.image-stack img { aspect-ratio: 1 / 1.12; object-fit: cover; }
.image-stack img:nth-child(2) { margin-top: 3rem; }

.accordion { max-width: 900px; margin-inline: auto; display: grid; gap: .85rem; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.15rem; }
summary { cursor: pointer; font-weight: 900; color: var(--green-900); }
details p { color: var(--muted); }

.service-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.service-list article { background: #fff; border-radius: var(--radius-sm); padding: 1.2rem; border: 1px solid var(--line); }
ul { padding-left: 1.25rem; }
li + li { margin-top: .35rem; }
.product-card { margin: 0; overflow: hidden; background: var(--paper); }
.product-card img { width: 100%; max-height: 540px; object-fit: cover; }
.product-card figcaption { padding: 1rem; color: var(--muted); }
.map-card { margin: 0; padding: 1rem; background: #fff; }
.map-card img { margin-inline: auto; }

.impact-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 1rem; align-items: stretch; }
.impact-list { background: var(--green-950); color: #fff; padding: clamp(1.4rem, 4vw, 2rem); border-radius: var(--radius); box-shadow: var(--shadow); }
.impact-list h3 { color: #fff; }
.impact-list li, .impact-list p { color: rgba(255,255,255,.82); }
.impact-grid img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.text-link { display: inline-flex; margin-top: 1rem; color: var(--gold-500); font-weight: 900; }
.team-photo { margin: 0; }
.team-photo img { width: 100%; min-height: 420px; object-fit: cover; }

.contact { background: linear-gradient(135deg, var(--green-950), var(--green-700)); color: #fff; }
.contact-card { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: calc(var(--radius) + 10px); padding: clamp(1.5rem, 4vw, 3rem); }
.contact h2, .contact .eyebrow { color: #fff; }
.contact p { color: rgba(255,255,255,.8); }
address { display: grid; gap: .75rem; font-style: normal; }
address a { display: inline-flex; width: fit-content; padding: .75rem 1rem; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-weight: 800; text-decoration: none; }

.site-footer { background: var(--green-950); color: rgba(255,255,255,.78); padding-block: 1.5rem; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-grid p { margin: 0; }
.back-to-top { color: #fff; font-weight: 800; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .nav-menu { position: fixed; inset: 76px 1rem auto; display: grid; gap: .35rem; padding: .75rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transform-origin: top right; transform: scale(.96); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  .nav-menu.is-open { opacity: 1; transform: scale(1); pointer-events: auto; }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid, .split-grid, .services-grid, .contact-card { grid-template-columns: 1fr; }
  h1 { max-width: 13ch; }
  .cards-grid, .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-list { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .section { padding-block: 3.5rem; }
  .hero-stats, .cards-grid, .impact-grid, .image-stack { grid-template-columns: 1fr; }
  .image-stack img:nth-child(2) { margin-top: 0; }
  .floating-card { position: static; margin-top: -2rem; margin-inline: 1rem; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .brand-text { max-width: 10ch; line-height: 1.1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Homepage image slider placed immediately after the menu */
.home-slider {
  background: var(--green-950);
  overflow: hidden;
}

.slider {
  position: relative;
  min-height: clamp(360px, 72vh, 760px);
  background: var(--green-950);
}

.slider-track,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .75s ease, visibility .75s ease;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(17, 38, 20, .58));
  pointer-events: none;
}

.slider-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: rgba(17, 38, 20, .42);
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: background .2s ease, transform .2s ease;
}

.slider-control:hover,
.slider-control:focus-visible {
  background: rgba(17, 38, 20, .78);
  transform: translateY(-50%) scale(1.04);
}

.slider-control-prev { left: clamp(1rem, 3vw, 2rem); }
.slider-control-next { right: clamp(1rem, 3vw, 2rem); }

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 4;
  display: flex;
  gap: .6rem;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.slider-dots button.is-active {
  width: 34px;
  background: var(--gold-500);
}

.hero-lowered {
  padding-block-start: clamp(4.5rem, 8vw, 7rem);
}

@media (max-width: 680px) {
  .slider {
    min-height: 430px;
  }

  .slider-control {
    width: 44px;
    height: 44px;
    font-size: 2rem;
  }
}

/* Cropping correction: keep people’s heads visible in the field-photo slider. */
.slide img {
  object-position: center top;
}

@media (min-width: 981px) {
  .slider {
    min-height: clamp(520px, 76vh, 820px);
  }
}

/* Four-member team section, matching the WordPress team carousel content. */
.team {
  background: #fff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: stretch;
}

.team-card {
  position: relative;
  overflow: visible;
  border-radius: var(--radius);
  min-width: 0;
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #f4f4ef;
}

.team-info {
  width: calc(100% - 2rem);
  min-height: 96px;
  margin: -3rem auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem .75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 18px 50px rgba(17, 38, 20, .12);
}

.team-info h3 {
  margin: 0;
  font-size: 1.08rem;
}

.team-info p {
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .nav-menu a {
    padding-inline: .58rem;
  }
}

@media (max-width: 980px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Branding, crop mini-slider, and Flask contact form updates */
.brand-logo {
  display: block;
  width: clamp(8.5rem, 14vw, 12rem);
  height: auto;
  max-height: 4.25rem;
  object-fit: contain;
}

.crop-mini-slider {
  position: relative;
  min-height: clamp(28rem, 48vw, 45rem);
  border-radius: 1.75rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 175, 58, 0.18), rgba(42, 143, 54, 0.12));
  box-shadow: var(--shadow);
  isolation: isolate;
}

.crop-slides,
.crop-slide {
  position: absolute;
  inset: 0;
}

.crop-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 680ms ease, transform 900ms ease;
}

.crop-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.crop-slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  box-shadow: none;
}

.crop-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 40%, rgba(4, 32, 16, 0.42) 100%);
  pointer-events: none;
}

.crop-caption {
  position: absolute;
  left: clamp(1rem, 4vw, 2rem);
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(5.75rem, 10vw, 7rem);
  z-index: 2;
  display: grid;
  gap: 0.35rem;
  max-width: 24rem;
  color: #fff;
  text-shadow: 0 0.1rem 0.75rem rgba(0, 0, 0, 0.45);
}

.crop-caption strong {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1;
}

.crop-caption span {
  font-weight: 600;
}

.crop-summary {
  z-index: 3;
  left: clamp(1rem, 4vw, 2rem);
  right: auto;
  bottom: clamp(1rem, 3vw, 1.5rem);
  max-width: min(27rem, calc(100% - 2rem));
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.crop-dots {
  position: absolute;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1.35rem, 3vw, 1.9rem);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.crop-dots button {
  width: 0.78rem;
  height: 0.78rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.crop-dots button:is(:hover, :focus-visible),
.crop-dots button.is-active {
  width: 1.65rem;
  background: var(--gold-500);
  transform: translateY(-1px);
}

.contact-card {
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: #fff;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 0.22rem rgba(215, 166, 41, 0.22);
}

.contact-form textarea {
  resize: vertical;
  min-height: 9rem;
}

.form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-weight: 700;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: #0d5b24;
  background: #e8f8ec;
  border: 1px solid #a7dfb4;
}

.form-status.is-error {
  color: #842029;
  background: #f8d7da;
  border: 1px solid #f1aeb5;
}

.form-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 760px) {
  .brand-logo {
    width: 8.75rem;
    max-height: 3.5rem;
  }

  .crop-mini-slider {
    min-height: 27rem;
    border-radius: 1.15rem;
  }

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