/* =========================================================
   AG TOTAALONDERHOUD — stylesheet
   Tokens
   ========================================================= */
:root{
  --bg:            #F7F3EC;
  --ink:           #242424;
  --ink-soft:      #55524a;
  --panel:         #E7DED2;
  --white:         #FFFFFF;

  --olive:         #838532;
  --olive-deep:    #565821;
  --olive-tint:    #EEEEDD;

  --near-black:    #1E1E1E;
  --near-black-2:  #2b2b27;

  --line:          rgba(36,36,36,0.10);
  --line-dark:     rgba(255,255,255,0.14);

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  --fs-h1: clamp(2.3rem, 3.4vw + 1.2rem, 3.75rem);
  --fs-h2: clamp(1.7rem, 1.6vw + 1.1rem, 2.35rem);
  --fs-h3: 1.2rem;
  --fs-lead: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8rem;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 128px;

  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;

  --shadow-soft: 0 20px 45px -25px rgba(30,30,30,0.35);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* =========================================================
   Reset & basis
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

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

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1, h2, h3{ font-family: var(--font-display); margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; }
p{ margin: 0; }

:focus-visible{
  outline: 2.5px solid var(--olive-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--olive-deep);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.eyebrow{
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin-bottom: var(--sp-2);
}
.eyebrow-center{ text-align: center; }
.eyebrow-light{ color: var(--olive); }

.section-title{ font-size: var(--fs-h2); max-width: 640px; }
.section-title.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-title.light{ color: var(--white); }

.section-lead{
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 560px;
  margin-top: var(--sp-2);
}
.section-lead.center{ margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--olive-deep); color: #fff; }
.btn-primary:hover{ background: #3f4118; }
.btn-ghost{ background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover{ background: var(--ink); color: var(--bg); }
.btn-ghost-dark{ background: transparent; border-color: var(--line-dark); color: var(--white); }
.btn-ghost-dark:hover{ background: rgba(255,255,255,0.1); }
.btn-whatsapp{ background: #25D366; color: #fff; }
.btn-whatsapp:hover{ background: #1EBE5A; }
.btn-block{ width: 100%; margin-top: var(--sp-2); }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,243,236,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-2);
  padding-bottom: var(--sp-2);
}
.brand{ display: flex; align-items: center; flex-shrink: 0; }
.brand-logo{ height: 54px; width: auto; }

.main-nav{ display: flex; gap: var(--sp-4); }
.main-nav a{
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav a:hover::after{ transform: scaleX(1); }

.header-actions{ display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.tel-link{ display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.tel-link svg{ color: var(--olive-deep); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-toggle span{ width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero{ padding: var(--sp-7) 0 var(--sp-6); overflow: hidden; }
.hero-inner{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-6);
  align-items: center;
}
.hero-inner > *{ min-width: 0; }
.hero h1{ font-size: var(--fs-h1); margin-bottom: var(--sp-3); }
.hero-lead{ font-size: var(--fs-lead); color: var(--ink-soft); max-width: 480px; margin-bottom: var(--sp-4); }
.hero-actions{ display: flex; gap: var(--sp-2); flex-wrap: wrap; }

.hero-visual{ position: relative; }
.hero-frame{
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3.1;
}
.hero-frame::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-l);
  outline: 2px solid var(--olive);
  outline-offset: 16px;
  z-index: -1;
}
.hero-visual{ padding: 16px; }
.hero-frame img{ width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Diensten
   ========================================================= */
.services{ padding: var(--sp-7) 0; }
.service-grid{
  margin-top: var(--sp-6);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-3);
}
.service-grid > *{ min-width: 0; }
.service-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--sp-4) var(--sp-3);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.service-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--olive-tint);
  color: var(--olive-deep);
  margin-bottom: var(--sp-3);
}
.service-icon svg{ width: 26px; height: 26px; }
.service-card h3{ font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.service-card ul{ display: flex; flex-direction: column; gap: 6px; }
.service-card li{ color: var(--ink-soft); font-size: 0.93rem; padding-left: 16px; position: relative; }
.service-card li::before{
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--olive);
}

/* =========================================================
   Ons werk / vergelijk-sliders
   ========================================================= */
.work{ padding: var(--sp-7) 0; background: var(--panel); }
.compare-grid{
  margin-top: var(--sp-6);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.compare-grid > *{ min-width: 0; }

.compare-frame{
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
  background: var(--near-black);
  touch-action: pan-y;
}
.compare-frame--portrait{ aspect-ratio: 3 / 4; }

.compare-after,
.compare-before{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.compare-before-wrap{
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
  will-change: clip-path;
}

.compare-handle{
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-handle::before{
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.compare-handle svg{
  position: relative;
  z-index: 1;
  width: 40px; height: 40px;
  padding: 10px;
  border-radius: 50%;
  background: var(--white);
  color: var(--olive-deep);
  box-shadow: var(--shadow-soft);
}

.compare-range{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.compare-range::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 60px;
  height: 100%;
  background: transparent;
  cursor: ew-resize;
}
.compare-range::-moz-range-thumb{
  width: 60px;
  height: 100%;
  background: transparent;
  border: none;
  cursor: ew-resize;
}
.compare-frame:focus-within{
  outline: 2.5px solid var(--olive-deep);
  outline-offset: 3px;
}

.compare figcaption{
  margin-top: var(--sp-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: 0.9rem;
}
.compare-title{ font-weight: 600; font-family: var(--font-display); }
.compare-label{ font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }

/* Sfeerfoto-mozaïek */
.gallery{
  margin-top: var(--sp-5);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: var(--sp-2);
}
.gallery-item{ border-radius: var(--radius-s); overflow: hidden; min-width: 0; min-height: 0; }
.gallery-item img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); display: block; }
.gallery-item:hover img{ transform: scale(1.06); }
.gallery-item--tall{ grid-row: span 2; }

/* =========================================================
   Waarom AG
   ========================================================= */
.why{ padding: var(--sp-6) 0; background: var(--near-black); }
.pill-row{
  margin-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}
.pill{
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line-dark);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
}

/* =========================================================
   Contact
   ========================================================= */
.contact{ padding: var(--sp-7) 0; }
.contact-inner{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-6);
  align-items: start;
}
.contact-inner > *{ min-width: 0; }
.contact-list{ margin-top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.contact-list li{ display: flex; align-items: center; gap: 12px; font-size: 1rem; }
.contact-list svg{ color: var(--olive-deep); flex-shrink: 0; }
.contact-list a:hover{ color: var(--olive-deep); }
.contact-list.kvk{ color: var(--ink-soft); }

.contact-cta-card{
  background: var(--near-black);
  color: var(--white);
  border-radius: var(--radius-l);
  padding: var(--sp-5);
}
.contact-cta-card h3{ font-family: var(--font-display); font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.contact-cta-card p{ color: rgba(255,255,255,0.7); font-size: 0.94rem; margin-bottom: var(--sp-1); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ background: var(--near-black); color: rgba(255,255,255,0.75); }
.footer-inner{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--sp-5);
  padding: var(--sp-6) 0 var(--sp-4);
}
.footer-inner > *{ min-width: 0; }
.footer-logo{ height: 42px; width: auto; filter: brightness(0) invert(1); margin-bottom: var(--sp-2); }
.footer-brand p{ font-size: 0.9rem; max-width: 260px; }
.footer-nav{ display: flex; flex-direction: column; gap: 10px; }
.footer-nav a:hover{ color: var(--white); }
.footer-meta{ display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.footer-meta a:hover{ color: var(--white); }

.footer-bottom{
  border-top: 1px solid var(--line-dark);
  padding: var(--sp-3) 0;
  font-size: 0.82rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .compare-grid{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: repeat(3, 1fr); }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }
}

@media (max-width: 860px){
  .main-nav{
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .main-nav.is-open{ max-height: 340px; }
  .main-nav a{ padding: var(--sp-2) var(--sp-3); border-top: 1px solid var(--line); }
  .header-actions .tel-link{ display: none; }
  .nav-toggle{ display: flex; }

  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; padding: 8px; }
  .hero{ padding: var(--sp-5) 0 var(--sp-5); }

  .contact-inner{ grid-template-columns: 1fr; }
}

@media (max-width: 600px){
  .gallery{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .header-actions .btn{ padding: 11px 18px; font-size: 0.88rem; }
  .footer-inner{ grid-template-columns: 1fr; }
  .hero-frame::before{ outline-offset: 10px; }
}
