/* ==========================================================================
   SnoeiZorg – site styles (on top of Bootstrap 5.3)
   All sizes are in rem. The root font size scales with the viewport, so the
   page scales like the design up to the maximum width of 1536px.
   ========================================================================== */

/* Roboto (self-hosted variable font, weights 300–700) */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300 700;
    font-stretch: 100%;
    font-display: swap;
    src: url(/fonts/roboto-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300 700;
    font-stretch: 100%;
    font-display: swap;
    src: url(/fonts/roboto-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 {
    --sz-green-dark: #053f2e;
    --sz-green-accent: #587e07;
    --sz-green-pale: #dae6ce;
    --sz-cream: #faf9f5;
    --sz-page-bg: #eceee6;
    --sz-heading: #0b2530;
    --sz-text: #3b4156;
    --sz-line: #d3d6cc;
    --sz-max: 1536px;

    --bs-body-font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --bs-body-color: var(--sz-text);
    --bs-body-bg: var(--sz-page-bg);
    --bs-link-color-rgb: 5, 63, 46;
    --bs-link-hover-color-rgb: 88, 126, 7;
}

html {
    /* 16px on small screens, ~22px at 1536px */
    font-size: clamp(16px, 2.05vw, 32px);
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    font-family: var(--bs-body-font-family);
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: var(--sz-max);
    margin-inline: auto;
    background: var(--sz-cream);
    overflow-x: clip;
}

h1, h2, h3 {
    color: var(--sz-heading);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
}

img { max-width: 100%; height: auto; }

.skip-link {
    position: absolute;
    z-index: 2000;
    left: 0.5rem;
    top: 0.5rem;
    background: #fff;
    padding: 0.5rem 1rem;
}

:focus-visible { outline: 3px solid var(--sz-green-accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header .navbar {
    padding: 0.35rem 1.25rem;
}

.brand {
    display: block;
    margin: 0;
    padding: 0;
    --logo-w: 11rem;
}

.brand-logo {
    width: var(--logo-w);
    height: auto;
    display: block;
}

.navbar-nav .nav-link {
    color: var(--sz-heading);
    font-size: 0.62rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.navbar-nav .nav-link:hover { color: var(--sz-green-accent); }

.btn-brand {
    background: var(--sz-green-dark);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.55rem 1rem;
    border-radius: 0.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-brand:hover, .btn-brand:focus { background: #0a5740; color: #fff; }

.btn-icon {
    width: 1.15em;
    height: 1.15em;
    fill: currentColor;
    flex: none;
}

/* ---------- Generic sections ---------- */
.section {
    padding: 2.5rem 1.5rem;
}

.section h2 {
    font-size: 1.85rem;
}

.eyebrow {
    margin: 0 0 0.25rem;
    color: var(--sz-green-accent);
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
    display: grid;
    grid-template-columns: 48% 52%;
    background: var(--sz-green-dark);
    color: #fff;
}

.hero-text {
    padding: 2.3rem 1.8rem 2.5rem 1.5rem;
    align-self: center;
}

.hero h1 {
    color: #fff;
    font-size: 2.3rem;
    margin-bottom: 1rem;
    max-width: 11em;
}

.hero p {
    font-size: 0.83rem;
    line-height: 1.5;
    margin-bottom: 0.9rem;
    max-width: 30em;
}

.btn-hero {
    margin-top: 0.5rem;
    background: var(--sz-cream);
    color: var(--sz-heading);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.6rem 1.8rem;
    border-radius: 0.2rem;
}
.btn-hero:hover, .btn-hero:focus { background: #fff; color: var(--sz-heading); }

.hero-photo { min-height: 100%; position: relative; }
.hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 20%;
}

/* ---------- About ---------- */
.about {
    display: grid;
    grid-template-columns: 12.5rem 1fr;
    align-items: center;
    gap: 2rem 3rem;
    padding: 1.7rem 1.5rem 2.3rem;
}

.about-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}

.about-text h2 { margin-bottom: 0.9rem; }
.about-text p { font-size: 0.75rem; line-height: 1.6; margin-bottom: 0.8rem; max-width: 34em; }

/* ---------- Services ---------- */
.services { padding-top: 1.3rem; padding-bottom: 1.8rem; }
.services h2 { margin-bottom: 0.6rem; }
.lead-text { font-size: 0.72rem; margin-bottom: 1.6rem; }

.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.service {
    padding: 0 0.9rem 0.5rem;
    border-left: 1px solid var(--sz-line);
}
.service:first-child { border-left: 0; padding-left: 0; }
.service:last-child { padding-right: 0; }

.service img {
    display: block;
    width: min(100%, 8.4rem);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.service h3 { font-size: 0.8rem; letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.service p { font-size: 0.58rem; line-height: 1.5; margin: 0; }

/* ---------- Bands ---------- */
.band {
    background: var(--sz-green-pale);
    padding: 2rem;
}

.band-inner { max-width: 25rem; margin-inline: auto; }
.band h2 { font-size: 1.55rem; margin-bottom: 0.5rem; }
.band p { font-size: 0.75rem; color: #5a6270; margin: 0; }
.band p.band-green { color: var(--sz-green-accent); }
.band .eyebrow { font-size: 0.45rem; color: var(--sz-green-accent); margin-bottom: 0.7rem; }

.band-inner-icon {
    max-width: 38rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.band-icon { width: 4.2rem; height: 4.2rem; flex: none; }

/* .band-center { padding: 3rem 1.6rem; } */
.band-center .band-inner { max-width: 28rem; text-align: center; }
.band-center h2 { font-size: 1.35rem; }
.band-center p:last-child { font-size: 0.62rem; }

/* ---------- Approach ---------- */
.approach { padding-top: 1.3rem; padding-bottom: 1.8rem; }
.approach h2 { margin-bottom: 1.2rem; }

.approach-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.approach-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.9rem 1rem 1rem;
    border-left: 1px solid var(--sz-line);
    border-bottom: 1px solid var(--sz-line);
}
.approach-item:nth-child(3n + 1) { border-left: 0; padding-left: 0.5rem; }
.approach-item:nth-child(n + 4) { border-bottom: 0; }

.approach-item img {
    width: 1.9rem;
    height: 1.9rem;
    flex: none;
    margin-top: 0.15rem;
}

.approach-item h3 { font-size: 0.68rem; letter-spacing: -0.01em; margin-bottom: 0.25rem; }
.approach-item p { font-size: 0.58rem; line-height: 1.45; margin: 0; }

/* ---------- Contact ---------- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--sz-green-dark);
    color: #fff;
    padding: 1.7rem 1.5rem 1.6rem;
}

.contact h2 { color: #fff; font-size: 1.6rem; margin-bottom: 0.7rem; }
.contact p { font-size: 0.68rem; line-height: 1.55; }
.contact a { color: #fff; }

.contact-info { padding-right: 2.2rem; }
.contact-info h2 { max-width: 9em; }
.contact-info p { max-width: 24em; margin-bottom: 0.9rem; }

.contact-form {
    padding-left: 2.2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}
.contact-form h2 { font-size: 1.15rem; }
.contact-form > p { font-size: 0.6rem; }

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.2rem 0 1rem;
}

.contact-card img {
    width: 2.7rem;
    height: 2.7rem;
    object-fit: cover;
    border-radius: 50%;
    flex: none;
}

.contact-card address {
    margin: 0;
    font-size: 0.6rem;
    line-height: 1.55;
}
.contact-card address strong { display: block; font-size: 0.75rem; }

.contact-card address a { text-decoration: underline; text-underline-offset: 0.15em; }

.contact-buttons { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-width: 6.4rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid #fff;
    border-radius: 0.2rem;
    background: transparent;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 500;
}
.btn-contact:hover, .btn-contact:focus {
    background: #fff;
    color: var(--sz-green-dark);
    border-color: #fff;
}

.contact-buttons .btn-contact { flex: 1 1 0; max-width: 10rem; white-space: nowrap; }

.field { margin-bottom: 0.75rem; }
.field label { display: block; font-size: 0.45rem; font-weight: 700; margin-bottom: 0.2rem; }

.contact-form .form-control {
    border: 0;
    border-radius: 0.2rem;
    font-size: 0.65rem;
    padding: 0.4rem 0.6rem;
    background: #fff;
    color: var(--sz-heading);
}

.contact-form .form-control:focus {
    border: 0;
    outline: 0;
    box-shadow: 0 0 0 3px var(--sz-green-accent);
}

.field-error { display: block; font-size: 0.55rem; color: #ffd6a0; margin-top: 0.2rem; }
.field-error:empty { display: none; }

.contact-form .btn-submit { width: 100%; margin-top: 0.4rem; padding-block: 0.7rem; }

.contact-form .btn-submit { position: relative; }
.contact-form .btn-submit:disabled { opacity: 1; }

.contact-result {
    display: none;
    margin-top: 1rem;
    color: #ffd6a0;
    font-size: 0.65rem;
    line-height: 1.55;
    white-space: pre-line;
}
.contact-result.is-visible { display: block; }
/* ---------- Footer ---------- */
.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.5rem 1.6rem;
    color: var(--sz-heading);
    background: var(--sz-cream);
}
.site-footer p { margin: 0; font-size: 0.58rem; line-height: 1.6; }
.site-footer .footer-name { font-weight: 700; }
.site-footer a { color: var(--sz-heading); text-decoration: underline; text-underline-offset: 0.15em; }
.footer-privacy { font-size: 0.58rem; font-weight: 500; text-decoration: none !important; align-self: flex-start; }

/* ---------- Privacy page ---------- */
.legal { --privacy-font-scale: 1; max-width: 40rem; }
.legal h1 { font-size: calc(1.8rem * var(--privacy-font-scale)); margin-bottom: 1rem; }
.legal h2 { font-size: calc(1.2rem * var(--privacy-font-scale)); margin-top: 1.5rem; }
.legal p, .legal ul, .legal address { font-size: calc(0.85rem * var(--privacy-font-scale)); }
.legal ul { padding-left: 1.4em; }
.legal li + li { margin-top: 0.5em; }
.legal a, .legal code { overflow-wrap: anywhere; }
.legal address { font-style: normal; }
.privacy-draft { padding: 1rem; border-left: 0.2rem solid var(--sz-green-accent); background: var(--sz-green-pale); }
.privacy-draft p { margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 1200px) {
    .legal { --privacy-font-scale: 0.85; }
}

/* Tablets */
@media (max-width: 1199.98px) {
    html { font-size: 16px; }

    .site-header .navbar { padding: 0.5rem 1rem; }
    .brand { --logo-w: 10rem; }
    .navbar-collapse { padding: 0.75rem 0 1rem; }
    .navbar-nav .nav-link { font-size: 1rem; padding: 0.6rem 0.25rem; }
    .btn-brand { font-size: 1rem; margin-top: 0.5rem; padding: 0.7rem 1.2rem; }

    .section { padding: 2.5rem 1.25rem; }
    .section h2 { font-size: 1.9rem; }
    .eyebrow, .band .eyebrow { font-size: 0.90rem; }

    .hero { grid-template-columns: 1fr; }
    .hero-text { padding: 2.5rem 1.25rem; }
    .hero h1 { font-size: 2.2rem; max-width: none; }
    .hero p { font-size: 1.05rem; max-width: none; }
    .btn-hero { font-size: 1rem; padding: 0.8rem 1.8rem; }
    .hero-photo { min-height: 0; aspect-ratio: 16 / 11; }
    .hero-photo img { object-position: 60% 30%; }

    .about { grid-template-columns: 1fr; justify-items: center; }
    .about-photo { width: min(16rem, 70%); }
    .about-text { text-align: left; }
    .about-text p { font-size: 1.05rem; max-width: none; }

    .lead-text { font-size: 1.05rem; }
    .service-list { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
    .service, .service:first-child, .service:last-child { padding: 0 1rem; }
    .service { text-align: center; }
    .service:nth-child(odd) { border-left: 0; padding-left: 0; }
    .service img { width: min(100%, 11rem); }
    .service h3 { font-size: 1.2rem; }
    .service p { font-size: 0.95rem; }

    .band h2, .band-center h2 { font-size: 1.9rem; }
    .band p, .band-center p:last-child { font-size: 1.05rem; }

    .approach-list { grid-template-columns: repeat(2, 1fr); }
    .approach-item, .approach-item:nth-child(3n + 1) { border-left: 1px solid var(--sz-line); border-bottom: 1px solid var(--sz-line); padding: 1rem; }
    .approach-item:nth-child(odd) { border-left: 0; padding-left: 0.25rem; }
    .approach-item:nth-child(n + 4) { border-bottom: 1px solid var(--sz-line); }
    .approach-item:nth-child(n + 5) { border-bottom: 0; }
    .approach-item img { width: 3rem; height: 3rem; }
    .approach-item h3 { font-size: 1.05rem; }
    .approach-item p { font-size: 0.95rem; }

    .contact { grid-template-columns: 1fr; padding: 2.5rem 1.25rem; }
    .contact h2, .contact-form h2 { font-size: 1.9rem; }
    .contact p, .contact-form > p { font-size: 1.05rem; }
    .contact-info { padding-right: 0; padding-bottom: 2rem; }
    .contact-info h2 { max-width: none; }
    .contact-info p { max-width: none; }
    .contact-form { padding-left: 0; padding-top: 2rem; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.35); }
    .contact-card img { width: 5rem; height: 5rem; }
    .contact-card address { font-size: 1rem; }
    .contact-card address strong { font-size: 1.2rem; }
    .btn-contact { font-size: 1rem; padding: 0.75rem 1.2rem; }
    .contact-buttons .btn-contact { max-width: none; }
    .field label { font-size: 0.9rem; }
    .contact-form .form-control { font-size: 1rem; padding: 0.55rem 0.75rem; }
    .field-error { font-size: 0.9rem; }
    .contact-result { font-size: 1rem; }

    .site-footer { padding: 1.5rem 1.25rem; }
    .site-footer p, .footer-privacy { font-size: 0.95rem; }
    .legal p { font-size: 1rem; }
}

/* Phones */
@media (max-width: 575.98px) {
    .section h2, .band h2, .band-center h2, .contact h2, .contact-form h2 { font-size: 1.65rem; }
    .hero h1 { font-size: 1.9rem; }
    .brand { --logo-w: 8.5rem; }
    .band-inner-icon { flex-direction: column-reverse; align-items: flex-start; gap: 1rem; }
    .band-icon { width: 3.5rem; height: 3.5rem; }

    .service-list { grid-template-columns: 1fr; }
    .service, .service:first-child, .service:last-child { border-left: 0; padding: 0; }
    .service img { width: 10rem; }

    .approach-list { grid-template-columns: 1fr; }
    .approach-item, .approach-item:nth-child(odd), .approach-item:nth-child(3n + 1) { border-left: 0; padding: 1rem 0; }
    .approach-item:nth-child(n + 4), .approach-item:nth-child(n + 5) { border-bottom: 1px solid var(--sz-line); }
    .approach-item:last-child { border-bottom: 0; }

    .contact-buttons { flex-direction: column; }
    .btn-hero { display: block; text-align: center; }
    .site-footer { flex-direction: column; }
}
