/* minisite.css — uNiek design system + pijnacker-zuid huisstijl */

/* ── Design tokens (overschreven per tenant via PHP inline vars) ── */
:root {
    --primary:        #8dc73f;
    --primary-dark:   #5a8a1f;
    --primary-light:  #b6cd71;
    --secondary:      #2d6a4f;
    --text:           #222222;
    --text-muted:     #666666;
    --bg:             #f8f9f4;
    --bg-card:        #ffffff;
    --border:         #e0e0d8;
    --radius:         8px;
    --shadow:         0 2px 8px rgba(0,0,0,0.08);
    --font:           'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    --max-width:      1160px;
    --spacing:        1.5rem;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 1rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}
.section { padding: 3rem 0; }
.section-titel {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ── Header / Nav ── */
.site-header {
    background: #ffffff;
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem var(--spacing);
    max-width: var(--max-width);
    margin: 0 auto;
}
.site-logo img { height: 56px; width: auto; }
.site-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Nav — see full definitions below in "Center nav dropdown" section */

/* ── Hero block ── */
.block-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #ffffff;
    padding: 4rem var(--spacing);
    text-align: center;
}
.hero-titel {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.hero-subtitel {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); text-decoration: none; }
.btn-wit {
    background: #ffffff;
    color: var(--primary-dark);
}
.btn-groen {
    background: var(--primary);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.3);
}

/* ── Event-list block ── */
.block-event-list { background: var(--bg-card); }
.event-list { display: grid; gap: 1rem; }
.event-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    transition: box-shadow 0.2s;
}
.event-item:hover { box-shadow: var(--shadow); }
.event-datum-blok {
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    font-weight: 700;
}
.event-datum-dag { font-size: 1.5rem; line-height: 1; }
.event-datum-mnd { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.event-info { flex: 1; min-width: 0; }
.event-titel { font-weight: 700; font-size: 1rem; color: var(--primary-dark); }
.event-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }
.event-omschr { font-size: 0.9rem; margin-top: 0.4rem; }

/* ── Card-grid block ── */
.block-card-grid { background: var(--bg); }
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--primary-light);
}
.card-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-titel { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.card-tekst { font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.card-footer { padding: 0 1.25rem 1.25rem; }

/* ── Footer ── */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    padding: 2.5rem var(--spacing);
    text-align: center;
    font-size: 0.875rem;
    margin-top: 3rem;
}
.site-footer a { color: var(--primary-light); }

/* ── Chat widget ── */
.chat-widget { position:fixed; bottom:1.5rem; right:1.5rem; z-index:999; }
.chat-avatar-btn { background:none; border:none; cursor:pointer; filter:drop-shadow(0 2px 8px rgba(0,0,0,0.25)); transition:transform 0.2s; }
.chat-avatar-btn:hover { transform:scale(1.1); }
.chat-avatar-btn img { width:64px; height:64px; border-radius:50%; }
.chat-panel { display:none; position:absolute; bottom:80px; right:0; width:360px; height:500px; background:#fff; border-radius:12px; box-shadow:0 8px 32px rgba(0,0,0,0.18); overflow:hidden; flex-direction:column; }
.chat-panel.open { display:flex; }
.chat-panel-header { display:flex; align-items:center; gap:0.5rem; padding:0.75rem 1rem; background:var(--primary); color:#fff; font-weight:700; }
.chat-panel-header button { margin-left:auto; background:none; border:none; color:#fff; font-size:1.2rem; cursor:pointer; }
@media(max-width:480px) { .chat-panel { width:calc(100vw - 2rem); right:-0.5rem; } }

/* ── Responsive ── */
@media (max-width: 768px) {
    .block-hero { padding: 3rem var(--spacing); }
    .event-item { flex-direction: column; }
    .event-datum-blok { width: 100%; flex-direction: row; gap: 0.5rem; padding: 0.4rem 0.75rem; }
    .a11y-bar button { padding: 2px 4px; font-size: 0.72rem; }
}

@media (max-width: 480px) {
    .section-titel { font-size: 1.4rem; }
    .card-grid { grid-template-columns: 1fr; }
}

/* ── Header layout (logo left, nav center, a11y right) ── */
.site-logo { flex: 0 0 auto; }
.header-nav-center { flex: 1; display: flex; justify-content: center; position: relative; }
.a11y-bar { flex: 0 0 auto; }

/* ── A11Y bar in header ── */
.a11y-bar {
    display: flex;
    align-items: center;
    gap: 4px;
}
.a11y-bar button {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 0.78rem;
    cursor: pointer;
    color: var(--text);
    line-height: 1;
}
.a11y-bar button:hover,
.a11y-bar button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ── Center nav dropdown ── */
.nav-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    padding: 0.45rem 1rem;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    white-space: nowrap;
    line-height: 1.4;
}
.nav-toggle:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}
.nav-toggle[aria-expanded="true"] {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    min-width: 200px;
    z-index: 100;
}
.site-nav.open {
    display: block;
}
.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.site-nav ul li a {
    display: block;
    padding: 0.65rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s;
    border-bottom: none;
}
.site-nav ul li a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    text-decoration: none;
}
.site-nav ul li a.actief {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, transparent);
}

/* ── Dark mode ── */
body.dark {
    --bg: #1a1a2e;
    --bg-alt: #16213e;
    --bg-card: #2a2a40;
    --text: #f0ede8;
    --text-muted: #9090a8;
    --border: #3a3a5c;
}

/* ── Font size (also set via inline style, this is fallback) ── */
html { font-size: calc(16px * var(--fs, 1)); }
