/* ========== Theme tokens ========== */
:root {
    /* Brand */
    --brand-ink: #0a2740; /* deep ocean blue */
    --brand-surf: #2a6f97; /* mid-blue */
    --brand-sky: #78c0e0; /* light sky */
    --brand-sand: #f2e8d5; /* soft sand */
    --brand-coral: #f05a4f; /* accent coral */
    /* Neutrals */
    --text: #0b1b2a;
    --text-muted: #3c5366;
    --bg: #ffffff;
    --bg-alt: #f7fafc;
    --border: #d6dee6;
    --shadow: 0 8px 24px rgba(10, 39, 64, 0.12);
    /* States */
    --focus: #ffbf69;
    --success: #2e7d32;
    --warning: #b7791f;
}

    /* Dark mode overrides */
    :root[data-theme="dark"] {
        --text: #eaf2f8;
        --text-muted: #b7cad8;
        --bg: #0b1b2a;
        --bg-alt: #0f2638;
        --border: #27465e;
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
        --brand-ink: #e2f0fb;
        --brand-surf: #78c0e0;
        --brand-sky: #9ad7ef;
        --brand-sand: #2a3540;
        --brand-coral: #ff7b6e;
    }

/* ========== Base ========== */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--brand-surf);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.container {
    width: min(1100px, 100%);
    padding: 0 1.25rem;
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ========== Header ========== */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(120%) blur(6px);
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 0;
}

/*.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;*/
    /*background: radial-gradient(circle at 35% 35%, var(--brand-sky), var(--brand-surf) 60%, var(--brand-ink) 100%);*/
    /*background: url('/images/wave-bg-1920.jpg') no-repeat center/cover;
    box-shadow: var(--shadow);
    border: 2px solid var(--bg);
}*/

.brand-title {
    font-family: Domine, Georgia, serif;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: .2px;
}

nav.primary-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    nav.primary-nav a {
        padding: .6rem .8rem;
        border-radius: .5rem;
        font-weight: 600;
        color: var(--text);
        border: 1px solid transparent;
    }

        nav.primary-nav a:hover {
            background: var(--bg-alt);
            border-color: var(--border);
            text-decoration: none;
        }

.header-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: .75rem;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .65rem;
    border: 1px solid var(--border);
    border-radius: .5rem;
    background: var(--bg-alt);
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
}

/* ========== Hero ========== */
.hero {
    position: relative;
    /*background: linear-gradient(155deg, rgba(120,192,224,0.20), rgba(42,111,151,0.20)), radial-gradient(1200px 300px at 10% 0%, rgba(240,90,79,0.18) 0%, transparent 60%), var(--bg-alt);*/
    background: url('/images/wave-bg-1920.jpg') no-repeat center/cover;
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    padding: 4.5rem 0 3.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 2rem;
    align-items: center;
}

.hero h1 {
    font-family: Domine, Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 .75rem;
    /*color: var(--brand-ink);*/
    color: #fff;
    text-shadow: 0px 0px .5rem var(--brand-ink), 0px 0px .25rem #000;
}

.hero p.lead {
    font-size: 1.1rem;
    /*color: var(--text-muted);*/
    max-width: 60ch;
    margin: 0 0 1.25rem;
    color: #fff;
    text-shadow: 0px 0px .5rem var(--text-muted), 0px 0px .25rem #000;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1rem;
    border-radius: .65rem;
    font-weight: 700;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(180deg, var(--brand-surf), var(--brand-ink));
    color: #fff;
    border: 1px solid transparent;
}

.btn-accent {
    background: var(--brand-coral);
    color: #fff;
    border: 1px solid transparent;
}

.hero-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow);
}

    .hero-card h3 {
        margin: .25rem 0 .5rem;
        font-size: 1rem;
        color: var(--text-muted);
    }

.stat {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .75rem;
    align-items: center;
    padding: .5rem;
    border-radius: .5rem;
}

    .stat .num {
        font-family: Domine, Georgia, serif;
        font-size: 1.6rem;
        color: var(--brand-surf);
    }

/* ========== Sections ========== */
section {
    padding: 3rem 0;
}

    section .section-head {
        display: flex;
        justify-content: space-between;
        align-items: end;
        gap: 1rem;
        margin-bottom: 1.25rem;
        border-bottom: 1px solid var(--border);
        padding-bottom: .75rem;
    }

.section-head h2 {
    font-family: Domine, Georgia, serif;
    font-size: 1.6rem;
    margin: 0;
    color: var(--brand-ink);
}

.section-head p {
    color: var(--text-muted);
    margin: 0;
}

/* Cards grid */
.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: .9rem;
    padding: 1rem;
    box-shadow: var(--shadow);
}

    .card h3 {
        margin: 0 0 .4rem;
        font-size: 1.1rem;
    }

    .card p {
        margin: 0 0 .75rem;
        color: var(--text-muted);
    }

.tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .5rem;
    border-radius: .5rem;
    font-weight: 700;
    font-size: .8rem;
    background: var(--brand-sand);
    color: var(--brand-ink);
}

/* ========== Newsletter ========== */
.newsletter {
    background: linear-gradient(180deg, rgba(120,192,224,0.15), transparent), var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

    .newsletter form {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: .75rem;
        max-width: 700px;
    }

.input, select {
    padding: .8rem .9rem;
    border-radius: .6rem;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
}

    .input:focus, select:focus, .btn:focus, .theme-toggle:focus {
        outline: 3px solid var(--focus);
        outline-offset: 2px;
    }

/* ========== Footer ========== */
footer.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 2fr 1fr 1fr;
}

.footnote {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: .9rem;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-row {
        grid-template-columns: 1fr auto;
    }

    nav.primary-nav {
        display: none;
    }
    /* keep minimal on small screens */
}

@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .newsletter form {
        grid-template-columns: 1fr;
    }

    .brand-title {
        font-size: 1rem;
    }
}
