/* Lettertypes staan lokaal in de map "fonts" (Poppins en Open Sans, SIL Open Font License) */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/poppins-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/poppins-latin-700-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/open-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/open-sans-latin-600-normal.woff2') format('woff2');
}

/* Algemene Instellingen - Lichter Amethist & Roze Palet */
:root {
    --primary-color: #8f70b3; /* Zachter Amethist */
    --secondary-color: #b38bc2; /* Lichter Paars */
    --accent-color: #e6b5d7; /* Pastel Oudroze */
    
    --text-dark: #413550; /* Zacht donkerpaars-grijs, goed leesbaar maar niet hard zwart */
    --text-light: #ffffff; /* Wit voor maximale frisheid */
    --white: #ffffff;
    --light-bg: #fbf8fd; /* Nog subtielere, frisse lila/grijze tint */
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

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

ul {
    list-style: none;
}

/* Navigatie */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(143, 112, 179, 0.1); /* Lichte lila schaduw */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.nav-logo-img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links .btn-primary {
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
}

/* Hero Sectie */
.hero {
    height: 80vh;
    /* Lichte lila laag over de achtergrondafbeelding */
    background: linear-gradient(rgba(143, 112, 179, 0.8), rgba(179, 139, 194, 0.8)), url('hero-achtergrond.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
    position: relative;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Knoppen */
.btn-primary {
    background-color: #7b5a9e;
    color: var(--white);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 23px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Secties Algemeen */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 40px;
}

/* Over Ons */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.opening-hours-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(143, 112, 179, 0.08);
}

.opening-hours-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.opening-hours-card ul li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0e6f2; /* Lichter lila randje */
}

.opening-hours-card ul li:last-child {
    border-bottom: none;
}

/* Diensten / Behandelingen */
.services {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(143, 112, 179, 0.05);
    transition: transform 0.3s;
    border-top: 4px solid var(--secondary-color);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.poetstips {
    margin-top: 40px;
    background: #f9f0f8; /* Heel licht pastelroze/lila */
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.poetstips ul {
    display: inline-block;
    text-align: left;
    margin-top: 10px;
}

.poetstips li {
    margin-bottom: 5px;
    list-style-type: disc;
    margin-left: 20px;
}

/* Spoed */
.emergency {
    background-color: #ad4174; /* Lichtere framboos/bessen tint, minder zwaar dan de vorige */
    color: var(--white);
    padding: 60px 0;
}

.emergency-box {
    text-align: center;
}

.emergency-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0;
}

.emergency-divider {
    width: 2px;
    background-color: rgba(255,255,255,0.3);
}

/* Tarieven & Klachten */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.rates, .complaints {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
}

.text-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.contact-link {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #5a4b6e; /* Iets lichtere lijn voor de footer */
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Mobiel Menu (Responsive) */
/* Hulpklassen */
.page-top {
    padding-top: 120px;
    min-height: 90vh;
}

.footer-simple {
    border-top: none;
    padding-top: 0;
}

/* Contactpagina */
.contact {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding-bottom: 20px;
}

.contact-title {
    color: var(--white);
    margin-bottom: 40px;
}

.email-notice {
    margin-top: 20px;
}

.map {
    border: 0;
    border-radius: 8px;
}

.contact .footer-info h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.contact .footer-bottom {
    border-top: 1px solid #5a4b6e;
    padding-top: 20px;
}

.contact .footer-bottom.footer-simple {
    border-top: 1px solid #5a4b6e;
}

.contact-link:hover,
.contact-link:focus-visible {
    text-decoration: underline;
}

:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Mobiel menu-knop */
.burger {
    display: none;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 8px;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.burger.toggle .line1 {
    transform: translateY(8px) rotate(-45deg);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: translateY(-8px) rotate(45deg);
}

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0px); }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 70px;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 5px 10px rgba(143, 112, 179, 0.1);
        padding-top: 50px;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }
    
    .nav-active {
        transform: translateX(0%);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .about-grid, .grid-2, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .emergency-divider {
        display: none;
    }
}
.emergency-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.rates-link {
    margin: 15px 0;
}

/* Inhoudspagina's: kaarten met tekst */
.content-narrow {
    max-width: 800px;
    margin: 40px auto 0;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(143, 112, 179, 0.05);
    border-top: 4px solid var(--secondary-color);
    margin-bottom: 24px;
}

.info-card h2 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.info-card h3 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 20px 0 10px;
}

.info-card p + p {
    margin-top: 12px;
}

.treatment-list,
.tips-list {
    padding-left: 20px;
}

.treatment-list li,
.tips-list li {
    list-style: disc;
    margin-bottom: 8px;
}

.treatment-list li::marker,
.tips-list li::marker {
    color: var(--secondary-color);
}

.rates-complaints {
    background-color: var(--light-bg);
}

/* Spoed */
.emergency-block {
    flex: 1 1 300px;
    max-width: 440px;
}

.phone-number a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    cursor: pointer;
}

.phone-number a::before {
    content: "";
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin-right: 0.4em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.6 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.6 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.6 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.6 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.phone-number a:hover,
.phone-number a:focus-visible {
    text-decoration-color: var(--accent-color);
}

.emergency-link {
    text-decoration: underline;
}

.poli-name {
    margin: 12px 0;
}

.emergency-examples {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 30px;
    text-align: left;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.emergency-examples h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.emergency-examples li {
    margin-bottom: 16px;
}

.emergency-examples li p {
    margin-top: 4px;
}

.examples-note {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Openingstijden-kaart op de contactpagina */
.opening-hours-card {
    color: var(--text-dark);
}

.footer-map .opening-hours-card {
    margin-bottom: 24px;
}

.emergency-block h3 {
    margin-bottom: 10px;
}

/* Mondzorg Poli-logo op de spoedpagina */
.poli-logo {
    display: inline-block;
    background: var(--white);
    padding: 10px 16px;
    border-radius: 8px;
    margin: 12px 0 4px;
}

.poli-logo img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
}

.review-action {
    margin-top: 20px;
}

.opening-hours-card small {
    display: block;
    margin-top: 12px;
}

@media screen and (max-width: 420px) {
    .logo {
        font-size: 1rem;
    }

    .nav-logo-img {
        margin-right: 8px;
    }
}

/* Foto van het praktijkpand op de homepage */
.practice-photo {
    margin: 24px 0 16px;
}

.practice-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(143, 112, 179, 0.15);
}

/* Contactpagina: kaart over de volle breedte onder de twee vlakken */
.contact-map {
    margin-bottom: 40px;
}

.contact-map .map {
    display: block;
    width: 100%;
    height: 400px;
}

.footer-link {
    text-decoration: underline;
}

.footer-link:hover {
    color: var(--accent-color);
}

/* Privacyverklaring */
.legal h2 {
    margin-top: 30px;
}

.legal > :first-child {
    margin-top: 0;
}

.legal ul {
    margin-top: 12px;
}

.legal a {
    overflow-wrap: anywhere;
}

/* Klokicoontje (inline SVG) */
.icon-clock {
    vertical-align: -0.125em;
    margin-right: 4px;
}

/* Footer met praktijkgegevens */
.footer-contact {
    color: #d9c4f0;
    font-size: 1rem;
}

.footer-contact span + span::before {
    content: "|";
    margin: 0 0.6em;
    color: #8f70b3;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
    text-decoration: underline;
}

.footer-privacy {
    margin-top: 10px;
    font-size: 0.9rem;
}

@media screen and (max-width: 600px) {
    .footer-contact span {
        display: block;
    }

    .footer-contact span + span::before {
        content: none;
    }
}

/* --- Verbeteringen --- */
:root {
    --primary-dark: #6b4b8f;
}

/* Hero-knop: wit, zodat hij goed opvalt op de lila achtergrond */
.hero .btn-primary {
    background-color: var(--white);
    color: var(--primary-dark);
}

.hero .btn-primary:hover {
    background-color: var(--light-bg);
    color: var(--primary-dark);
}

/* Homepage: ruimte tussen kop en alinea's */
.about .section-title {
    margin-bottom: 30px;
}

.about-text p + p {
    margin-top: 12px;
}

/* Kop op de spoedpagina in hetzelfde lettertype als de andere koppen */
.emergency-title {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Huidige pagina in het menu */
.nav-links a[aria-current="page"]:not(.btn-primary) {
    color: var(--primary-color);
    box-shadow: 0 3px 0 var(--secondary-color);
    padding-bottom: 2px;
}

/* Contactgegevens als kaart naast de openingstijden */
.contact-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
}

/* Bel-knop, alleen op telefoons */
.call-fab {
    display: none;
}

@media screen and (max-width: 768px) {
    .call-fab {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        right: 16px;
        bottom: 16px;
        z-index: 900;
        padding: 12px 18px;
        border-radius: 999px;
        background-color: var(--primary-dark);
        color: var(--white);
        font-weight: 600;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    }

    footer,
    .contact {
        padding-bottom: 90px;
    }
}

/* Spoedpagina: twee even grote vakken in dezelfde kleur */
.emergency-content {
    align-items: stretch;
    gap: 24px;
    margin-top: 30px;
}

.emergency-block {
    flex: 1 1 320px;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.emergency-examples {
    max-width: none;
    margin-top: 24px;
}

/* Kaarten twee per rij (Behandelingen, Financieel) */
.card-grid {
    max-width: 1000px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;
}

.card-grid .info-card {
    margin-bottom: 0;
}

.card-grid .info-card.wide {
    grid-column: 1 / -1;
}

.card-grid .treatment-list {
    columns: 2;
    column-gap: 40px;
}

.card-grid .treatment-list li {
    break-inside: avoid;
}

@media screen and (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .card-grid .treatment-list {
        columns: 1;
    }
}

/* Spoedpagina (oktober): koppen en nummers op dezelfde hoogte, voorbeelden als uitklap */
.emergency-block {
    justify-content: flex-start;
    padding: 24px;
}

.emergency-block .phone-number {
    margin: 4px 0 12px;
}

.poli-logo img {
    max-width: 200px;
}

.emergency-examples {
    max-width: 800px;
    margin: 24px auto 0;
    padding: 0;
    font-size: 0.95rem;
}

.emergency-examples summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 24px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.emergency-examples summary::-webkit-details-marker {
    display: none;
}

.emergency-examples summary::after {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
    transition: transform 0.3s ease;
}

.emergency-examples[open]:not(.sluit) summary::after {
    transform: translateY(3px) rotate(225deg);
}

.emergency-examples summary:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 12px;
}

.emergency-examples ul,
.emergency-examples .examples-note {
    margin-left: 24px;
    margin-right: 24px;
}


.emergency-examples ul {
    padding-top: 4px;
}

.info-card p + .tips-list {
    margin-top: 12px;
}

/* Menu: past ook op middelbare schermbreedtes */
@media screen and (min-width: 961px) and (max-width: 1100px) {
    .nav-links {
        gap: 14px;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-links a {
        font-size: 0.95rem;
    }
}

/* Tussen tablet en laptop: hamburgermenu, zodat de langere naam past */
@media screen and (min-width: 769px) and (max-width: 960px) {
    .logo {
        font-size: 1rem;
    }

    .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        top: 70px;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        width: 40%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 5px 10px rgba(143, 112, 179, 0.1);
        padding-top: 50px;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }
}

/* Teampagina */
.team {
    background-color: var(--light-bg);
}

.team-intro {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 48px;
    align-items: center;
    margin-top: 10px;
}

.team-intro-text .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.team-intro-text p {
    margin-bottom: 24px;
}

.team-intro-photo {
    position: relative;
    margin: 0;
}

/* Zachte lila vorm achter de teamfoto */
.team-intro-photo::before {
    content: "";
    position: absolute;
    inset: 22px -18px -22px 18px;
    background: var(--accent-color);
    opacity: 0.45;
    border-radius: 18px;
    z-index: 0;
}

.team-intro-photo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(143, 112, 179, 0.25);
}

.team-grid {
    max-width: 1060px;
    margin: 70px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.team-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(143, 112, 179, 0.08);
    border-bottom: 4px solid var(--secondary-color);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(143, 112, 179, 0.18);
}

.team-photo {
    aspect-ratio: 4 / 5;
    background-color: #efe9f5;
    overflow: hidden;
}

.team-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.team-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.team-silhouette {
    width: 38%;
    height: auto;
}

.team-info {
    padding: 20px 16px 22px;
}

.team-card h2 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.team-role {
    margin-top: 4px;
    font-weight: 600;
}

.team-big {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #777;
}

@media screen and (max-width: 900px) {
    .team-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-intro-text,
    .team-intro-text .section-title {
        text-align: center;
    }

    .team-intro-photo::before {
        inset: 14px -10px -14px 10px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 50px;
    }

    .team-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 14px);
    }
}

@media screen and (max-width: 420px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .team-card:last-child:nth-child(odd) {
        grid-column: auto;
        width: auto;
    }

    .team-intro-text h1 {
        font-size: 2rem;
    }
}

/* Foto naast "Onze aanpak" op Behandelingen */
.photo-card {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(143, 112, 179, 0.05);
    min-height: 240px;
}

.photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 40%;
}

@media screen and (max-width: 768px) {
    .photo-card {
        aspect-ratio: 3 / 2;
        min-height: 0;
    }
}

/* Kijkje in de praktijk (homepage) */
.gallery {
    background-color: var(--light-bg);
}

.gallery-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: repeat(2, 270px);
    gap: 20px;
}

.gallery-item {
    position: relative;
    display: block;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(143, 112, 179, 0.15);
}

.gallery-tall {
    grid-row: 1 / 3;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item figcaption,
.gallery-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 36px 18px 14px;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    background: linear-gradient(to top, rgba(65, 53, 80, 0.75), rgba(65, 53, 80, 0));
}

.gallery-link:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .gallery-tall {
        grid-row: auto;
    }

    .gallery-item {
        height: 240px;
    }

    .gallery-tall {
        height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-item img,
    .team-card {
        transition: none;
    }

    .gallery-item:hover img,
    .team-card:hover {
        transform: none;
    }
}

.gallery-link img {
    object-position: 50% 18%;
}

/* Homepage: hint om verder te scrollen */
.about {
    padding-bottom: 36px;
}

.scroll-cue {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 28px auto 0;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    color: var(--primary-color);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.scroll-cue:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.scroll-cue svg {
    animation: scrollCueBounce 1.8s ease-in-out infinite;
}

.scroll-cue:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 50%;
}

@keyframes scrollCueBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(4px); opacity: 1; }
}

.gallery {
    scroll-margin-top: 70px;
    padding-top: 40px;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue svg {
        animation: none;
    }
}

/* Homepage: "Een kijkje in de praktijk" rustiger, zodat het niet de overhand neemt */
.gallery {
    padding-top: 30px;
    padding-bottom: 50px;
}

.gallery .section-title {
    font-size: 1.6rem;
}

.gallery-grid {
    margin-top: 24px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 190px;
    gap: 16px;
}

.gallery-tall {
    grid-row: auto;
}

.gallery-item {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(143, 112, 179, 0.12);
}

.gallery-item figcaption,
.gallery-cap {
    padding: 28px 14px 10px;
    font-size: 0.9rem;
}

.gallery-tall img {
    object-position: 50% 45%;
}

.gallery-link:nth-of-type(1) img {
    object-position: 60% 35%;
}

@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .gallery-item,
    .gallery-tall {
        height: 170px;
    }
}

.gallery-extra img {
    object-position: 55% 40%;
}

/* Foto's in "Een kijkje in de praktijk" blijven scherp tijdens het inzoomen:
   geen transform-zoom (die wordt tijdelijk als lage resolutie getekend),
   maar de afbeelding zelf iets groter laten worden. */
.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
    transition: top 0.6s ease, left 0.6s ease, width 0.6s ease, height 0.6s ease;
}

.gallery-item:hover img {
    top: -2%;
    left: -2%;
    width: 104%;
    height: 104%;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .gallery-item img {
        transition: none;
    }

    .gallery-item:hover img {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* Teampagina: kleinere kaarten, kopjes en foto's */
.team-grid {
    max-width: 880px;
    gap: 24px;
}

.team-info {
    padding: 16px 12px 18px;
}

.team-card h2 {
    font-size: 1.05rem;
}

.team-role {
    font-size: 0.92rem;
}

.team-big {
    margin-top: 6px;
    font-size: 0.78rem;
}

@media screen and (max-width: 900px) {
    .team-grid {
        max-width: 620px;
    }
}

@media screen and (max-width: 420px) {
    .team-grid {
        max-width: 270px;
    }
}
