/*
Theme Name: Waadi
Theme URI: https://waadi.nl
Author: Rian Ouwendijk
Description: Custom theme voor waadi.nl
Version: 1.0.0
Text Domain: waadi
*/

/* ========================================
   RESET & BASE
   ======================================== */

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

:root {
    --color-bg: #F8FAF9;
    --color-surface: #FFFFFF;
    --color-dark: #0A0A0A;
    --color-dark-soft: #0F1A14;
    --color-text: #333333;
    --color-text-muted: #6B7280;
    --color-border: #E5E7EB;
    --color-accent: #10B981;
    --color-accent-light: #34D399;
    --color-accent-soft: #ECFDF5;
    --color-accent-dark: #059669;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-logo: 'DM Serif Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;
    --container: 1200px;
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-dark);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--color-text-muted); }

em {
    font-style: italic;
}

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

img {
    max-width: 100%;
    display: block;
}

/* ========================================
   HAND-DRAWN UNDERLINE
   ======================================== */

.underline {
    position: relative;
    display: inline-block;
}

.underline::after {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: -4px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C30 3, 50 10, 80 6 C110 2, 130 9, 160 5 C175 3, 190 7, 198 5' stroke='%2310B981' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 8px 20px;
    margin-bottom: 20px;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 640px;
    margin-top: 16px;
    margin-bottom: 48px;
}

.section-label + h2 + .card-grid,
.section-label + h2 + .steps {
    margin-top: 48px;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-accent {
    background: var(--color-accent);
    color: #fff;
}

.btn-accent:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-dark);
}

.btn-ghost:hover {
    background: var(--color-accent-soft);
}

.btn-outline {
    background: transparent;
    color: var(--color-dark);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-on-dark {
    color: rgba(255, 255, 255, 0.8);
}

.btn-on-dark:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 250, 249, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-dark);
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--color-accent);
}

.header-actions .btn {
    padding: 10px 22px;
    font-size: 0.85rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: 0.2s;
}

/* ========================================
   HERO
   ======================================== */

.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 8px 20px;
    margin-bottom: 24px;
    color: var(--color-text-muted);
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 24px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

/* ========================================
   SOCIAL PROOF
   ======================================== */

.social-proof {
    padding: 40px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.proof-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.partner-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #C0C0C0;
    letter-spacing: 0.02em;
}

/* ========================================
   CARDS
   ======================================== */

.card-grid {
    display: grid;
    gap: 24px;
}

.card-grid.thirds {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid.halves {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.card-dark {
    background: var(--color-dark-soft);
    border-color: transparent;
    color: rgba(255, 255, 255, 0.75);
}

.card-dark h3 {
    color: #fff;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-soft);
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--color-accent);
}

.card h3 {
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.card-dark p {
    color: rgba(255, 255, 255, 0.6);
}

.card-stat {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent-light);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   HOW IT WORKS
   ======================================== */

.how-it-works {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 48px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent-soft);
    margin-bottom: 16px;
    line-height: 1;
}

.step h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 12px;
}

.step p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ========================================
   STATS
   ======================================== */

.stats {
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-block {
    padding: 40px 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ========================================
   FAQ
   ======================================== */

.faq {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.faq-left h2 {
    margin-bottom: 12px;
}

.faq-left p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
    padding: 20px 0;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-accent);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding-bottom: 20px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   CTA
   ======================================== */

.cta {
    padding: 60px 0;
}

.cta-box {
    background: var(--color-dark-soft);
    border-radius: var(--radius-lg);
    padding: 80px 60px;
    text-align: center;
}

.cta-box h2 {
    color: #fff;
    margin-bottom: 16px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* ========================================
   CONTACT
   ======================================== */

.contact {
    text-align: center;
}

.contact .section-intro {
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    outline: none;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
}

.contact-form textarea {
    margin-bottom: 16px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--color-border);
}

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

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 4px;
}

.footer-brand p {
    margin-top: 12px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ========================================
   BLOG
   ======================================== */

.blog-header {
    padding-top: 140px;
    padding-bottom: 40px;
}

.blog-posts {
    padding-bottom: 100px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.post-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.post-card-image {
    display: block;
}

.post-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--color-accent-soft) 0%, #D1FAE5 50%, #A7F3D0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.post-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-accent-dark);
    border: 1px solid var(--color-accent-light);
    border-radius: 6px;
    padding: 4px 12px;
    margin-bottom: 14px;
    align-self: flex-start;
}

.post-card-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-card-title a:hover {
    color: var(--color-accent);
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
}

.post-card-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.blog-pagination {
    margin-top: 60px;
    text-align: center;
}

.blog-pagination ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.blog-pagination li a,
.blog-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--color-text);
    transition: all 0.2s;
}

.blog-pagination li a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.blog-pagination li span.current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.no-posts {
    text-align: center;
    padding: 80px 0;
}

.no-posts h2 {
    margin-bottom: 12px;
}

.no-posts p {
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

/* ========================================
   BLOG SINGLE
   ======================================== */

.container-narrow {
    max-width: 760px;
}

.blog-single {
    padding-top: 140px;
}

.blog-single h1 {
    margin-bottom: 32px;
}

.post-featured-image {
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

.post-content h2 {
    margin-top: 48px;
    margin-bottom: 16px;
}

.post-content h3 {
    margin-top: 36px;
    margin-bottom: 12px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 16px 24px;
    margin: 32px 0;
    background: var(--color-accent-soft);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--color-text);
    font-size: 1.05rem;
}

.post-content img {
    border-radius: var(--radius);
    margin: 32px 0;
}

.post-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content a:hover {
    color: var(--color-accent-dark);
}

.post-footer {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .main-nav,
    .header-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .card-grid.thirds,
    .card-grid.halves {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 48px 28px;
    }

    .hero {
        padding-top: 120px;
    }

    .blog-header {
        padding-top: 120px;
    }

    .blog-single {
        padding-top: 120px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }
}
