:root {
    --white: #ffffff;
    --lightgray: #cbcaca;
    --blue: #428bca;
    --darkblue: #013364;
    --red: #d30b0d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: var(--white);
    color: #222;
}

h1,
h2,
h3 {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* ── HEADER ── */
header {
    background: var(--white);
    color: var(--darkblue);
    height: 100px;
}

.nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    height: 100%;
}

.logo {
    height: 100%;
    max-height: 100px;
    width: auto;
    display: block;
}

.nav-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.donate-btn {
    background: var(--red);
    color: white;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0;
    white-space: nowrap;
}

.socials {
    display: flex;
    gap: 12px;
}

.socials a {
    text-decoration: none;
}

.socials i {
    color: var(--darkblue);
    font-size: 20px;
}

footer .socials i {
    color: white;
}

/* ── HERO ── */
/*
  Key layout idea:
  .hero        = the background image container
  .hero-inner  = flex row (cutout-col | form-col) that SETS the height of .hero
  On desktop: both cols sit side-by-side inside the bg.
  On mobile:  cutout-col shrinks & sits on top, form-col drops below the bg.
*/

.hero {
    background-image:
        linear-gradient(to left, rgba(1, 51, 100, 0.85) 0%, rgba(1, 51, 100, 0.6) 50%, rgba(1, 51, 100, 0.1) 100%),
        url('images/background.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    /* both cols align to bottom */
    gap: 30px;
    padding: 0 20px;
}

/* Left col: cutout image */
.cutout-col {
    flex: 0 0 45%;
    display: flex;
    align-items: flex-end;
}

.cutout {
    width: 100%;
    height: auto;
    display: block;
}

/* Right col: tagline + form */
.form-col {
    flex: 1 1 0;
    padding: 30px 0 30px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tagline {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    margin: 0 0 14px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    max-width: 360px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-card {
    background: var(--white);
    padding: 25px;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    max-width: 360px;
}

.form-card h2 {
    margin: 0 0 16px 0;
    font-size: 22px;
    color: var(--darkblue);
    text-align: center;
}

.form-card input[type="text"],
.form-card input[type="email"] {
    width: 100%;
    padding: 10px 4px;
    margin-bottom: 14px;
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    font-size: 15px;
    outline: none;
    background: transparent;
    transition: border-color 0.2s;
}

.form-card input[type="text"]:focus,
.form-card input[type="email"]:focus {
    border-bottom-color: var(--darkblue);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    margin: 10px 0 16px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

.submit-btn {
    background: var(--red);
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    font-size: 16px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #a80909;
}

/* ── LOGO DIVIDER ── */
.logo-divider {
    background: var(--white);
    text-align: center;
    padding: 30px 20px;
}

.logo-divider img {
    height: 120px;
    width: auto;
}

/* ── PLATFORM ── */
.platform {
    padding: 60px 20px;
    text-align: center;
    background: #f0f4f8;
}

.platform h2 {
    color: var(--darkblue);
    font-size: 42px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.platform-heading-accent {
    width: 80px;
    height: 4px;
    background: var(--red);
    margin: 0 auto 40px;
}

.platform-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 40px;
    max-width: 900px;
    margin: auto;
    text-align: left;
}

.platform-pillar {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 5px solid var(--red);
    padding: 6px 0 6px 14px;
    display: block;
    line-height: 1.3;
}

.platform-sub {
    list-style: none;
    padding: 8px 0 0 14px;
    margin: 0;
}

.platform-sub li {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--darkblue);
    padding: 5px 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 7px;
}

.platform-sub li::before {
    content: '★';
    color: var(--red);
    font-size: 12px;
    flex-shrink: 0;
}

/* ── ABOUT ── */
.about {
    background: #fff;
    padding: 60px 20px;
}

.about h2 {
    color: var(--darkblue);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.bio-photo img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ── VOTE ── */
.vote {
    background: var(--red);
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.vote h2 {
    font-size: 38px;
    margin: 0 0 8px 0;
}

.vote p {
    font-size: 18px;
    margin: 0;
    opacity: 0.9;
}

/* ── FOOTER ── */
footer {
    background: var(--darkblue);
    color: white;
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

footer h3 {
    margin: 0;
    font-size: 18px;
}

.footer-logo {
    height: 90px;
    width: auto;
}

footer .socials {
    justify-content: center;
}

.disclaimer {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 4px;
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 700px) {

    /* Stack the hero: background only wraps the cutout, form drops below */
    .hero {
        background-size: auto 50%;
        background-position: 20% 0%;
    }

    .hero-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
    }

    /* Cutout col: bg shows behind it */
    .cutout-col {
        flex: none;
        width: 100%;
        justify-content: center;
        padding: 0 10%;
        /* give some breathing room */
    }

    .cutout {
        max-width: 280px;
        margin: 0 auto;
    }

    /* Form col: white background, outside the bg image visually */
    .form-col {
        background: var(--white);
        padding: 24px 20px 30px;
        align-items: center;
    }

    .form-card {
        width: 100%;
        max-width: 360px;
    }

    .form-card h2 {
        color: var(--red);
        text-align: center;
    }

    .platform h2 {
        font-size: 26px;
        letter-spacing: 1px;
    }

    .tagline {
        color: var(--darkblue);
        font-size: 26px;
        /* now on white bg, swap to dark color */
        text-shadow: none;
    }

    .platform-cards {
        grid-template-columns: 1fr;
    }

    .platform-list {
        grid-template-columns: 1fr;
    }

    .logo-divider img {
        height: 80px;
        max-width: 90%;
    }

    /* About section stacks */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .bio-photo {
        order: -1;
        /* photo above text on mobile */
    }

    .vote h2 {
        font-size: 26px;
    }

    /* Header: logo full width on top, donate+socials row below */
    header {
        height: auto;
    }

    .nav {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        height: auto;
    }

    .logo {
        height: auto;
        width: auto;
        max-width: 280px;
        max-height: 80px;
        padding: 0;
    }

    .nav-right {
        width: 100%;
        justify-content: center;
    }
}