/*
Theme Name: HeartLife Klinieken
Theme URI: https://heartlife.nl
Description: Custom WordPress thema voor HeartLife Klinieken met ACF Flexible Content secties.
Version: 1.0.0
Author: MEDonline
Author URI: https://medonline.nl
Text Domain: heartlife
Requires at least: 6.0
Requires PHP: 8.1
License: Proprietary
*/

/* ─── Design Tokens ─── */
:root {
    --hl-primary: #BE2D3C;
    --hl-primary-dark: #7E2523;
    --hl-primary-deeper: #5A1717;
    --hl-bg: #FAF7F4;
    --hl-beige: #F5E9DA;
    --hl-beige-dark: #dcb496;
    --hl-ink: #1A1A1A;
    --hl-ink-soft: #3D3D3D;
    --hl-muted: #6B6B6B;
    --hl-line: #E8E2DA;
    --hl-radius: 18px;
    --hl-shadow: 0 12px 40px -16px rgba(126,37,35,.15);
    --hl-shadow-lg: 0 24px 60px -20px rgba(126,37,35,.2);
    --hl-max-width: 1140px;
}

/* ─── Reset & Base ─── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Figtree',sans-serif;font-size:17px;line-height:1.75;color:var(--hl-ink);background:#fff;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4{font-family:'Quicksand',sans-serif;font-weight:700;line-height:1.2;color:var(--hl-primary-dark)}
img{max-width:100%;height:auto;display:block}
a{color:var(--hl-primary);text-decoration:none;transition:all .2s}
a:hover{color:var(--hl-primary-dark)}
.container{max-width:var(--hl-max-width);margin:0 auto;padding:0 2rem}

/* ─── Top Bar ─── */
.topbar{background:var(--hl-primary-dark);color:rgba(255,255,255,.8);font-size:.78rem;padding:.45rem 0}
.topbar__inner{display:flex;justify-content:space-between;align-items:center}
.topbar a{color:rgba(255,255,255,.8)}
.topbar a:hover{color:#fff}
.topbar__links{display:flex;gap:1.5rem;list-style:none}

/* ─── Navigation ─── */
.nav{background:#fff;border-bottom:1px solid var(--hl-line);position:sticky;top:0;z-index:100}
.nav__inner{display:flex;align-items:center;justify-content:space-between;height:72px}
.nav__logo{display:flex;align-items:center;gap:.5rem;flex-shrink:0}
.nav__logo img{height:36px;width:auto}
.nav__menu,.nav__menu ul{list-style:none}
.nav__menu{display:flex;gap:0;height:100%;align-items:center}
.nav__menu>li{position:relative;height:100%;display:flex;align-items:center}
.nav__menu>li>a{font-size:.88rem;font-weight:600;color:var(--hl-ink-soft);padding:.5rem .9rem;border-bottom:2px solid transparent;transition:all .2s;white-space:nowrap}
.nav__menu>li:hover>a,.nav__menu>li.current-menu-item>a,.nav__menu>li.current-menu-ancestor>a{color:var(--hl-primary);border-bottom-color:var(--hl-primary)}
.nav__menu .sub-menu{display:none;position:absolute;top:100%;left:0;background:#fff;border:1px solid var(--hl-line);border-radius:0 0 12px 12px;box-shadow:var(--hl-shadow);min-width:240px;padding:.5rem 0;z-index:200}
.nav__menu>li:hover .sub-menu{display:block}
.nav__menu .sub-menu a{display:block;padding:.55rem 1.25rem;font-size:.85rem;color:var(--hl-ink-soft);transition:all .15s}
.nav__menu .sub-menu a:hover{background:var(--hl-bg);color:var(--hl-primary)}
.nav__right{display:flex;align-items:center;gap:1rem}
.nav__cta{font-size:.82rem;font-weight:600;padding:.5rem 1.2rem;background:var(--hl-primary);color:#fff!important;border-radius:8px;transition:all .2s}
.nav__cta:hover{background:var(--hl-primary-dark)}
.nav__burger{display:none;background:none;border:none;cursor:pointer;padding:.5rem}

/* ─── Breadcrumb ─── */
.breadcrumb{padding:1rem 0;font-size:.82rem;color:var(--hl-muted)}
.breadcrumb a{color:var(--hl-muted)}
.breadcrumb a:hover{color:var(--hl-primary)}
.breadcrumb .sep{margin:0 .4rem}

/* ─── Hero Section ─── */
.section-hero{background:var(--hl-bg);padding:0 0 4rem;overflow:hidden}
.section-hero--dark{background:linear-gradient(135deg,var(--hl-primary-dark),var(--hl-primary-deeper))}
.section-hero--dark .hero__title,.section-hero--dark .hero__subtitle,.section-hero--dark .hero__text{color:#fff}
.section-hero--dark .hero__text{color:rgba(255,255,255,.85)}
.hero__grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;min-height:420px}
.hero__content{padding:3.5rem 0}
.hero__title{font-size:clamp(2rem,4vw,3rem);margin-bottom:.75rem}
.hero__subtitle{font-family:'Quicksand',sans-serif;font-size:1.15rem;font-weight:500;color:var(--hl-primary);font-style:italic;margin-bottom:1.5rem}
.hero__text{color:var(--hl-ink-soft);margin-bottom:2rem;max-width:520px}
.hero__image{border-radius:var(--hl-radius);overflow:hidden;min-height:360px}
.hero__image img{width:100%;height:100%;object-fit:cover;border-radius:var(--hl-radius)}
.section-hero--center{text-align:center}
.section-hero--center .hero__content{max-width:700px;margin:0 auto}
.section-hero--center .hero__text{max-width:600px;margin:0 auto 2rem}

/* ─── Buttons ─── */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.8rem 1.8rem;border-radius:10px;font-weight:600;font-size:.92rem;transition:all .25s;cursor:pointer;border:none;font-family:inherit}
.btn--primary{background:var(--hl-primary);color:#fff;box-shadow:0 4px 16px -4px rgba(190,45,60,.35)}
.btn--primary:hover{background:var(--hl-primary-dark);color:#fff;transform:translateY(-1px)}
.btn--outline{background:transparent;color:var(--hl-primary);border:2px solid var(--hl-primary)}
.btn--outline:hover{background:var(--hl-primary);color:#fff}
.btn--white{background:#fff;color:var(--hl-primary)}
.btn--white:hover{background:var(--hl-bg);transform:translateY(-1px)}

/* ─── Generic Sections ─── */
.section{padding:4.5rem 0}
.section--beige{background:var(--hl-bg)}
.section--warm{background:linear-gradient(135deg,var(--hl-primary-dark),var(--hl-primary-deeper));color:#fff}
.section--warm h2,.section--warm h3,.section--warm h4{color:#fff}
.section--warm p,.section--warm li{color:rgba(255,255,255,.85)}
.section__title{font-size:clamp(1.4rem,3vw,2rem);margin-bottom:1rem}
.section__text{color:var(--hl-ink-soft);font-size:1.02rem}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start}

/* ─── Cards ─── */
.card{background:#fff;border:1px solid var(--hl-line);border-radius:var(--hl-radius);padding:2rem;transition:all .3s}
.card:hover{box-shadow:var(--hl-shadow);border-color:transparent;transform:translateY(-2px)}
.card--link{text-decoration:none;color:inherit;display:block}
.card__icon{width:48px;height:48px;background:var(--hl-bg);border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:1.25rem;color:var(--hl-primary)}
.card__icon img{width:32px;height:32px;object-fit:contain}
.card__title{font-size:1.1rem;margin-bottom:.5rem;color:var(--hl-primary-dark)}
.card__text{font-size:.9rem;color:var(--hl-muted);line-height:1.65}
.card__img{border-radius:12px;overflow:hidden;margin-bottom:1.25rem;height:180px}
.card__img img{width:100%;height:100%;object-fit:cover}
.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}

/* ─── Highlight Box ─── */
.highlight-box{background:var(--hl-bg);border-left:4px solid var(--hl-primary);border-radius:0 var(--hl-radius) var(--hl-radius) 0;padding:1.75rem 2rem;margin:1.5rem 0}
.highlight-box__title{font-size:1.05rem;margin-bottom:.4rem;color:var(--hl-primary-dark)}

/* ─── Check List ─── */
.check-list{list-style:none;padding:0}
.check-list li{padding:.45rem 0 .45rem 2rem;position:relative;color:var(--hl-ink-soft)}
.check-list li::before{content:'';position:absolute;left:0;top:.65rem;width:20px;height:20px;background:var(--hl-primary);border-radius:50%;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8l3 3 5-5' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-size:14px;background-repeat:no-repeat;background-position:center}

/* ─── Process Steps ─── */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem}
.step{text-align:center}
.step__num{width:48px;height:48px;background:var(--hl-primary);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.2rem;margin:0 auto 1rem}
.step__title{font-size:1.05rem;margin-bottom:.4rem;color:var(--hl-primary-dark)}
.step__text{font-size:.88rem;color:var(--hl-muted)}

/* ─── CTA Banner ─── */
.cta-banner{background:linear-gradient(135deg,var(--hl-primary),var(--hl-primary-dark));border-radius:var(--hl-radius);padding:3rem;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:2rem}
.cta-banner h3{color:#fff;font-size:1.5rem;margin-bottom:.4rem}
.cta-banner p{color:rgba(255,255,255,.85);margin:0}
.cta-banner .btn{background:#fff;color:var(--hl-primary);white-space:nowrap}
.cta-banner .btn:hover{background:var(--hl-bg);transform:translateY(-1px)}

/* ─── FAQ ─── */
.faq-item{border-bottom:1px solid var(--hl-line);padding:1.25rem 0}
.faq-item summary{font-weight:600;font-size:1rem;color:var(--hl-primary-dark);cursor:pointer;display:flex;align-items:center;justify-content:space-between;list-style:none;gap:1rem}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:'+';font-size:1.3rem;color:var(--hl-primary);flex-shrink:0}
.faq-item[open] summary::after{content:'\2212'}
.faq-item__answer{padding-top:.75rem;color:var(--hl-ink-soft)}

/* ─── Specialist Card ─── */
.specialist{display:flex;gap:2rem;background:#fff;border:1px solid var(--hl-line);border-radius:var(--hl-radius);padding:2rem;align-items:center}
.specialist__photo{width:110px;height:110px;border-radius:50%;object-fit:cover;flex-shrink:0;border:3px solid var(--hl-beige)}
.specialist__name{font-size:1.15rem;color:var(--hl-primary-dark);margin-bottom:.2rem}
.specialist__role{font-size:.85rem;color:var(--hl-primary);font-weight:600;margin-bottom:.6rem}
.specialist__bio{color:var(--hl-ink-soft);font-size:.9rem}

/* ─── Team Grid ─── */
.team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem}
.team-member{text-align:center}
.team-member__photo{width:100px;height:100px;border-radius:50%;object-fit:cover;margin:0 auto .75rem;border:3px solid var(--hl-beige)}
.team-member__name{font-size:.95rem;font-weight:600;color:var(--hl-primary-dark)}
.team-member__role{font-size:.82rem;color:var(--hl-muted)}

/* ─── Stats ─── */
.stats{display:flex;gap:3rem;justify-content:center;padding:2rem 0}
.stat{text-align:center}
.stat__num{font-family:'Quicksand',sans-serif;font-size:2.5rem;font-weight:700;color:var(--hl-primary)}
.stat__label{font-size:.85rem;color:var(--hl-muted)}

/* ─── Form ─── */
.form-group{margin-bottom:1.25rem}
.form-label{display:block;font-weight:600;font-size:.85rem;margin-bottom:.4rem;color:var(--hl-ink-soft)}
.form-input,.form-textarea,.form-select{width:100%;padding:.7rem 1rem;border:1px solid var(--hl-line);border-radius:10px;font-size:.92rem;font-family:inherit;background:var(--hl-bg);transition:border .2s}
.form-input:focus,.form-textarea:focus{outline:none;border-color:var(--hl-primary)}
.form-textarea{resize:vertical}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}

/* ─── Footer ─── */
.footer{background:var(--hl-ink);color:rgba(255,255,255,.6);padding:4rem 0 2rem;font-size:.85rem}
.footer h4{color:#fff;font-size:.95rem;margin-bottom:.8rem;font-family:'Quicksand',sans-serif}
.footer a{color:rgba(255,255,255,.6)}
.footer a:hover{color:#fff}
.footer__grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:2.5rem;margin-bottom:2.5rem}
.footer__logo{font-family:'Quicksand',sans-serif;font-weight:700;font-size:1.2rem;color:#fff;margin-bottom:.75rem;display:flex;align-items:center;gap:.5rem}
.footer__logo img{height:28px;width:auto}
.footer__bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:1.25rem;display:flex;justify-content:space-between}
.footer .widget ul{list-style:none;padding:0}
.footer .widget li{margin-bottom:.4rem}

/* ─── Responsive ─── */
@media(max-width:991px){
    .nav__menu{display:none}
    .nav__burger{display:block}
    .hero__grid,.two-col{grid-template-columns:1fr}
    .hero__image{min-height:280px;order:-1}
    .footer__grid{grid-template-columns:1fr 1fr}
    .steps{grid-template-columns:1fr 1fr}
    .stats{flex-wrap:wrap;gap:2rem}
}
@media(max-width:600px){
    .cta-banner{flex-direction:column;text-align:center;padding:2rem}
    .specialist{flex-direction:column;text-align:center}
    .footer__grid{grid-template-columns:1fr}
    .form-row{grid-template-columns:1fr}
    .topbar__links{display:none}
}

/* ─── WordPress specifiek ─── */
.wp-block-image img{border-radius:var(--hl-radius)}
.alignwide{max-width:calc(var(--hl-max-width) + 4rem);margin-left:auto;margin-right:auto}
.alignfull{width:100vw;position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw}


/* WordPress menu compatibility */
.nav__menu .sub-menu{display:none;position:absolute;top:100%;left:0;background:#fff;border:1px solid var(--hl-line);border-radius:0 0 12px 12px;box-shadow:var(--hl-shadow);min-width:240px;padding:.5rem 0;z-index:200;list-style:none}
.nav__menu>li:hover>.sub-menu{display:block}
.nav__menu .sub-menu li{display:block}
.nav__menu .sub-menu a{display:block;padding:.55rem 1.25rem;font-size:.85rem;color:var(--hl-ink-soft)!important;transition:all .15s;border-bottom:none!important}
.nav__menu .sub-menu a:hover{background:var(--hl-bg);color:var(--hl-primary)!important}
.nav__menu>li>a{display:block}
.nav__menu>li{list-style:none}
.footer .menu{list-style:none;padding:0}
.footer .menu li{margin-bottom:.4rem}
.topbar__links,.topbar .menu{list-style:none;display:flex;gap:1.5rem}
