:root {
    /* Color Palette */
    --primary-blue: #0b3d6e;
    --light-blue: #0071a4;
    --primary-green: #1b7339;
    --light-green: #6bb343;
    
    /* Neutral & Background Colors */
    --text-dark: #2c3e50;
    --text-muted: #546e7a;
    --bg-light: #f4f7f9; /* Soft background so the white cards pop */
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

/* Gradient hover underline */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav a:hover {
    color: var(--primary-blue);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Banner (Gradient & Pattern) */
.banner {
    text-align: center;
    background: linear-gradient(135deg, #0b3d6e 0%, #0071a4 100%);
    color: var(--white);
    padding: 90px 20px 110px; /* Extra bottom padding for card overlap */
    position: relative;
    overflow: hidden;
}

/* Subtle light overlay for depth */
.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.banner .election-date {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--light-green);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

.banner h1 {
    font-size: 3.8rem;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.banner .council-text {
    font-size: 1.6rem;
    margin-top: 15px;
    color: #e0f2fe;
    font-weight: 300;
}

/* Content Layout & "Cards" */
.content-section {
    max-width: 900px;
    margin: -50px auto 40px; /* Negative margin pulls the card up over the banner */
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 50px;
}

.card::after {
    content: "";
    display: table;
    clear: both;
}

/* Gradient Text for Headings */

h2 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 25px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    line-height: 1.8;
    font-size: 1.15rem;
    margin-bottom: 25px;
    color: var(--text-muted);
}

strong {
    color: var(--text-dark);
}

/* Headshot */
.headshot-container {
    float: left;
    margin: 0 30px 15px 0;
}

.headshot {
    width: 260px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border: 5px solid var(--white);
}

/* Horizontal Scroll for Images */
.horizontal-scroll-section {
    max-width: 1100px;
    margin: 20px auto 60px;
    padding: 0 20px;
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 10px 40px;
    scroll-behavior: smooth;
    
    /* Better mobile scrolling and snapping */
    -webkit-overflow-scrolling: touch; 
    scroll-snap-type: x mandatory; 
    
    /* Firefox scrollbar styling */
    scrollbar-width: auto; /* Changed from 'thin' to 'auto' for usability */
    scrollbar-color: var(--light-blue) #e2e8f0; /* Matched the track color to Chrome */
}

/* Chrome, Edge, and Safari scrollbar styling */
.scroll-container::-webkit-scrollbar {
    height: 10px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 6px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: var(--light-blue);
    border-radius: 6px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

.scroll-img {
    flex: 0 0 auto;
    width: 320px;
    max-width: 80vw; /* Ensures the next image 'peeks' onto the screen on mobile */
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: center; /* Snaps the image cleanly into the view */
}

.scroll-img:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}


/* Footer */
footer {
    background-color: var(--text-dark);
    color: #94a3b8;
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .banner h1 {
        font-size: 2.6rem;
    }
    
    .content-section {
        margin-top: -30px;
    }

    .card {
        padding: 30px 20px;
    }

    .headshot-container {
        float: none;
        display: flex;
        justify-content: center;
        margin: 0 auto 30px;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    max-width: 600px; /* This prevents the inputs from stretching too wide */
}

.contact-form input, .contact-form textarea {
    padding: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #f9fafb;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensures the padding doesn't break the layout on mobile */
    width: 100%;
}

.contact-form button {
    align-self: flex-start; /* Stops the button from stretching across the whole width */
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background-color: var(--light-green);
    transform: translateY(-2px);
}
