/* ==========================================================================
   Stichting De Kattenmand — site styles
   Framework-free. Design tokens live in :root; everything references them.
   ========================================================================== */

:root {
    --brand:        #C5613B; /* terracotta — primary actions, accents */
    --brand-dark:   #A84E2E; /* hover/active; accessible terracotta on cream */
    --cream:        #FBF6EE; /* page background */
    --surface:      #FFFFFF; /* cards */
    --ink:          #2E2A25; /* headings / body text */
    --muted:        #6E6457; /* secondary text */
    --border:       #EBE1D2; /* hairline borders */
    --accent-green: #7E9A6B; /* sparing natural accent */

    --maxw: 1100px;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 2px 16px rgba(60, 45, 30, 0.06);

    --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1 1 auto; }

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

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.2;
    font-weight: 600;
    margin: 0 0 0.6em;
}
h2 { font-size: 1.85rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }

hr {
    border: 0;
    border-top: 2px solid var(--border);
    width: 56px;
    margin: 0.4rem 0 1.4rem;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Skip-to-content link — visually hidden until focused */
.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -3rem;
    z-index: 100;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    padding: 0.6rem 1rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: top 0.15s ease;
}
.skip-link:focus {
    top: 0;
    text-decoration: none;
    color: #fff;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.section { padding-block: 2.75rem; }
.section--tight { padding-block: 1.75rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    padding: 0.8em 1.4em;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.btn-outline { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

.btn-sm { font-size: 0.9rem; padding: 0.55em 1.1em; }

/* ---------- Header / navbar ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 246, 238, 0.92);
    backdrop-filter: saturate(1.1) blur(6px);
    border-bottom: 1px solid var(--border);
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 68px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--ink);
    white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-logo {
    height: 44px;
    width: auto;
    display: block;
    mix-blend-mode: multiply;
}

.nav-toggle {
    margin-left: auto;
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--ink);
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    line-height: 0;
}

.nav-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.05rem;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: var(--ink);
    font-weight: 600;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--brand-dark); text-decoration: none; }
.nav-links a.active { color: var(--brand-dark); border-bottom-color: var(--brand); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.social-link {
    color: var(--ink);
    display: inline-flex;
    line-height: 0;
}
.social-link:hover { color: var(--brand-dark); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background-image: url('/images/header-bg-1.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}
.hero--bg2 { background-image: url('/images/header-bg-2.jpg'); }
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(46, 42, 37, 0.82) 0%, rgba(46, 42, 37, 0.62) 55%, rgba(46, 42, 37, 0.52) 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero--home .hero-content { padding-block: 5.5rem; max-width: 640px; }
.hero--page .hero-content { padding-block: 3rem; }

.hero-title {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin: 0 0 0.6rem;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.25);
}
.hero--page .hero-title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0; }
.hero-sub {
    font-size: 1.2rem;
    line-height: 1.55;
    margin: 0 0 1.6rem;
    max-width: 38ch;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero .btn-outline { color: #fff; border-color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--brand-dark); }

/* ---------- Quick-link cards ---------- */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 1.1rem;
}
.quick-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    color: var(--ink);
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.quick-card:hover {
    text-decoration: none;
    transform: translateY(-3px);
    border-color: var(--brand);
    box-shadow: 0 8px 24px rgba(60, 45, 30, 0.1);
}
.quick-card .icon { color: var(--brand); margin-bottom: 0.6rem; line-height: 0; }
.quick-card h3 { margin: 0 0 0.25rem; }
.quick-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Content layout ---------- */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.content-grid--wide { grid-template-columns: 3fr 2fr; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.3rem; }
.prose ul.dashed { list-style: none; padding-left: 0.6rem; }
.prose ul.dashed > li::before { content: "\2013\00a0\00a0"; color: var(--brand); }
.prose address { font-style: normal; line-height: 1.8; color: var(--muted); margin-bottom: 1rem; }

/* Sidebar cards */
.sidecard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.sidecard h2, .sidecard h3 { margin-top: 0; }
.sidecard address { font-style: normal; line-height: 1.9; }
.support-logos { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; margin-top: 1.2rem; }
.support-logos img { max-width: 150px; }

/* ---------- Notices & announcements ---------- */
.announcements:empty { display: none; }
.announcements { display: flex; flex-direction: column; gap: 1.25rem; max-width: 860px; margin-inline: auto; }

.notice {
    background: #FCEFE6;
    border: 1px solid #E9C7B2;
    border-left: 5px solid var(--brand);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.3rem;
    color: #5b3a28;
}
.notice h3, .notice h5 { margin: 0 0 0.4rem; color: var(--brand-dark); font-family: var(--font-body); font-weight: 700; }
.notice p { margin: 0 0 0.5rem; }
.notice p:last-child { margin-bottom: 0; }
.notice a { color: var(--brand-dark); font-weight: 700; text-decoration: underline; }

/* ---------- In memoriam (temporary block, lives in announcements slot) ---------- */
.in-memoriam-card {
    background: var(--surface);
    border: 1px solid #d8d4cc;
    padding: 2.5rem 3rem 2rem;
    text-align: center;
    position: relative;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    animation: imFadeUp 0.8s ease both;
}
.in-memoriam-card::before,
.in-memoriam-card::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: #b8aea0;
    border-style: solid;
}
.in-memoriam-card::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.in-memoriam-card::after  { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }
.im-label {
    font-family: var(--font-head);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #7a7065;
    margin-bottom: 1.2rem;
}
.im-intro {
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 0.3rem;
}
.im-name {
    font-family: var(--font-head);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0.4rem 0 1.2rem;
}
.im-divider { width: 36px; height: 1px; background: #c5b9ae; margin: 0 auto 1.4rem; }
.im-body { font-size: 1rem; color: #4a4440; line-height: 1.8; margin-bottom: 1.4rem; }
.im-meta { font-family: var(--font-head); font-style: italic; font-size: 0.95rem; color: #6b6058; line-height: 2; }
.im-cat { display: block; margin: 1.4rem auto 0; width: 84px; height: 84px; opacity: 0.8; color: var(--ink); }
@keyframes imFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .in-memoriam-card { animation: none; }
    .quick-card { transition: none; }
    .quick-card:hover { transform: none; }
}

/* ---------- Tables (price lists) ---------- */
.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.price-table caption {
    caption-side: top;
    text-align: left;
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.price-table th,
.price-table td { padding: 0.7rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
.price-table thead th { background: #F4EADD; color: var(--ink); font-weight: 700; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:nth-child(even) { background: #FCF8F2; }
.price-table td:last-child,
.price-table th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Downloads (details) ---------- */
.downloads details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.7rem;
    overflow: hidden;
}
.downloads summary {
    cursor: pointer;
    padding: 0.85rem 1.1rem;
    font-weight: 700;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.downloads summary::-webkit-details-marker { display: none; }
.downloads summary::after { content: '+'; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.downloads details[open] summary::after { content: '\2013'; }
.downloads .download-list { padding: 0 1.1rem 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; }
.downloads .download-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-dark);
    font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: #e9e3da;
    margin-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-block: 2.5rem;
}
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.8rem; }
.site-footer a { color: #f3d9c9; }
.site-footer address { font-style: normal; line-height: 1.9; color: #d8d0c6; }
.footer-social { display: inline-flex; align-items: center; gap: 0.5rem; color: #f3d9c9; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-block: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #c7beb3;
}
.footer-bottom a { color: #f3d9c9; }
.footer-anbi { background: #fff; padding: 0.5rem; border-radius: var(--radius-sm); max-width: 110px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--border);
        padding: 0.5rem 1.25rem 1.25rem;
        margin: 0;
        display: none;
    }
    .nav-menu.open { display: flex; }
    .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-links li { border-bottom: 1px solid var(--border); }
    .nav-links a { display: block; padding: 0.8rem 0; }
    .nav-links a.active { border-bottom-color: var(--border); }
    .nav-actions { margin-top: 1rem; }
    .content-grid,
    .content-grid--wide { grid-template-columns: 1fr; gap: 1.75rem; }
    .hero--home .hero-content { padding-block: 3.75rem; }
}

@media (max-width: 520px) {
    body { font-size: 1rem; }
    .in-memoriam-card { padding: 2rem 1.4rem 1.6rem; }
    .hero-sub { font-size: 1.08rem; }
}
