/*
 * Stichting Therapiepaardje Nederland
 * Zelfstandig responsive thema — alle hoofdkleuren staan hieronder.
 */
:root {
  --green-950: #102d19;
  --green-900: #173f22;
  --green-800: #20572d;
  --green-700: #2f7439;
  --green-600: #438c47;
  --green-200: #cfe3cb;
  --green-100: #e8f1e5;
  --green-50: #f3f7f0;
  --sand-100: #f7f4ec;
  --sand-200: #eee8d9;
  --terracotta: #ba6849;
  --ink: #172119;
  --muted: #5d6b60;
  --white: #ffffff;
  --line: #d9ded6;
  --danger: #aa2635;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 9px 30px rgba(16, 45, 25, .08);
  --shadow: 0 22px 70px rgba(16, 45, 25, .15);
  --content: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sand-100);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-800); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--green-600); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #df9c50; outline-offset: 3px; }
::selection { color: var(--green-950); background: #d8ebc9; }

.skip-link {
  position: fixed; z-index: 1000; top: 12px; left: 12px;
  padding: 10px 16px; color: var(--white); background: var(--green-950);
  border-radius: 999px; transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.container { width: min(calc(100% - 36px), var(--content)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 12px; color: var(--green-700); font-size: .76rem; font-weight: 850;
  letter-spacing: .14em; line-height: 1.3; text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky; z-index: 100; top: 0;
  background: color-mix(in srgb, var(--sand-100) 93%, transparent);
  border-bottom: 1px solid rgba(23, 63, 34, .12);
  backdrop-filter: blur(16px);
}
.header-inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; max-width: 330px; align-items: center; gap: 12px; color: var(--green-950); text-decoration: none; }
.brand-mark {
  display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center;
  color: var(--white); background: var(--green-800); border: 3px solid var(--white);
  border-radius: 50%; box-shadow: 0 0 0 1px var(--green-800); font: 800 .83rem/1 var(--serif);
}
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong { font: 700 clamp(1rem, 1.8vw, 1.2rem)/1.05 var(--serif); }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.nav-toggle {
  display: none; width: 48px; height: 48px; place-items: center; padding: 0;
  color: var(--green-950); background: var(--white); border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  width: 20px; height: 2px; background: currentColor; border-radius: 2px; content: ""; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle { grid-template-rows: repeat(3, 2px); gap: 4px; }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 25px); }
.site-nav a { color: var(--ink); font-size: .89rem; font-weight: 760; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green-700); }
.site-nav .nav-cta { padding: 10px 17px; color: var(--white); background: var(--green-700); border-radius: 999px; }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { color: var(--white); background: var(--green-900); }

/* Hero */
.page-main { overflow: clip; }
.hero { padding: clamp(24px, 4vw, 52px) 0 clamp(56px, 8vw, 96px); }
.hero-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .92fr);
  min-height: 560px; align-items: center; gap: clamp(26px, 5vw, 68px);
  padding: clamp(32px, 6vw, 76px); overflow: hidden; color: var(--white);
  background: var(--green-950); border-radius: var(--radius-lg); box-shadow: var(--shadow); isolation: isolate;
}
.hero-card::before {
  position: absolute; z-index: -1; width: 470px; height: 470px; right: -210px; bottom: -250px;
  background: rgba(100, 153, 81, .25); border: 1px solid rgba(255,255,255,.11); border-radius: 50%; content: "";
}
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero .eyebrow { color: #beddad; }
.hero h1 { max-width: 14ch; margin: 0; font: 700 clamp(2.7rem, 6vw, 5.15rem)/.98 var(--serif); letter-spacing: -.045em; text-wrap: balance; }
.hero-lead { max-width: 58ch; margin: 24px 0 0; color: rgba(255,255,255,.8); font-size: clamp(1.02rem, 1.55vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 21px; border: 1px solid transparent; border-radius: 999px;
  font-size: .92rem; font-weight: 820; line-height: 1.2; text-align: center; text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--green-950); background: var(--white); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.button-primary:hover { color: var(--green-950); background: var(--green-100); }
.button-secondary { color: var(--white); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.38); }
.button-secondary:hover { color: var(--white); background: rgba(255,255,255,.14); }
.hero-media { position: relative; min-height: 390px; align-self: stretch; margin: 0; overflow: hidden; border-radius: 28px; box-shadow: 0 20px 55px rgba(0,0,0,.3); transform: rotate(1.2deg); }
.hero-media img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.hero-media::after { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.18); border-radius: inherit; content: ""; pointer-events: none; }
.horse-line { position: absolute; left: 30px; bottom: 22px; width: 150px; opacity: .13; }

/* Breadcrumbs and page content */
.breadcrumbs { padding: 22px 0 0; color: var(--muted); font-size: .84rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { margin-left: 7px; color: #9ca69e; content: "/"; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.content-shell { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(34px, 6vw, 74px); padding-bottom: clamp(72px, 10vw, 128px); }
.content { min-width: 0; }
.content > :first-child { margin-top: 0; }
.content h2, .content h3, .content h4 { color: var(--green-950); font-family: var(--serif); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.content h2 { margin: clamp(54px, 8vw, 88px) 0 22px; font-size: clamp(2rem, 4vw, 3.15rem); }
.content h3 { margin: 44px 0 17px; font-size: clamp(1.45rem, 2.6vw, 2.05rem); }
.content h4 { margin: 32px 0 13px; font-size: 1.2rem; }
.content p, .content li { color: #354139; font-size: clamp(1rem, 1.25vw, 1.075rem); }
.content p { margin: 0 0 1.2em; }
.content a { overflow-wrap: anywhere; }
.content strong { color: var(--ink); }
.content ul, .content ol { padding-left: 1.3rem; }
.content blockquote { margin: 34px 0; padding: 22px 26px; color: var(--green-900); background: var(--green-50); border-left: 4px solid var(--green-600); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.content hr { height: 1px; margin: 58px 0; background: var(--line); border: 0; }
.j-spacing, .cc-m-spacer:empty { display: none; }
.j-module { min-width: 0; }
.j-header:first-child h1, .j-header:first-child h2, .j-header:first-child h3 { margin-top: 0; }
.j-hgrid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr)); gap: 22px; }
.cc-m-hgrid-column { width: auto !important; min-width: 0; margin: 0 !important; float: none !important; }
.cc-clear { display: none; }
.j-imageSubtitle { margin: 24px 0; }
.j-imageSubtitle figure, .j-imageSubtitle .cc-imagewrapper { margin: 0; }
.j-imageSubtitle img, .content .j-image img, .content > img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); object-fit: cover;
}
.j-imageSubtitle figcaption, .j-imageSubtitle .imageSubtitle { margin-top: 10px; color: var(--muted); font-size: .83rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 13px; margin: 30px 0; }
.photo-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; }
.j-gallery { margin: 28px 0; }
.j-gallery ul { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.j-gallery li { min-width: 0; }
.j-gallery li a { display: block; height: 100%; }
.j-gallery li img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-sm); transition: transform .18s ease; }
.j-gallery li a:hover img { transform: translateY(-3px); }
.cc-m-gallery-slider-bar, .cc-m-gallery-slider-fullscreen { display: none !important; }
.content iframe { width: 100%; min-height: 420px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.cc-m-video-wrapper { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); }
.cc-m-video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
.cc-m-video-overlay { display: none; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.content table { width: 100%; min-width: 600px; border-collapse: collapse; background: var(--white); }
.content th, .content td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.content th { color: var(--green-950); background: var(--green-50); }

/* Context navigation */
.page-aside { align-self: start; }
.aside-card { position: sticky; top: 112px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.aside-card h2 { margin: 0 0 15px; font: 700 1.35rem/1.1 var(--serif); }
.aside-links { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.aside-links a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; color: var(--ink); border-bottom: 1px solid #edf0eb; font-size: .9rem; font-weight: 720; line-height: 1.3; text-decoration: none; }
.aside-links a::after { color: var(--green-600); content: "→"; }
.aside-links a:hover, .aside-links a[aria-current="page"] { color: var(--green-700); }
.aside-card .button { width: 100%; margin-top: 20px; color: var(--white); background: var(--green-700); }

/* Forms */
.contact-card { max-width: 780px; margin: 34px 0; padding: clamp(22px, 4vw, 42px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: .91rem; font-weight: 780; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 14px; color: var(--ink); background: #fcfdfb;
  border: 1px solid #b8c2ba; border-radius: 11px; box-shadow: none;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(67, 140, 71, .22); border-color: var(--green-600); }
.form-honeypot { position: absolute !important; left: -9999px !important; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-actions button { color: var(--white); background: var(--green-700); border: 0; cursor: pointer; }
.form-actions button:disabled { opacity: .58; cursor: wait; transform: none; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .87rem; }
.consent input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; accent-color: var(--green-700); }
.form-note, .form-status { color: var(--muted); font-size: .86rem; }
.form-status { min-height: 1.5em; margin: 12px 0 0; }
.required { color: var(--danger); }

/* CTA and footer */
.site-cta { padding: 0 0 clamp(68px, 10vw, 120px); }
.cta-card { position: relative; display: grid; grid-template-columns: 1.2fr auto; align-items: center; gap: 30px; padding: clamp(30px, 6vw, 62px); overflow: hidden; color: var(--white); background: var(--terracotta); border-radius: var(--radius-lg); }
.cta-card::after { position: absolute; width: 260px; height: 260px; right: -90px; top: -120px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; content: ""; }
.cta-card h2 { max-width: 18ch; margin: 0; font: 700 clamp(2rem, 4vw, 3.5rem)/1.02 var(--serif); letter-spacing: -.035em; }
.cta-card p { max-width: 60ch; margin: 15px 0 0; color: rgba(255,255,255,.87); }
.cta-card .button { position: relative; z-index: 1; color: var(--green-950); background: var(--white); }
.site-footer { color: rgba(255,255,255,.78); background: var(--green-950); }
.footer-main { display: grid; grid-template-columns: 1.2fr repeat(3, minmax(140px, .7fr)); gap: 38px; padding: 64px 0 46px; }
.footer-brand { max-width: 380px; }
.footer-brand .brand { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,.68); font-size: .9rem; }
.footer-column h2 { margin: 0 0 14px; color: var(--white); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-column ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-column a { color: rgba(255,255,255,.74); font-size: .88rem; text-decoration: none; }
.footer-column a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }
.footer-bottom p { margin: 0; }

/* Utility and motion */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed; inset: 83px 0 auto; display: grid; max-height: calc(100dvh - 83px); align-content: start;
    gap: 0; padding: 18px; overflow-y: auto; background: var(--sand-100); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); visibility: hidden; transition: transform .24s ease, visibility .24s;
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-nav a { padding: 13px 10px; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 12px; text-align: center; border: 0; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-media { min-height: 330px; transform: none; }
  .hero-media img { min-height: 330px; }
  .content-shell { grid-template-columns: 1fr; }
  .page-aside { order: -1; }
  .aside-card { position: static; padding: 18px 20px; }
  .aside-links { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .aside-links a { border: 0; }
  .aside-card .button { display: none; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 26px), var(--content)); }
  .header-inner { min-height: 72px; }
  .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .brand-copy small { display: none; }
  .site-nav { inset-block-start: 73px; max-height: calc(100dvh - 73px); }
  .hero { padding-top: 14px; }
  .hero-card { min-height: 0; padding: 30px 21px 21px; border-radius: 24px; }
  .hero h1 { font-size: clamp(2.35rem, 13vw, 3.6rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-media, .hero-media img { min-height: 250px; }
  .breadcrumbs { padding-top: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .content iframe { min-height: 260px; }
  .cta-card { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; padding-top: 48px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
