/* Global styles for Groepspraktijk Elewijt */
/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Nunito:wght@500;700&display=swap');

/* Kleuren & Stijl Variabelen */
:root {
    --background: #f8fafc; /* slate-50 */
    --surface: #ffffff; /* white surfaces */
    --surface-rgb: 255, 255, 255;
    --border: #e2e8f0; /* slate-200 */
    --text-dark: #0f172a; /* slate-900 */
    --text-light: #475569; /* slate-600 */
    --primary: #5ea4bc; /* blue-600 */
    --accent:  #5ea4bc; /* links & focus */
    --accent-rgb: 37, 99, 235;
    --font-heading: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.1);
    --transition: all 0.25s ease;
    --header-height: 6rem; /* matches h-24 (96px) */
    --pinned-bg: #eef2ff; /* soft blue for pinned cards */
    --panel-bg: #f1f5f9;  /* subtle panel bg for info cards */
    --announce-bg: #eef2ff;
}

/* Basis & Typografie */
html { scroll-behavior: smooth; height: 100%; }
body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-dark);
    font-weight: 400;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.main-content {
    flex-grow: 1;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; color: var(--text-dark); }
p { color: var(--text-light); margin-bottom: 1rem; }
a { color: var(--accent); transition: var(--transition); }
a:hover { filter: brightness(1.1); }

/* Header */
header#header {
    background-color: rgba(var(--surface-rgb), 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
header#header.scrolled {
    background-color: rgba(var(--surface-rgb), 1);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow);
}
.nav-link {
    position: relative; padding-bottom: 5px;
    font-weight: 500; color: var(--text-light);
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background-color: var(--primary);
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link-button { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* Call chip (modern phone display) */
.call-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .875rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    color: var(--text-dark);
}
.call-chip svg { color: var(--accent); }
.call-chip:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }

/* Header dropdown */
.header-dropdown { position: relative; }
.header-dropdown .dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 14rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .5rem;
    z-index: 60;
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.header-dropdown:hover .dropdown-panel,
.header-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
.dropdown-item {
    display: block;
    padding: .5rem .75rem;
    border-radius: .5rem;
    color: var(--text-dark);
}
.dropdown-item:hover { background: var(--pinned-bg); color: var(--text-dark); }

/* Mobile menu panel */
.mobile-menu-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    max-height: 70vh;
    overflow: auto;
}

/* Announcement bar (modern pinned display) */
.announce-bar {
    position: sticky;
    top: var(--header-height);
    z-index: 40;
    background: rgba(238, 242, 255, .7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(37, 99, 235, .12);
}
.announce-bar .container { padding-top: 1rem; padding-bottom: 1rem; }
.announce-label { font-weight: 600; color: #334155; white-space: nowrap; }
.announce-chip {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem .75rem; border-radius: 999px; white-space: nowrap;
    background: #fff; border: 1px solid var(--border);
    color: var(--text-dark); box-shadow: var(--shadow-sm);
}
.announce-chip:hover { border-color: rgba(var(--accent-rgb), .5); box-shadow: var(--shadow); }
.announce-all { margin-left: auto; font-weight: 500; color: var(--accent); white-space: nowrap; }
/* Announcement modal (popup) */
.announce-panel {
    position: fixed; inset: 0; z-index: 70;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.announce-panel.hidden { display: none; }
.announce-panel-inner {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: min(900px, calc(100% - 2rem));
    max-height: min(80vh, 900px);
    background: #fff; border-radius: 1rem; box-shadow: var(--shadow-lg);
    padding: 1.25rem 1rem 1rem 1rem;
    /* Ensure inner content can scroll without changing modal size */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.announce-panel-content {
    /* Make content area scrollable when needed */
    overflow: auto;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    flex: 1 1 auto;
    min-height: 0; /* allow flex child to shrink and enable scrolling */
    padding: .25rem 2.25rem .25rem .25rem;
    /* Prevent long words/URLs from overflowing horizontally */
    overflow-wrap: anywhere;
    word-break: break-word;
}
.announce-close {
    position: absolute; right: .75rem; top: .75rem;
    padding: .5rem; border: 1px solid var(--border); border-radius: .5rem; background: #fff;
}

/* Footer */
.site-footer { padding: 4rem 0; background-color: var(--surface); border-top: 1px solid var(--border); }

/* Generic Layout */
section { padding: 4rem 0; } /* Reduced padding slightly */
#home { padding: 0; }
#welkom, #team-home { background-color: var(--surface); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.btn-secondary {
    background: var(--surface);
    color: var(--text-dark);
    border-color: var(--border);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* Content card styles */
.practice-card, .welcome-card {
    background: var(--panel-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.practice-card:hover, .welcome-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.pinned-card {
    background: var(--pinned-bg);
    border-radius: var(--radius-lg);
}

/* Mobile table cards (phones/links) */
.mobile-table-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Hero Section */
.page-hero {
    height: 20rem; /* 320px */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* Home Hero Overrides */
.hero-text-box {
    /* Frosted white glass effect */
    position: relative;
    background-color: rgba(var(--surface-rgb), 0.55);
    backdrop-filter: saturate(1.2) blur(14px);
    -webkit-backdrop-filter: saturate(1.2) blur(14px);
    padding: 2rem 3rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}
.hero-text-box::before {
    /* Subtiele rand/shine die het kader minder 'hard' maakt */
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1px; /* inner gradient stroke */
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.2));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}
.hero-text-box::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    background:
      radial-gradient(30rem 12rem at 15% -10%, rgba(255,255,255,.6), transparent 60%),
      radial-gradient(24rem 10rem at 85% 110%, rgba(255,255,255,.35), transparent 55%);
    pointer-events: none;
}

#home {
    height: 100vh;
    min-height: 600px;
    background-attachment: fixed;
}

#home h1 {
    font-size: clamp(2rem, 6.5vw, 4.5rem);
    color: var(--text-dark);
    text-shadow: none;
    line-height: 1.15;
}
.hero-body {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 65ch;
}
.hero-body a { color: var(--accent); text-decoration: underline; }

/* Map embed container */
.map-embed iframe { width: 100%; height: 100%; display: block; border: 0; border-radius: var(--radius); }

/* Team Card */
.team-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Make cards in a row equal height */
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.team-card .p-5 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.team-card p {
    margin-bottom: 0;
}

/* Reveal on scroll animations */
.stagger-container .reveal { opacity: 0; transform: translateY(15px); transition: opacity .6s ease, transform .6s ease; }
.stagger-container.is-visible .reveal { opacity: 1; transform: translateY(0); }

/* (eenvoudige modus verwijderd) */
.stagger-container .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger-container .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-container .reveal:nth-child(3) { transition-delay: 0.15s; }
.stagger-container .reveal:nth-child(4) { transition-delay: 0.2s; }
.stagger-container .reveal:nth-child(5) { transition-delay: 0.25s; }

/* Prose styles for richtext content */
.prose { line-height: 1.7; }
.prose p { margin-bottom: 1em; }
.prose h1, .prose h2, .prose h3 { margin-bottom: 0.8em; margin-top: 1.5em; }
.prose ul, .prose ol { margin-left: 1.5rem; margin-bottom: 1em; }
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose a { text-decoration: underline; }

/* Responsive adjustments */
@media (max-width: 767px) {
    #home {
        height: 80vh;
        min-height: 500px;
        background-attachment: scroll;
    }
    .hero-text-box { padding: 1.5rem; }
    .announce-panel-inner { width: calc(100% - 1.5rem); max-height: 85vh; }
}

/* Prevent background scroll when modal open */
.modal-open, .modal-open body { overflow: hidden; }

