/* ========================================
   GG-BOUW — RESPONSIVE CSS
   Mobile-first breakpoints
   480px / 768px / 1024px / 1280px
   ======================================== */

/* ---- Base: Mobile (< 480px) ---- */
@media (max-width: 479px) {
  :root {
    --container-pad: 1rem;
    --header-height: 65px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero {
    min-height: 85vh;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .diensten-grid {
    grid-template-columns: 1fr;
  }

  .projecten-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .two-col-layout {
    grid-template-columns: 1fr;
  }

  .two-col-layout.reverse { direction: ltr; }

  .form-row.two-cols {
    flex-direction: column;
    gap: 0;
  }

  .steps-list {
    grid-template-columns: 1fr;
  }

  .steps-list::before {
    display: none;
  }

  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .header-cta .btn { display: none; }
  .header-phone span { display: none; }
}

/* ---- Tablet Small (480px – 767px) ---- */
@media (min-width: 480px) and (max-width: 767px) {
  :root {
    --container-pad: 1.25rem;
    --header-height: 70px;
  }

  .hero {
    min-height: 80vh;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:nth-child(even) { border-right: none; }

  .diensten-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
  }

  .two-col-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-col-layout.reverse { direction: ltr; }

  .form-row.two-cols {
    flex-direction: column;
    gap: 0;
  }
}

/* ---- Tablet (< 768px) — Mobile Menu ---- */
@media (max-width: 767px) {
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(320px, 90vw);
    background: var(--dark);
    z-index: 1000;
    transition: right var(--transition);
    padding: calc(var(--header-height) + 2rem) 2rem 2rem;
    overflow-y: auto;
    flex-direction: column;
    justify-content: flex-start;
  }

  .main-navigation.is-open {
    right: 0;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-menu > li > a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
    color: var(--white);
    border-radius: 0;
  }

  .nav-menu > li > a:hover {
    background: none;
    color: var(--accent);
  }

  .nav-cta {
    margin-top: 1rem !important;
    padding: 0.75rem 1.25rem !important;
    text-align: center;
    border-radius: var(--radius) !important;
    background: var(--accent) !important;
  }

  /* Overlay achter het menu */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }

  .nav-overlay.is-open {
    display: block;
  }

  .header-cta .btn-accent { display: none; }
}

/* ---- Tablet Large (768px – 1023px) ---- */
@media (min-width: 768px) and (max-width: 1023px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .diensten-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
  }

  .two-col-layout {
    gap: 2.5rem;
  }

  .nav-menu > li > a {
    padding: 0.5rem 0.6rem;
    font-size: 0.82rem;
  }

  .header-phone span { display: none; }
  .header-cta .btn-accent { font-size: 0.8rem; padding: 0.55rem 1rem; }
}

/* ---- Desktop Small (1024px – 1279px) ---- */
@media (min-width: 1024px) and (max-width: 1279px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 2rem;
  }
}

/* ---- Desktop Large (1280px+) ---- */
@media (min-width: 1280px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .diensten-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Print Stijlen ---- */
@media print {
  .site-header,
  .site-footer,
  .whatsapp-float,
  .preloader,
  .hero-scroll-indicator,
  .btn:not(.print-visible) {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a { text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; }

  .container { max-width: 100%; }
  .section { padding-block: 1rem; }
}

/* ---- Hoog contrast / Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .whatsapp-float {
    animation: none;
  }

  .hero-bg {
    will-change: auto;
    transition: none;
  }
}

/* ---- Touch apparaten: grotere knoppen ---- */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
  }

  .filter-btn {
    min-height: 44px;
    padding: 0.6rem 1.5rem;
  }

  .faq-question {
    min-height: 44px;
  }

  .nav-menu > li > a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Hover effecten uitschakelen op touch */
  .dienst-card:hover { transform: none; }
  .project-card:hover { transform: none; }
  .review-card:hover { transform: none; }
  .card-hover:hover  { transform: none; }
}
