:root {
  /* Single brand green — the AMOSA logo green (#008c44) — used across the site.
     The light tint stays as a soft same-hue wash for the hero gradient + focus rings. */
  --green-900: #008c44;  /* dark sections / footer (now same as primary) */
  --green-700: #008c44;  /* primary = logo green */
  --green-500: #008c44;  /* accent */
  --green-100: #e3f4ea;  /* light tint */
  --ink: #14201c;
  --muted: #5a6b65;
  --bg: #ffffff;
  --bg-alt: #f5f8f6;
  --line: #dce6e1;
  --radius: 14px;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(0, 88, 44, .08), 0 8px 24px rgba(0, 88, 44, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: .8em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 640px; }

.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green-700); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: .6rem 1.1rem; border-radius: 999px;
  border: 1.5px solid transparent; transition: all .15s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn-primary { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.btn-primary:hover { filter: brightness(0.92); }
.btn-ghost { background: transparent; color: var(--green-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green-500); color: var(--green-700); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-name { font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-divider { width: 1px; height: 22px; background: var(--line); display: inline-block; }
.footer-inner .brand-logo { height: 34px; margin-bottom: .35rem; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav > a:not(.btn) { color: var(--ink); font-weight: 500; font-size: .95rem; }
.site-nav > a:not(.btn):hover { color: var(--green-700); text-decoration: none; }
.site-nav > a.active { color: var(--green-700); font-weight: 600; }

/* Mobile nav toggle (hamburger) — hidden on desktop */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 40px; padding: 0; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
}
.nav-toggle:focus-visible { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100); }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-bar::after { position: absolute; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Language switcher */
.lang-switch { display: inline-flex; align-items: center; }
#lang-select {
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: .4rem 1.9rem .4rem .8rem; cursor: pointer; line-height: 1.2;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b65' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .55rem center; background-size: .8rem;
}
#lang-select:hover { border-color: var(--green-500); }
#lang-select:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Hero — Dutch farm photo as a faded backdrop, with a white→green tint overlay so
   text stays fully readable and the cows just whisper "dairy" in the background. */
.hero {
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.78) 45%,
      rgba(227, 244, 234, 0.55) 100%),
    url("/assets/homepageveehouderij.webp") center bottom / cover no-repeat;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.hero-inner { max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--green-700); margin-bottom: .75rem; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.hero-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin-bottom: 2rem; }

/* Grid + cards */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { color: var(--green-900); }
.card p { margin: 0; color: var(--muted); }

.pillar { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--green-500); border-radius: var(--radius); padding: 1.75rem; }
.pillar h3 { color: var(--green-900); font-size: 1.3rem; }
.pillar p { margin: 0; color: var(--muted); }

.disclaimer { font-size: .9rem; margin-top: 1.5rem; max-width: 70ch; }

/* Page intro (sub-pages) */
.page-head { background: linear-gradient(180deg, var(--green-100), var(--bg)); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-head--split .page-head-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.page-head-copy p { margin: 0; }
.page-head-media {
  margin: 0 0 0 auto; width: 100%; max-width: 460px; height: 340px; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse closest-side at center, #000 38%, transparent 98%);
  mask-image: radial-gradient(ellipse closest-side at center, #000 38%, transparent 98%);
}
.page-head-media img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 30% center;
  transform: scale(1.15);
}
@media (max-width: 760px) {
  .page-head--split .page-head-grid { grid-template-columns: 1fr; }
  .page-head-media { max-width: 360px; height: 264px; margin: 0 auto; }
}
.page-head .eyebrow { margin-bottom: .5rem; }
.page-head p { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0; }

/* Day-to-day: photo paired with the three boxes */
.day-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch; margin-top: clamp(1rem, 3vw, 2rem);
}
.day-grid-media {
  width: 100%; min-height: 300px; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse closest-side at center, #000 42%, transparent 99%);
  mask-image: radial-gradient(ellipse closest-side at center, #000 42%, transparent 99%);
}
.day-grid-media img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.day-cards { display: flex; flex-direction: column; gap: 1.25rem; }
.day-cards .card { flex: 1; }
.disclaimer--foot {
  text-align: center; margin: clamp(2rem, 5vw, 3rem) auto 0;
  font-size: .82rem; color: var(--muted); opacity: .85; max-width: 64ch;
}

/* Two-column story: photo + narrative (About 'Why we built') */
.story-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: stretch;
}
.story-media {
  width: 100%; min-height: 320px; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse closest-side at center, #000 50%, transparent 99%);
  mask-image: radial-gradient(ellipse closest-side at center, #000 50%, transparent 99%);
}
.story-media img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.story-copy h2 { margin-top: 0; }
.story-copy p { color: var(--muted); }

@media (max-width: 760px) {
  .day-grid { grid-template-columns: 1fr; }
  .day-grid-media { min-height: 0; height: 220px; max-width: 360px; margin: 0 auto; }
  .story-grid { grid-template-columns: 1fr; gap: clamp(1rem, 4vw, 2rem); }
  .story-media { min-height: 0; height: 240px; }
}

/* CTA band */
.cta-band { background: var(--green-900); color: #fff; padding: clamp(1.5rem, 3vw, 2.25rem) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(1.5rem, 4vw, 3rem); flex-wrap: wrap; }
.cta-copy { min-width: 0; }
.cta-inner .btn { flex-shrink: 0; }
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 55ch; margin: 0; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; max-width: 640px; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--green-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* Form */
.contact-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  font: inherit; padding: .7rem .85rem; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100); }
.form-status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--green-700); }
.form-status.err { color: #b3261e; }

/* Demo-request page: farm landscape behind the form, faded for legibility */
.page-head--contact {
  background: linear-gradient(180deg, var(--green-100), var(--bg));
  padding-bottom: clamp(.75rem, 2vw, 1.25rem);
}
.contact-bg {
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.60) 0%,
      rgba(255,255,255,0.74) 32%,
      rgba(255,255,255,0.50) 72%,
      rgba(255,255,255,0.10) 100%),
    url(/assets/farmviewcontactform.webp?v=1);
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: clamp(4.5rem, 10vw, 8rem);
}
.contact-lead {
  text-align: center; font-size: 1.15rem; color: var(--ink);
  max-width: 52ch; margin: 0 auto clamp(1.5rem, 4vw, 2.25rem);
}

/* Reassurance strip (green) separating the form photo from the footer photo */
.cta-band--center { text-align: center; padding: clamp(.85rem, 1.8vw, 1.25rem) 0; }
.cta-band--center .container { display: flex; justify-content: center; }
.cta-reassure { color: rgba(255,255,255,.92); max-width: 60ch; margin: 0; font-size: 1.05rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 4rem 0; background: linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)), url(/assets/FooterPasture.webp?v=2); background-size: cover; background-position: center; background-repeat: no-repeat; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: start; }
.footer-inner .muted { margin: .25rem 0 0; font-size: .9rem; }
.footer-copy { flex-basis: 100%; width: 100%; order: 10; text-align: center; margin: clamp(1.5rem, 4vw, 2.75rem) 0 0; }
.footer-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-nav a { color: var(--ink); font-weight: 500; }

/* Maintenance dialog (login failsafe) */
.maint-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 1.25rem;
  background: rgba(0, 74, 38, .55); backdrop-filter: blur(3px);
}
.maint-overlay.open { display: flex; }
.maint-card {
  background: #fff; border-radius: var(--radius); width: 100%; max-width: 420px;
  padding: 2.25rem 1.75rem; text-align: center; box-shadow: var(--shadow);
}
.maint-icon {
  width: 60px; height: 60px; margin: 0 auto 1.25rem; border-radius: 50%;
  background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
}
.maint-card h2 { font-size: 1.4rem; margin: 0 0 .5rem; }
.maint-card p { color: var(--muted); margin: 0 0 1.5rem; }
.maint-actions { display: flex; flex-direction: column; gap: .6rem; }

/* Responsive */
@media (max-width: 700px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-inner .brand-logo { margin-left: auto; margin-right: auto; }
  .footer-inner .muted { margin-top: .5rem; }
  .footer-nav { justify-content: center; }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  /* Collapse nav into a hamburger panel */
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1.25rem;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) {
    padding: .9rem .25rem; font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav .lang-switch { margin-top: .9rem; }
  #lang-select { width: 100%; padding-top: .7rem; padding-bottom: .7rem; }
  .site-nav .btn { width: 100%; margin-top: .6rem; padding-top: .8rem; padding-bottom: .8rem; }
}

@media (max-width: 520px) {
  .container { padding: 0 1rem; }
  .header-inner { height: 60px; }
  .brand-logo { height: 26px; }
  .brand-name { font-size: 1.1rem; }
  h1 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .hero { padding: 2.5rem 0 3rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-lg { width: 100%; }
  .card, .pillar { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
