/* Haan Residence - conceptontwerp nieuwesite.nl
   Art-direction: mediterraan warm. Crème/terracotta-basis met diep azuurblauw
   als drager (Spaanse tegels). Fraunces (serif-display) + Archivo (sans).
   Vormtaal: scherpe rechthoeken, pijl-knoppen, azulejo-accenten. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --creme: #f8f0e1;
  --creme-diep: #f1e5cd;
  --zand: #e9d9b8;
  --terracotta: #bc5127;
  --terracotta-diep: #9e401b;
  --azuur: #14417e;
  --azuur-diep: #0d2c58;
  --azuur-helder: #2f6cb3;
  --inkt: #2a251a;
  --inkt-zacht: #6b6151;
  --lijn: #ddcda9;
  --licht: #faf5ea;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Archivo", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--inkt);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--azuur);
}

h2 { font-size: clamp(2rem, 3.6vw, 3rem); }

p { color: var(--inkt-zacht); }
h1 + p, h2 + p { margin-top: 1rem; }

a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.overlijn {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

/* ---------- azulejo-rand (tegelmotief) ---------- */
.azulejo {
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'%3E%3Cpath d='M10 0 L20 5 L10 10 L0 5 Z' fill='%2314417e'/%3E%3C/svg%3E");
  background-size: 20px 10px;
  background-repeat: repeat-x;
}

/* ---------- knoppen: scherpe rechthoek, pijl schuift door ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-weight: 550;
  font-size: 0.97rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.pijl {
  position: relative;
  width: 20px;
  height: 12px;
  overflow: hidden;
  flex: none;
}
.pijl svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 12px;
}
.pijl svg + svg { transform: translateX(-26px); }
@media (prefers-reduced-motion: no-preference) {
  .pijl svg { transition: transform 0.3s cubic-bezier(0.5, 0, 0.2, 1); }
  .btn:hover .pijl svg:first-child { transform: translateX(26px); }
  .btn:hover .pijl svg + svg { transform: translateX(0); }
}

.btn-terra { background: var(--terracotta); color: var(--licht); }
.btn-terra:hover { background: var(--terracotta-diep); color: var(--licht); }
.btn-azuur { background: var(--azuur); color: var(--licht); }
.btn-azuur:hover { background: var(--azuur-diep); color: var(--licht); }
.btn-licht { background: var(--licht); color: var(--azuur); }
.btn-licht:hover { background: #fff; }
.btn-omlijnd { border-color: rgba(250, 245, 234, 0.55); color: var(--licht); }
.btn-omlijnd:hover { border-color: var(--licht); background: rgba(250, 245, 234, 0.12); }

/* ---------- smalle vaste balk: transparant -> azuur ---------- */
.site-kop {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  background: transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.site-kop.gescrold,
.site-kop:has(.mobiel-menu:not([hidden])) {
  background: var(--azuur);
  box-shadow: 0 10px 30px rgba(13, 44, 88, 0.28);
}
.kop-binnen {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 62px;
}
.kop-logo img { width: 172px; height: auto; }
.kop-nav {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
}
.kop-nav a {
  position: relative;
  color: var(--licht);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding-block: 0.3rem;
}
.kop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--zand);
  transform: scaleX(0);
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .kop-nav a::after { transition: transform 0.3s cubic-bezier(0.5, 0, 0.2, 1); }
}
.kop-nav a:hover::after, .kop-nav a:focus-visible::after { transform: scaleX(1); }
.kop-cta { padding: 0.55rem 1.15rem; font-size: 0.92rem; }

.menu-knop { display: none; }
.mobiel-menu { display: none; }

@media (max-width: 880px) {
  .kop-nav, .kop-cta { display: none; }
  .kop-logo img { width: 150px; }
  .menu-knop {
    display: grid;
    gap: 6px;
    margin-left: auto;
    background: none;
    border: 0;
    padding: 12px 4px;
    cursor: pointer;
  }
  .menu-knop span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--licht);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .menu-knop[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-knop[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobiel-menu {
    display: grid;
    gap: 0.3rem;
    padding: 0.9rem 1.4rem 1.6rem;
    background: var(--azuur);
    box-shadow: 0 16px 34px rgba(13, 44, 88, 0.3);
  }
  .mobiel-menu[hidden] { display: none; }
  .mobiel-menu a {
    color: var(--licht);
    text-decoration: none;
    padding: 0.55rem 0;
    font-size: 1.05rem;
  }
  .mobiel-menu .btn { justify-content: center; margin-top: 0.7rem; }
}

/* ---------- hero met kenburns ---------- */
.hero {
  position: relative;
  min-height: min(92dvh, 900px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-foto {
    animation: kenburns 22s ease-out both;
    transform-origin: 62% 38%;
  }
  @keyframes kenburns {
    from { transform: scale(1.09) translateX(1.4%); }
    to { transform: scale(1); translate: none; }
  }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(200deg, rgba(13, 30, 51, 0) 40%, rgba(13, 30, 51, 0.66) 84%),
    linear-gradient(0deg, rgba(13, 30, 51, 0.4), rgba(13, 30, 51, 0.08) 45%);
}
.hero-inhoud {
  width: 100%;
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
  color: var(--licht);
}
.hero-score {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  background: var(--terracotta);
  color: var(--licht);
  padding: 0.45rem 0.95rem;
  margin-bottom: 1.4rem;
}
.hero-score strong {
  font-family: var(--serif);
  font-weight: 620;
  font-size: 1.45rem;
  line-height: 1;
}
.hero-score span { font-size: 0.85rem; letter-spacing: 0.05em; }
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  max-width: 14ch;
  color: var(--licht);
}
.hero-sub {
  margin-top: 1.15rem;
  max-width: 48ch;
  font-size: 1.1rem;
  color: rgba(250, 245, 234, 0.92);
}
.hero-acties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* ---------- secties algemeen ---------- */
.sectie { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.sectie-kop { max-width: 66ch; }
.sectie-lead { font-size: 1.06rem; }

/* ---------- intro + cijfers ---------- */
.intro-raster {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.intro-tekst p + p { margin-top: 0.9rem; }
.cijfers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid var(--lijn);
  border-top: 1px solid var(--lijn);
}
.cijfer {
  border-right: 1px solid var(--lijn);
  border-bottom: 1px solid var(--lijn);
  padding: 1.5rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column-reverse;
}
.cijfer dd {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  line-height: 1;
  color: var(--azuur);
}
.cijfer:first-child dd { color: var(--terracotta); }
.cijfer dt {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--inkt-zacht);
}

/* ---------- villa's: horizontale strook ---------- */
.sectie-villas {
  background: var(--creme-diep);
  overflow: hidden;
}
.villas-kop {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.strook-knoppen { display: flex; gap: 0.6rem; flex: none; }
.strook-knop {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--azuur);
  color: var(--azuur);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.strook-knop svg { width: 22px; height: 14px; }
.strook-knop:hover { background: var(--azuur); color: var(--licht); }
.strook-knop:disabled { opacity: 0.3; cursor: default; }
.strook-knop:disabled:hover { background: transparent; color: var(--azuur); }

.villa-strook {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.6rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 1.2rem;
  /* strook laten uitlopen tot de viewport-rand */
  margin-inline: calc(50% - 50vw);
  padding-inline: max(calc(50vw - 620px + clamp(1.25rem, 4vw, 2.5rem)), 1.25rem);
  scroll-padding-inline: max(calc(50vw - 620px + clamp(1.25rem, 4vw, 2.5rem)), 1.25rem);
  scrollbar-color: var(--azuur) transparent;
}
.villa-strook::-webkit-scrollbar { height: 8px; }
.villa-strook::-webkit-scrollbar-track { background: transparent; }
.villa-strook::-webkit-scrollbar-thumb { background: var(--zand); }

.villa {
  flex: 0 0 clamp(280px, 78vw, 400px);
  scroll-snap-align: start;
  background: var(--licht);
  display: flex;
  flex-direction: column;
  border-bottom: 3px solid var(--azuur);
}
.villa-groot { flex-basis: clamp(300px, 92vw, 800px); flex-direction: row; }
.villa-groot .villa-foto { flex: 1.15; }
.villa-groot .villa-foto img { height: 100%; min-height: 100%; aspect-ratio: auto; }
.villa-groot .villa-info { flex: 1; }
@media (max-width: 720px) {
  .villa-groot { flex-direction: column; flex-basis: clamp(280px, 78vw, 400px); }
  .villa-groot .villa-foto img { aspect-ratio: 3 / 2; height: auto; }
}

.villa-foto { position: relative; overflow: hidden; }
.villa-foto img {
  aspect-ratio: 3 / 2;
  width: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  .villa-foto img { transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1); }
  .villa:hover .villa-foto img { transform: scale(1.05); }
}
.villa-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--azuur);
  color: var(--licht);
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.8rem;
}
.villa-badge-terra { background: var(--terracotta); }

.villa-info {
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.villa-plaats {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--inkt-zacht);
  margin-bottom: 0.4rem;
}
.villa h3 { font-size: 1.55rem; }
.villa-groot h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.villa-meta {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--inkt-zacht);
}
.villa-blurb { margin-top: 0.75rem; font-size: 0.95rem; margin-bottom: 1.2rem; }
.villa-voet {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--lijn);
}
.villa-prijs { font-size: 0.88rem; color: var(--inkt-zacht); }
.villa-prijs strong {
  font-family: var(--serif);
  font-weight: 620;
  font-size: 1.4rem;
  color: var(--terracotta);
  margin-right: 0.15rem;
}
.villa-score { font-size: 0.88rem; color: var(--inkt-zacht); white-space: nowrap; }
.villa-score strong {
  font-family: var(--serif);
  color: var(--azuur);
  font-size: 1.15rem;
}
.villa-score-nieuw { color: var(--terracotta); font-weight: 550; }

.villa-noot {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  max-width: 75ch;
}

/* ---------- reviews: volvlak azuur met grote 9,5 ---------- */
.sectie-reviews {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23faf5ea' stroke-opacity='0.07'%3E%3Cpath d='M28 6 L34 22 L50 28 L34 34 L28 50 L22 34 L6 28 L22 22 Z'/%3E%3Ccircle cx='28' cy='28' r='5'/%3E%3C/g%3E%3C/svg%3E") var(--azuur);
  background-size: 56px 56px;
  color: var(--licht);
}
.reviews-raster {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.reviews-score .overlijn { color: var(--zand); }
.reviews-score .score-groot {
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(6.5rem, 13vw, 11rem);
  line-height: 0.9;
  color: var(--licht);
}
.reviews-score .score-groot sub {
  font-size: 0.22em;
  font-weight: 400;
  color: var(--zand);
  vertical-align: baseline;
}
.score-streep {
  width: 84px;
  height: 6px;
  background: var(--terracotta);
  margin-block: 1.4rem;
}
.reviews-score h2 { color: var(--licht); font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.reviews-score p { font-size: 0.98rem; color: rgba(250, 245, 234, 0.78); }
.deelscores {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.55rem;
  max-width: 320px;
}
.deelscore {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: rgba(250, 245, 234, 0.85);
  border-bottom: 1px solid rgba(250, 245, 234, 0.18);
  padding-bottom: 0.45rem;
}
.deelscore strong {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--licht);
}
.reviews-lijst { display: grid; gap: 1.4rem; }
.review {
  background: rgba(13, 44, 88, 0.55);
  border-left: 3px solid var(--terracotta);
  padding: 1.7rem 1.9rem;
}
.review p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  font-size: 1.14rem;
  line-height: 1.55;
  color: var(--licht);
}
.review footer {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: rgba(250, 245, 234, 0.68);
}
.review footer strong { color: var(--licht); font-weight: 550; margin-right: 0.5rem; }

/* ---------- omgeving ---------- */
.sectie-omgeving {
  position: relative;
  isolation: isolate;
  padding-block: clamp(5rem, 12vw, 9rem);
  display: flex;
  align-items: center;
}
.omgeving-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.omgeving-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(13, 30, 51, 0.2), rgba(13, 30, 51, 0.04) 55%);
}
.omgeving-inhoud { width: 100%; display: flex; justify-content: flex-start; }
.omgeving-paneel {
  max-width: 580px;
  background: rgba(248, 240, 225, 0.95);
  border-top: 6px solid var(--terracotta);
  padding: clamp(2rem, 4vw, 3.2rem);
}
.omgeving-paneel p + p { margin-top: 0.9rem; }

/* ---------- over ons ---------- */
.overons-raster {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.overons-tekst p + p { margin-top: 0.9rem; }
.diensten-kop {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azuur);
  padding-bottom: 0.9rem;
}
.dienst {
  border-top: 1px solid var(--lijn);
  padding-block: 1.15rem;
}
.dienst h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--azuur);
}
.dienst p { font-size: 0.95rem; margin-top: 0.25rem; }

/* ---------- contact: volvlak terracotta ---------- */
.sectie-contact {
  background: var(--terracotta);
  color: var(--licht);
}
.contact-binnen { max-width: 760px; }
.sectie-contact .overlijn { color: var(--zand); }
.sectie-contact h2 { color: var(--licht); font-size: clamp(2.1rem, 4vw, 3.2rem); }
.contact-lead { color: rgba(250, 245, 234, 0.9); font-size: 1.08rem; max-width: 52ch; }
.contact-acties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.sectie-contact .btn-licht { color: var(--terracotta-diep); }
.contact-noot {
  margin-top: 1.6rem;
  font-size: 0.92rem;
  color: rgba(250, 245, 234, 0.72);
}

/* ---------- footer ---------- */
.site-voet {
  background: var(--azuur-diep);
  color: var(--licht);
  padding-top: 3.5rem;
}
.voet-raster {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem 4rem;
  align-items: start;
  padding-bottom: 2.5rem;
}
.voet-merk img { width: 150px; height: auto; }
.voet-nav { display: grid; gap: 0.45rem; justify-content: center; }
.voet-nav a, .voet-contact a {
  color: var(--licht);
  text-decoration: none;
  font-size: 0.95rem;
}
.voet-nav a:hover, .voet-contact a:hover { color: var(--zand); }
.voet-contact { text-align: right; }
.voet-contact p { line-height: 1.9; color: rgba(250, 245, 234, 0.85); }
.voet-socials { margin-top: 0.8rem; }
.voet-socials a { margin-left: 1.1rem; font-size: 0.9rem; color: rgba(250, 245, 234, 0.65); }
.voet-socials a:first-child { margin-left: 0; }
.voet-onder {
  border-top: 1px solid rgba(250, 245, 234, 0.18);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.voet-onder p { font-size: 0.85rem; color: rgba(250, 245, 234, 0.6); }
.voet-credit { color: var(--zand); }

/* ---------- scroll-reveal (alleen zonder reduced motion, via JS) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.zichtbaar { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .reviews-raster { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .intro-raster, .overons-raster { grid-template-columns: 1fr; }
  .villas-kop { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .voet-raster { grid-template-columns: 1fr; gap: 2rem; }
  .voet-contact { text-align: left; }
  .voet-nav { justify-content: start; }
}

@media (max-width: 640px) {
  .hero { min-height: min(82dvh, 720px); }
  .hero-acties .btn { flex: 1 1 100%; justify-content: center; }
  .contact-acties .btn { flex: 1 1 100%; justify-content: center; }
  .cijfers { grid-template-columns: 1fr 1fr; }
  .villa-strook { padding-inline: 1.25rem; }
}
