/*
 * Profa – nabouw van de WordPress-site (Astra 4.8 + Spectra, sjabloon "Webinar Landing").
 * Maten en kleuren zijn gemeten op de live site (docs/fase-1/live-meting.json).
 * Breekpunten zoals het origineel: desktop >= 977px, tablet 768-976px, mobiel <= 767px;
 * de header en lettergrootte volgen Astra (<= 921px en <= 544px).
 */

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400 600;
    font-display: fallback;
    src: url("../fonts/montserrat-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    src: url("../fonts/inter-700-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --blue: #1d53dd;
    --blue-dark: #103eb2;
    --blue-light: #7296f2;
    --heading: #1b1f29;
    --text: #4b4f58;
    --bg: #f9fbff;
    --line: #e0e3eb;
    --icon: #3a3a3a;
}

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

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8571428571;
    color: var(--text);
    background: var(--bg);
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s linear;
}

p {
    margin: 0;
}

h1,
h2,
h4 {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    color: var(--heading);
}

h2 {
    font-size: 3rem;
    line-height: 1.3;
}

h4 {
    font-size: 1.5rem;
    line-height: 1.2;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 6px;
    z-index: 100000;
    padding: 15px 23px 14px;
    font-size: 0.875rem;
    line-height: normal;
    color: #21759b;
    background: #f1f1f1;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
}

.skip-link:focus {
    top: 7px;
}

/* ---------- Header (transparant, over de hero) ---------- */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1240px;
    height: 119px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-title {
    margin: 0;
    line-height: 0;
}

.site-logo,
.site-logo img {
    display: block;
}

.site-logo img {
    width: 207px;
}

.btn-call {
    display: inline-block;
    padding: 15px 31px 15px 30px;
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    color: var(--blue);
    background: var(--bg);
    border: 1px solid var(--bg);
    border-radius: 4px;
    transition: all 0.2s linear;
}

.btn-call:hover,
.btn-call:focus-visible {
    color: var(--bg);
    background: var(--blue-dark);
    border-color: var(--blue);
}

/* ---------- Hero ---------- */

.hero {
    padding: 80px 40px 0;
    background: url("../../media/2021/01/webinar-landing-template-hero-bg-img.svg") no-repeat 66vw -1px / contain;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
}

.hero__text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 20px;
    /* Correctie t.o.v. het origineel: tekst begint altijd onder de header (logo overlapte de tekst op 977-1200px). */
    padding-top: 55px;
}

.hero__intro {
    margin-bottom: 20px;
}

.hero__rb {
    display: block;
    width: 100%;
}

.hero__portrait {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-bottom: 1px;
}

.hero__portrait picture,
.hero__portrait img {
    display: block;
}

/* ---------- Wie zijn wij? ---------- */

.about-intro {
    padding: 128px 40px;
}

.about-intro__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro__head h2 {
    max-width: calc(50% - 80px);
}

.about-intro__quote {
    /* flow-root: de marges van de blockquote vallen niet samen (zoals de flex-container van het origineel). */
    display: flow-root;
    padding-top: 48px;
    border-top: 1px solid var(--line);
}

.about-intro blockquote {
    margin: 1.5em;
    padding: 20px;
    font-size: 1.1em;
    font-style: italic;
    border-left: 5px solid rgba(0, 0, 0, 0.05);
}

/* ---------- Over Profa / Onze Diensten ---------- */

.split {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 128px 40px 84px;
}

.split__text {
    width: 600px;
    max-width: 50%;
    padding-right: 80px;
}

.split__text h2 {
    margin-bottom: 32px;
}

.split__text > p {
    margin-bottom: 20px;
}

.split__card {
    width: 300px;
    max-width: 25%;
}

.split__card img {
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

.split__card {
    container-type: inline-size;
}

.split__card h4 {
    margin-bottom: 5px;
    /* Fase 3: "Administratiekantoor" (breedte 10,34 × lettergrootte) brak in smalle kolommen midden in het woord af.
       De kop krimpt nu alleen als de kolom smaller is dan het woord; anders blijft de oorspronkelijke grootte. */
    font-size: min(1.5rem, 9.6cqi);
}

.services {
    margin: 0;
    padding: 0 0 30px;
    list-style: none;
}

.services li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    color: var(--heading);
}

.services__dot {
    flex: none;
    width: 14px;
    height: 14px;
    fill: var(--blue-light);
}

/* ---------- Contact ---------- */

.contact {
    padding: 0 0 64px;
}

.contact__card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 200px 96px 400px;
    /* Gelijk aan het origineel ("cover" op 1440px), maar de vormen blijven ook op smallere schermen zichtbaar. */
    background: url("../../media/2023/02/webinar-cta.png") no-repeat -285px 50% / auto 100%;
    border-radius: 16px;
    box-shadow: 0 64px 100px -64px rgba(0, 0, 0, 0.4);
}

.contact__card h2 {
    margin-bottom: 20px;
}

.contact__card > p {
    margin-bottom: 20px;
}

/* Klikbaar, maar visueel gelijk aan de gewone tekst eromheen. */
.contact__card p a {
    color: inherit;
}

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

.site-footer {
    padding: 45px 0;
    background: var(--bg);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    column-gap: 50px;
    min-height: 30px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.875rem;
    line-height: 1.8571428571;
}

.site-footer__copy {
    padding-left: 80px;
}

.site-footer__powered {
    text-align: center;
}

.site-footer__powered a:hover,
.site-footer__powered a:focus-visible {
    color: var(--heading);
}

.site-footer__social {
    display: flex;
    justify-content: flex-end;
    padding-right: 40px;
    line-height: 1;
}

.site-footer__social a {
    display: inline-flex;
    color: var(--icon);
    transition: none;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
    color: var(--blue-dark);
}

.site-footer__social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ---------- 404 en 500 ---------- */

.not-found {
    max-width: 1200px;
    margin: 0 auto;
    padding: 200px 40px 128px;
    text-align: center;
}

.not-found h1 {
    margin-bottom: 20px;
    font-size: 3rem;
    line-height: 1.3;
}

/* ---------- Kleine desktop (977-1279px) ---------- */

@media (max-width: 1279px) {
    /* Correctie: kaart niet tegen de schermrand en tekst niet te smal. */
    .contact {
        padding-left: 40px;
        padding-right: 40px;
    }

    .contact__card {
        padding-left: 300px;
        padding-right: 80px;
    }
}

/* ---------- Tablet (768-976px) ---------- */

@media (max-width: 976px) {
    .hero {
        padding-top: 40px;
        background-size: auto;
    }

    .hero__text {
        padding-top: 46px;
    }

    .hero__portrait img {
        width: 344px;
    }

    .about-intro {
        padding: 80px 40px;
    }

    .about-intro__head {
        margin-bottom: 20px;
    }

    .about-intro__head h2 {
        max-width: calc(100% - 80px);
    }

    .about-intro__quote {
        padding-top: 40px;
    }

    .split {
        padding: 80px 40px;
    }

    .split--services {
        padding-bottom: 40px;
    }

    .split__text {
        max-width: 67%;
        padding-right: 64px;
    }

    .split__card {
        width: 33%;
        max-width: 33%;
    }

    .contact {
        padding: 0 40px;
    }

    /* Correctie: de vormen blijven links van de tekst (vielen eroverheen op 820px). */
    .contact__card {
        padding: 40px 40px 40px 240px;
        background-position: -214px 50%;
    }
}

/* Tussen 922 en 976px heeft de header nog de desktophoogte (119px). */
@media (min-width: 922px) and (max-width: 976px) {
    .hero__text {
        padding-top: 95px;
    }
}

/* ---------- Astra: kleinere tekst en header (<= 921px) ---------- */

@media (max-width: 921px) {
    html {
        font-size: 91.2%;
    }

    h2 {
        font-size: 40px;
    }

    .site-header__inner {
        height: 70px;
    }

    .site-logo img {
        width: 96px;
    }

    .btn-call {
        border-color: var(--blue);
    }

    .not-found h1 {
        font-size: 40px;
    }

    /* Zoals Astra: rij van 37px, teksten 2px en icoon 6px vanaf de bovenkant. */
    .site-footer__inner {
        align-items: start;
        min-height: 37px;
    }

    .site-footer__inner > p {
        padding-top: 2px;
    }

    .site-footer__inner > .site-footer__social {
        padding-top: 6px;
    }
}

/* ---------- Mobiel (<= 767px) ---------- */

@media (max-width: 767px) {
    h2 {
        font-size: 30px;
    }

    .hero {
        padding: 104px 24px 0;
        background: none;
    }

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

    .hero__text {
        padding-top: 0;
    }

    .hero__intro {
        text-align: center;
    }

    .hero__portrait img {
        width: auto;
        height: 663px;
        object-fit: cover;
    }

    .about-intro {
        padding: 64px 24px;
    }

    .about-intro__head {
        margin-bottom: 15px;
    }

    .about-intro__head h2 {
        max-width: none;
    }

    .split,
    .split--services {
        flex-direction: column;
        padding: 64px 24px;
    }

    .split__text,
    .split__card {
        width: 100%;
        max-width: 100%;
    }

    .split__text {
        padding: 0 0 40px;
    }

    .services {
        padding-bottom: 40px;
    }

    .contact {
        padding: 0 24px;
    }

    /* Geen achtergrond: het origineel verwees hier naar een niet-bestaande afbeelding (404). */
    .contact__card {
        padding: 32px 24px;
        text-align: center;
        background: none;
        border-radius: 0;
    }

    .contact__card > p {
        margin-bottom: 29px;
    }

    .not-found {
        padding: 140px 24px 64px;
    }

    .not-found h1 {
        font-size: 30px;
    }
}

/* ---------- Astra: mobiele header en gestapelde footer (<= 544px) ---------- */

@media (max-width: 544px) {
    .site-logo img {
        width: 88px;
    }

    .btn-call {
        padding: 12px 18px;
        font-size: 0.8125rem;
        background: #fff;
    }

    .site-footer {
        padding: 20px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        row-gap: 10px;
        text-align: center;
    }

    .site-footer__copy {
        padding-left: 0;
    }

    .site-footer__inner > p {
        padding-top: 0;
    }

    .site-footer__inner > .site-footer__social {
        justify-content: center;
        min-height: 37px;
        padding: 4px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
