/*
Theme Name: Fysio Flex
Theme URI: https://appforge.nl
Author: AppForge.NL
Author URI: https://appforge.nl
Description: Professioneel WordPress theme voor fysiotherapeuten met online afspraken en Mollie-betalingen.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: fysio-flex
*/

:root {
    --ff-primary: #0d9488;
    --ff-primary-dark: #0f766e;
    --ff-secondary: #134e4a;
    --ff-accent: #f59e0b;
    --ff-bg: #f8fafc;
    --ff-surface: #ffffff;
    --ff-text: #0f172a;
    --ff-muted: #64748b;
    --ff-radius: 1rem;
    --ff-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --ff-font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--ff-font);
    color: var(--ff-text);
    background: var(--ff-bg);
    line-height: 1.6;
}

a {
    color: var(--ff-primary);
    text-decoration: none;
}

a:hover {
    color: var(--ff-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ff-container {
    width: min(100% - 2rem, 72rem);
    margin-inline: auto;
}

.ff-site-header {
    background: var(--ff-surface);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.ff-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.ff-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ff-text);
    font-weight: 700;
    min-width: 0;
}

.ff-brand img,
.ff-brand .ff-brand-logo,
.ff-brand .custom-logo {
    display: block;
    height: auto;
    max-height: 76px;
    width: auto;
    max-width: min(220px, 40vw);
    object-fit: contain;
}

.ff-brand-tagline {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ff-muted);
}

.ff-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ff-nav a {
    color: var(--ff-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.ff-nav a:hover {
    color: var(--ff-primary);
}

.ff-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.55rem;
    cursor: pointer;
    flex-shrink: 0;
}

.ff-menu-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ff-text);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ff-site-header.is-menu-open .ff-menu-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ff-site-header.is-menu-open .ff-menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.ff-site-header.is-menu-open .ff-menu-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.ff-header-panel {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.ff-header-cta {
    white-space: nowrap;
}

.ff-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.ff-btn--primary {
    background: var(--ff-primary);
    color: #fff;
}

.ff-btn--primary:hover {
    background: var(--ff-primary-dark);
    color: #fff;
}

.ff-btn--outline {
    background: transparent;
    border: 2px solid var(--ff-primary);
    color: var(--ff-primary);
}

.ff-hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, var(--ff-secondary), var(--ff-primary));
    color: #fff;
}

.ff-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 1rem;
    line-height: 1.15;
}

.ff-hero p {
    font-size: 1.15rem;
    max-width: 38rem;
    opacity: 0.95;
}

.ff-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.ff-section {
    padding: 3.5rem 0;
}

.ff-section-title {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
}

.ff-section-sub {
    color: var(--ff-muted);
    margin: 0 0 2rem;
}

.ff-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.ff-card {
    background: var(--ff-surface);
    border-radius: var(--ff-radius);
    padding: 1.5rem;
    box-shadow: var(--ff-shadow);
}

.ff-main {
    flex: 1 0 auto;
}

.ff-site-footer {
    background: var(--ff-secondary);
    color: #e2e8f0;
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
    flex-shrink: 0;
}

.ff-site-footer a {
    color: #99f6e4;
}

.ff-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.ff-footer-contact p {
    margin: 0 0 0.5rem;
}

.ff-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    opacity: 0.9;
}

.ff-footer-bottom-start {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.ff-footer-bottom-contact {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.ff-footer-bottom a,
.ff-site-footer a {
    color: #99f6e4;
}

@media (max-width: 960px) {
    .ff-header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 0.75rem 1rem;
        padding: 0.75rem 0;
    }

    .ff-brand {
        grid-column: 1;
    }

    .ff-menu-toggle {
        display: inline-flex;
        grid-column: 2;
        grid-row: 1;
    }

    .ff-header-panel {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 0 0.25rem;
        border-top: 1px solid #e2e8f0;
    }

    .ff-site-header.is-menu-open .ff-header-panel {
        display: flex;
    }

    .ff-nav {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .ff-nav li {
        border-bottom: 1px solid #f1f5f9;
    }

    .ff-nav a {
        display: block;
        padding: 0.85rem 0;
        font-size: 1rem;
    }

    .ff-header-cta {
        width: 100%;
        justify-content: center;
    }

    .ff-brand img,
    .ff-brand .ff-brand-logo,
    .ff-brand .custom-logo {
        max-height: 60px;
        max-width: min(180px, 55vw);
    }
}

body.ff-menu-open {
    overflow: hidden;
}
