/* ==========================================================================
   DD Asbestkundige — replica of the live ddasbest.be design.
   Every value below was measured from the live site's computed styles.
   Fonts are self-hosted so the page needs no external request and runs
   under a strict Content-Security-Policy.
   ========================================================================== */

/* ------------------------------------------------------------- webfonts --- */

@font-face {
    font-family: 'Alef';
    src: url('../fonts/alef-400.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Alef';
    src: url('../fonts/alef-700.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}
/* Roboto ships as a single variable file covering the whole weight axis. */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto-var.woff2') format('woff2-variations');
    font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
    --blue:       #67ACFF;   /* header + footer bar          */
    --hero-bg:    #F1F7FF;   /* hero band                    */
    --btn:        #FFFFC3;   /* button fill                  */
    --sky:        #6EC1E4;   /* contact-page subheadings     */
    --grey:       #7A7A7A;   /* muted text                   */
    --body-grey:  #4A4A4A;
    --alef: 'Alef', sans-serif;
    --roboto: 'Roboto', sans-serif;
}

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

body {
    margin: 0;
    font-family: var(--roboto);
    font-size: 14px;
    line-height: 1.8;
    color: #000;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--alef);
    font-weight: 600;
    line-height: 1;
    color: #000;
    margin: 0;
    /* The live theme breaks long words rather than letting them overflow —
       this is what makes the 73px hero H1 wrap as "DD / Asbestdeskundig / e". */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

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

:focus-visible { outline: 3px solid #1b6ca8; outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 10px 18px; z-index: 999; }
.skip-link:focus { left: 0; }

/* Live site's container: full width, 65px side padding, no max-width. */
.container {
    width: 100%;
    padding: 0 65px;
    margin: 0 auto;
}

/* Text widgets sit 12px inside their column, images do not.
   Applied to a wrapper so the child's own box lands at the measured offset. */
.txt { padding: 0 12px; }

/* The "EPC…" block sits 33px inside the container on the live site. */
.txt-33 { padding: 0 33px; }

/* The Prijzen / Foto's bands are near full-bleed: 10px side padding. */
.container-wide { width: 100%; padding: 0 10px; margin: 0 auto; }

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

.site-header {
    background: var(--blue);
}
.header-inner {
    display: flex;
    align-items: center;
    min-height: 101px;
    padding: 0 55px 0 55px;
}
.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 190px;            /* 47 logo + 55 gap + 88 text -> nav starts at x=245 */
}
.brand img { width: 47px; height: 81px; object-fit: contain; }
.brand-name {
    font-family: var(--roboto);
    font-size: 19px;
    font-weight: 700;
    line-height: 34.2px;
    color: #000;
    margin: 0 0 0 55px;
    width: 88px;             /* forces the "DD / Asbest" two-line wrap */
    position: relative;
    top: -10px;              /* live text block sits above the optical centre */
}

.menu-toggle { display: none; }

.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0 26px 0 25px;
}
.main-nav a {
    display: block;
    font-family: var(--alef);
    font-size: 17px;
    font-weight: 600;
    line-height: 1;          /* item box is 47px: 17 + 2x15 padding */
    color: #000;
    padding: 15px 24px;
    white-space: nowrap;
}
.main-nav a:hover { text-decoration: none; opacity: .75; }

/* ----------------------------------------------------------------- hero --- */

.hero {
    background: var(--hero-bg);
    padding: 55px 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.hero-col { min-width: 0; }
.hero-text { padding: 35px 0 10px; }
.hero-media { padding-top: 10px; }

.hero h1 {
    font-size: 73px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 46px;
}
.hero h2 {
    font-size: 29px;
    font-weight: 600;
    line-height: 1;
}
.hero-media img { width: 335px; max-width: 100%; height: auto; margin: 0 auto; }

/* The live page has an empty "." paragraph acting as a spacer. */
.spacer-dot {
    font-family: var(--roboto);
    font-size: 14px;
    line-height: 25.2px;
    color: transparent;
    margin: 0;
    padding: 3px 0;
}

/* ------------------------------------------------------------- sections --- */

.section { padding: 55px 0; }
.section-wide { padding: 100px 0; }
.section-flush { padding: 0; }

/* Empty spacer bands the live page uses between sections. */
.band-32 { height: 32px; }
.band-65 { height: 116px; }
.band-71 { height: 71px; }
.band-81 { height: 81px; }

/* Column offsets inside the two-column content sections. */
.col-text-a  { padding-top: 44px; }              /* "Wat is een asbestattest" */
.col-text-b  { padding-top: 22px; }              /* "Hoe verloopt"            */
.col-media   { padding: 10px 0; }
.media-432 img { width: 432px; max-width: 100%; margin: 0 auto; }

/* Copy insets measured per block on the live site. */
.copy-30  { padding: 0 30px; }
.copy-125 { padding: 0 125px; }

/* Grid, not flex: grid tracks stay 50/50 regardless of the columns' own
   padding, which is what keeps the text boxes at the live site's offsets. */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;          /* live columns are top-aligned, not centred */
}
.two-col > * { min-width: 0; }

.h-section { font-size: 41px; font-weight: 600; line-height: 1; margin-bottom: 70px; }
.h-center  { text-align: center; }
/* Standalone heading band: no trailing gap, 10px breathing room. */
.h-standalone { margin: 10px 0 !important; }
.h-epc     { font-size: 44px; font-weight: 500; line-height: 1; text-align: center; margin-bottom: 20px; }
.h-big     { font-size: 67px; font-weight: 600; line-height: 1; text-align: center; }

/* Body copy inside content sections: Alef 16 / 35px, black. */
.copy {
    font-family: var(--alef);
    font-size: 16px;
    font-weight: 400;
    line-height: 35px;
    color: #000;
}
.copy p { margin: 0 0 20px; }
.copy p:last-child { margin-bottom: 0; }
.copy ul { margin: 20px 0; padding-left: 20px; }
.copy li { margin-bottom: 20px; }
.copy li:last-child { margin-bottom: 0; }
.copy li p { margin: 0; }
.copy a { text-decoration: underline; }

.copy-center { text-align: center; }

/* --------------------------------------------------------------- button --- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--btn);
    color: #000;
    font-family: var(--roboto);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    padding: 20px 40px;
    border: 0;
    border-radius: 31px;
    text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(.96); }
.btn .chev { font-size: 15px; line-height: 1; }

.btn-row { text-align: center; padding-top: 20px; }
.band-cta { padding: 10px 0; }

/* --------------------------------------------------------- page heading --- */

.page-title { font-size: 67px; font-weight: 600; line-height: 1; text-align: center; }

/* ---------------------------------------------------------- price table --- */

.table-scroll { overflow-x: auto; }

table.prijslijst {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--alef);
    font-size: 16px;
    line-height: 35px;
    color: #000;
}
table.prijslijst td {
    padding: 10px 8px;
    border-bottom: 1px solid #e4e4e4;
    vertical-align: top;
}
table.prijslijst tr:first-child td { border-bottom: 0; }

/* --------------------------------------------------- contact page blocks --- */

.contact-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.contact-cols > div { min-width: 0; }
.contact-cols h2 {
    font-family: var(--roboto);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--sky);
    margin: 0 0 14px;
}
.contact-cols h2 + p { margin-bottom: 40px; }
.contact-cols p {
    font-family: var(--roboto);
    font-size: 16px;
    line-height: 1.6;
    color: var(--grey);
}

/* -------------------------------------------------------------- carousel --- */

.carousel { position: relative; padding: 0 34px; }
.carousel-viewport { overflow: hidden; }
.carousel-track {
    display: flex;
    gap: 46px;
    transition: transform .5s ease;
    will-change: transform;
}
.carousel-track figure { margin: 0; flex: 0 0 auto; }
.carousel-track img { width: 100%; height: auto; display: block; }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 44px;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    color: #000;
    font-family: var(--roboto);
}
.carousel-btn:hover { opacity: .6; }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}
.carousel-dots button {
    width: 6px; height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d5d8dc;
    cursor: pointer;
}
.carousel-dots button[aria-current="true"] { background: #8a8f96; }

/* --------------------------------------------------------------- footer --- */

.site-footer { background: var(--blue); }
.footer-inner {
    display: grid;
    grid-template-columns: 340fr 360fr 360fr 360fr;
    align-items: start;
    padding: 24px 10px;
}
.footer-logo { display: flex; justify-content: center; }
.footer-logo img { width: 65px; height: 113px; object-fit: contain; }
.footer-col {
    min-width: 0;
    padding: 6px 20px 0 40px;
    font-family: var(--roboto);
    font-size: 14px;
    line-height: 25.2px;
    color: #000;
}
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }

.colophon {
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 0 30px;
    font-family: var(--roboto);
    font-size: 14px;
    line-height: 25.2px;
    color: var(--grey);
}
.colophon a { color: var(--grey); font-weight: 700; }

/* ============================================================== tablet === */

@media (max-width: 1024px) {
    .header-inner { padding: 0 20px; }
    .main-nav a { padding: 15px 14px; font-size: 16px; }
    .brand-name { margin-left: 20px; }
    .hero h1 { font-size: 56px; }
}

/* ============================================================== mobile === */



@media (prefers-reduced-motion: reduce) {
    .carousel-track { transition: none; }
    * { animation-duration: .01ms !important; }
}

/* --------------------------------------- measured band offsets (desktop) --- */
.epc-band { margin-top: 50px; padding: 10px 0 30px; }
.epc-band .copy-125 { margin-top: 0; }

/* Gaps the live page leaves between the CTA bands and the footer. */
.band-cta + .band-cta { margin-top: 50px; }
.band-cta:last-of-type { margin-bottom: 100px; }

/* ==========================================================================
   Page-specific layouts (all values measured from the live pages)
   ========================================================================== */

/* -------------------------------------------------------- prijzen page --- */

.band-170 { height: 170px; }
.band-220 { height: 220px; }
.band-20  { height: 20px; }
.band-201 { height: 194px; }

.prijzen-head { padding: 10px 0 60px; margin-bottom: 150px; }
.page-title-65 { font-size: 65px; font-weight: 600; line-height: 1; text-align: center; }

.prijzen-intro {
    font-family: var(--alef);
    font-size: 19px;
    line-height: 42px;
    color: #000;
    text-align: center;
    margin-top: 70px;
}
.prijzen-intro a { text-decoration: underline; }

.table-scroll { overflow-x: auto; margin-top: 90px; padding: 0 33px; }

table.prijslijst {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-family: var(--alef);
    font-size: 19px;
    line-height: 35px;
    color: #000;
}
table.prijslijst td {
    padding: 10px;
    border-bottom: 1px solid #e9e9e9;
    vertical-align: middle;
}
/* Five columns, as on the live site: the middle three are merged by colspan
   and together take the "Asbestinventaris" width. */
table.prijslijst col.c1 { width: 37.740%; }
table.prijslijst col.cm { width:  8.764%; }
table.prijslijst col.c5 { width: 35.968%; }

/* -------------------------------------------------------- contact page --- */

.container-1120 { max-width: 1120px; margin: 0 auto; padding: 0; }

.contact-title-band { padding: 180px 0 10px; }
.page-title-61 { font-size: 61px; font-weight: 600; line-height: 1; text-align: center; }

.contact-band { padding: 10px 0; }
.contact-inner { padding: 10px 10px 30px; }

.contact-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}
.contact-cols > div { min-width: 0; }
.contact-cols h2 {
    font-family: var(--roboto);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    color: var(--sky);
    margin: 0 0 20px;
}
.contact-cols p {
    font-family: var(--roboto);
    font-size: 14px;
    line-height: 25px;
    color: var(--grey);
    margin: 0 0 40px;
}
.contact-cols p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- fotos page --- */

.container-fotos { width: 833px; max-width: 100%; margin-left: 120px; }
.fotos-band { padding: 10px 0 0; }
.fotos-band .carousel { margin-top: 70px; }
.fotos-band .carousel + .carousel { margin-top: 50px; }

/* ==========================================================================
   Mobile (<=767px) — kept last so it overrides the page-specific rules above.
   ========================================================================== */

@media (max-width: 767px) {

    .container { padding: 0 32px; }
    .container-wide { padding: 0 10px; }
    .container-1120, .container-fotos { width: auto; max-width: none; margin: 0; padding: 0 10px; }
    .txt { padding: 0 12px; }
    .txt-33 { padding: 0 22px; }
    .copy-30, .copy-125 { padding: 0; }

    /* ------------------------------------------------------------ header */
    .site-header { margin-bottom: 10px; }   /* live leaves a 10px gap below the bar */
    .header-inner {
        min-height: 82px;
        padding: 11px 10px 0;
        align-items: flex-start;
        justify-content: flex-start;
        position: relative;
    }
    .brand { width: auto; }
    .brand img { width: 29px; height: 51px; }
    .brand-name {
        font-size: 19px;
        line-height: 34.2px;
        width: 117px;
        margin-left: 39px;
        margin-top: 2px;
        top: 0;
    }
    .menu-toggle {
        display: block;
        margin-left: auto;
        width: 40px; height: 40px;
        background: none; border: 0; padding: 0; cursor: pointer;
    }
    .menu-toggle .bar { display: block; width: 20px; height: 2px; margin: 4px auto; background: #000; }

    .main-nav {
        display: none;
        position: absolute;
        top: 55px;
        right: 0;
        width: 195px;
        background: var(--blue);
        z-index: 50;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; padding: 0; }
    .main-nav a { padding: 15px 24px; font-size: 17px; line-height: 1.1; white-space: normal; }

    /* -------------------------------------------------------------- hero */
    .hero { padding: 32px 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 43px; }
    .hero-text, .hero-media { padding: 0; }
    .hero h1 { font-size: 29px; margin-bottom: 22px; }
    .hero h2 { font-size: 14px; }
    .hero-media img { width: 100%; margin: 0; }

    /* ---------------------------------------------------------- sections */
    .section { padding: 32px 0; }
    .section-wide { padding: 100px 0; }

    .two-col { grid-template-columns: 1fr; gap: 52px; align-items: stretch; }
    .two-col.reverse-mobile > :first-child { order: 2; }
    .col-text-a { padding-top: 34px; }
    .col-text-b { padding-top: 20px; }
    .col-media  { padding: 0; }
    .media-432 img { width: 100%; }

    .h-section { font-size: 40px; margin-bottom: 40px; }
    .h-sub-mobile { font-size: 28px; }
    .h-standalone { margin: 9px 0 !important; }
    .h-epc { font-size: 29px; margin-bottom: 20px; }
    .h-big { font-size: 54px; }
    .page-title { font-size: 67px; }     /* foto's */
    .page-title-65 { font-size: 42px; }  /* prijzen */
    .page-title-61 { font-size: 44px; }  /* contact */

    .epc-band { margin-top: 50px; padding: 32px 0 52px; }

    /* ------------------------------------------------------ spacer bands */
    .band-a { height: 45px; }
    #asbestattest { padding-bottom: 20px; }
    .band-65 { height: 115px; }
    .band-170 { height: 30px; }
    .band-220 { height: 140px; }
    .band-201 { height: 77px; }

    /* -------------------------------------------------------- CTA blocks */
    .band-cta { padding: 10px 0; }
    .band-cta + .band-cta { margin-top: 50px; }
    .band-cta:last-of-type { margin-bottom: 100px; }
    .btn { padding: 20px 32px; font-size: 17px; }

    /* ------------------------------------------------------------ fotos */
    .container-fotos { padding: 0 30px; }
    .fotos-band { padding: 10px 0 0; }
    .fotos-band .carousel { margin-top: 70px; }
    .fotos-band .carousel + .carousel { margin-top: 50px; }
    .carousel { padding: 0 26px; }
    .carousel-track { gap: 20px; }

    /* ---------------------------------------------------------- prijzen */
    .prijzen-head { padding: 70px 0 30px; margin-bottom: 50px; }
    .prijzen-intro { font-size: 16px; line-height: 40px; margin-top: 70px; }
    .table-scroll { margin-top: 50px; padding: 0 10px; }
    table.prijslijst { font-size: 15px; line-height: 26px; min-width: 620px; }
    table.prijslijst td { padding: 8px; }

    /* ---------------------------------------------------------- contact */
    .contact-title-band { padding: 70px 0 10px; }
    .contact-band { padding: 10px 0; }
    .contact-inner { padding: 10px 10px 30px; }
    .contact-cols { grid-template-columns: 1fr; gap: 0; }
    /* Stacked columns keep the 40px rhythm between blocks. */
    .contact-cols p, .contact-cols p:last-child { margin-bottom: 40px; }
    .contact-cols > div:last-child p:last-child { margin-bottom: 0; }

    /* ----------------------------------------------------------- footer */
    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        row-gap: 10px;
        padding: 10px 10px 30px;
    }
    .footer-col { padding: 0; width: 100%; }
    .footer-logo { margin-bottom: 10px; }
    .footer-logo img { width: 42px; height: 73px; }
    .colophon { max-width: none; padding: 40px 10px 30px; }
}
