/*
 * RoofCraft core.css
 * Site-wide foundation: reset, typography, container, header, footer, buttons,
 * topbar, breadcrumb, a11y. Section-specific styles live under sections/*.css
 * and are enqueued only when their section is on the page.
 */

@import url('../fonts/fonts.css');

/* ---------- Reset ---------- */

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

/* ---------- Base ---------- */
/* Design tokens live in tokens.css (enqueued before this file). */

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font);
    color: var(--ink-soft);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
}

h1, h2, h3, h4, h5 {
    font-family: var(--display);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.5vw, 36px); }
h3 { font-size: clamp(20px, 2.5vw, 24px); }
h4 { font-size: 18px; }

a { color: var(--blue); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--blue-d); }

img { max-width: 100%; height: auto; display: block; }

button { font: inherit; cursor: pointer; border: none; background: none; }
.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}
.why-list{margin-left:20px;}

/*Google Review*/
.google-review-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
	transition:0.3s;
}

.google-review-link:hover {
    opacity: 0.8;
    cursor: pointer;
}
@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
/* Skip link / screen-reader-text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ---------- Layout primitives ---------- */

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

section { padding: 80px 0; }
@media (max-width: 768px) { section { padding: 50px 0; } }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--blue);
    margin-bottom: 6px;
}

.lede {
    font-size: clamp(17px, 1.6vw, 18px);
    color: var(--ink-soft);
    line-height: 1.65;
    max-width: 720px;
}

/* ---------- Section background rhythm ---------- */
/* Neutral sections are wrapped (see roofcraft_section) in alternating bands.
   The band owns the background; the section itself goes transparent so its
   own legacy background doesn't fight the rhythm. Full-bleed navy sections are
   not banded and keep their own background. */
.rc-band--a { background: var(--card); }
.rc-band--b { background: var(--surface); }
.rc-band > section { background: transparent; }

/* ---------- Topbar ---------- */

.topbar {
    background: var(--navy);
    color: #cdd9ee;
    font-size: 13px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar .meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.topbar .meta > span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .meta > span + span::before { content: "·"; opacity: .4; margin-right: 14px; color: #cdd9ee; }
.topbar .meta .rating { gap: 7px; }
.topbar .meta .stars { color: var(--blue); letter-spacing: 1px; }
.topbar .meta strong { color: white; font-weight: 700; }
.topbar .phones { display: flex; gap: 14px; align-items: center; }
.topbar .phones a { color: white; font-weight: 600; }
.topbar .phones a:hover { color: var(--blue); }
.topbar .phones .label { color: var(--blue); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 4px; }
@media (max-width: 880px) {
    .topbar .meta { display: none; }
    .topbar .phones { font-size: 12px; line-height:14px; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; }
}

/* ---------- Site header ---------- */

header.site {
    background: rgba(255,255,255,0.96);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
header.site .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 65px; width: auto; }
.logo-fallback { display: flex; flex-direction: column; line-height: 1; }
.logo-fallback .brand {
    font-family: var(--display);
    font-weight: 800;
    font-size: 21px;
    color: var(--ink);
}
.logo-fallback .tag {
    font-size: 11px;
    color: var(--blue);
    font-weight: 600;
    margin-top: 3px;
    letter-spacing: 0.04em;
}

/* ---------- Primary navigation ---------- */

nav.primary { display: flex; align-items: center; }
nav.primary .menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 28px; align-items: center; }
nav.primary .menu li { list-style: none; padding: 0; margin: 0; position: relative; }
nav.primary a { color: var(--ink-soft); font-weight: 600; font-size: 15px; padding: 8px 0; display: inline-flex; align-items: center; gap: 6px; }
nav.primary a:hover { color: var(--green); }

/* Caret on items with children */
nav.primary .menu-item-has-children > a::after {
    content: "";
    width: 10px; height: 10px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 2px;
    transition: transform .15s ease;
}
nav.primary .menu-item-has-children.is-open > a::after,
nav.primary .menu-item-has-children:hover > a::after,
nav.primary .menu-item-has-children:focus-within > a::after {
    transform: rotate(-135deg) translateY(-2px);
}

/* Desktop dropdown */
nav.primary .sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: -14px;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: var(--radius-sm, 8px);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    z-index: 50;
}
nav.primary .sub-menu li { width: 100%; }
nav.primary .sub-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--ink, #1f2937);
}
nav.primary .sub-menu a:hover { background: var(--blue-l); color: var(--green); }
nav.primary .menu-item-has-children:hover > .sub-menu,
nav.primary .menu-item-has-children:focus-within > .sub-menu,
nav.primary .menu-item-has-children.is-open > .sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    align-items: center; justify-content: center; flex-direction: column;
    gap: 5px; background: none; border: none; cursor: pointer; padding: 0;
    margin-left: auto;
}
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--ink, #1f2937); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-cta { display: flex; gap: 10px; align-items: center; }

/* Mobile drawer */
@media (max-width: 980px) {
    .nav-toggle { display: inline-flex; }
    nav.primary {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - 64px);
        width: 100vw;
        background: #fff;
        padding: 18px 20px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 90;
        display: block;
    }
    nav.primary.is-open { transform: translateX(0); }
    nav.primary .menu { flex-direction: column; align-items: stretch; gap: 0; }
    nav.primary .menu > li { border-bottom: 1px solid var(--line, #e5e7eb); }
    nav.primary .menu > li > a { padding: 14px 4px; font-size: 16px; }
    nav.primary .menu-item-has-children > a::after { margin-left: auto; }
    nav.primary .sub-menu {
        position: static;
        opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; padding: 0 0 8px 14px;
        background: transparent; min-width: 0;
        max-height: 0; overflow: hidden;
        transition: max-height .25s ease;
    }
    nav.primary .menu-item-has-children.is-open > .sub-menu { max-height: 600px; }
    nav.primary .sub-menu a { padding: 8px 4px; font-size: 14.5px; }
    body.nav-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-family: var(--display);
    font-size: 14.5px;
    transition: all 0.18s;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}
.btn-primary {
    background: var(--blue);
    color: white;
    box-shadow: 0 8px 20px rgba(37,99,235,0.28);
}
.btn-primary:hover {
    background: var(--blue-d);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 12px 26px rgba(37,99,235,0.34);
}
/* Conversion-green primary action (design's dominant CTA). */
.btn-green { background: var(--green); color: white; box-shadow: 0 8px 20px rgba(0,159,227,0.26); }
.btn-green:hover { background: var(--green-d); transform: translateY(-2px); color: white; box-shadow: 0 12px 26px rgba(0,159,227,0.32); }
/* Emergency / spoed action. */
.btn-spoed { background: var(--spoed); color: white; box-shadow: 0 8px 20px rgba(102,179,46,0.26); }
.btn-spoed:hover { background: #418e04; transform: translateY(-2px); color: white; }
/* Light button for dark/navy backgrounds. */
.btn-light { background: var(--blue); color: #fff; box-shadow: var(--sh-sm); }
.btn-light:hover { background: var(--blue-d); transform: translateY(-2px); box-shadow: var(--sh); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: white; }
.btn-ghost { color: var(--ink); padding: 13px 14px; }
.btn-ghost:hover { color: var(--green); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 22px 24px; font-size: 15px; box-shadow: none;}
.btn-sm:hover {box-shadow: none;}
.btn-sm:nth-of-type(2) {
    background-color: var(--spoed);
}
.btn-sm:nth-of-type(2):hover {
    background-color: #418e04;
}


/* ---------- Breadcrumb ---------- */

.breadcrumb {
    background: var(--bg-soft);
    padding: 14px 0;
    font-size: 13px;
    color: var(--ink-mute);
    border-bottom: 1px solid var(--line);
}
.breadcrumb a { color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--line); margin: 0 6px; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */

/* ---------- Footer ---------- */

footer.site {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: #9fb1cb;
    padding: 110px 0 28px;
    font-size: 13.5px;
}

/* Schuine bovenkant */
footer.site::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;              /* voorkomt een haarlijn */
    height: 70px;
    background: var(--footer-cut, var(--surface));
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 2;
    pointer-events: none;
}

footer.site .container {
    position: relative;
    z-index: 3;
}

footer.site h4 {
    color: white;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    font-family: var(--display);
}

footer.site .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 48px;
}

@media (max-width: 880px) {
    footer.site .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 580px) {
    footer.site .footer-grid {
        grid-template-columns: 1fr;
    }
}

footer.site .contact-regions {
    margin-bottom: 20px;
}

footer.site .brand-desc {
    margin-bottom: 20px;
}

footer.site .loc-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 13px;
}

footer.site ul {
    list-style: none;
    padding: 0;
}

footer.site li {
    padding: 3px 0;
}

footer.site a {
    color: #9fb1cb;
}

footer.site a:hover {
    color: #fff;
}

footer.site .brand-mark {
    margin-bottom: 14px;
}

footer.site .brand-logo {
    height: 70px;
    width: auto;
    display: block;
}

footer.site .brand-logo-svg {
    height: 44px;
    width: 44px;
}

/* footer.site .brand-name {
    color: #fff;
    font-family: var(--display);
    font-size: 18px;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
} */

footer.site .brand-name {
    display: none;
}

footer.site .nap p {
    color: #9fb1cb;
    padding: 4px 0;
    line-height: 1.6;
}

footer.site .nap strong {
    color: white;
    font-weight: 600;
}

footer.site .social {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

footer.site .social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #D1D5DB;
    transition: background .18s, color .18s;
}

footer.site .social a:hover {
    background: var(--blue);
    color: white;
}

footer.site .social svg {
    display: block;
}

footer.site .bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
}

footer.site .bottom .legal {
    display: flex;
    gap: 18px;
}
/* ---------- Misc ---------- */

.icon-svg { width: 24px; height: 24px; flex-shrink: 0; }
/* In small/inline contexts (e.g. header phone link) inline width/height attrs win */
.btn-sm .icon-svg { width: 16px; height: 16px; }

.stars { color: var(--blue); letter-spacing: 0.5px; }

/* ---------- IR-zone — shared visual treatment for hero intro callouts ---------- */
/* White card with green left-border, soft shadow. Used by .hero AND .cluster-hero. */
.ir-zone {
    background: white;
    border-left: 4px solid var(--blue);
    padding: 20px 22px;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 28px;
}
.ir-zone strong { color: var(--ink); font-weight: 700; }
.ir-zone p { margin: 0; }
.ir-zone p + p { margin-top: 10px; }

.hero-cta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.hero-cta .whats-link {
    color: var(--ink-mute);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* -------------------------------------------------
   Section reveal (eyebrow + h2 + lede)
-------------------------------------------------- */

.eyebrow,
h2,
.lede, 
.image-gallery-intro,
h1{
    opacity: 0;
    transform: translateY(-30px);
    transition:
        opacity 1.4s ease,
        transform 1.4s cubic-bezier(.22,1,.36,1);
    will-change: opacity, transform;
}

.eyebrow.reveal-in,
h2.reveal-in,
.lede.reveal-in,
.image-gallery-intro.reveal-in,
h1.reveal-in{
    opacity: 1;
    transform: translateY(0);
}

/* `data-reveal` is a hook for an optional JS scroll-fade enhancement. The
 * default render shows everything — no hiding — so SEO crawlers, no-JS users
 * and full-page screenshots get the same content as a scrolling visitor. */

@media (max-width: 980px) {

    header.site .container {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
    }

    /* 1. Logo links */
    header.site .logo {
        order: 1;
        flex: 0 0 auto;
    }

    header.site .logo img {
        height: 42px;
        width: auto;
    }

    /* 2. CTA in het midden */
    header.site .header-cta {
        order: 2;
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
        margin: 0;
    }

    /* Telefoon verbergen */
    header.site .header-cta .btn-ghost {
        display: none;
    }

    /* Groene knop compacter op mobiel */
    header.site .header-cta .btn-green {
        padding: 14px 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    /* 3. Hamburger rechts */
    header.site .nav-toggle {
        order: 3;
        margin-left: 0;
        flex: 0 0 auto;
    }

    /* Mobiele drawer blijft functioneel */
    header.site nav.primary {
        order: 4;
    }
}
