/* landelijk-wonen-in-de-achterhoek.agenticfirst.nl — design "De Coulisse"
   DHS gold (#A08A44, their own brand) on cream paper + deep coulisse green.
   Playfair Display headings (self-hosted latin), system sans body.
   Zero webfont CDNs, zero cookies, zero third-party anything. */

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --goud: #a08a44;
  --goud-licht: #d7b875;
  --goud-tekst: #6f5d24;      /* AA on paper */
  --groen: #2e4632;
  --groen-donker: #223525;
  --papier: #f7f4ec;
  --papier-warm: #efe9da;
  --inkt: #26221b;
  --inkt-zacht: #4c463a;
  --wit: #fffdf8;
  --lijn: #d9d2bf;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  color: var(--inkt);
  background: var(--papier);
  line-height: 1.65;
  font-size: 1.0625rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--inkt); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.25rem; }
a { color: var(--goud-tekst); }
a:hover { color: var(--groen); }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--groen); color: var(--wit);
  padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

.kicker {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--goud-tekst); font-weight: 600; margin-bottom: .5rem;
}

/* ── header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.2rem 2rem; flex-wrap: wrap;
  padding: .7rem clamp(1rem, 4vw, 3rem);
  background: rgba(247, 244, 236, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lijn);
}
.brand { text-decoration: none; }
.wm { display: inline-flex; flex-direction: column; line-height: 1.05; }
.wm-top {
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--inkt);
}
.wm-sub {
  font-family: var(--serif); font-weight: 600; font-style: italic;
  font-size: .95rem; color: var(--goud-tekst);
}
.site-footer .wm-top { color: var(--papier); }
.site-footer .wm-sub { color: var(--goud-licht); }
.nav-wrap { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.site-nav { display: flex; gap: 1.4rem; }
.nav-toggle { display: none; }
.site-nav a {
  text-decoration: none; color: var(--inkt); font-weight: 600; font-size: .98rem;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.is-active { border-bottom-color: var(--goud); color: var(--inkt); }

/* ── buttons ── */
.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 4px;
  font-weight: 700; text-decoration: none; font-size: 1rem; font-family: var(--sans);
  border: 2px solid transparent; cursor: pointer; text-align: center;
}
.btn-green { background: var(--groen); color: var(--wit); }
.btn-green:hover { background: var(--groen-donker); color: var(--wit); }
.btn-gold { background: var(--goud-licht); color: var(--inkt); }
.btn-gold:hover { background: #e6cc95; color: var(--inkt); }
.btn-paper { background: var(--papier); color: var(--inkt); }
.btn-paper:hover { background: var(--wit); color: var(--inkt); }
.btn-ghost { background: transparent; color: var(--wit); border-color: var(--wit); }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); color: var(--wit); }
.btn-ghost-dark { background: transparent; color: var(--inkt); border-color: var(--inkt); }
.btn-ghost-dark:hover { background: rgba(0, 0, 0, .06); color: var(--inkt); }
.header-cta { padding: .55rem 1.1rem; font-size: .92rem; }
.text-link { font-weight: 700; color: var(--goud-tekst); text-decoration: none; border-bottom: 2px solid var(--goud-licht); }
.text-link:hover { color: var(--groen); border-bottom-color: var(--groen); }

/* ── hero ── */
.hero { position: relative; min-height: min(88vh, 780px); display: flex; align-items: flex-end; }
.hero picture { position: absolute; inset: 0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16, 22, 14, .82) 0%, rgba(16, 22, 14, .45) 34%, rgba(16, 22, 14, .12) 60%, rgba(16, 22, 14, .25) 100%);
}
.hero-panel {
  position: relative; z-index: 2; margin: 0 auto;
  width: min(1100px, 100%); padding: clamp(1rem, 4vw, 3rem);
  color: var(--wit);
}
.hero-panel .kicker { color: #e8d5a4; text-shadow: 0 1px 3px rgba(0, 0, 0, .75); }
.hero-panel h1 { color: var(--wit); text-shadow: 0 2px 6px rgba(0, 0, 0, .6), 0 4px 26px rgba(0, 0, 0, .5); }
.hero-sub { max-width: 46rem; margin: 1rem 0 1.4rem; font-size: 1.1rem; font-weight: 500;
  color: #fdfbf4; text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 2px 16px rgba(0, 0, 0, .55); }
.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-rating { margin-top: 1.1rem; font-size: .95rem; color: #fdfbf4; text-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 1px 10px rgba(0, 0, 0, .6); }
.hero-rating strong { color: var(--goud-licht); font-size: 1.1rem; }

/* ── trust strip ── */
.trust { background: var(--groen); color: var(--papier); }
.trust-row {
  width: min(1200px, 100%); margin: 0 auto; padding: 1.1rem clamp(1rem, 4vw, 3rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem 2rem;
}
.trust-item { display: flex; flex-direction: column; font-size: .92rem; }
.trust-item strong { color: var(--wit); font-size: .98rem; }
.trust-item span { color: var(--goud-licht); }

/* ── sections ── */
main section { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem); }
.section-head { width: min(760px, 100%); margin: 0 auto 2.2rem; text-align: center; }
.section-head p { margin-top: .6rem; color: var(--inkt-zacht); }
.section-head-left { text-align: left; margin-left: 0; }
.center { text-align: center; margin-top: 2rem; }

/* treeline divider */
.treeline { color: var(--goud); opacity: .55; padding: 0 !important; margin: 1.6rem auto; width: min(720px, 90%); }
.treeline svg { width: 100%; height: auto; display: block; }
.treeline-footer .treeline { color: var(--goud-licht); opacity: .8; margin: 0 auto 1.6rem; }

/* ── woning cards ── */
.aanbod-teaser { background: var(--papier); }
.woning-grid {
  width: min(1340px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.6rem;
}
.woning-card {
  background: var(--wit); border: 1px solid var(--lijn); border-radius: 6px;
  overflow: hidden; box-shadow: 0 1px 3px rgba(38, 34, 27, .07);
  transition: box-shadow .15s ease, transform .15s ease;
}
.woning-card:hover { box-shadow: 0 8px 26px rgba(38, 34, 27, .16); transform: translateY(-2px); }
.woning-link { display: block; text-decoration: none; color: var(--inkt); height: 100%; }
.woning-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.woning-media picture, .woning-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.woning-type {
  position: absolute; left: .8rem; top: .8rem; background: var(--groen); color: var(--wit);
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 3px;
}
.woning-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; }
.woning-body h3 { display: flex; flex-direction: column; gap: .1rem; }
.woning-plaats { font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--goud-tekst); text-transform: uppercase; letter-spacing: .08em; }
.woning-kenm { font-size: .85rem; color: var(--inkt-zacht); }
.woning-oms { font-size: .95rem; color: var(--inkt-zacht); }
.woning-prijs { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; margin-top: .2rem; }
.woning-prijs span { font-family: var(--sans); font-weight: 400; font-size: .85rem; color: var(--inkt-zacht); }
.woning-cta { font-weight: 700; font-size: .92rem; color: var(--goud-tekst); }
.woning-link:hover .woning-cta { color: var(--groen); text-decoration: underline; }
.groep-kop {
  width: min(1340px, 100%); margin: 2.6rem auto 1.2rem;
  padding-bottom: .4rem; border-bottom: 2px solid var(--goud-licht);
}
.page .woning-grid { margin-bottom: 1rem; }

/* ── stille verkoop band ── */
.stille { background: var(--papier-warm); }
.stille-inner {
  width: min(1200px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.stille-media img { border-radius: 6px; box-shadow: 0 10px 34px rgba(38, 34, 27, .18); }
.stille-text h2 { margin-bottom: .8rem; }
.stille-text p { margin-bottom: .9rem; color: var(--inkt-zacht); }
.stille-text .hero-ctas { margin-top: 1.2rem; }
@media (max-width: 860px) {
  .stille-inner { grid-template-columns: 1fr; }
}

/* ── reviews ── */
.review-grid {
  width: min(1200px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem;
}
.review-card {
  position: relative; background: var(--wit); border: 1px solid var(--lijn);
  border-radius: 3px; padding: 1.6rem 1.5rem 1.2rem;
  box-shadow: 0 6px 18px rgba(38, 34, 27, .09);
}
.review-grid .review-card:nth-child(odd) { transform: rotate(-.6deg); }
.review-grid .review-card:nth-child(even) { transform: rotate(.6deg); }
.review-card::before {
  content: '\201C'; position: absolute; top: .1rem; left: .8rem; line-height: 1;
  font-family: var(--serif); font-weight: 700; font-size: 4.2rem; color: rgba(160, 138, 68, .3);
}
.review-seal {
  position: absolute; top: -15px; right: -9px; width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transform: rotate(8deg);
  background: radial-gradient(circle at 34% 28%, #ecd9ae, var(--goud-licht) 45%, #b99a52 100%);
  color: #3a2f10; font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
  border: 2px solid rgba(255, 253, 248, .65); box-shadow: 0 3px 9px rgba(38, 34, 27, .28);
}
.review-card blockquote {
  font-family: var(--serif); font-size: 1.08rem; font-style: italic;
  margin: 0 0 .9rem; padding: .9rem 0 0 2.3rem;
}
.review-card figcaption {
  font-size: .88rem; color: var(--inkt-zacht); padding-left: 2.3rem;
  border-top: 1px dashed var(--goud-licht); padding-top: .7rem;
}

/* ── kennis cards ── */
.kennis-grid {
  width: min(1200px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem;
}
.kennis-grid-page { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.kennis-card {
  position: relative; display: flex; flex-direction: column; gap: .6rem;
  background: var(--wit); border: 1px solid var(--lijn); border-radius: 4px;
  padding: 2rem 1.5rem 1.2rem; text-decoration: none; color: var(--inkt);
  transition: box-shadow .15s ease, transform .15s ease;
}
.kennis-card::after {
  content: ''; position: absolute; inset: 7px; border: 1px solid rgba(160, 138, 68, .4);
  border-radius: 2px; pointer-events: none;
}
.kaart-tab {
  position: absolute; top: -11px; left: 20px; background: var(--groen); color: var(--goud-licht);
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: .2rem .7rem; border-radius: 2px; z-index: 1;
}
.kaart-nr::before {
  content: attr(data-nr); position: absolute; top: .55rem; right: 1.1rem;
  font-family: var(--serif); font-weight: 700;
  font-size: 2.6rem; line-height: 1; color: rgba(160, 138, 68, .22);
}
.kennis-card h3 { padding-right: 3rem; }
.kennis-card:hover { box-shadow: 0 10px 28px rgba(38, 34, 27, .16); transform: translateY(-2px); color: var(--inkt); }
.kennis-card p { color: var(--inkt-zacht); font-size: .95rem; flex-grow: 1; }
.kaart-voet { border-top: 1px dashed var(--goud-licht); padding-top: .8rem; margin-top: .4rem; }

/* ── faq ── */
.faq { background: var(--papier); }
.faq-list { width: min(820px, 100%); margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--lijn); }
.faq-item summary {
  cursor: pointer; padding: 1rem .4rem; font-weight: 700; font-size: 1.05rem;
  list-style: none; display: flex; align-items: baseline; gap: .8rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '\25B8'; color: var(--goud); flex: 0 0 auto; margin-left: .2rem;
  transition: transform .15s ease; transform-origin: 45% 55%;
}
.faq-item[open] summary::before { transform: rotate(90deg); }
.faq-item summary:hover { color: var(--goud-tekst); }
.faq-item p { padding: 0 .4rem 1.2rem 2.4rem; color: var(--inkt-zacht); max-width: 60rem; }

/* ── cta band ── */
.ctaband {
  background: var(--groen); color: var(--papier); text-align: center;
  padding-top: clamp(4rem, 9vw, 6.5rem); padding-bottom: clamp(4rem, 9vw, 6.5rem);
}
.ctaband h2 { color: var(--wit); margin-bottom: .7rem; }
.ctaband p { max-width: 44rem; margin: 0 auto 1.4rem; color: var(--papier); }
.ctaband-alt { display: block; margin-top: 1rem; font-size: .95rem; }
.ctaband-alt a { color: var(--goud-licht); }

/* ── generic page / prose ── */
.page { width: min(1200px, 100%); margin: 0 auto; padding: 1.6rem clamp(1rem, 4vw, 3rem) 3rem; }
.breadcrumb { font-size: .88rem; color: var(--inkt-zacht); margin-bottom: 1.6rem; }
.breadcrumb a { color: var(--inkt-zacht); }
.breadcrumb span { margin: 0 .3rem; color: var(--goud); }
.prose { max-width: 46rem; }
.prose h1 { margin-bottom: 1rem; }
.prose h2 { margin: 2.2rem 0 .8rem; }
.prose p { margin-bottom: 1rem; }
.prose .intro { font-size: 1.15rem; color: var(--inkt-zacht); }
.prose .treeline { margin-left: 0; width: min(480px, 90%); }
.prose-img { margin: 1.6rem 0; }
.prose-img img { border-radius: 6px; }
.prose-img figcaption { font-size: .85rem; color: var(--inkt-zacht); margin-top: .5rem; }
.page-kennis { display: grid; grid-template-columns: minmax(0, 46rem) 260px; gap: 3rem; }
.page-kennis .breadcrumb { grid-column: 1 / -1; }
.related { align-self: start; position: sticky; top: 100px; }
.related h2 { font-size: 1.1rem; margin-bottom: .8rem; }
.related ul { list-style: none; }
.related li { margin-bottom: .7rem; }
.related a { font-size: .95rem; }
@media (max-width: 980px) {
  .page-kennis { grid-template-columns: 1fr; }
  .related { position: static; }
}

.aanbod-stille {
  margin-top: 3rem; background: var(--papier-warm); border-left: 4px solid var(--goud);
  border-radius: 6px; padding: 1.6rem 1.8rem; max-width: 52rem;
}
.aanbod-stille h2 { margin-bottom: .6rem; font-size: 1.4rem; }
.aanbod-stille p { color: var(--inkt-zacht); }

/* ── contact / form ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-details { color: var(--inkt-zacht); margin-bottom: 1rem; }
.contact-form {
  background: var(--wit); border: 1px solid var(--lijn); border-top: 4px solid var(--goud);
  border-radius: 6px; padding: 1.8rem; align-self: start;
}
.contact-form label { display: block; font-weight: 700; font-size: .92rem; margin: 1rem 0 .3rem; }
.contact-form label:first-child { margin-top: 0; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: .7rem .8rem; font: inherit; color: var(--inkt);
  border: 1px solid var(--lijn); border-radius: 4px; background: var(--papier);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--goud); outline-offset: 1px;
}
.contact-form .btn { margin-top: 1.4rem; width: 100%; }
.form-note { font-size: .88rem; color: var(--inkt-zacht); margin-top: .9rem; }
.form-thanks h2 { margin-bottom: .6rem; }

/* ── footer ── */
.site-footer { background: var(--groen-donker); color: var(--papier); padding: 2.5rem clamp(1rem, 4vw, 3rem) 1.5rem; }
.footer-inner {
  width: min(1200px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem;
}
.footer-col h2 { color: var(--goud-licht); font-size: 1.05rem; margin-bottom: .7rem; }
.footer-col p { font-size: .93rem; margin-bottom: .8rem; color: #d8d4c8; }
.footer-col a { color: var(--papier); display: inline-block; }
.footer-col > a { display: block; margin-bottom: .45rem; font-size: .95rem; text-decoration: none; }
.footer-col > a:hover { color: var(--goud-licht); }
.footer-brand p { margin-top: .8rem; }
.footer-legal {
  width: min(1200px, 100%); margin: 2rem auto 0; padding-top: 1.2rem;
  border-top: 1px solid rgba(215, 184, 117, .25);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  font-size: .88rem; color: #bdb8a8;
}
.footer-legal a { color: var(--goud-licht); }

/* ── small screens ── */
@media (max-width: 760px) {
  .site-header { flex-wrap: nowrap; gap: .8rem; padding: .55rem 1rem; }
  .wm-top { font-size: 1.1rem; }
  .wm-sub { font-size: .78rem; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 44px; height: 44px; padding: 10px;
    background: none; border: 1px solid var(--lijn); border-radius: 4px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; width: 100%; background: var(--inkt); border-radius: 1px; }
  .nav-wrap {
    display: none; flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: 0; margin: .3rem -1rem 0; padding: .3rem 1rem .9rem;
    border-top: 1px solid var(--lijn);
  }
  .site-header.nav-open { flex-wrap: wrap; }
  .site-header.nav-open .nav-wrap { display: flex; }
  .site-nav { flex-direction: column; gap: 0; }
  .site-nav a { padding: .75rem .2rem; border-bottom: 1px solid var(--lijn); font-size: 1.05rem; }
  .site-nav a:hover, .site-nav a.is-active { border-bottom-color: var(--lijn); color: var(--goud-tekst); }
  .header-cta { margin-top: .9rem; }
  .hero { min-height: 74vh; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .review-grid .review-card { transform: none; margin-top: 10px; }
}

/* ── motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .woning-card, .woning-card:hover, .kennis-card, .kennis-card:hover { transition: none; transform: none; }
  .faq-item summary::before { transition: none; }
  .review-grid .review-card { transform: none; }
}

/* ── api page ── */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em; background: var(--papier-warm); padding: .1em .35em; border-radius: 3px;
}
.api-tabelwrap { overflow-x: auto; margin: 1rem 0 1.6rem; }
.api-tabel { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
.api-tabel th {
  text-align: left; font-family: var(--serif); font-size: 1rem;
  border-bottom: 2px solid var(--goud-licht); padding: .5rem .8rem .5rem 0;
}
.api-tabel td { border-bottom: 1px solid var(--lijn); padding: .6rem .8rem .6rem 0; vertical-align: top; }
.api-tabel td:nth-child(2) { white-space: nowrap; color: var(--inkt-zacht); }
