/* ==========================================================================
   1. Custom properties
   ========================================================================== */
:root {
    --color-wood:   #2E1A0E;
    --color-cream:  #decab7;
    --color-red:    #C41230;
    --color-brown:  #3D2010;
    --color-gold:   #C8922A;

    --font-script:  'Dancing Script', cursive;
    --font-heading: 'Montserrat', sans-serif;
    --font-body:    'Lato', sans-serif;

    --max-width:    1200px;
    --section-gap:  5rem;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-brown);
    background: #fff;
    line-height: 1.7;
}

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

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

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2 {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--color-red);
    line-height: 1.2;
}

h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-brown);
    line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.script {
    font-family: var(--font-script);
    font-size: 1.5em;
    color: var(--color-red);
    display: block;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: var(--section-gap) 0; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ==========================================================================
   5. Blob containers
   ========================================================================== */
.blob {
    background: var(--color-cream);
    border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
    padding: 3rem 4rem;
}

.blob--alt {
    border-radius: 40% 60% 45% 55% / 55% 45% 60% 40%;
}

.blob--flat {
    border-radius: 2rem;
    padding: 2.5rem;
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: .75rem 2rem;
    border-radius: .5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .2s;
    border: 2px solid var(--color-red);
}

.btn:hover { opacity: .85; text-decoration: none; }

.btn--primary  { background: var(--color-red); color: #fff; }
.btn--secondary { background: transparent; color: var(--color-red); }

/* ==========================================================================
   7. Cards
   ========================================================================== */
.card {
    background: var(--color-cream);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card__icon  { font-size: 2.5rem; line-height: 1; }
.card__date  { font-size: .8rem; color: var(--color-gold); font-family: var(--font-heading); font-weight: 600; }
.card__title { font-family: var(--font-heading); font-weight: 900; color: var(--color-red); font-size: 1.2rem; }

/* ==========================================================================
   8. Accessibility
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   9. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3 { grid-template-columns: 1fr; }
    .blob { padding: 2rem 1.75rem; }
}

/* ==========================================================================
   10. Site header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--color-cream);
    border-bottom: 2px solid rgba(46, 26, 14, .12);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .5rem;
    padding-bottom: .5rem;
    gap: 1.5rem;
}

/* Logo */
.site-logo {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo__img {
    height: 100px;
    width: auto;
    display: block;
}

/* Navigation */
.site-nav__list {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.site-nav__list a {
    color: var(--color-brown);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .875rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none;
    padding-bottom: .25rem;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a {
    color: var(--color-red);
    border-bottom-color: var(--color-red);
    text-decoration: none;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    z-index: 110;
}

.nav-toggle__bar {
    display: block;
    width: 26px; height: 2px;
    background: var(--color-brown);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .site-nav {
        position: fixed;
        inset: 0;
        background: var(--color-cream);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s;
        z-index: 105;
    }

    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .site-nav__list a {
        font-size: 1.4rem;
    }

    .site-logo__img { height: 75px; }
    #page { padding-top: 6rem; }
}

/* Push all page content below fixed header */
#page { padding-top: 11rem; }

/* ==========================================================================
   11. Site footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-wood);
    background-image: url('../images/hout.jpg');
    background-size: cover;
    background-position: center bottom;
    color: var(--color-cream);
    margin-top: var(--section-gap);
}

.site-footer__cta {
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.site-footer__cta p       { color: var(--color-cream); margin-bottom: 1.5rem; }
.site-footer__cta .script { color: var(--color-gold); font-size: 2.5rem; }

.site-footer__bottom { padding: 2rem 0; }

.site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.footer-nav a       { color: rgba(245,237,216,.65); font-size: .875rem; font-family: var(--font-heading); }
.footer-nav a:hover { color: var(--color-cream); text-decoration: none; }

.site-footer__copy { font-size: .8rem; color: rgba(245,237,216,.45); margin-bottom: 0; }

/* ==========================================================================
   12. Homepage sections
   ========================================================================== */
.section--intro { background: #fff; }

.section--intro .intro__photo img {
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(46, 26, 14, .2);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.section--cards { background: var(--color-cream); }

.section--news { background: #fff; }
.section--news h2 { margin-bottom: 2rem; }

.news-card__thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: .5rem;
    margin-bottom: .25rem;
}

/* ==========================================================================
   14. Page hero (inner pages)
   ========================================================================== */
.page-hero {
    background-color: var(--color-wood);
    background-image: url('../images/hout.jpg');
    background-size: cover;
    background-position: center;
    padding: 6rem 0 4rem;
    position: relative;
    text-align: center;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20, 8, 2, .65);
}

.page-hero .container,
.page-hero__content {
    position: relative;
    z-index: 1;
}

.page-hero h1           { color: var(--color-cream); }
.page-hero__quote {
    font-family: var(--font-script);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--color-cream);
    font-style: normal;
    margin-bottom: .5rem;
    display: block;
}
.page-hero__cite {
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-style: normal;
}

/* ==========================================================================
   15. Over ons
   ========================================================================== */
.section--about { background: #fff; }
.section--why   { background: var(--color-cream); }

.about-photo {
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(46, 26, 14, .2);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* ==========================================================================
   16. Steun ons
   ========================================================================== */
.support-card code {
    display: inline-block;
    background: rgba(196, 18, 48, .08);
    padding: .3rem .6rem;
    border-radius: .3rem;
    font-size: .9rem;
    color: var(--color-red);
    font-family: monospace;
    margin: .25rem 0;
}

/* ==========================================================================
   17. News cards & archive
   ========================================================================== */
.news-card__thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: .5rem;
    display: block;
}

.card__title a        { color: var(--color-brown); text-decoration: none; }
.card__title a:hover  { color: var(--color-red); }

/* ==========================================================================
   18. Single post
   ========================================================================== */
.single-post       { max-width: 72ch; margin: 0 auto; }
.single-post__meta { margin-bottom: 1rem; }

.single-post__thumb {
    margin: 1.5rem 0;
}

.single-post__thumb img {
    border-radius: 1rem;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.single-post__content h2,
.single-post__content h3 { margin-top: 2rem; }

.single-post__content p,
.single-post__content ul,
.single-post__content ol { margin-bottom: 1rem; }

.single-post__content ul,
.single-post__content ol { padding-left: 1.5rem; }

/* ==========================================================================
   19. Pagination
   ========================================================================== */
.pagination { margin-top: 3rem; text-align: center; }

.pagination .nav-links {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination .nav-links a,
.pagination .nav-links .current {
    padding: .5rem 1.1rem;
    border-radius: .35rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .875rem;
    border: 2px solid var(--color-red);
    color: var(--color-red);
    text-decoration: none;
}

.pagination .nav-links .current {
    background: var(--color-red);
    color: #fff;
}
