:root {
    --navy: #0f2a4a;
    --navy-dark: #081a30;
    --red: #d7141a;
    --accent-dark: #7fb3ff;
    --cream: #f7f4ee;
    --ink: #1b2430;
    --line: #e2ddd0;
    --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Source Sans Pro', 'Inter', -apple-system, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
}

h1, h2, h3, .brand {
    font-family: 'Playfair Display', Georgia, serif;
}

a { color: inherit; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Nav ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--navy-dark);
    border-bottom: 2px solid var(--red);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.brand span { color: var(--red); }

.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #dfe6ee;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color .2s ease;
}

.nav-links a:hover { color: var(--red); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(8,26,48,.35) 0%, rgba(8,26,48,.55) 40%, rgba(8,26,48,.92) 100%),
                url('../img/hero-hrad.jpg') center / cover no-repeat;
    color: #fff;
}

.hero-content {
    padding: 3rem 0 4rem;
    width: 100%;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    border: 1px solid #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 7vw, 5rem);
    margin: 0 0 0.5rem;
    line-height: 1.05;
}

.hero .tagline {
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    max-width: 40ch;
    color: #e7ecf2;
    margin: 0 0 2rem;
}

.btn {
    display: inline-block;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 0.9rem 1.75rem;
    border-radius: 4px;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 18px rgba(215,20,26,.35);
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(215,20,26,.45); }

.btn-ghost {
    background: transparent;
    border: 2px solid #fff;
    margin-left: 0.75rem;
}

/* ---------- Sections ---------- */
section { padding: 5.5rem 0; }

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-head .kicker {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--red);
}

.section-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0.4rem 0 0.8rem;
    color: var(--navy-dark);
}

.section-head p { color: #4d5866; }

/* ---------- About ---------- */
.about {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: start;
}

.portrait {
    width: 220px;
    height: 220px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    border: 4px solid var(--navy);
    box-shadow: 0 12px 28px rgba(8, 26, 48, .25);
}

.flag-strip {
    max-width: 220px;
    height: 6px;
    margin: 0.85rem auto 0;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
}

.flag-strip span { flex: 1; }
.flag-strip .b { background: var(--navy); }
.flag-strip .w { background: #fff; }
.flag-strip .r { background: var(--red); }

.about-text h3 {
    margin-top: 0;
    color: var(--navy-dark);
}

.about-text p { margin: 0 0 1.1rem; }

.about-facts {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.about-facts li {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
}

.about-facts strong {
    display: block;
    color: var(--navy-dark);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}

/* ---------- Countdown ---------- */
.countdown { background: var(--navy); color: #fff; }
.countdown .section-head .kicker { color: #fff; opacity: .85; }
.countdown .section-head h2 { color: #fff; }
.countdown .section-head p { color: #cfe0f5; }

.clock {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.clock-unit {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    min-width: 84px;
    text-align: center;
}

.clock-unit-small { opacity: .8; padding: 0.7rem 0.9rem; min-width: 64px; }

.clock-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.clock-unit-small .clock-num { font-size: 1.6rem; color: #ff8b8e; }

.clock-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #b9c9de;
    margin-top: 0.3rem;
}

.clock-sep {
    font-size: 2rem;
    font-weight: 700;
    color: #5c7797;
    padding-bottom: 1.6rem;
}

/* ---------- Vote ---------- */
.vote { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.vote-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.vote-bar {
    height: 26px;
    border-radius: 999px;
    background: #ecdede;
    overflow: hidden;
    border: 1px solid var(--line);
}

.vote-bar-pro {
    background: var(--navy);
    height: 100%;
    transition: width .4s ease;
}

.vote-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-weight: 700;
}

.vote-stats .pro { color: var(--navy); }
.vote-stats .proti { color: var(--red); }

.vote-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-ghost-dark {
    background: transparent;
    border: 2px solid var(--red);
    color: var(--red);
    box-shadow: none;
}

.vote-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #4d5866;
    min-height: 1.2em;
}

@media (max-width: 600px) {
    .clock-sep { display: none; }
    .clock-unit { min-width: 70px; }
}

/* ---------- Program ---------- */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.75rem;
}

.program-card {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--navy);
    border-radius: 6px;
    padding: 1.75rem;
}

.program-card .num {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.program-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
    color: var(--navy-dark);
}

.program-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #4d5866;
}

/* ---------- Poll chart ---------- */
.poll {
    background: var(--navy-dark);
    color: #eef1f5;
}

.poll .section-head p { color: #b9c3cf; }
.poll .section-head .kicker { color: var(--accent-dark); }
.poll .section-head h2 { color: #fff; }

.chart-card {
    background: #0f2a4a;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    padding: 2rem;
}

.chart-wrap { width: 100%; overflow-x: auto; }

.chart-legend {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red { background: var(--red); }
.dot.grey { background: #6b7686; }

.chart-footnote {
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: #8493a3;
    font-style: italic;
}

/* ---------- References ---------- */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.quote-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.75rem;
    position: relative;
}

.quote-card::before {
    content: "\201C";
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--red);
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    opacity: .5;
}

.quote-card p.quote {
    margin: 1.25rem 0 1rem;
    font-style: italic;
    color: var(--ink);
}

.quote-card .who {
    font-weight: 700;
    color: var(--navy-dark);
    font-size: 0.9rem;
}

/* ---------- CTA ---------- */
.cta {
    background: var(--red);
    color: #fff;
    text-align: center;
}

.cta h2 { color: #fff; margin: 0 0 1rem; }
.cta p { margin: 0 0 2rem; color: #ffe1e2; }

.cta-support {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 10px;
    padding: 1.75rem 2rem;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.cta-secondary {
    margin-top: 0.25rem;
}

.cta-qr {
    width: 140px;
    height: 140px;
    background: #fff;
    padding: 8px;
    border-radius: 6px;
    display: block;
    margin: 0.25rem 0;
}

.cta-support-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .72rem;
    font-weight: 700;
    color: #ffe1e2;
    margin-bottom: 0.3rem;
}

.cta-account {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 500px) {
    .cta-support { flex-direction: column; text-align: center; }
}

/* ---------- Footer ---------- */
footer {
    background: var(--navy-dark);
    color: #9aa7b5;
    padding: 2.5rem 0;
    font-size: 0.85rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer .disclaimer {
    max-width: 640px;
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--navy-dark);
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        display: none;
        gap: 1rem;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    footer .container { flex-direction: column; text-align: center; }
}
