/* === Design tokens === */
:root {
  --color-primary: #15803D;
  --color-secondary: #22C55E;
  --color-accent: #0369A1;
  --color-neutral-dark: #14532D;
  --color-neutral-light: #F0FDF4;
  --color-ink: #14532D;
  --color-muted: #4b6b58;
  --color-line: rgba(20, 83, 45, 0.14);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 68ch;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-neutral-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-primary); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--color-neutral-dark); margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.15rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--color-neutral-dark); color: #fff; padding: 0.5rem 0.75rem; border-radius: 6px; z-index: 999; }

/* === Layout: sidebar-nav === */
.layout { display: block; }
.sidebar {
  background: var(--color-neutral-light);
  border-bottom: 1px solid var(--color-line);
  padding: 1rem 1.25rem;
  position: sticky; top: 0; z-index: 50;
}
.logo { display: inline-block; text-decoration: none; }
.logo img { height: 72px; width: auto; }
.nav-toggle {
  background: transparent;
  border: 1px solid var(--color-line);
  color: var(--color-neutral-dark);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  float: right;
  margin-top: 1rem;
}
.primary-nav { display: none; clear: both; }
.primary-nav.is-open { display: block; padding-top: 1rem; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav li { margin: 0.35rem 0; }
.primary-nav a {
  display: block;
  padding: 0.5rem 0;
  color: var(--color-neutral-dark);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.sidebar-foot { display: none; margin: 0; font-size: 0.8rem; color: var(--color-muted); }

.main { padding: 1.5rem 1.25rem 0; max-width: 1080px; }

@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
  .sidebar {
    position: sticky; top: 0;
    height: 100vh;
    padding: 2.25rem 1.75rem;
    display: flex; flex-direction: column;
    border-bottom: none;
    border-right: 1px solid var(--color-line);
  }
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: block; margin-top: 2.5rem; flex: 1; }
  .primary-nav a { border-bottom: none; padding: 0.4rem 0; }
  .primary-nav a:hover, .primary-nav a[aria-current="page"] {
    color: var(--color-primary);
  }
  .sidebar-foot { display: block; }
  .main { padding: 3rem 3rem 0; }
}

/* === Hero === */
.hero { padding: 1.5rem 0 2.5rem; max-width: 62ch; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary);
  margin: 0 0 1rem;
  font-weight: 500;
}
.hero h1 { margin-bottom: 1.25rem; }
.lede { font-size: 1.15rem; color: var(--color-muted); max-width: 55ch; margin-bottom: 1.75rem; }
.hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
  max-width: none;
}
@media (min-width: 900px) {
  .hero { padding: 1rem 0 3rem; max-width: 68ch; }
  .hero-img { aspect-ratio: 21 / 9; }
}

/* === Sections === */
.section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-line);
  max-width: 68ch;
}
.section > p, .section > h2 { max-width: 62ch; }
.section-sub { color: var(--color-muted); max-width: 62ch; margin-top: -0.4rem; margin-bottom: 1.75rem; }

.section-split { display: grid; gap: 2rem; max-width: none; }
.section-split .split-image img { border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (min-width: 780px) {
  .section-split { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}

/* === Grid & cards === */
.grid { display: grid; gap: 1.25rem; margin-top: 0.5rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card svg { color: var(--color-primary); margin-bottom: 0.75rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); margin: 0; font-size: 0.96rem; }
a.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -18px rgba(20, 83, 45, 0.35);
  border-color: var(--color-primary);
}
a.card-link:hover h3 { color: var(--color-primary); }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-neutral-dark); color: #fff; }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: #024e7d; color: #fff; }

/* === Testimonial === */
.testimonial { border-top: 1px solid var(--color-line); }
.testimonial blockquote {
  margin: 0;
  padding: 1.5rem 0;
  max-width: 60ch;
}
.testimonial blockquote p {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--color-neutral-dark);
  margin-bottom: 1rem;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding: 3rem 1.75rem;
  border-radius: var(--radius-lg);
  margin: 3rem 0;
  max-width: none;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 60ch; }
.cta-band .btn-accent { background: #fff; color: var(--color-primary); }
.cta-band .btn-accent:hover { background: var(--color-neutral-light); color: var(--color-neutral-dark); }

/* === FAQ === */
.faq details {
  border-top: 1px solid var(--color-line);
  padding: 1rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--color-line); }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-neutral-dark);
  list-style: none;
  padding-right: 2rem;
  position: relative;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.4rem;
  color: var(--color-primary);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0.75rem; color: var(--color-muted); }

/* === Contact form === */
.contact-form { max-width: 44rem; }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 500; margin-bottom: 0.4rem; color: var(--color-neutral-dark); font-size: 0.95rem; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  font: inherit;
  color: var(--color-ink);
  background: #fff;
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 1rem 0 1.5rem;
  line-height: 1.5;
}
.form-consent input { margin-top: 0.2rem; flex-shrink: 0; }

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}
.foot-cols { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .foot-cols { grid-template-columns: 1.2fr 1fr 1.2fr; }
}
.foot-brand { font-family: var(--font-heading); font-size: 1.25rem; color: var(--color-neutral-dark); margin: 0 0 0.3rem; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav li { margin: 0.3rem 0; }
.site-footer nav a { color: var(--color-neutral-dark); text-decoration: none; }
.site-footer nav a:hover { color: var(--color-primary); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer address a { color: var(--color-neutral-dark); text-decoration: none; }
.site-footer address a:hover { color: var(--color-primary); }
.legal-links { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.legal-links a { font-size: 0.85rem; }
.copyright {
  border-top: 1px solid var(--color-line);
  padding-top: 1.25rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  display: none;
  z-index: 9999;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px -12px rgba(0,0,0,0.4);
  max-width: 32rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.92rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button {
  background: transparent;
  color: var(--color-neutral-light);
  border: 1px solid rgba(240, 253, 244, 0.35);
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
}
.cookie-banner button[data-cookie-accept] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.cookie-banner button:hover { opacity: 0.9; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: 0.5rem; }
