@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Barlow+Condensed:wght@400;600;700&display=swap');

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Font Styles */
@font-face {
    font-family: 'Sulphur Point';
    src: url('../fonts/SulphurPoint-Regular.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'Sulphur Point';
    src: url('../fonts/SulphurPoint-Bold.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'Sulphur Point';
    src: url('../fonts/SulphurPoint-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'PT Mono';
    src: url('../fonts/PTM55F.ttf') format('truetype');
    font-weight: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sulphur Point', 'Segoe UI', sans-serif;
}

/* Section with red underline for headers */
.section-with-header h2,
.biography h2,
.campaign-section h2,
.how-to-vote h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: #2c3d50;
    border-bottom: 4px solid #bc1b31;
    padding-bottom: 14px;
    margin-bottom: 16px;
    display: inline-block;
    letter-spacing: 0.04em;
}

/* Adjust for bio-title class specifically used in index */
.bio-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: #2c3d50;
    border-bottom: 4px solid #bc1b31;
    padding-bottom: 14px;
    margin-bottom: 16px;
    display: inline-block;
    letter-spacing: 0.04em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    position: relative;
}

/* Barlow Condensed Bold for name emphasis */
.name-bold {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 140px;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    text-transform: uppercase;
    font-family: 'Barlow Condensed', sans-serif;
    line-height: 1.2;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.logo .tagline {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    color: #BD1C31;
    letter-spacing: 0.1em;
}

.logo img {
    width: clamp(120px, 25vw, 300px);
    height: auto;
    display: block;
}

.nav-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0rem;
    width: 100%;
    min-width: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-bottom: 0.75rem;
    flex-basis: 100%;
    justify-content: center;
}

.logo-img {
    height: 58px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-menu a:hover {
    color: #BD1C31;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 800px) {
    .hamburger {
        display: flex;
    }
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown-toggle img {
    height: 32px;
    width: auto;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    min-width: 150px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    margin-top: 0;
    padding: 0.5rem 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
    color: #BD1C31;
}

/* Main Content */
main {
    margin-top: 0;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 3rem;
    border-radius: 10px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Project Sections */
.current-focus, .social-links {
    margin: 3rem 0;
}

.current-focus h3, .social-links h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #2980b9;
}

/* Social Links */
.social-icons {
    display: flex;
    gap: 1.5rem;
}

/* Lightweight entrance animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Apply reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* Initial hidden state for animated elements */
.animate-on-load {
    opacity: 0;
    transform: translateY(8px);
}

/* When page is ready, trigger animations */
.is-loaded .animate-on-load {
    animation: fadeIn 600ms ease forwards;
}

/* Stagger helpers */
.is-loaded .animate-on-load.stagger-1 { animation-delay: 0.08s; }
.is-loaded .animate-on-load.stagger-2 { animation-delay: 0.16s; }
.is-loaded .animate-on-load.stagger-3 { animation-delay: 0.24s; }
.is-loaded .animate-on-load.stagger-4 { animation-delay: 0.32s; }

/* Slight lift for hero content */
.hero-section .hero-content.animate-on-load { animation: slideUp 700ms cubic-bezier(.2,.9,.2,1) forwards; }

/* Smooth hover/transitions adjustments */
.btn-primary, .btn-secondary, .project-card, .nav-menu a { transition: transform 180ms ease, background-color 180ms ease, color 180ms ease; }

/* Mobile nav open state (minimal) */
.nav-menu.open { display: block; }

/* Scroll indicator centered in hero */
.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 3;
    color: #ffffff;
    opacity: 0.95;
    pointer-events: none;
}

.scroll-arrow {
    width: 36px;
    height: 36px;
    display: block;
    color: #ffffff;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.35));
    animation: scrollBounce 1.6s ease-in-out infinite;
}

/* Staggered slide-in reveal (JS will add .revealed) */
.stagger-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: transform 520ms cubic-bezier(.2,.9,.2,1), opacity 380ms ease;
    will-change: transform, opacity;
}
.stagger-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Make hero-title the visual leader */
.hero-title.stagger-reveal { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
    .stagger-reveal, .stagger-reveal.revealed { transition: none; transform: none; opacity: 1; }
}

/* Full-screen hero visuals */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('../new brand zoom.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.05));
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: #fff;
    padding: 40px 20px;
}
.hero-title {
    font-size: 5rem;
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Barlow Condensed', sans-serif;
    line-height: 1.2;
}

.hero-tagline {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #BD1C31;
    letter-spacing: 0.1em;
    margin-top: 0.3rem;
}

.hero-title-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
}

.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.9); margin-bottom: 1rem; }

.hero-inner {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 1.05fr);
    gap: clamp(1.25rem, 3vw, 3rem);
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: clamp(1rem, 3vw, 2rem);
}

.hero-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: min(100%, 460px);
    height: auto;
    max-height: min(78vh, 760px);
    object-fit: contain;
    display: block;
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    color: #fff;
    padding-bottom: 0;
}

.hero-tagline-image {
    width: min(100%, 560px);
    height: auto;
    display: block;
}

.hero-photo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.headshot {
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-text {
    color: #fff;
    margin: 0;
    max-width: 62ch;
}

.hero-bio {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.6;
}

.school-logo-bottom-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: clamp(60px, 15vw, 100px);
    height: auto;
    max-width: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.reynolds-logo {
    width: clamp(300px, 50vw, 500px);
    height: auto;
    max-width: 600px;
    border-radius: 8px;
}

.school-name {
    font-weight: 700;
    color: #BD1C31;
}

/* Ensure hero buttons stand out on image */
.hero-buttons .btn-primary, .hero-buttons .btn-secondary { margin: 0 8px; }

/* Make sure footer remains readable */
footer.container { 
    padding: 2rem 0; 
    text-align: center;
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
}

footer.container p,
footer.container a {
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
}

/* Contact section styling */
.contact-form,
.social-links {
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
}

.contact-form label,
.contact-form input,
.contact-form textarea,
.social-links {
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
}

/* About section layout on index */
.about-section { padding: 4rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; margin-top: 1.5rem; }
.about-photo { text-align: center; }
.about-text h3 { margin-top: 0; }

@media (max-width: 1024px) {
    .hero-title { font-size: 2.4rem; }
    .hero-content { text-align: left; }
    .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-left { order: -1; }
    .hero-right { order: 1; }
    .hero-image { max-height: 60vh; }
    .hero-tagline-image { width: min(100%, 500px); }
    .hero-photo { order: 2; }
    .hero-text { order: 1; }
    .about-grid { grid-template-columns: 1fr; }
}

/* Mobile breakpoint - 600px and below */
@media (max-width: 600px) {
    .nav-left {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    }
    
    .nav-container {
        min-height: 70px;
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: clamp(1.8rem, 5vw, 2.4rem);
    }
    
    h2 {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
    }
    
    section {
        padding: 1.5rem 1rem;
    }
}

/* Shared header/footer rebuild */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, opacity 0.25s ease;
    will-change: transform, opacity;
}

.site-header:not(.header-visible) {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.site-header.header-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.site-header .nav-link {
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e2f44;
    letter-spacing: 0.02em;
    transition: color 0.18s ease, border-bottom 0.18s ease;
    white-space: nowrap;
    padding-bottom: 4px;
    border-bottom: 3px solid transparent;
    line-height: 1.2;
    margin: 0 0.4rem;
    display: inline;
    padding-bottom: 2px;
}

.site-header .nav-link:hover {
    color: #bd1c31;
}

.site-header .nav-link.active {
    color: #bd1c31;
    border-bottom-color: #bd1c31;
}

.dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
}

.projects-dropdown > .dropdown-menu {
    left: 0;
}

.site-header .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    min-width: 190px;
    padding: 8px 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1200;
}

.site-header .dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: #1f3348;
    font-weight: 700;
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
    text-decoration: none;
    font-size: 0.95rem;
}

.site-header .dropdown-menu a:hover {
    background: #f3f6f9;
    color: #bd1c31;
}

.projects-dropdown:hover > .dropdown-menu,
.projects-dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.dropdown-btn {
    border: 0;
    background: transparent;
    padding: 4px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 0;
}

.dropdown-btn:hover,
.dropdown-btn:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    outline: none;
}

.more-icon {
    width: 30px;
    height: 30px;
    display: block;
}

.nav-menu .dropdown-menu {
    right: 0;
    left: auto;
}

.nav-menu .dropdown-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-footer {
    margin-top: 24px;
    background: linear-gradient(145deg, #0f1b2a 0%, #1d2c40 100%);
    color: #e8edf2;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 34px 20px 18px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.footer-section h3 {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #ffffff;
}

.footer-section a {
    display: block;
    color: #d3dce5;
    text-decoration: none;
    margin-bottom: 6px;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 12px;
    text-align: center;
    font-size: 0.9rem;
    color: #c6d0dc;
}

/* Campaign section styles */
.campaign-section {
    padding: 20px 20px;
    background-color: #fff;
}

.campaign-section.alt-bg {
    background-color: #f8f9fa;
}

.campaign-section h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: #2c3d50;
    border-bottom: 4px solid #bc1b31;
    padding-bottom: 14px;
    margin-bottom: 24px;
    display: inline-block;
    letter-spacing: 0.04em;
}

.campaign-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 16px;
}

.sga-list {
    margin: 20px 0 20px 24px;
    list-style-type: disc;
}

.sga-list li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #444;
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Campaign hero section */
.campaign-hero {
    background-image: url('../reynolds repeating.png');
    background-repeat: repeat-x;
    background-size: auto 175px;
    background-position: 30% center;
    background-color: #232323;
    color: #fff;
    padding: 36px 20px;
    text-align: center;
}

.campaign-hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    letter-spacing: 0.05em;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* Biography section styles */
.biography {
    padding: 20px 20px;
    background-color: #fff;
}

.bio-container {
    max-width: 900px;
    margin: 0 auto;
}

.fade-in {
    opacity: 1;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bio-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 18px;
}

.bio-text a {
    color: #bc1b31;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.bio-text a:hover {
    color: #9a1428;
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2c3d50 0%, #1e2835 100%);
    color: #fff;
    padding: 36px 20px;
    text-align: center;
}

.cta-section h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
    color: #fff;
    display: block;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.cta-button {
    display: inline-block;
    background-color: #bc1b31;
    color: #fff;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #9a1428;
    transform: translateY(-2px);
}

/* Social profile sections on index */
.social-profile-section {
    padding: 20px 20px;
    background-color: #fff;
}

.social-profile-section.tiktok-section {
    background-color: #f0f0f0;
}

.social-profile-section.instagram-section {
    background-color: #fff;
}

.social-profile-section h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: #2c3d50;
    border-bottom: 4px solid #bc1b31;
    padding-bottom: 14px;
    margin-bottom: 24px;
    display: inline-block;
    letter-spacing: 0.04em;
}

.social-profile-section .section-container {
    max-width: 900px;
    margin: 0 auto;
}

.social-handle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 24px;
    font-weight: 600;
}

/* How to Vote section */
.how-to-vote {
    padding: 30px 20px;
    background-color: #f8f9fa;
    scroll-margin-top: 130px;
}

.how-to-vote h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: #2c3d50;
    border-bottom: 4px solid #bc1b31;
    padding-bottom: 14px;
    margin-bottom: 24px;
    display: inline-block;
    letter-spacing: 0.04em;
}

@media (max-width: 1040px) {
    .site-header .nav-link {
        font-size: 0.94rem;
    }

    .logo-img {
        height: 52px;
    }
}

@media (max-width: 820px) {
    .nav-container {
        align-items: center;
        min-height: 120px;
        padding: 10px 14px;
    }

    .nav-left {
        gap: 0.5rem;
        padding-right: 0;
    }

    .site-header .nav-link {
        font-size: 0.9rem;
    }

    .nav-menu {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
    }

    .footer-container {
        padding: 26px 16px 16px;
    }
}

@media (max-width: 560px) {
    .nav-container {
        padding: 8px 10px;
    }

    .logo-img {
        height: 46px;
    }

    .nav-left {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 0.25rem 0.5rem;
        padding-right: 0;
    }

    .site-header .nav-link {
        white-space: normal;
        line-height: 1.2;
    }
}

/* Desktop breakpoint - 1025px and above */
@media (min-width: 1025px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: 100px;
    }

    .nav-left {
        flex-wrap: nowrap;
        width: auto;
        gap: 24px;
    }

    .logo-link {
        flex-basis: auto;
        margin-bottom: 0;
        margin-right: 1rem;
    }

    .site-header .nav-link {
        margin: 0;
        margin-top: 0;
        display: inline;
    }

    .nav-menu {
        position: static;
        transform: none;
        right: auto;
        top: auto;
    }

    .logo {
        text-align: left;
    }
}