/* ═══════════════════════════════════════════════════════════════
   SaniSafe Badkamers — Eigen Thema v2.0
   GEEN DaDakwerken code. 100% eigen ontwerp.
   Branding: gold #a38144, navy #312d29, cream #f9f6f1
   Fonts: Cormorant Garamond (headings) + DM Sans (body)
   ═══════════════════════════════════════════════════════════════ */

/* ── Compact Spacing ── */
section { padding-top: 50px !important; padding-bottom: 50px !important; }
section.hero { padding-top: 0 !important; padding-bottom: 0 !important; }

/* ── Variables ── */
:root {
    --primary: #a38144;
    --gold-light: #e3bd5f;
    --navy: #312d29;
    --cream: #f9f6f1;
    --text: #334155;
    --text-muted: #64748b;
    --text-dark: #1e293b;
    --bg: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --glass: rgba(255,255,255,0.85);
    --container: 1200px;
    --header-h: 120px; /* top-bar 40px + nav 80px */
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* ══════════════════════════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════════════════════════ */
.top-bar {
    background: var(--navy);
    color: #fff;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 4000;
}
.top-bar a { color: rgba(255,255,255,0.85); transition: color 0.2s; }
.top-bar a:hover { color: var(--gold-light); }
.top-bar-info { display: flex; gap: 20px; align-items: center; }
.top-bar-social { display: flex; gap: 12px; align-items: center; }
.top-bar-social a { font-size: 1rem; }

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════ */
nav {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 3000;
    transition: height 0.3s, box-shadow 0.3s, background 0.3s;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
nav.scrolled {
    height: 65px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

/* Logo */
.logo a { display: flex; align-items: center; }
.logo img { height: 50px; width: auto; transition: height 0.3s; }
nav.scrolled .logo img { height: 42px; }

/* Nav Links */
.nav-links {
    display: flex;
    gap: 0;
    list-style: none;
    align-items: center;
}
.nav-links > li > a {
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--navy);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--primary);
}

/* Dropdown indicator */
.has-dropdown > a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    transition: transform 0.3s;
    opacity: 0.5;
}
.has-dropdown:hover > a::after,
.has-dropdown.open > a::after {
    transform: rotate(180deg);
}

/* ── Mega Menu ── */
.mega-menu {
    position: fixed;
    top: var(--header-h);
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 340px;
    max-width: min(650px, calc(100vw - 40px));
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    transition-delay: 0.12s;
    z-index: 5000;
    border-top: 3px solid var(--primary);
}
/* Hover bridge */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -30px;
    width: calc(100% + 60px);
    height: 54px;
}
nav.scrolled .mega-menu { top: 105px; }

.has-dropdown:hover .mega-menu,
.has-dropdown.open .mega-menu,
.has-dropdown:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.mega-col h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.mega-col h4 i { font-size: 0.85rem; }
.mega-col ul li { margin-bottom: 4px; }
.mega-col ul li a {
    font-size: 0.9rem;
    color: var(--text) !important;
    font-weight: 400;
    padding: 6px 10px;
    border-radius: 8px;
    display: block;
    transition: background 0.2s, color 0.2s;
}
.mega-col ul li a:hover {
    background: rgba(163,129,68,0.08);
    color: var(--primary) !important;
}

/* CTA Button (nav) */
nav .cta-button {
    background: var(--primary);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
nav .cta-button:hover {
    background: #8a6d38;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(163,129,68,0.3);
}

/* Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}
.mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE NAV DRAWER
   ══════════════════════════════════════════════════════════════ */
.mnav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 8000; opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.mnav-overlay.active { opacity: 1; pointer-events: auto; }

.mnav {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
    background: #fff; z-index: 8500;
    transition: right 0.35s cubic-bezier(0.16,1,0.3,1);
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.mnav.active { right: 0; }

.mnav-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 1px solid var(--border);
}
.mnav-logo img { height: 36px; }
.mnav-close {
    background: none; border: none; font-size: 1.8rem;
    color: var(--text-muted); cursor: pointer;
}
.mnav-body { padding: 16px 20px; }
.mnav-link, .mnav-sublink {
    display: block; padding: 12px 0;
    font-size: 0.95rem; color: var(--navy); font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.mnav-link:hover, .mnav-sublink:hover { color: var(--primary); }
.mnav-acc-btn {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 12px 0; background: none; border: none;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 0.95rem; color: var(--navy); font-weight: 600; cursor: pointer;
}
.mnav-acc-panel { transition: max-height 0.3s, opacity 0.3s; max-height: 0; opacity: 0; overflow: hidden; }
.mnav-section-title { font-size: 0.75rem; text-transform: uppercase; color: var(--primary); font-weight: 700; letter-spacing: 1px; margin: 12px 0 6px; }
.mnav-sublink { padding: 8px 0 8px 12px; font-size: 0.9rem; font-weight: 400; }
.mnav-cta {
    display: block; text-align: center; margin-top: 20px;
    padding: 14px; background: var(--primary); color: #fff;
    border-radius: 10px; font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    padding: var(--header-h) 1.5rem 60px;
}

/* Slider */
.hero-slider {
    position: absolute; inset: 0; z-index: 1;
}
.slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1);
    transition: opacity 1.5s ease, transform 10s linear;
}
.slide.active { opacity: 1; transform: scale(1.06); }
.slide::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(49,45,41,0.5) 0%, rgba(49,45,41,0.2) 40%, rgba(49,45,41,0.65) 100%);
}

/* Hero content */
.hero-content {
    position: relative; z-index: 10;
    max-width: 850px;
    opacity: 0; transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.3s;
}
.revolutionary-text {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.revolutionary-text span {
    background: linear-gradient(135deg, var(--primary), var(--gold-light));
    padding: 2px 14px;
    border-radius: 8px;
    color: #fff;
}
.hero-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 28px;
    opacity: 0.9;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Page header (internal pages) */
.page-header {
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 160px clamp(1rem,4vw,2.5rem) 60px;
    text-align: center;
    color: #fff;
}
.page-header::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(49,45,41,0.6), rgba(49,45,41,0.8));
}
.page-header .header-content,
.page-header .reveal-scale { position: relative; z-index: 2; }
.page-header h1 { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 16px; }
.page-header p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; opacity: 0.85; }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    text-decoration: none;
    white-space: nowrap;
}
.cta-button:hover {
    background: #8a6d38;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(163,129,68,0.3);
}
.cta-button.secondary {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.3);
}
.cta-button.secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ══════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════ */
.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.service-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}
.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 10px;
}
.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

/* ══════════════════════════════════════════════════════════════
   GRIDS
   ══════════════════════════════════════════════════════════════ */
.services-grid, .display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ══════════════════════════════════════════════════════════════
   STATS
   ══════════════════════════════════════════════════════════════ */
.stats {
    padding: 80px 0;
    background: var(--navy);
    color: #fff;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ══════════════════════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════════════════════ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy), #1a1714);
    color: #fff;
    text-align: center;
}
.cta-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}
.cta-section p {
    opacity: 0.8;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════════════════ */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item:hover { border-color: rgba(163,129,68,0.3); }
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    text-align: left;
}
.faq-question i { transition: transform 0.3s; font-size: 0.8rem; color: var(--text-muted); }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding: 0 22px;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 22px;
}
.faq-answer p { color: var(--text-muted); line-height: 1.8; }

/* ══════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-scale.active { opacity: 1; transform: scale(1); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-blur { opacity: 0; filter: blur(8px); transition: opacity 0.7s ease, filter 0.7s ease; }
.reveal-blur.active { opacity: 1; filter: none; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ══════════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ══════════════════════════════════════════════════════════════ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--gold-light));
    z-index: 9999;
    transition: width 0.1s linear;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 2000;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(163,129,68,0.3);
}
.back-to-top.active { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: #8a6d38; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .nav-links { display: none; }
    nav .cta-button { display: none; }
    .mobile-toggle { display: flex; }
    .mega-menu { display: none !important; }
}

@media (max-width: 768px) {
    :root { --header-h: 100px; }
    .top-bar { font-size: 0.72rem; height: 36px; }
    .top-bar-social span { display: none; }
    nav { top: 36px; height: 64px; }
    nav.scrolled { height: 56px; }
    .logo img { height: 38px; }
    nav.scrolled .logo img { height: 34px; }

    .hero { min-height: 90vh; padding-top: 110px; }
    .revolutionary-text { font-size: clamp(1.8rem, 7vw, 2.8rem); }
    .hero-content p { font-size: 0.95rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .hero-btns .cta-button { width: 100%; max-width: 280px; justify-content: center; }

    .page-header { padding-top: 120px; min-height: 40vh; }

    .services-grid, .display-grid {
        grid-template-columns: 1fr;
    }
    .service-card:hover { transform: none; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .cta-button { width: 100%; max-width: 300px; justify-content: center; }
}

@media (max-width: 480px) {
    .top-bar-info a:not(:first-child) { display: none; }
    .hero { padding-top: 100px; }
    .stat-number { font-size: 2.2rem; }
}

/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.2s !important;
    }
    .reveal, .reveal-scale, .reveal-left, .reveal-right, .reveal-blur {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    .slide { transition-duration: 0.5s !important; }
}

/* ══════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 12px; }
.form-group label {
    display: block; font-weight: 600; font-size: 0.9rem;
    color: var(--navy); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px; font-family: inherit;
    font-size: 0.95rem; color: var(--text);
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(163,129,68,0.1);
}

/* Offerte wizard layout */
.offerte-layout {
    max-width: 1100px; margin: 40px auto 60px;
    display: grid; grid-template-columns: 1fr 320px;
    gap: 30px; padding: 0 1.5rem;
}
.wizard-form-box {
    background: #fff; border-radius: var(--radius-lg);
    padding: 36px; box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.wizard-steps {
    max-width: 200px; margin: 0 auto 28px;
    display: flex; justify-content: center; gap: 28px;
    position: relative;
}
.wizard-steps::before {
    content: ''; position: absolute; top: 50%;
    left: 30%; right: 30%; height: 2px; background: var(--border);
}
.step-indicator {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
    background: var(--border); color: var(--text-muted);
    position: relative; z-index: 1; transition: all 0.3s;
}
.step-indicator.active { background: var(--primary); color: #fff; }
.step-indicator.completed { background: #22c55e; color: #fff; }
.wizard-step-content { display: none; }
.wizard-step-content.active { display: block; }

.offerte-sidebar {
    position: sticky; top: 140px;
}
.opening-hours-card {
    background: #fff; border-radius: var(--radius-lg);
    padding: 28px; box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.opening-hours-card h3 {
    font-family: var(--font-heading); font-size: 1.2rem;
    color: var(--navy); margin-bottom: 16px;
}
.hours-list { display: flex; flex-direction: column; gap: 8px; }
.hours-list li {
    display: flex; justify-content: space-between;
    font-size: 0.88rem; color: var(--text-muted);
    padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.04);
}

@media (max-width: 768px) {
    .offerte-layout { grid-template-columns: 1fr; }
    .offerte-sidebar { position: static; }
}
