/* =========================================================
   JEREMIAH FARRELL CAMPAIGN WEBSITE
   Main Stylesheet
   ========================================================= */


/* =========================================================
   1. COLOR PALETTE / GLOBAL VARIABLES
   ========================================================= */

:root {
    --navy: #102a43;
    --navy-dark: #071a2b;
    --navy-light: #243f5a;

    --yellow: #f4c430;
    --yellow-hover: #ffd84d;

    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #eef1f4;
    --medium-gray: #6c757d;
    --dark-gray: #252525;

    --text: #1f2933;

    --max-width: 1200px;

    --border-radius: 6px;

    --shadow:
        0 10px 30px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   2. RESET / BASE STYLES
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    background-color: var(--white);

    line-height: 1.6;
}


img {
    max-width: 100%;
    display: block;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input {
    font: inherit;
}


/* =========================================================
   3. GENERAL LAYOUT
   ========================================================= */

.container {
    width: 90%;
    max-width: var(--max-width);

    margin-left: auto;
    margin-right: auto;
}


.narrow-container {
    max-width: 850px;
}


.section {
    padding: 90px 0;
}


.section-heading {
    max-width: 700px;

    margin: 0 auto 50px;

    text-align: center;
}


.section-label {
    margin-bottom: 10px;

    color: var(--navy);

    font-size: 0.85rem;
    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.section-label-light {
    color: var(--yellow);
}


h1,
h2,
h3 {
    line-height: 1.15;
}


h2 {
    margin-bottom: 20px;

    color: var(--navy-dark);

    font-size: clamp(2rem, 4vw, 3rem);
}


h3 {
    color: var(--navy-dark);

    font-size: 1.4rem;
}


p {
    margin-bottom: 20px;
}


.section-introduction {
    font-size: 1.2rem;
}


/* =========================================================
   4. HEADER
   ========================================================= */

.site-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background-color: var(--navy-dark);

    border-bottom: 4px solid var(--yellow);

    color: var(--white);
}


.header-container {
    min-height: 82px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   5. CAMPAIGN BRAND
   ========================================================= */

.campaign-brand {
    display: flex;

    flex-direction: column;

    line-height: 1.15;
}


.candidate-name {
    color: var(--white);

    font-size: 1.4rem;
    font-weight: 800;

    letter-spacing: 0.5px;

    text-transform: uppercase;
}


.office-name {
    margin-top: 5px;

    color: var(--yellow);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =========================================================
   6. DESKTOP NAVIGATION
   ========================================================= */

.main-navigation {
    display: flex;

    align-items: center;

    gap: 30px;
}


.main-navigation > a {
    position: relative;

    padding: 10px 0;

    color: var(--white);

    font-size: 0.9rem;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    transition:
        color 0.2s ease;
}


.main-navigation > a:not(.nav-donate-button):hover {
    color: var(--yellow);
}


.nav-donate-button {
    padding: 12px 22px !important;

    background-color: var(--yellow);

    color: var(--navy-dark) !important;

    border-radius: var(--border-radius);

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}


.nav-donate-button:hover {
    background-color: var(--yellow-hover);

    transform: translateY(-2px);
}


/* =========================================================
   7. MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-button {
    display: none;

    border: 0;

    background: transparent;

    color: var(--white);

    font-size: 2rem;

    cursor: pointer;
}


/* =========================================================
   8. HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 680px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            110deg,
            var(--navy-dark) 0%,
            var(--navy) 55%,
            var(--navy-light) 100%
        );

    color: var(--white);
}


/*
   Once we have the candidate photograph, we can use:

   background:
       linear-gradient(
           90deg,
           rgba(7, 26, 43, 0.95),
           rgba(7, 26, 43, 0.60)
       ),
       url("../images/candidate/hero.jpg");

   background-size: cover;
   background-position: center;
*/


.hero::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -150px;
    bottom: -250px;

    border: 80px solid rgba(244, 196, 48, 0.08);

    border-radius: 50%;
}


.hero-content {
    position: relative;

    z-index: 2;

    padding-top: 80px;
    padding-bottom: 80px;
}


.hero-eyebrow {
    margin-bottom: 15px;

    color: var(--yellow);

    font-size: 1rem;
    font-weight: 800;

    letter-spacing: 3px;

    text-transform: uppercase;
}


.hero h1 {
    max-width: 850px;

    margin-bottom: 5px;

    color: var(--white);

    font-size: clamp(3.5rem, 8vw, 6.5rem);

    font-weight: 900;

    letter-spacing: -3px;

    text-transform: uppercase;
}


.hero-district {
    margin-bottom: 25px;

    color: var(--yellow);

    font-size: clamp(2rem, 5vw, 3.8rem);

    font-weight: 900;

    text-transform: uppercase;
}


.hero-message {
    max-width: 650px;

    margin-bottom: 35px;

    font-size: 1.3rem;

    line-height: 1.6;
}


.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;
}


/* =========================================================
   9. BUTTONS
   ========================================================= */

.button {
    display: inline-block;

    padding: 15px 28px;

    border: 2px solid transparent;

    border-radius: var(--border-radius);

    font-size: 0.9rem;
    font-weight: 800;

    letter-spacing: 0.5px;

    text-align: center;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.button:hover {
    transform: translateY(-2px);
}


.button-primary {
    background-color: var(--yellow);

    color: var(--navy-dark);
}


.button-primary:hover {
    background-color: var(--yellow-hover);
}


.button-secondary {
    border-color: var(--white);

    background-color: transparent;

    color: var(--white);
}


.button-secondary:hover {
    background-color: var(--white);

    color: var(--navy-dark);
}


.button-dark {
    margin-top: 10px;

    background-color: var(--navy);

    color: var(--white);
}


.button-dark:hover {
    background-color: var(--navy-dark);
}


.text-link {
    color: var(--navy);

    font-weight: 800;
}


.text-link:hover {
    color: var(--navy-light);

    text-decoration: underline;
}


/* =========================================================
   10. WHY I'M RUNNING
   ========================================================= */

.about-preview {
    text-align: center;

    background-color: var(--white);
}


.about-preview p {
    max-width: 800px;

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   11. PRIORITIES
   ========================================================= */

.priorities-section {
    background-color: var(--off-white);
}


.priority-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}


.priority-card {
    position: relative;

    padding: 40px 35px;

    background-color: var(--white);

    border-top: 5px solid var(--yellow);

    box-shadow: var(--shadow);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.priority-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.14);
}


.priority-number {
    margin-bottom: 15px;

    color: var(--yellow);

    font-size: 2.8rem;
    font-weight: 900;

    line-height: 1;
}


.priority-card h3 {
    margin-bottom: 15px;
}


/* =========================================================
   12. CANDIDATE BIO SECTION
   ========================================================= */

.candidate-section {
    background-color: var(--white);
}


.candidate-layout {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    align-items: center;

    gap: 70px;
}


.candidate-photo {
    width: 100%;
}


.photo-placeholder {
    min-height: 520px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            var(--navy),
            var(--navy-dark)
        );

    border-bottom: 8px solid var(--yellow);

    color: rgba(255, 255, 255, 0.7);

    font-size: 1rem;
    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.candidate-content p {
    font-size: 1.05rem;
}


/* =========================================================
   13. GET INVOLVED
   ========================================================= */

.involvement-section {
    background-color: var(--navy-dark);

    color: var(--white);
}


.involvement-container {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 80px;

    align-items: start;
}


.involvement-message h2 {
    color: var(--white);
}


.involvement-message p {
    max-width: 500px;

    font-size: 1.1rem;
}


/* =========================================================
   14. FORM
   ========================================================= */

.signup-form {
    padding: 35px;

    background-color: var(--white);

    color: var(--text);

    border-top: 6px solid var(--yellow);
}


.form-group {
    margin-bottom: 18px;
}


.form-group label {
    display: block;

    margin-bottom: 6px;

    color: var(--navy-dark);

    font-size: 0.85rem;
    font-weight: 800;

    text-transform: uppercase;
}


.form-group input {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #ccd3da;

    border-radius: 4px;

    background-color: var(--white);
}


.form-group input:focus {
    outline: 3px solid rgba(244, 196, 48, 0.35);

    border-color: var(--yellow);
}


.form-submit-button {
    width: 100%;

    margin-top: 5px;

    border: none;
}


/* =========================================================
   15. CONTACT
   ========================================================= */

.contact-section {
    text-align: center;

    background-color: var(--light-gray);
}


.social-links {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 25px;

    margin-top: 30px;
}


.social-links a {
    color: var(--navy);

    font-weight: 800;

    text-transform: uppercase;
}


.social-links a:hover {
    text-decoration: underline;
}


/* =========================================================
   16. FOOTER
   ========================================================= */

.site-footer {
    padding: 45px 0;

    background-color: #04111d;

    color: var(--white);
}


.footer-container {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 40px;
}


.footer-candidate-name {
    color: var(--white);

    font-size: 1.3rem;
    font-weight: 900;

    text-transform: uppercase;
}


.footer-office {
    margin-top: 5px;

    color: var(--yellow);

    font-size: 0.8rem;
}


.footer-disclaimer {
    max-width: 450px;

    color: #b8c2cc;

    font-size: 0.75rem;

    text-align: right;
}


.footer-disclaimer p {
    margin-bottom: 5px;
}


/* =========================================================
   17. TABLET
   ========================================================= */

@media (max-width: 900px) {

    .section {
        padding: 70px 0;
    }


    .main-navigation {
        gap: 18px;
    }


    .priority-grid {
        grid-template-columns:
            1fr;
    }


    .candidate-layout {
        grid-template-columns:
            1fr;

        gap: 40px;
    }


    .photo-placeholder {
        min-height: 450px;
    }


    .involvement-container {
        grid-template-columns:
            1fr;

        gap: 40px;
    }

}


/* =========================================================
   18. MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .container {
        width: 88%;
    }


    .section {
        padding: 60px 0;
    }


    /* HEADER */

    .header-container {
        min-height: 72px;
    }


    .candidate-name {
        font-size: 1.1rem;
    }


    .office-name {
        font-size: 0.62rem;
    }


    /* MOBILE NAVIGATION */

    .mobile-menu-button {
        display: block;
    }


    .main-navigation {
        display: none;

        position: absolute;

        top: 72px;
        left: 0;

        width: 100%;

        padding: 25px 6%;

        flex-direction: column;

        align-items: stretch;

        gap: 5px;

        background-color: var(--navy-dark);

        border-bottom: 4px solid var(--yellow);
    }


    .main-navigation.active {
        display: flex;
    }


    .main-navigation > a {
        padding: 13px 0;
    }


    .nav-donate-button {
        margin-top: 10px;

        text-align: center;
    }


    /* HERO */

    .hero {
        min-height: 600px;
    }


    .hero-content {
        padding-top: 70px;
        padding-bottom: 70px;
    }


    .hero h1 {
        font-size: clamp(3rem, 16vw, 5rem);

        letter-spacing: -2px;
    }


    .hero-district {
        font-size: 2rem;
    }


    .hero-message {
        font-size: 1.05rem;
    }


    .hero-buttons {
        flex-direction: column;
    }


    .hero-buttons .button {
        width: 100%;
    }


    /* PRIORITIES */

    .priority-card {
        padding: 30px 25px;
    }


    /* CANDIDATE */

    .photo-placeholder {
        min-height: 380px;
    }


    /* FORM */

    .signup-form {
        padding: 25px 20px;
    }


    /* FOOTER */

    .footer-container {
        flex-direction: column;

        align-items: flex-start;
    }


    .footer-disclaimer {
        text-align: left;
    }

}


/* =========================================================
   19. VERY SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

    .hero h1 {
        font-size: 2.8rem;
    }


    .hero-eyebrow {
        font-size: 0.75rem;

        letter-spacing: 2px;
    }


    .candidate-name {
        font-size: 1rem;
    }

}/* =========================================
   ELECTION DATES
   ========================================= */

.election-dates-section {
    background: var(--navy);
    color: var(--white);
    padding: 70px 0;
}

.election-dates-section h2 {
    color: var(--yellow);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 35px;
}

.election-dates-list {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 30px;
}

.election-dates-list li {
    color: var(--white);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.election-dates-list li::marker {
    color: var(--yellow);
}