/* ═══════════════════════════════════════════════════════
   Alabouw.nl — Hoofd stylesheet
   ═══════════════════════════════════════════════════════ */

/* ─── RESET & BASIS ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:       #c31a5f;
  --accent-donker:#9e1550;
  --accent-licht: #fce7ef;
  --donker:       #1F2937;
  --middengrijs:  #6B7280;
  --lichtgrijs:   #F7F7F7;
  --rand:         #E5E7EB;
  --wit:          #FFFFFF;
  --radius:       12px;
  --schaduw:      0 2px 16px rgba(0,0,0,0.08);
  --schaduw-hover:0 8px 32px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--donker);
  background: var(--wit);
}

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

/* ─── CONTAINER ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── KNOPPEN ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--schaduw-hover); }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover  { background: var(--accent-donker); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-wit     { background: #fff; color: var(--donker); }
.btn-wit:hover     { background: var(--lichtgrijs); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ─── TOPBALK ───────────────────────────────────────── */
.topbalk {
  background: var(--donker);
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  padding: 8px 0;
}
.topbalk .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbalk i { color: var(--accent); margin-right: 6px; }
.topbalk-cta {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s;
}
.topbalk-cta:hover { color: #fff; }

/* ─── NAVIGATIE ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rand);
  transition: box-shadow 0.3s;
}
.site-header.gescrold { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav-logo img { display: block; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--donker);
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover, .nav-link.actief {
  background: var(--accent-licht);
  color: var(--accent);
}
.nav-cta-btn {
  margin-left: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta-btn:hover { background: var(--accent-donker); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--donker);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── HERO ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--donker);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: opacity 0.5s;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(31,41,55,0.92) 45%, rgba(31,41,55,0.4) 100%);
}
.hero-inhoud {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(195,26,95,0.2);
  border: 1px solid rgba(195,26,95,0.4);
  color: #f9a8c9;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 22px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-knoppen { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 2;
}
.hero-stats .container {
  display: flex;
  gap: 0;
}
.hero-stat {
  text-align: center;
  padding: 20px 32px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  flex: 1;
}
.hero-stat:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.hero-stat:last-child  { border-radius: 0 var(--radius) var(--radius) 0; border-right: 1px solid rgba(255,255,255,0.1); }
.hero-stat-getal {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── SECTIES ALGEMEEN ──────────────────────────────── */
.sectie { padding: 96px 0; }
.sectie-licht { background: var(--lichtgrijs); }
.sectie-donker { background: var(--donker); color: #fff; }
.sectie-donker .sectie-label { color: rgba(255,255,255,0.45); }
.sectie-donker .sectie-titel { color: #fff; }
.sectie-donker .sectie-subtitel { color: rgba(255,255,255,0.6); }

.sectie-header { text-align: center; margin-bottom: 64px; }
.sectie-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.sectie-titel {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.sectie-subtitel {
  font-size: 1.05rem;
  color: var(--middengrijs);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── DIENSTEN KAARTEN ──────────────────────────────── */
.diensten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dienst-kaart {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 16px;
  padding: 32px 28px;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.dienst-kaart:hover {
  box-shadow: var(--schaduw-hover);
  transform: translateY(-4px);
  border-color: var(--accent);
}
.dienst-icoon {
  width: 52px;
  height: 52px;
  background: var(--accent-licht);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.dienst-kaart h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.dienst-kaart p {
  font-size: 0.88rem;
  color: var(--middengrijs);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}
.dienst-meer {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.dienst-kaart:hover .dienst-meer i { transform: translateX(4px); }
.dienst-meer i { transition: transform 0.2s; }

/* ─── PROJECTEN GRID ────────────────────────────────── */
.projecten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-kaart {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #eee;
}
.project-kaart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-kaart:hover img { transform: scale(1.06); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31,41,55,0.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.project-kaart:hover .project-overlay { opacity: 1; }
.project-label {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ─── REVIEWS ───────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-kaart {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--schaduw);
}
.review-sterren {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.review-tekst {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 20px;
  font-style: italic;
}
.review-naam {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--donker);
}

/* ─── USP BALK ──────────────────────────────────────── */
.usp-balk {
  background: var(--donker);
  padding: 48px 0;
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.usp-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.usp-icoon {
  width: 44px;
  height: 44px;
  background: rgba(195,26,95,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}
.usp-item h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.usp-item p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

/* ─── CTA SECTIE ────────────────────────────────────── */
.cta-sectie {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-donker) 100%);
  padding: 88px 0;
  text-align: center;
}
.cta-sectie h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.cta-sectie p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-knoppen { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ─── OVER ONS ──────────────────────────────────────── */
.twee-kolom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.twee-kolom.omgekeerd .tekst-kolom { order: 2; }
.twee-kolom.omgekeerd .media-kolom { order: 1; }
.media-kolom img {
  border-radius: 20px;
  width: 100%;
  object-fit: cover;
  max-height: 480px;
}
.tekst-kolom h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 20px;
}
.tekst-kolom p {
  color: var(--middengrijs);
  line-height: 1.75;
  margin-bottom: 16px;
}
.check-lijst { list-style: none; margin: 24px 0; }
.check-lijst li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rand);
  font-size: 0.92rem;
}
.check-lijst li:last-child { border-bottom: none; }
.check-lijst li i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }

/* ─── FORMULIER ─────────────────────────────────────── */
.form-kaart {
  background: var(--wit);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--schaduw-hover);
}
.form-rij {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-groep { margin-bottom: 20px; }
.form-groep label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--middengrijs);
  margin-bottom: 8px;
}
.form-groep input,
.form-groep select,
.form-groep textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--rand);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--donker);
  background: var(--wit);
  transition: border-color 0.2s;
  outline: none;
}
.form-groep input:focus,
.form-groep select:focus,
.form-groep textarea:focus { border-color: var(--accent); }
.form-groep textarea { min-height: 120px; resize: vertical; }

/* ─── PAGINA HERO (subpagina's) ─────────────────────── */
.pagina-hero {
  background: var(--donker);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.pagina-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/patroon.svg') repeat;
  opacity: 0.04;
}
.pagina-hero-inhoud { position: relative; z-index: 1; }
.breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.4); }
.breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.breadcrumb span { color: rgba(255,255,255,0.7); }
.pagina-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.pagina-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  line-height: 1.7;
}

/* ─── FOOTER ────────────────────────────────────────── */
.site-footer {
  background: var(--donker);
  color: rgba(255,255,255,0.65);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: #fff; }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 280px;
}
.footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact i { color: var(--accent); width: 16px; }
.footer-contact a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-contact a:hover { color: #fff; }
.footer-onder {
  padding: 20px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}
.footer-onder .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── MELDINGEN ─────────────────────────────────────── */
.melding {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.melding-ok   { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.melding-fout { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
  .diensten-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 36px; }
  .usp-grid       { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sectie { padding: 64px 0; }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(31,41,55,0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 200;
  }
  .nav-menu.open { display: flex; }
  .nav-link { color: #fff; font-size: 1.2rem; padding: 12px 24px; }
  .nav-link:hover, .nav-link.actief { background: rgba(195,26,95,0.2); color: #f9a8c9; }
  .nav-cta-btn { font-size: 1.1rem; padding: 14px 32px; margin: 8px 0 0; }
  .hero { min-height: 100svh; }
  .hero-stats { position: static; margin-top: 40px; }
  .hero-stats .container { flex-direction: column; gap: 2px; }
  .hero-stat { border-right: none; border-bottom: none; }
  .hero-stat:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .hero-stat:last-child  { border-radius: 0 0 var(--radius) var(--radius); border-bottom: 1px solid rgba(255,255,255,0.1); }
  .diensten-grid  { grid-template-columns: 1fr; }
  .projecten-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid   { grid-template-columns: 1fr; }
  .twee-kolom     { grid-template-columns: 1fr; gap: 40px; }
  .twee-kolom.omgekeerd .tekst-kolom { order: 1; }
  .twee-kolom.omgekeerd .media-kolom { order: 2; }
  .footer-grid    { grid-template-columns: 1fr; gap: 32px; }
  .usp-grid       { grid-template-columns: 1fr; }
  .form-rij       { grid-template-columns: 1fr; }
  .form-kaart     { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .projecten-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
}

/* ═══════════════════════════════════════════════════════
   MOBIEL — VERBETERINGEN
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Hero: geen overflow, stats onder content */
  .hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }
  .hero .container {
    padding-top: 32px !important;
    padding-bottom: 40px !important;
    flex: 1;
  }
  .hero-badge { font-size: 0.72rem; }
  .hero-knoppen { flex-direction: column; gap: 10px; }
  .hero-knoppen .btn { width: 100%; justify-content: center; }

  /* Stats als horizontale scroll balk */
  .hero-stats {
    position: static;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero-stats::-webkit-scrollbar { display: none; }
  .hero-stats .container {
    display: flex;
    flex-direction: row;
    gap: 0;
    min-width: max-content;
    padding: 0;
  }
  .hero-stat {
    min-width: 130px;
    padding: 16px 20px;
    border-right: 1px solid rgba(255,255,255,0.1) !important;
    border-bottom: none !important;
    border-radius: 0 !important;
  }
  .hero-stat:first-child { border-radius: 0 !important; }
  .hero-stat:last-child  { border-radius: 0 !important; }
  .hero-stat-getal { font-size: 1.5rem; }

  /* USP balk: 2 kolommen op mobiel */
  .usp-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .usp-item { flex-direction: column; gap: 10px; }
  .usp-item p { font-size: 0.75rem; }

  /* Sectie padding minder */
  .sectie { padding: 52px 0; }
  .sectie-header { margin-bottom: 40px; }
  .sectie-header .sectie-subtitel { font-size: 0.95rem; }

  /* CTA knoppen stapelen */
  .cta-knoppen { flex-direction: column; align-items: center; gap: 10px; }
  .cta-knoppen .btn { width: 100%; max-width: 340px; justify-content: center; }

  /* Footer compacter */
  .footer-grid { gap: 28px; }
  .site-footer { padding: 48px 0 0; }

  /* Twee kolom: media altijd max 360px hoog */
  .media-kolom img { max-height: 280px; width: 100%; object-fit: cover; }

  /* Pagina hero */
  .pagina-hero { padding: 48px 0 40px; }
  .pagina-hero h1 { font-size: 1.8rem; }

  /* Offerte form: enkel kolom */
  .form-kaart { padding: 24px 18px; }
}

@media (max-width: 480px) {
  .usp-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.85rem; letter-spacing: -0.8px; }
  .hero p   { font-size: 0.95rem; }
  .dienst-kaart { padding: 24px 20px; }
  .sectie-titel { font-size: 1.6rem; }
  .nav-container { height: 62px; }
}

/* ─── Animaties ────────────────────────────────────── */
[data-anim] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-anim].zichtbaar {
  opacity: 1;
  transform: translateY(0);
}
/* Geen animatie als reduced motion voorkeur */
@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1; transform: none; transition: none; }
}
