/* Provinciaal Belang Fryslân - huisstijl */
:root {
    --pbf-primary: #92003B;
    --pbf-primary-dark: #6e002d;
    --pbf-text: #26262c;
    --pbf-muted: #6b6b74;
    --pbf-bg-alt: #f7f4f5;
    --pbf-border: #e8e2e4;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--pbf-text);
    line-height: 1.65;
    font-size: 17px;
}

img { max-width: 100%; height: auto; }
a { color: var(--pbf-primary); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--pbf-text); }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }
.center { text-align: center; }

/* Header */
.site-header {
    background: #fff;
    border-bottom: 3px solid var(--pbf-primary);
    position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pbf-text); font-weight: 700; font-size: 1.05rem; }
.brand img { height: 48px; width: auto; }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a {
    text-decoration: none; color: var(--pbf-text); font-weight: 600;
    padding: 8px 14px; border-radius: 6px; font-size: .95rem;
}
.site-nav a:hover, .site-nav a.active { background: var(--pbf-primary); color: #fff; }
.menu-toggle { display: none; font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--pbf-primary); }

/* Hero */
.hero { background: var(--pbf-primary); color: #fff; padding: 64px 0; }
.hero h1 { color: #fff; margin: 0 0 12px; }
.hero p { max-width: 640px; font-size: 1.15rem; margin: 0; opacity: .95; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--pbf-bg-alt); }

/* Post grid & cards */
.post-grid {
    display: grid; gap: 28px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin: 28px 0;
}
.post-card {
    background: #fff; border: 1px solid var(--pbf-border); border-radius: 10px;
    overflow: hidden; display: flex; flex-direction: column;
    transition: box-shadow .15s ease;
}
.post-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.post-card-img { display: block; aspect-ratio: 16/9; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.post-card-body time { color: var(--pbf-muted); font-size: .85rem; }
.post-card-body h3 { margin: 0; font-size: 1.15rem; }
.post-card-body h3 a { color: var(--pbf-text); text-decoration: none; }
.post-card-body h3 a:hover { color: var(--pbf-primary); }
.post-card-body p { margin: 0; color: var(--pbf-muted); font-size: .95rem; }
.read-more { font-weight: 700; text-decoration: none; margin-top: 4px; }
.read-more:hover { text-decoration: underline; }

/* Article */
.post-hero { border-radius: 10px; margin: 12px 0 20px; }
.prose img { border-radius: 8px; }
.prose a { word-break: break-word; }
article time { color: var(--pbf-muted); font-size: .9rem; }

/* Buttons */
.btn {
    display: inline-block; background: var(--pbf-primary); color: #fff;
    padding: 12px 26px; border-radius: 8px; text-decoration: none; font-weight: 700;
}
.btn:hover { background: var(--pbf-primary-dark); }

/* USP list */
.usp-list { padding-left: 0; list-style: none; }
.usp-list li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.usp-list li::before { content: "✔"; position: absolute; left: 0; color: var(--pbf-primary); font-weight: 700; }

/* Footer */
.site-footer { background: var(--pbf-text); color: #d8d8dd; margin-top: 40px; }
.site-footer h4 { color: #fff; margin-bottom: 8px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 44px 20px 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 16px 20px; font-size: .85rem; }

/* Nieuwsbrief-formulier */
.nb-form { display: flex; gap: 8px; flex-wrap: wrap; }
.nb-form input[type=email] {
    flex: 1 1 180px; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--pbf-border);
    font-size: .95rem;
}
.nb-form button {
    background: var(--pbf-primary); color: #fff; border: none; border-radius: 6px;
    padding: 10px 18px; font-weight: 700; cursor: pointer;
}
.nb-form button:hover { background: var(--pbf-primary-dark); }
.nb-form .hp { position: absolute; left: -9999px; }
.nb-small { font-size: .8rem; opacity: .8; }
.nb-status { font-weight: 600; }
.nb-error { color: #ffb3c8; font-size: .85rem; width: 100%; margin: 4px 0 0; }

/* Paginering (Laravel default) */
nav[role=navigation] { margin-top: 20px; }

/* Mobiel */
@media (max-width: 820px) {
    .menu-toggle { display: block; }
    .site-nav { display: none; width: 100%; flex-direction: column; }
    .site-nav.open { display: flex; }
    .header-inner { flex-wrap: wrap; }
    .hero { padding: 44px 0; }
    h1 { font-size: 1.7rem; }
}

/* Contactformulier */
.contact-form { display: flex; flex-direction: column; gap: 6px; max-width: 560px; margin-top: 20px; }
.contact-form label { font-weight: 700; margin-top: 12px; }
.contact-form input, .contact-form textarea {
    padding: 10px 12px; border: 1px solid var(--pbf-border); border-radius: 6px;
    font-size: 1rem; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--pbf-primary); border-color: var(--pbf-primary); }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .btn { margin-top: 16px; align-self: flex-start; border: none; cursor: pointer; font-size: 1rem; }
.form-error { color: #c0003e; font-size: .9rem; margin: 2px 0 0; }
.form-status { font-weight: 600; color: var(--pbf-primary); margin-top: 20px; }
