/*
Theme Name: H.M Thuisverpleging
Theme URI: https://hm-thuisverpleging.be
Author: H.M Thuisverpleging
Description: Licht, snel thema voor H.M Thuisverpleging (Hanane Mahtar). Gebouwd voor AEO: schema.org-gegevens (MedicalBusiness, Service, FAQPage, BreadcrumbList), korte antwoordblokken, veelgestelde vragen die automatisch als FAQ-schema worden uitgegeven, /llms.txt en een robots.txt die AI-zoekmachines toelaat. Bij activatie worden alle pagina's, het menu en de afbeeldingen automatisch aangemaakt.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: hm-thuisverpleging
*/

/* ===== BASIS ===== */
:root {
    --primary: #d1b3b0;        /* zacht warm roze (origineel) */
    --primary-dark: #835a56;   /* donkerder voor leesbaar contrast */
    --primary-soft: #f5e6e4;
    --text-dark: #111;
    --text: #333;
    --text-light: #555;
    --bg-light: #fafafa;
    --radius: 15px;
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
    font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background-color: #fff;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.container-narrow { width: 90%; max-width: 820px; margin: 0 auto; }

.screen-reader-text, .skip-link:not(:focus) {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 10px; left: 10px; background: #fff; padding: 10px 16px; z-index: 2000; border-radius: 8px; }

/* ===== BOVENBALK ===== */
.above {
    background-color: var(--primary);
    padding: 10px 0;
    font-size: 0.95rem;
    color: #111;
}
.above .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 30px; text-align: center; }
.above a { color: #111; text-decoration: none; font-weight: 700; }
.above a:hover { text-decoration: underline; }

/* ===== HEADER ===== */
.header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 0; } }

.header-content { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; position: relative; }
.logo img { width: 200px; height: auto; }
.logo a { display: inline-block; }

.nav ul { display: flex; list-style: none; gap: 25px; align-items: center; }
.nav a { text-decoration: none; color: var(--text-dark); font-weight: 500; transition: color .3s; }
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { color: var(--primary-dark); }
.nav .sub-menu { display: none; }

.menu-toggle {
    display: none; font-size: 1.8rem; background: none; border: none; cursor: pointer;
    color: var(--text-dark); transition: transform .3s; line-height: 1;
}
.menu-toggle[aria-expanded="true"] { transform: rotate(90deg); }

/* ===== HERO ===== */
.hero {
    background: #555 center/cover no-repeat;
    min-height: 80vh;
    display: flex; align-items: center; justify-content: center;
    position: relative; color: #fff; padding: 60px 0;
}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.hero-content {
    position: relative; text-align: center; max-width: 760px; z-index: 2; padding: 0 16px;
    animation: fadeUp 1.2s ease both .2s;
}
.hero .eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .95rem; margin-bottom: 10px; opacity: .95; }
.hero h1 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 15px; }
.hero p { font-size: 1.2rem; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn, .wp-block-button__link {
    display: inline-block;
    background-color: var(--primary-dark); color: #fff;
    padding: 12px 30px; border-radius: 30px; font-weight: 500;
    text-decoration: none; border: none; cursor: pointer; font-size: 1rem;
    transition: background-color .3s, transform .3s;
}
.btn:hover, .wp-block-button__link:hover { background-color: #7d5652; transform: translateY(-2px); color: #fff; }
.btn-outline { background: transparent; border: 2px solid #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); }

/* ===== SECTIES ===== */
.section { padding: 90px 0; }
.section-light { background-color: var(--bg-light); }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 15px; color: var(--text-dark); }
.section-intro { text-align: center; max-width: 700px; margin: 0 auto 50px; color: var(--text-light); }

/* Dienstenraster */
.diensten-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.dienst {
    background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow);
    text-align: center; transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.dienst:hover { transform: translateY(-5px); box-shadow: 0 8px 18px rgba(0,0,0,0.08); }
.dienst h2, .dienst h3 { margin-bottom: 12px; color: var(--text-dark); font-size: 1.3rem; }
.dienst h2 a, .dienst h3 a { color: inherit; text-decoration: none; }
.dienst p { color: var(--text-light); flex: 1; }
.dienst .meer { margin-top: 16px; font-weight: 600; text-decoration: none; }
.dienst .meer:hover { text-decoration: underline; }

/* Reveal-animatie (alleen als JS actief is) */
.js .reveal { opacity: 0; transform: translateY(40px); }
.js .reveal.visible { animation: fadeUp 1s ease forwards; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; }
    .js .reveal.visible, .hero-content { animation: none; }
}

/* ===== PAGINA-INHOUD (Gutenberg) ===== */
.page-header { background: var(--primary-soft); padding: 50px 0 40px; }
.page-header h1 { font-size: 2.4rem; line-height: 1.2; color: var(--text-dark); }
.breadcrumbs { font-size: .9rem; margin-bottom: 12px; color: var(--text-light); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: var(--text-light); }
.page-meta { margin-top: 12px; font-size: .9rem; color: var(--text-light); }

.entry { padding: 50px 0 70px; }
.entry > * + *, .entry .wp-block-group > * + *, .entry .wp-block-column > * + * { margin-top: 1.1em; }
.entry h2 { font-size: 1.7rem; color: var(--text-dark); margin-top: 1.8em; line-height: 1.3; }
.entry h3 { font-size: 1.25rem; color: var(--text-dark); margin-top: 1.5em; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li + li { margin-top: .35em; }
.entry .wp-block-group.alignfull, .entry .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.entry .wp-block-image img { border-radius: var(--radius); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.entry .wp-block-columns { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.entry .wp-block-column { flex: 1 1 300px; }

/* Kort antwoord – het blok dat AI-zoekmachines en spraakassistenten citeren */
.is-answer, .entry p.is-answer {
    background: var(--primary-soft);
    border-left: 5px solid var(--primary-dark);
    padding: 18px 22px; border-radius: 10px;
    font-size: 1.08rem; color: var(--text-dark);
}

/* Veelgestelde vragen (core/details) */
.wp-block-details {
    background: #fff; border: 1px solid #eadbd9; border-radius: 12px;
    padding: 16px 20px; margin-top: 12px !important;
}
.wp-block-details summary { font-weight: 600; cursor: pointer; color: var(--text-dark); }
.wp-block-details[open] summary { margin-bottom: 10px; }
.wp-block-details p { color: var(--text-light); }

/* Auteur / betrouwbaarheid */
.author-box {
    display: flex; gap: 18px; align-items: center; margin-top: 50px;
    padding: 22px; border-radius: var(--radius); background: var(--bg-light); border: 1px solid #eee;
}
.author-box .initials {
    flex: 0 0 64px; height: 64px; border-radius: 50%; background: var(--primary);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; color: #fff;
}
.author-box p { margin: 0; font-size: .95rem; }

/* Home: over ons */
.home-content .wp-block-group { padding: 0; }
.home-content > .wp-block-group { padding: 80px 0; }
.home-content > .wp-block-group:nth-child(even) { background: var(--bg-light); }
.home-content > .wp-block-group > * { width: 90%; max-width: 1100px; margin-left: auto; margin-right: auto; }
.home-content > .wp-block-group > * + * { margin-top: 1.1em; }
.home-content h2 { font-size: 2.2rem; color: var(--text-dark); margin-bottom: .4em; }
.home-content .wp-block-columns { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.home-content .wp-block-column { flex: 1 1 320px; }
.home-content .wp-block-column > * + * { margin-top: 1em; }
.home-content .wp-block-image img { border-radius: var(--radius); box-shadow: 0 4px 12px rgba(0,0,0,0.1); width: 100%; }
.home-content .section-faq > * { max-width: 820px; }

/* ===== CONTACT ===== */
.contact { padding: 90px 0; background-color: var(--primary-soft); text-align: center; }
.contact h2 { font-size: 2.2rem; margin-bottom: 15px; color: #111; }
.contact .lead { color: #333; max-width: 620px; margin: 0 auto 14px; }
.contact .direct { margin-bottom: 36px; }
.contact .direct a { font-weight: 700; }
.contact form {
    max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px;
    background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); text-align: left;
}
.contact label { font-weight: 500; font-size: .95rem; display: flex; flex-direction: column; gap: 6px; }
.contact input, .contact textarea {
    padding: 14px; border: 1px solid #ccc; border-radius: 8px; font-size: 1rem; color: #222; font-family: inherit;
    transition: border-color .3s, box-shadow .3s;
}
.contact input:focus, .contact textarea:focus { border-color: var(--primary-dark); box-shadow: 0 0 5px rgba(209,179,176,.6); outline: none; }
.contact .privacy { font-size: .85rem; color: var(--text-light); }
.contact button { align-self: center; }
.hp-field { position: absolute; left: -9999px; }

/* ===== FOOTER ===== */
.footer { background-color: #111; color: #ddd; padding: 50px 0 25px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer h2 { font-size: 1.05rem; color: #fff; margin-bottom: 10px; }
.footer a { color: #fff; }
.footer ul { list-style: none; }
.footer li + li { margin-top: 4px; }
.footer .copy { text-align: center; border-top: 1px solid #333; padding-top: 20px; font-size: .85rem; color: #aaa; }

/* ===== ZWEVENDE KNOPPEN ===== */
#scrollTopBtn {
    position: fixed; bottom: 30px; right: 30px; background-color: var(--primary-dark); color: #fff;
    border: none; border-radius: 50%; width: 45px; height: 45px; font-size: 1.4rem; cursor: pointer;
    display: none; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 999;
}
#scrollTopBtn.show { display: block; }
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 90px; right: 23px;
    background-color: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: transform .3s; z-index: 1000;
}
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }
.whatsapp-float:hover { transform: scale(1.1); }

/* ===== COOKIEBANNER ===== */
.hm-cookies {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 3000; max-width: 560px;
    background: #fff; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.2); padding: 20px 22px;
    font-size: .95rem; color: var(--text);
}
.hm-cookies[hidden] { display: none; }
.hm-cookies a { color: var(--primary-dark); }
.hm-cookies-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.btn-light { background: #eee; color: #222; }
.btn-light:hover { background: #ddd; color: #222; }
.footer .linkbutton { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* ===== ANIMATIES ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
}
@media (max-width: 768px) {
    .nav ul {
        position: absolute; top: 100%; right: 0; background: #fff; flex-direction: column; align-items: flex-start;
        gap: 15px; padding: 20px; border-radius: 12px; box-shadow: 0 6px 12px rgba(0,0,0,0.1); display: none; min-width: 230px;
    }
    .nav ul.active { display: flex; }
    .menu-toggle { display: block; }
}
@media (max-width: 600px) {
    .above { font-size: .8rem; }
    .logo img { width: 150px; }
    .hero h1 { font-size: 1.8rem; }
    .section-title, .contact h2, .home-content h2, .page-header h1 { font-size: 1.7rem; }
    .contact form { padding: 25px; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 80px; right: 20px; }
    #scrollTopBtn { bottom: 25px; right: 22px; }
}

/* Over Hanane (v1.3) */
.author-box img.initials { width: 64px; object-fit: cover; padding: 0; }
.author-box a { color: inherit; }
.hanane-foto { float: right; width: 300px; max-width: 42%; margin: 0 0 20px 28px; }
.hanane-foto img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; display: block; }
.hanane-foto figcaption { font-size: .85rem; color: var(--text-light); text-align: center; margin-top: 8px; }
.entry .clear { clear: both; }
.home-content .wp-block-image img.hanane-home { max-width: 400px; } 
.hanane-home { border-radius: var(--radius); box-shadow: var(--shadow); max-width: 360px; width: 100%; height: auto; margin: 0 auto; display: block; }
@media (max-width: 600px) { .hanane-foto { float: none; width: 75%; max-width: 300px; margin: 24px auto 20px; } }
