/* 2. GLOBAL VARIABLES */
:root {
    --banner-image: url('/static/images/banner_anim_1.png');
    --banner-color: #f5f5f7;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

ul, ol {
    padding-left: 1.5rem;
    padding-bottom: 1.5rem;
}

/* ── Base ──────────────────────────────────────────────── */
body {
    font-family: 'Fredoka', cursive;
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 1rem 2rem;
    background-color: #f5f5f7;
    margin: 0;
    padding: 0;
}


/* ── Headings ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Londrina Solid', cursive;
    font-weight: 400;
    margin-bottom: 0.8rem;
}

h1 {
    font-size: 2rem;
}

strong {
    font-weight: 600;
}

sup {
    font-size: x-small;
}


/* ── Header ────────────────────────────────────────────── */

header::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 2rem;
    background: linear-gradient(to bottom, #f5f5f7, rgba(245, 245, 247, 0));
    pointer-events: none;
}

header h1 {
    font-family: Fredoka;
    font-weight: 800;
    font-size: 3.2rem;
}

header h4 {
    font-size: 1.8rem;
    color: #515d72;
}

/* ── Nav ───────────────────────────────────────────────── */
nav.main-menu {
    display: flex;
    margin-bottom: 1rem;
}

nav.main-menu .nav-link {
    text-decoration: none;
    color: #333;
    padding: 0.15rem 0.6rem;
    transition: background-color 0.15s, color 0.15s;
}

nav.main-menu .nav-link:not(:last-child) {
    border-right: 1px solid #999;
}

nav.main-menu .nav-link:hover {
    background-color: #e0e0e0;
    color: #333;
}

nav.main-menu .nav-link.active {
    background-color: #880f0f;
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger line {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: 50% 50%;
    transform-box: stroke-box;
}

.nav-toggle.open #line_1 {
    transform: translateY(20px) rotate(45deg);
}

.nav-toggle.open #line_2 {
    opacity: 0;
}

.nav-toggle.open #line_3 {
    transform: translateY(-20px) rotate(-45deg);
}

@media (max-width: 768px) {
    /* Panel is width: max-content by default, which stops the headings
       wrapping. Extra specificity beats the inline <style> in base.html. */
    .masthead .masthead-content-panel {
        width: auto;
        max-width: 100%;
        margin-right: 1rem;
        padding-right: 3rem; /* keeps text clear of the fixed hamburger */
    }

    /* header h1,
    header h4 {
        overflow-wrap: break-word;
        hyphens: auto;
    } */

    header h1 {
        font-size: 2.2rem;
        line-height: 1.15;
    }

    header h4 {
        font-size: 1.3rem;
        line-height: 1.25;
    }

    .nav-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
    }

    nav.main-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        /* dvh tracks the mobile browser chrome; vh is the fallback.
           Height rather than bottom: 0 so the last link can't end up
           underneath the address bar. */
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0.5rem;
        /* If the links still outrun the viewport (short landscape
           screens), scroll them rather than clipping them. */
        overflow-y: auto;
        overscroll-behavior: contain;
        background-color: #f5f5f7;
        padding: 4rem 1.5rem 1.5rem 1.5rem;
        margin: 0;
        border-right: 1px solid #999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    nav.main-menu.open {
        transform: translateX(0);
    }

    nav.main-menu .nav-link {
        padding: 0.5rem 0.75rem;
        flex: 0 0 auto;
    }

    nav.main-menu .nav-link:not(:last-child) {
        border-right: none;
    }
}

main p {
    margin-bottom: 0.75rem;
}

/* ── Main ──────────────────────────────────────────────── */
main {
    margin-top: 1rem;
    margin-left: 1.5%;
}

/* ── Footer ────────────────────────────────────────────── */
footer {
    margin-top: 2rem;
    font-size: 0.85rem;
    margin-left: 1.5%;
}

footer img {
    margin-top: 0.4rem;
    padding-bottom: 10px;
    display: block;
    width: 200px;
    height: auto;
}

footer hr {
    margin-bottom: 10px;
}
/* DEBUG */
/* footer img {
    border: 1px solid red;
} */

/* Form layout */
form p {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

/* Labels */
form p label {
    font-weight: bold;
    font-size: 0.9rem;
}

/* All input types */
form p input[type="text"],
form p input[type="email"],
form p select,
form p textarea {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
}

/* Textarea specifically */
form p textarea {
    min-height: 120px;
    resize: vertical;
}

/* Focus state */
form p input:focus,
form p select:focus,
form p textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

/* Submit button */
form button[type="submit"] {
    padding: 10px 20px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

form button[type="submit"]:hover {
    background-color: #357abd;
}

.quote {
    font-weight: 400;
    /* margin-top: 1.6em;
    margin-bottom: 1.6em; */
    text-decoration: underline;
    /* padding-bottom: 40px; */
    /* border: 1px solid red; */
}

.muted-list {
    color: #515d72;
    font-size: 0.8rem;
    /* list-style-type: none; */
}