:root {
    --max: 1100px;
    --pad: 16px;
    --red: #b31b1b;
    --blue: #143a66;
    --sky: #eef5ff;
    --ink: #0f172a;
    --muted: #475569;
    --card: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(2,8,23,.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 60%, #ffffff 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* Top nav */
.topbar {
    background: linear-gradient(90deg, var(--red), #d12b2b);
    color: #fff;
    border-bottom: 3px solid var(--blue);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px var(--pad);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}

    .brand .logo {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: rgba(255,255,255,.14);
        display: grid;
        place-items: center;
        border: 1px solid rgba(255,255,255,.25);
    }

    .brand .name {
        display: flex;
        flex-direction: column;
        line-height: 1.05;
    }

        .brand .name strong {
            font-size: 18px;
            letter-spacing: .3px;
        }

        .brand .name span {
            font-size: 12px;
            opacity: .9;
        }

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

    .nav a {
        padding: 8px 10px;
        border-radius: 12px;
        font-weight: 600;
        opacity: .95;
    }

        .nav a:hover {
            background: rgba(255,255,255,.12);
        }

    .nav .btn {
        background: #fff;
        color: var(--red);
        border: 1px solid rgba(255,255,255,.9);
        padding: 9px 14px;
        border-radius: 999px;
        font-weight: 800;
    }

        .nav .btn:hover {
            filter: brightness(.98);
        }

    .nav .btn-outline {
        background: transparent;
        color: #fff;
        border: 1px solid rgba(255,255,255,.55);
    }

/* Main content spacing */
.content {
    padding: 22px var(--pad);
}

/* Hero section */
.hero {
    background: linear-gradient( 135deg, #1f4f8a 0%, #2f6db3 45%, #3a7fca 100% );
}


.hero-inner {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 18px;
    padding: 22px;
    align-items: end;
}

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
        align-items: center;
    }
}

.hero-photo {
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.08);
    min-height: 360px;
    display: grid;
    place-items: center;
}

    .hero-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.hero-text h1 {
    margin: 0;
    font-size: 52px;
    letter-spacing: .6px;
    text-transform: uppercase;
}

    .hero-text h1 .first {
        font-size: 28px;
        font-weight: 800;
        display: block;
        opacity: .95;
        text-transform: none;
        letter-spacing: 0;
        margin-bottom: 6px;
    }

.hero-text .office {
    margin-top: 6px;
    font-weight: 700;
    opacity: .92;
}

.hero-text .tagline {
    margin-top: 12px;
    font-size: 18px;
    opacity: .95;
    font-style: italic;
}

.cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,.28);
}

    .cta.primary {
        background: var(--red);
        border-color: rgba(255,255,255,.15);
        color: #fff;
    }

        .cta.primary:hover {
            filter: brightness(.98);
        }

    .cta.secondary {
        background: rgba(255,255,255,.12);
        color: #fff;
    }

        .cta.secondary:hover {
            background: rgba(255,255,255,.16);
        }

/* Cards row under hero */
.feature-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 980px) {
    .feature-row {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(2,8,23,.08);
}

    .card h3 {
        margin: 6px 0 6px;
    }

    .card p {
        margin: 0;
        color: var(--muted);
    }

.icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, var(--sky), #ffffff);
    border: 1px solid var(--border);
}

/* Footer */
.footer {
    margin-top: 18px;
    border-top: 1px solid var(--border);
    padding: 18px 0;
    color: var(--muted);
    font-size: 12px;
}
/* About page */
.page-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin: 8px 0 14px;
}

    .page-hero h1 {
        margin: 0;
        font-size: 38px;
        letter-spacing: .2px;
    }

    .page-hero .sub {
        margin-top: 6px;
        color: var(--muted);
        max-width: 60ch;
    }

.about-wrap {
    display: grid;
    grid-template-columns: 1.65fr .95fr;
    gap: 14px;
    align-items: start;
}

@media (max-width: 980px) {
    .about-wrap {
        grid-template-columns: 1fr;
    }
}

.prose {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 18px;
    box-shadow: 0 10px 24px rgba(2,8,23,.08);
}

    .prose p {
        margin: 0 0 12px;
        font-size: 16px;
        line-height: 1.65;
        color: var(--ink);
    }

        .prose p:last-child {
            margin-bottom: 0;
        }

    .prose .lead {
        font-size: 17px;
        line-height: 1.65;
    }

.callout {
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.25);
    background: linear-gradient(135deg, rgba(179,27,27,.16), rgba(20,58,102,.18));
    color: var(--ink);
    margin: 14px 0;
}

    .callout strong {
        display: block;
        margin-bottom: 6px;
    }

    .callout p {
        margin: 0;
        color: var(--ink);
    }

.sidebar {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 12px;
}

@media (max-width: 980px) {
    .sidebar {
        position: static;
        top: auto;
    }
}

.kv {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(2,8,23,.08);
}

    .kv h3 {
        margin: 0 0 10px;
        font-size: 16px;
        letter-spacing: .3px;
        text-transform: uppercase;
        color: var(--blue);
    }

    .kv ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        gap: 10px;
    }

    .kv li {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        color: var(--muted);
    }

    .kv .dot {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        margin-top: 6px;
        background: var(--red);
        box-shadow: 0 0 0 3px rgba(179,27,27,.15);
    }

    .kv a {
        color: var(--blue);
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

.quote {
    border-left: 4px solid var(--red);
    padding-left: 14px;
    margin: 14px 0;
    color: #0b1220;
    font-weight: 650;
    font-size: 18px;
    line-height: 1.5;
}
/* Issues page polish */
.page-head {
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    background: radial-gradient(900px 300px at 20% 20%, rgba(179,27,27,.12), transparent 55%), radial-gradient(900px 300px at 80% 30%, rgba(20,58,102,.14), transparent 55%), #ffffff;
    box-shadow: 0 10px 24px rgba(2,8,23,.08);
    margin-bottom: 14px;
}

    .page-head h1 {
        margin: 0;
        font-size: 42px;
    }

    .page-head p {
        margin: 8px 0 0;
        color: var(--muted);
        max-width: 75ch;
        line-height: 1.6;
    }

.pill-nav {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .pill-nav a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: #fff;
        color: var(--ink);
        font-weight: 700;
        box-shadow: 0 6px 14px rgba(2,8,23,.06);
    }

        .pill-nav a:hover {
            transform: translateY(-1px);
        }

.issues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: stretch;
}

@media (max-width: 980px) {
    .issues-grid {
        grid-template-columns: 1fr;
    }
}

.issue-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(2,8,23,.08);
}

.issue-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--sky), #ffffff);
    font-size: 20px;
}

.issue-card h2 {
    margin: 0;
    font-size: 20px;
}

.promise {
    margin: 8px 0 12px;
    font-weight: 800;
    color: var(--blue);
}

.issue-card p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.65;
}

.issue-card ul {
    margin: 8px 0 0 18px;
    color: var(--muted);
    line-height: 1.65;
}

.issue-card:last-child p:last-child {
    margin-bottom: 0;
}

/* Subtle highlight card (optional) */
.issue-card.highlight {
    border-color: rgba(179,27,27,.35);
    box-shadow: 0 14px 34px rgba(179,27,27,.12);
}
/* ---------- Page shell ---------- */
.page {
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin: 0 auto 18px;
    max-width: 720px;
}

    .page-header h1 {
        margin: 0 0 8px;
        font-size: 30px;
        letter-spacing: -0.2px;
    }

    .page-header p {
        margin: 0;
        opacity: .82;
        line-height: 1.4;
    }

/* ---------- Card ---------- */
.card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    padding: 18px;
    max-width: 920px;
    margin: 0 auto;
}

/* ---------- Form grid ---------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-span {
    grid-column: 1 / -1;
}

.field label {
    font-weight: 700;
    font-size: 14px;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 16px;
}

    .field input:focus,
    .field textarea:focus {
        outline: none;
        border-color: rgba(180,0,0,.65);
        box-shadow: 0 0 0 3px rgba(180,0,0,.14);
    }

.error {
    min-height: 16px;
    font-size: 13px;
    color: #b00000;
}

/* ---------- Consent block ---------- */
/* ---------- Consent block (fixed alignment) ---------- */
.consent {
    background: rgba(0,0,0,.03);
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 14px;
    padding: 14px 16px;
}

.check {
    display: flex;
    align-items: center; /* KEY FIX */
    gap: 12px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}

    .check input[type="checkbox"] {
        width: 18px;
        height: 18px;
        flex: 0 0 auto; /* prevents stretching */
        margin: 0; /* removes browser weirdness */
    }

.consent-text {
    margin-top: 8px;
    padding-left: 30px; /* aligns with label text */
    font-size: 13px;
    opacity: .75;
    line-height: 1.35;
}


/* ---------- Actions ---------- */
.actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

/* If you don't already have btn-primary, add it */
.btn-primary {
    background: #b00000;
    color: #fff;
    border: 1px solid #b00000;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer;
}

    .btn-primary:hover {
        filter: brightness(.96);
    }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
    .page {
        padding: 26px 0;
    }

    .card {
        padding: 14px;
        border-radius: 14px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .actions {
        justify-content: stretch;
    }

        .actions .btn-primary {
            width: 100%;
        }
}

/* =========================================================
   MOBILE FIXES (SAFE): only affects header/nav + hero sizing
   Does NOT change your cards/forms/other pages.
   ========================================================= */

/* 1) Make header behave on small screens */
@media (max-width: 820px) {

    /* Allow brand block to shrink so it doesn't force nav to wrap */
    .brand {
        min-width: 0;
        flex: 1 1 auto;
    }

        .brand .name {
            min-width: 0;
        }

            /* Prevent long candidate/office text from breaking layout */
            .brand .name strong,
            .brand .name span {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                display: block;
            }

    /* Keep nav on ONE line (no wrap) and allow horizontal scroll */
    .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 6px; /* space for scrollbar */
        max-width: 55vw; /* keep it from crushing the brand */
    }

        /* Prevent links/buttons from shrinking weirdly */
        .nav a,
        .nav .btn,
        .nav .btn-outline {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        /* Slightly reduce padding so items fit better */
        .nav a {
            padding: 8px 10px;
            border-radius: 12px;
        }

        .nav .btn {
            padding: 8px 12px;
        }
}

/* 2) Make hero readable on phones */
@media (max-width: 600px) {
    .content {
        padding: 16px var(--pad);
    }

    .hero-inner {
        padding: 16px;
        gap: 14px;
    }

    .hero-photo {
        min-height: 240px; /* was 360px */
        border-radius: 18px;
    }

    .hero-text h1 {
        font-size: 34px; /* was 52px */
        line-height: 1.05;
    }

        .hero-text h1 .first {
            font-size: 18px; /* was 28px */
            margin-bottom: 4px;
        }

    .hero-text .tagline {
        font-size: 16px; /* was 18px */
    }

    .cta-row {
        gap: 8px;
    }

    .cta {
        width: 100%;
        justify-content: center;
    }
}
.hp-wrap {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
