/* ==========================================================================
   Gedenkboekje.nl – default styles
   Fonts, design tokens (Figma variables), reset, typography, buttons,
   site navigation and footer. Page-specific styles live next to the page.
   ========================================================================== */

/* ---- Fonts ------------------------------------------------------------- */
@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/InstrumentSans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/InstrumentSans-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IvyPresto Headline";
    src: url("../fonts/IvyprestoHeadline-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IvyPresto Headline";
    src: url("../fonts/IvyprestoHeadline-LightItalic.otf") format("opentype");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "DesMontilles";
    src: url("../fonts/DesMontilles-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ---- Design tokens (Figma variables) ------------------------------------ */
:root {
    --creme: #f5f2ea;
    --creme-2: #e9e5db;
    --nachtblauw: #22313b;
    --nachtblauw-light: #304654;
    --mintgroen: #cee7ce;
    --cta-blue: #4281f9;
    --wit: #ffffff;
    --text: rgba(245, 242, 234, 0.75);

    --font-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
    --font-serif: "IvyPresto Headline", "Times New Roman", serif;

    --page-width: 1728px;
    --container-width: 1420px;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--nachtblauw);
    background: var(--creme);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
    font-weight: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video,
svg {
    display: block;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

h1:focus {
    outline: none;
}

/* ---- Typography -------------------------------------------------------- */
.heading {
    font-family: var(--font-serif);
    font-weight: 300;
    font-style: normal;
    letter-spacing: 0;
}

.heading em,
.heading i {
    font-style: italic;
    font-weight: 300;
}

.heading--xl {
    font-size: 62px;
    line-height: 72px;
}

.heading--l {
    font-size: 52px;
    line-height: 42px;
}

.heading--m {
    font-size: 35px;
    line-height: 1.1;
}

.heading--s {
    font-size: 32px;
    line-height: 1.1;
}

.tag {
    font-size: 12px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.p {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

/* ---- Layout helpers ---------------------------------------------------- */
.container {
    width: var(--container-width);
    max-width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
}

/* ---- Buttons ----------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 14px;
    text-align: center;
    white-space: nowrap;
    color: var(--creme);
    border: 1px solid transparent;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn--primary {
    background: var(--cta-blue);
    border-color: var(--cta-blue);
}

.btn--primary:hover {
    background: #2f6ef0;
    border-color: #2f6ef0;
}

.btn--ghost {
    background: rgba(245, 242, 234, 0.2);
    border-color: var(--creme);
}

.btn--ghost:hover {
    background: rgba(245, 242, 234, 0.3);
}

.btn--outline {
    background: transparent;
    border-color: var(--creme);
}

.btn--outline:hover {
    background: rgba(245, 242, 234, 0.15);
}

/* Accessible blue variant (Figma: cta blue toegankelijk) with white text */
.btn--accessible {
    background: #2865d8;
    border-color: #2865d8;
    color: var(--wit);
}

.btn--accessible:hover {
    background: #1f55bd;
    border-color: #1f55bd;
}

/* Larger 16px variant used in the "nabestaande" flows */
.btn--lg {
    font-size: 16px;
    line-height: 16px;
    padding: 12px 24px;
}

/* ---- Site navigation --------------------------------------------------- */
.site-nav {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 1247px;
    max-width: calc(100% - 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--creme);
}

.site-nav__logo {
    display: block;
    width: 251px;
    height: 28px;
}

.site-nav__logo img {
    width: 100%;
    height: 100%;
}

/* Mobiel menu (checkbox + label, geen JavaScript). Boven 1300px zijn toggle en
   burger verborgen en is het paneel display: contents, zodat menu en CTA-knop
   direct in de flex-balk staan zoals in het ontwerp. */
.site-nav__toggle,
.site-nav__burger {
    display: none;
}

.site-nav__panel {
    display: contents;
}

.site-nav__menu {
    display: flex;
    align-items: center;
    gap: 40px;
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
    text-align: center;
    white-space: nowrap;
}

.site-nav__menu a {
    transition: opacity .2s ease;
}

.site-nav__menu a:hover {
    opacity: .75;
}

.site-nav__menu a.is-active {
    text-decoration: underline;
    text-underline-position: from-font;
}

.site-nav--dark {
    color: var(--nachtblauw);
}

/* ---- Site footer ------------------------------------------------------- */
.site-footer {
    position: relative;
    height: 1143px;
    overflow: hidden;
    background: var(--nachtblauw);
    color: var(--wit);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 62px;
}

.site-footer__logo {
    width: 356px;
    height: 114px;
}

.site-footer__tagline {
    margin-top: 55px;
    font-size: 31.167px;
    line-height: 1.1;
    color: var(--mintgroen);
    text-align: center;
    white-space: nowrap;
}

.site-footer__image {
    margin-top: 55px;
    width: 472px;
    height: 393px;
}

.site-footer__columns {
    margin-top: 53px;
    display: flex;
    gap: 170px;
    width: 409px;
}

.site-footer__column {
    width: 76px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    white-space: nowrap;
}

.site-footer__heading {
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer__links a:hover,
.site-footer__contact a:hover {
    opacity: .75;
}

.site-footer__contact {
    width: 185px;
    font-style: normal;
}

.site-footer__contact a {
    text-decoration: underline;
    text-underline-position: from-font;
}

/* Telefoonnummer is een tel:-link, maar oogt als gewone tekst (ontwerp). */
.site-footer__contact .site-footer__tel {
    text-decoration: none;
}

.site-footer__bottom {
    margin-top: 61px;
    width: 1419px;
    max-width: calc(100% - 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
}

.site-footer__legal {
    display: flex;
    gap: 40px;
}

.site-footer__legal a:hover {
    opacity: .75;
}

/* ---- Section header pattern --------------------------------------------- */
.tag--muted {
    color: #666;
}

/* ---- Feature (check + title + text) ------------------------------------ */
.feature {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.feature__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.feature__text {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.1;
}

.feature__desc {
    line-height: normal;
}

/* ---- FAQ item (details/summary) --------------------------------------- */
/* De padding staat op de klikregel (summary) en het antwoord, niet op het
   details-element, zodat de hele kaartrand tikbaar is. Buitenmaten zijn gelijk
   aan de oude opzet: dicht 27+24+27 = 78px, open 78 + 7+24+36 = 145px. */
.faq-item {
    border-radius: 10px;
    background: var(--creme-2);
    color: var(--nachtblauw);
}

.faq-item__summary {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 27px 35px;
    cursor: pointer;
    list-style: none;
}

.faq-item__summary::-webkit-details-marker {
    display: none;
}

.faq-item__question {
    width: 647px;
    max-width: 100%;
    flex: 1 1 auto;
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
}

.faq-item__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.faq-item__minus {
    display: none;
}

.faq-item[open] .faq-item__plus {
    display: none;
}

.faq-item[open] .faq-item__minus {
    display: block;
}

.faq-item__answer {
    padding: 7px 35px 36px;
    color: rgba(34, 49, 59, 0.8);
}

/* ---- "Meer vragen" link ------------------------------------------------ */
.more-link {
    display: flex;
    align-items: center;
    gap: 19px;
    width: fit-content;
    font-weight: 600;
    line-height: normal;
    white-space: nowrap;
}

.more-link:hover {
    opacity: .75;
}

/* ---- Blazor error UI --------------------------------------------------- */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ---- Responsive fallbacks --------------------------------------------- */
@media (max-width: 1300px) {
    /* Balk: volledig logo links op natuurlijke verhouding (24px hoog, link 44px
       als tikdoel), burger rechts. */
    .site-nav__logo {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        width: auto;
        height: 44px;
    }

    .site-nav__logo img {
        width: auto;
        height: 24px;
    }

    /* Checkbox visueel verborgen maar focusbaar (toetsenbord). */
    .site-nav__toggle {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 1px;
        height: 1px;
        margin: 0;
        opacity: 0;
        pointer-events: none;
    }

    .site-nav__burger {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-right: -11px;
        cursor: pointer;
    }

    .site-nav__burger span,
    .site-nav__burger span::before,
    .site-nav__burger span::after {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 1px;
        background: currentColor;
        transition: transform .2s ease, background-color .2s ease;
    }

    .site-nav__burger span {
        position: relative;
    }

    .site-nav__burger span::before,
    .site-nav__burger span::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .site-nav__burger span::before {
        top: -7px;
    }

    .site-nav__burger span::after {
        top: 7px;
    }

    .site-nav__toggle:checked + .site-nav__burger span {
        background: transparent;
    }

    .site-nav__toggle:checked + .site-nav__burger span::before {
        transform: translateY(7px) rotate(45deg);
    }

    .site-nav__toggle:checked + .site-nav__burger span::after {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-nav__toggle:focus-visible + .site-nav__burger {
        outline: 2px solid var(--mintgroen);
        outline-offset: 2px;
    }

    /* Paneel dat onder de balk uitklapt; dekkende achtergrond. */
    .site-nav__panel {
        display: none;
        position: absolute;
        top: calc(100% + 16px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 20px 20px;
        border-radius: 12px;
        background: var(--nachtblauw);
        color: var(--creme);
        white-space: normal;
    }

    .site-nav--dark .site-nav__panel {
        background: var(--creme);
        color: var(--nachtblauw);
        box-shadow: 0 8px 30px rgba(34, 49, 59, .15);
    }

    .site-nav__toggle:checked ~ .site-nav__panel {
        display: flex;
    }

    .site-nav__menu {
        flex-direction: column;
        align-items: stretch;
        align-self: stretch;
        gap: 0;
        font-size: 16px;
        text-align: left;
        white-space: normal;
    }

    /* Menulinks 44px hoog (12 + 20 + 12). */
    .site-nav__menu a {
        display: block;
        padding: 12px 0;
        line-height: 20px;
    }

    /* CTA-knop als laatste item onderin het paneel (44px hoog). */
    .site-nav__panel .btn {
        margin-top: 12px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    /* De hero-headers hebben overflow: hidden; alleen met open menu mag het
       paneel daar buiten vallen. */
    header:has(.site-nav__toggle:checked) {
        overflow: visible;
    }
}

@media (max-width: 900px) {
    /* Tikdoelen minimaal 44px hoog. */
    .btn {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .btn--lg {
        padding-top: 13px;
        padding-bottom: 13px;
    }

    .more-link {
        min-height: 44px;
        padding: 12px 0;
    }

    .site-footer {
        height: auto;
        padding-bottom: 60px;
    }

    .site-footer__logo {
        width: 250px;
        height: 80px;
    }

    .site-footer__tagline {
        font-size: 24px;
    }

    .site-footer__image {
        width: 320px;
        height: 266px;
    }

    /* Kolommen onder elkaar en gecentreerd; links als tikdoelen van 48px. */
    .site-footer__columns {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        width: 100%;
        text-align: center;
    }

    .site-footer__column {
        width: auto;
        align-items: center;
        white-space: normal;
    }

    .site-footer__contact {
        width: auto;
    }

    .site-footer__links {
        gap: 0;
    }

    .site-footer__links a,
    .site-footer__contact a,
    .site-footer__legal a {
        display: inline-block;
        padding: 12px 0;
    }

    .site-footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        white-space: normal;
    }

    .site-footer__legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 32px;
    }
}

@media (max-width: 600px) {
    .site-nav__logo img {
        height: 20px;
    }
}
