/* Van Lieshout Bouwadvies — eerste versie
   Palet uit de oude huisstijl: marineblauw #0B2F45, leigrijs #3c4b59,
   warmgrijs #BEBCC1, off-white #f2f0f1. Donker, chic, foto-gedreven. */

:root {
  --navy: #0B2F45;
  --navy-deep: #07212f;
  --slate: #3c4b59;
  --grey: #BEBCC1;
  --offwhite: #f2f0f1;
  --line: rgba(11, 47, 69, 0.12);
  --white: #ffffff;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

.eyebrow {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 18px;
}
.section-dark .eyebrow { color: var(--grey); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 26px;
  border-radius: 2px;
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--white); color: var(--navy); }
.btn-primary:hover { transform: translateY(-2px); background: var(--grey); }
.btn-ghost { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-solid { background: var(--navy); color: var(--white); }
.btn-solid:hover { background: var(--navy-deep); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 22px 0;
  /* permanente donkere scrim bovenaan, zodat witte tekst/knoppen altijd leesbaar
     zijn — ook boven de lichte delen van de hero-foto */
  background: linear-gradient(to bottom, rgba(7,33,47,.55) 0%, rgba(7,33,47,0) 100%);
  transition: background .35s, padding .35s, box-shadow .35s;
}
.site-header.scrolled {
  background: var(--navy);
  padding: 14px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--white); font-family: "Fraunces", serif; font-size: 21px; letter-spacing: .01em; }
.brand span { font-weight: 600; }
.brand small { display:block; font-family:"Inter",sans-serif; font-size:10.5px; letter-spacing:.22em; text-transform:uppercase; color:var(--grey); font-weight:500; margin-top:2px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: rgba(255,255,255,0.85); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--white); }
.nav .btn { padding: 11px 20px; }
/* knop-kleuren expliciet herstellen: '.nav a' is specifieker dan '.btn-primary',
   waardoor de tekst anders wit-op-wit zou worden */
.nav a.btn-primary { color: var(--navy); }
.nav a.btn-ghost,
.nav a.btn-solid { color: var(--white); }
.nav-toggle { display:none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-deep);
}
/* gestapelde achtergrondlagen voor crossfade */
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-repeat: no-repeat; background-position: center 35%;
  opacity: 0; will-change: opacity;
  animation: heroCycle 32s ease-in-out infinite; /* 4 beelden × 8s, rustig */
}
.hero-slide.s1 { background-image: url("img/amsterdam.jpg"); animation-delay: 0s; }
.hero-slide.s2 { background-image: url("img/rotterdam.jpg"); animation-delay: 8s; }
.hero-slide.s3 { background-image: url("img/denhaag.jpg");   animation-delay: 16s; }
.hero-slide.s4 { background-image: url("img/hero.jpg"); background-position: center 30%; animation-delay: 24s; }
@keyframes heroCycle {
  0%      { opacity: 0; }
  6.25%   { opacity: 1; }   /* ~2s zacht infaden */
  25%     { opacity: 1; }   /* ~6s vasthouden (8s-venster) */
  31.25%  { opacity: 0; }   /* ~2s zacht uitfaden (crossfade met volgende) */
  100%    { opacity: 0; }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(7,33,47,.55) 0%, rgba(7,33,47,.62) 40%, rgba(7,33,47,.82) 100%);
}
/* alleen verticale padding: horizontale komt van .container, anders wordt die
   overschreven en plakt de herotekst tegen de schermrand op mobiel */
.hero-inner { position: relative; z-index: 2; max-width: 820px; padding-top: 120px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(38px, 6vw, 70px); margin-bottom: 26px; }
.hero p.sub { font-size: clamp(17px, 2.2vw, 21px); color: rgba(255,255,255,0.88); max-width: 640px; margin-bottom: 38px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll { position: absolute; z-index: 2; bottom: 30px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Generic section ---------- */
section { padding: 100px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; }
.section-head p { color: var(--slate); font-size: 18px; }
.section-light { background: var(--offwhite); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .section-head p { color: var(--grey); }

/* ---------- Diensten ---------- */
#diensten { padding: 84px 0; }
#diensten .section-head { margin-bottom: 40px; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service {
  background: var(--white); padding: 30px 26px;
  display: flex; flex-direction: column; gap: 11px;
  transition: background .3s var(--ease), transform .3s var(--ease);
  position: relative;
}
.service:hover { background: var(--navy); color: var(--white); }
.service:hover .service-icon { color: var(--grey); }
.service:hover .service-arrow { color: var(--white); transform: translateX(4px); }
.service-icon { width: 27px; height: 27px; color: var(--navy); }
.service h3 { font-size: 20px; }
.service p { font-size: 14px; color: inherit; opacity: .85; line-height: 1.55; }
.service-arrow { margin-top: auto; align-self: flex-start; transition: transform .3s var(--ease); width:19px;height:19px; }

/* ---------- Waarom ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.why-item { display: flex; gap: 18px; }
.why-num { font-family: "Fraunces", serif; font-size: 30px; color: var(--grey); line-height: 1; min-width: 44px; }
.why-item h3 { font-size: 20px; margin-bottom: 8px; }
.why-item p { color: var(--slate); font-size: 15.5px; }
.section-dark .why-item p { color: var(--grey); }
.section-dark .why-num { color: rgba(255,255,255,.45); }

/* ---------- Stappen ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--grey); }
.step .step-n { font-family:"Fraunces",serif; font-size: 15px; letter-spacing:.15em; color: var(--slate); margin-bottom: 12px; }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--slate); }

/* ---------- Projecten ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px;
  display: flex; align-items: flex-end;
}
.project.tall { grid-row: span 2; aspect-ratio: 4 / 5; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); filter: saturate(.92); }
.project::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,47,69,.15) 0%, rgba(11,47,69,.35) 55%, rgba(7,33,47,.92) 100%);
  transition: opacity .4s;
}
.project:hover img { transform: scale(1.06); }
.project-body { position: relative; z-index: 2; padding: 28px; color: var(--white); }
.project-loc { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); margin-bottom: 7px; }
.project-body h3 { font-size: 23px; margin-bottom: 6px; }
.project-body p { font-size: 14px; color: rgba(255,255,255,.82); }
.projects-cta { margin-top: 44px; text-align: center; }

/* ---------- Over Risto ---------- */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; border-radius: 3px; aspect-ratio: 1/1; object-fit: cover; }
.about-photo::before { content:""; position:absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--grey); border-radius:3px; z-index:-1; }
.about h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 20px; }
.about p { color: var(--slate); margin-bottom: 16px; }
.about .signature { font-family:"Fraunces",serif; font-size: 19px; color: var(--navy); margin-top: 8px; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact h2 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 18px; }
.contact p.lead { color: var(--grey); font-size: 19px; max-width: 560px; margin: 0 auto 40px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 56px; }
.contact-actions .btn { padding: 17px 30px; font-size: 16px; }
.btn-wa { background: #25D366; color: #053a21; }
.btn-wa:hover { background: #1fc15c; transform: translateY(-2px); }
.contact-details { display:flex; flex-wrap:wrap; justify-content:center; gap: 10px 28px; color: var(--grey); font-size: 14.5px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 30px; }
.contact-details a:hover { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--grey); padding: 30px 0; font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .25s var(--ease);
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Tekenwerk / craft-band (subtiele beeldband) ---------- */
.craft-band {
  position: relative; padding: 120px 0; text-align: center; color: var(--white);
  background-image: linear-gradient(rgba(7,33,47,.74), rgba(7,33,47,.78)), url("img/tekenen.jpg");
  background-size: cover; background-position: center 40%;
  background-attachment: fixed; /* rustig parallax-effect */
}
.craft-band .eyebrow { color: var(--grey); }
.craft-band h2 { font-size: clamp(25px, 3.4vw, 38px); max-width: 700px; margin: 0 auto 16px; }
.craft-band p { color: var(--grey); max-width: 540px; margin: 0 auto; font-size: 17px; }

/* ---------- Cijfers / stats-band ---------- */
.stats { background: var(--navy); color: var(--white); padding: 72px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: -15px; top: 50%; transform: translateY(-50%);
  height: 56px; width: 1px; background: rgba(255,255,255,.16);
}
.stat-num { font-family: "Fraunces", serif; font-size: clamp(38px, 5vw, 58px); line-height: 1; color: var(--white); }
.stat-label { margin-top: 12px; font-size: 14.5px; color: var(--grey); letter-spacing: .01em; }
.stats-note { text-align: center; margin-top: 34px; font-size: 13px; color: rgba(255,255,255,.45); }

/* ---------- Opdrachtgevers / logo-wall ---------- */
.clients { padding: 72px 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients-head { text-align: center; margin-bottom: 44px; }
.clients-head .eyebrow { margin-bottom: 10px; }
.clients-head h2 { font-size: clamp(24px, 3vw, 32px); }
.logo-wall {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.logo-cell {
  background: var(--white); aspect-ratio: 16 / 7;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
/* consistente "layover": alle logo's monochroom marineblauw, gedempt;
   bij hover volledig in kleur/scherp */
.logo-cell img, .logo-cell svg {
  /* expliciete hoogte i.p.v. height:auto: inline SVG's zonder width/height-attribuut
     klappen op iOS Safari anders samen tot 0px en zijn dan onzichtbaar */
  height: 40px; width: auto; max-width: 100%;
  filter: grayscale(1);
  opacity: .55;
  transition: opacity .3s var(--ease), filter .3s var(--ease), transform .3s var(--ease);
}
.logo-cell:hover img, .logo-cell:hover svg { opacity: 1; filter: grayscale(0); transform: scale(1.04); }
.logo-cell svg { color: var(--navy); }
.clients-note { text-align: center; margin-top: 26px; color: var(--slate); font-size: 14px; }

/* ---------- Subpagina's (diensten) ---------- */
.subhero {
  background: var(--navy); color: var(--white);
  padding: 150px 0 84px;
}
.subhero .eyebrow { color: var(--grey); }
.subhero h1 { font-size: clamp(34px, 5vw, 56px); max-width: 760px; margin-bottom: 22px; }
.subhero p.intro { font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,.86); max-width: 620px; margin-bottom: 32px; }
.subhero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.breadcrumb { font-size: 13px; letter-spacing: .04em; color: var(--grey); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--white); }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 22px; }
.prose h3 { font-size: 21px; margin: 36px 0 12px; }
.prose p { color: var(--slate); margin-bottom: 18px; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; }
.split .aside-img { position: sticky; top: 110px; border-radius: 3px; overflow: hidden; }
.split .aside-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.checklist { list-style: none; display: grid; gap: 14px; margin: 10px 0 8px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; color: var(--slate); }
.checklist li::before {
  content: ""; flex: none; margin-top: 7px;
  width: 9px; height: 9px; border: 2px solid var(--navy); border-radius: 50%;
}
.scope-box {
  background: var(--offwhite); border-left: 3px solid var(--navy);
  padding: 24px 28px; margin: 30px 0; border-radius: 0 3px 3px 0;
}
.scope-box strong { display: block; margin-bottom: 8px; }
.scope-box .scope-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.scope-tag { background: var(--white); border: 1px solid var(--line); padding: 7px 15px; border-radius: 100px; font-size: 14px; font-weight: 500; }
.callout { background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 24px 28px; margin: 26px 0; }
.callout h3 { margin-top: 0; }

/* andere diensten / cross-links */
.more-services { background: var(--offwhite); }
.ms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ms-card { background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 28px; transition: transform .3s var(--ease), box-shadow .3s; }
.ms-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(11,47,69,.1); }
.ms-card h3 { font-size: 19px; margin-bottom: 8px; }
.ms-card p { font-size: 14.5px; color: var(--slate); }

/* CTA-band */
.cta-band { background: var(--navy); color: var(--white); text-align: center; padding: 84px 0; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.cta-band p { color: var(--grey); max-width: 520px; margin: 0 auto 30px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav a:not(.btn) { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .project.tall { grid-row: span 1; aspect-ratio: 4/3; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 360px; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .ms-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .aside-img { position: static; order: -1; max-width: 420px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  /* header-knop op mobiel: alleen telefoon-icoon, scheelt ruimte naast de merknaam.
     Nummer visueel verbergen (niet display:none) zodat screenreaders het wél voorlezen. */
  .nav .btn-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .nav .btn-primary { padding: 10px 13px; }
  section { padding: 72px 0; }
  .services, .why-grid { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .stat + .stat::before { display: none; }
  .craft-band { background-attachment: scroll; padding: 84px 0; }
  .logo-cell { padding: 16px; }
  .logo-cell img, .logo-cell svg { height: 34px; }
  .hero-actions .btn, .contact-actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide.s1 { opacity: 1; }
}
