/*
Theme Name: ZorgDiePast
Theme URI: https://zorgdiepast.nl
Description: Zorg op maat. Ontdek welke behandeling het beste aansluit bij uw persoonlijke situatie.
Version: 1.0.0
Author: SeedInov
Author URI: https://seedinov.com
License: GNU General Public License v2 or later
Text Domain: zorgdiepast
*/

/* ── Tokens ── */
:root {
    --zorg-primary: #EA580C;
    --zorg-primary-dark: #C2410C;
    --zorg-primary-light: #FB923C;
    --zorg-primary-50: #FFF7ED;
    --zorg-heading: #0f172a;
    --zorg-body: #475569;
    --zorg-muted: #64748b;
    --zorg-border: #e2e8f0;
    --zorg-bg-alt: #f8fafb;
    --zorg-white: #ffffff;
    --zorg-font-h: 'DM Sans', sans-serif;
    --zorg-font-b: 'Nunito Sans', sans-serif;
    --zorg-radius: 16px;
    --zorg-radius-sm: 12px;
    --zorg-radius-xs: 8px;
    --zorg-shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --zorg-shadow: 0 2px 12px rgba(0,0,0,0.05);
    --zorg-shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --zorg-shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --zorg-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --primary: #EA580C;
    --radius: 16px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--zorg-font-b); font-size: 1rem; line-height: 1.75; color: var(--zorg-body); background: var(--zorg-white); letter-spacing: -0.011em; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--zorg-primary); text-decoration: none; transition: color 0.2s var(--zorg-ease); }
a:hover { color: var(--zorg-primary-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--zorg-font-h); color: var(--zorg-heading); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 2.75rem; } h2 { font-size: 2rem; } h3 { font-size: 1.5rem; } h4 { font-size: 1.25rem; }

/* ── Layout ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--zorg-bg-alt); }
.section-label { display: inline-block; font-family: var(--zorg-font-h); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--zorg-primary); margin-bottom: 0.75rem; }
.section-title { font-size: 2.25rem; margin-bottom: 0.5rem; }
.section-desc { color: var(--zorg-muted); font-size: 1.1rem; max-width: 560px; }
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0.5rem auto 0; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.75rem; border-radius: var(--zorg-radius); font-family: var(--zorg-font-h); font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: all 0.25s var(--zorg-ease); text-decoration: none; }
.btn-primary { background: var(--zorg-primary); color: #fff; }
.btn-primary:hover { background: var(--zorg-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--zorg-shadow); }
.btn-outline { background: transparent; color: var(--zorg-primary); border: 2px solid var(--zorg-primary); }
.btn-outline:hover { background: var(--zorg-primary); color: #fff; }
.btn-white { background: #fff; color: var(--zorg-primary); }
.btn-white:hover { background: var(--zorg-primary-50); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 1000; background: transparent; position: absolute; width: 100%; z-index: 100; transition: all 0.3s var(--zorg-ease); }
.site-header.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(16px); box-shadow: var(--zorg-shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.site-logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--zorg-font-h); font-size: 1.35rem; font-weight: 700; color: var(--zorg-heading); text-decoration: none; }
.site-logo svg, .site-logo .logo-icon { color: var(--zorg-primary); width: 28px; height: 28px; }
.site-logo .accent { color: var(--zorg-primary); }
.main-nav { display: flex; align-items: center; gap: 1.5rem;  }
.nav-link { font-family: var(--zorg-font-b); font-size: 0.9rem; font-weight: 500; color: var(--zorg-muted); text-decoration: none; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--zorg-primary);  }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--zorg-heading); }

/* ── Hero ── */
.hero { background: linear-gradient(160deg, #C2410C 0%, #EA580C 60%, #FB923C 100%); color: #fff; padding: 6rem 0 5rem; position: relative; overflow: hidden; }
.hero .wrap { text-align: center; max-width: 720px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: var(--zorg-radius); font-size: 0.8rem; font-weight: 600; margin-bottom: 1.5rem; background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.hero-title { font-size: 3.25rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1.25rem; color: #fff; }
.hero-sub { font-size: 1.15rem; line-height: 1.7; margin-bottom: 2rem; opacity: 0.85; color: rgba(255,255,255,0.85); max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-visual { display: none; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; justify-content: center; }
.hero-stat { text-align: center; }
.hero-stat-value { font-family: var(--zorg-font-h); font-size: 1.75rem; font-weight: 700; color: #fff; }
.hero-stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; }
.hero-visual-card { background: var(--zorg-white); border-radius: var(--zorg-radius); padding: 2rem; box-shadow: var(--zorg-shadow-md); width: 100%; max-width: 380px; }

/* ── Search (for search-focused hero) ── */
.hero-search { max-width: 560px; margin: 0 auto 1.5rem; }
.hero-search-form { display: flex; background: #fff; border-radius: var(--zorg-radius); overflow: hidden; box-shadow: var(--zorg-shadow-md); border: 2px solid transparent; transition: border-color 0.3s; }
.hero-search-form:focus-within { border-color: var(--zorg-primary); }
.hero-search-input { flex: 1; border: none; outline: none; padding: 1rem 1.5rem; font-size: 1rem; font-family: var(--zorg-font-b); }
.hero-search-btn { display: flex; align-items: center; justify-content: center; width: 56px; background: var(--zorg-primary); color: #fff; border: none; cursor: pointer; transition: background 0.2s; }
.hero-search-btn:hover { background: var(--zorg-primary-dark); }

/* ── Category Pills ── */
.cat-pills { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.cat-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.25rem; border-radius: var(--zorg-radius); font-size: 0.875rem; font-weight: 500; color: var(--zorg-body); background: var(--zorg-white); border: 1px solid var(--zorg-border); text-decoration: none; transition: all 0.2s var(--zorg-ease); }
.cat-pill:hover { border-color: var(--zorg-primary); color: var(--zorg-primary); background: var(--zorg-primary-50); }
.cat-pill svg { width: 16px; height: 16px; opacity: 0.6; }

/* ── Cards ── */
.card { background: var(--zorg-white); border-radius: var(--zorg-radius); overflow: hidden; border: 1px solid var(--zorg-border); transition: all 0.3s var(--zorg-ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--zorg-shadow-md); }
.card-img { width: 100%; height: 220px; object-fit: cover; background: linear-gradient(135deg, #FFF7ED, #FB923C30); }
.card-body { padding: 1.5rem; }
.card-cat { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--zorg-primary); margin-bottom: 0.5rem; }
.card-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.card-title a { color: var(--zorg-heading); text-decoration: none; }
.card-title a:hover { color: var(--zorg-primary); }
.card-excerpt { font-size: 0.9rem; color: var(--zorg-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 1rem; margin-top: 1rem; font-size: 0.8rem; color: var(--zorg-muted); }

/* ── Article Grid ── */

.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .articles-grid { grid-template-columns: 1fr; } }

/* ── CTA ── */
.cta-section { background: linear-gradient(135deg, #C2410C, #EA580C); padding: 4rem; text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── Footer ── */
.site-footer { background: linear-gradient(180deg, #0f172a, #1a1a2e); color: rgba(255,255,255,0.7); padding: 4rem 0 0;  }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-heading { font-family: var(--zorg-font-h); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 1.25rem; color: rgba(255,255,255,0.8); }
.footer-nav { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a { font-size: 0.9rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--zorg-primary); }
.footer-desc { font-size: 0.9rem; opacity: 0.7; margin-top: 1rem; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; flex-wrap: wrap; gap: 0.75rem; }
.footer-bottom p { font-size: 0.8rem; opacity: 0.5; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-legal a:hover { color: var(--zorg-primary); }

/* ── Newsletter ── */
.newsletter-form { display: flex; gap: 0.5rem; margin-top: 1rem; }
.newsletter-input { flex: 1; padding: 0.7rem 1rem; border: 1px solid rgba(255,255,255,0.15); border-radius: var(--zorg-radius-xs); background: rgba(255,255,255,0.05); color: #fff; font-size: 0.9rem; outline: none; transition: border-color 0.2s; }
.newsletter-input:focus { border-color: var(--zorg-primary); }
.newsletter-btn { padding: 0.7rem 1.25rem; background: var(--zorg-primary); color: #fff; border: none; border-radius: var(--zorg-radius-xs); font-weight: 600; cursor: pointer; transition: background 0.2s; }
.newsletter-btn:hover { background: var(--zorg-primary-dark); }

/* ── Breadcrumbs ── */
.breadcrumbs { padding: 1rem 0; font-size: 0.85rem; color: var(--zorg-muted); }
.breadcrumbs a { color: var(--zorg-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--zorg-primary); }
.breadcrumbs .sep { margin: 0 0.5rem; opacity: 0.4; }

/* ── Single Post ── */
.post-header { padding: 3rem 0 2rem; }
.post-cat { display: inline-block; padding: 0.35rem 0.85rem; border-radius: var(--zorg-radius); background: var(--zorg-primary-50); color: var(--zorg-primary); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; margin-bottom: 1rem; }
.post-title { font-size: 2.5rem; letter-spacing: -0.03em; margin-bottom: 1rem; }
.post-meta { display: flex; gap: 1.5rem; font-size: 0.875rem; color: var(--zorg-muted); }
.post-image { width: 100%; height: auto; border-radius: var(--zorg-radius); margin-bottom: 2rem; }
.entry-content { font-size: 1.05rem; line-height: 1.85; }
.entry-content h2 { font-size: 1.75rem; margin: 2.5rem 0 1rem; }
.entry-content h3 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content blockquote { border-left: 4px solid var(--zorg-primary-light); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--zorg-primary-50); border-radius: 0 var(--zorg-radius-xs) var(--zorg-radius-xs) 0; font-style: italic; color: var(--zorg-body); }
.entry-content a { color: var(--zorg-primary); text-decoration: underline; text-underline-offset: 2px; }
.entry-content img { border-radius: var(--zorg-radius-sm); margin: 1.5rem 0; }

/* ── Archive ── */
.archive-header { background: linear-gradient(135deg, #C2410C, #EA580C); padding: 3rem 0; margin-bottom: 3rem; }
.archive-title { font-size: 2.25rem; color: #fff; }
.archive-desc { color: rgba(255,255,255,0.8); margin-top: 0.5rem; }
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--zorg-radius-xs); font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: all 0.2s; }
.pagination a { color: var(--zorg-body); border: 1px solid var(--zorg-border); }
.pagination a:hover { border-color: var(--zorg-primary); color: var(--zorg-primary); }
.pagination .current { background: var(--zorg-primary); color: #fff; }

/* ── Animations ── */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transition: opacity 0.7s var(--zorg-ease); }
.reveal.visible { opacity: 1; }
.reveal-stagger > * { opacity: 0; transition: opacity 0.5s var(--zorg-ease); }
.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transition-delay: 0.3s; }

/* ── Mobile ── */
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 999; opacity: 0; transition: opacity 0.3s; }
.mobile-overlay.active { display: block; opacity: 1; }
.mobile-menu { position: fixed; top: 0; right: 0; transform: translateX(100%); width: 300px; height: 100vh; background: #fff; z-index: 1001; transition: transform 0.35s var(--zorg-ease); padding: 2rem; }
.mobile-menu.active { transform: translateX(0); }
.mobile-menu .nav-link { display: block; padding: 0.75rem 0; font-size: 1.05rem; color: var(--zorg-heading); border-bottom: 1px solid var(--zorg-border); }
.mobile-close { background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--zorg-heading); position: absolute; top: 1rem; right: 1rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .mobile-toggle { display: block; }
    .hero .wrap { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }
    .hero-stats { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
    h1, .hero-title { font-size: 2.25rem; }
    h2, .section-title { font-size: 1.75rem; }
    .section { padding: 3.5rem 0; }
    .hero { padding: 4rem 0 3rem; }
    .hero-stats { flex-direction: column; gap: 1rem; align-items: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    h1, .hero-title { font-size: 1.875rem; }
    .btn { padding: 0.7rem 1.25rem; font-size: 0.875rem; }
    .card-body { padding: 1.25rem; }
}

/* ── Print ── */
@media print {
    .site-header, .site-footer, .cta-section, .mobile-menu, .mobile-overlay { display: none !important; }
    body { color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
}

/* ── A11y ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 3px solid var(--zorg-primary); outline-offset: 2px; }
.skip-link { position: absolute; top: -100%; left: 1rem; background: var(--zorg-primary); color: #fff; padding: 0.75rem 1.5rem; border-radius: 0 0 var(--zorg-radius-xs) var(--zorg-radius-xs); z-index: 9999; }
.skip-link:focus { top: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ── WP Utilities ── */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
