/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --color-primary: #c8102e;
    --color-primary-dark: #a00d24;
    --color-secondary: #003f87;
    --color-secondary-dark: #002d5f;
    --color-white: #ffffff;
    --color-off-white: #f8f9fa;
    --color-gray-light: #e9ecef;
    --color-gray: #6c757d;
    --color-gray-dark: #343a40;
    --color-black: #1a1a1a;

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;

    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-title.centered {
    text-align: center;
}

.section-title.white {
    color: var(--color-white);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    margin-bottom: 2rem;
}

.title-underline.centered {
    margin-left: auto;
    margin-right: auto;
}

.title-underline.white {
    background: var(--color-white);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

/* ===========================
   Layout
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transition: none;
    z-index: 0;
}

.btn-primary:hover::before {
    animation: btnSheen 0.6s ease forwards;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

.btn-primary span,
.btn-primary * {
    position: relative;
    z-index: 1;
}

@keyframes btnSheen {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    z-index: 0;
}

.btn-secondary:hover::before {
    animation: btnSheen 0.6s ease forwards;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(0, 63, 135, 0.1) 50%,
        transparent 100%
    );
    z-index: 0;
}

.btn-outline:hover::before {
    animation: btnSheen 0.6s ease forwards;
}

.btn-outline:hover {
    background: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 63, 135, 0.3);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 40px 1rem 0;
    max-width: 100%;
}

.nav-brand-logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-brand-logo:hover {
    opacity: 0.8;
}

.nav-brand-logo img {
    height: 117px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-gray-dark);
    transition: var(--transition);
}

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

.btn-donate-nav {
    background: var(--color-primary);
    color: var(--color-white) !important;
    padding: 10px 24px;
    border-radius: 4px;
}

.btn-donate-nav:hover {
    background: var(--color-primary-dark);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: var(--color-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, var(--color-secondary) 25%, transparent 25%),
        linear-gradient(-45deg, var(--color-secondary) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--color-secondary) 75%),
        linear-gradient(-45deg, transparent 75%, var(--color-secondary) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    opacity: 0.03;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(200, 16, 46, 0.2), transparent);
}

.hero-flag {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-flag video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.15);
    /* Zoom in to hide watermark and improve crop */
}

/* Fade animation for seamless looping */
@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.hero-sandra {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 450px;
    max-width: 30%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.95;
}

@media (min-width: 1400px) {
    .hero-sandra {
        width: 550px;
        max-width: 33%;
        right: 2%;
    }
}

@media (min-width: 1800px) {
    .hero-sandra {
        width: 900px;
        max-width: 45%;
        right: 5%;
    }
}

.hero-sandra img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 4rem 0;
    max-width: 60%;
}

.hero-title {
    margin-bottom: 1rem;
}

.hero-vote {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.hero-name {
    display: block;
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-district {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.hero-slogan {
    margin: 2rem 0;
}

.slogan-line {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-primary);
    margin: 0.5rem 0;
}

.hero-values {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 2rem 0;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    margin-top: 3rem;
}

/* ===========================
   About Section
   =========================== */
.about-section {
    padding: 6rem 0;
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.image-caption {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--color-off-white);
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
}

.image-caption p {
    font-style: italic;
    font-size: 1.125rem;
    color: var(--color-gray-dark);
    font-weight: 600;
}

.about-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--color-gray-dark);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.highlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.highlight-text h3 {
    font-size: 1.125rem;
    color: var(--color-secondary);
    margin-bottom: 0.25rem;
}

.highlight-text p {
    color: var(--color-gray);
    font-size: 0.95rem;
}

.about-qualities {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.qualities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quality-item {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--color-off-white);
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-secondary);
    letter-spacing: 0.5px;
}

.about-values-statement {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.about-values-statement p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin: 0;
}

/* ===========================
   Platform Section
   =========================== */
.platform-section {
    padding: 6rem 0;
    background: var(--color-off-white);
}

.platform-section-heading {
    text-align: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 0;
}

.platform-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.platform-card {
    flex: 0 1 calc(33.333% - 1.5rem);
    min-width: 280px;
    background: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--color-primary);
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.platform-card h3 {
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}

.platform-card p {
    color: var(--color-gray);
    line-height: 1.8;
}

/* ===========================
   Donation Section
   =========================== */
.donate-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.donate-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.03) 35px, rgba(255,255,255,0.03) 70px);
}

.donate-content {
    position: relative;
    z-index: 2;
}

.donate-subtitle {
    color: rgba(255,255,255,0.9);
    text-align: center;
    max-width: 500px;
    margin: 0 auto 3rem;
}

.donate-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.donate-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.amount-btn {
    padding: 1rem;
    background: var(--color-off-white);
    border: 2px solid var(--color-gray-light);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.amount-btn:hover {
    border-color: var(--color-primary);
    background: rgba(200, 16, 46, 0.1);
}

.amount-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.custom-amount {
    margin-bottom: 2rem;
}

.custom-amount label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-gray-dark);
    font-weight: 600;
}

.amount-input-wrapper {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray);
}

#custom-amount {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    font-size: 1.125rem;
    border: 2px solid var(--color-gray-light);
    border-radius: 6px;
    font-family: var(--font-primary);
}

#custom-amount:focus {
    outline: none;
    border-color: var(--color-primary);
}

.recurring-option {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--color-gray-dark);
    font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.donate-disclaimer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-light);
    color: var(--color-gray);
    text-align: center;
    line-height: 1.6;
}

.other-ways {
    max-width: 800px;
    margin: 4rem auto 0;
}

.other-ways h3 {
    text-align: center;
    color: var(--color-white);
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.help-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.help-option {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.help-option strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.help-option p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* ===========================
   Get Involved Section
   =========================== */
.involved-section {
    padding: 6rem 0;
    background: var(--color-white);
}

.involved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.involved-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--color-off-white);
    border-radius: 8px;
    transition: var(--transition);
}

.involved-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.involved-card h3 {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.involved-card p {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #1877f2;
    color: var(--color-white);
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.social-btn:hover {
    background: #145dbf;
    transform: translateY(-2px);
}

/* ===========================
   Contact Form
   =========================== */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--color-off-white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
    text-align: center;
    color: var(--color-secondary);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-gray-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--color-gray-light);
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--color-gray-dark);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
}

.footer-slogan {
    margin-top: 1rem;
    font-style: italic;
    font-weight: 600;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-contact a {
    color: var(--color-primary);
}

.social-links-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links-footer a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links-footer a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.7);
}

.paid-for {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--color-white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-name {
        font-size: 3rem;
    }

    .hero-vote {
        font-size: 1.5rem;
    }

    .slogan-line {
        font-size: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .donate-amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-sandra {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-values {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .nav-brand-logo img {
        height: 70px;
    }

    .hero-name {
        font-size: 2.2rem;
    }

    .hero-content {
        padding: 3rem 20px;
    }

    .hero-flag video {
        object-position: 25% center;
    }

    .hero-values {
        font-size: 0.875rem;
        flex-wrap: wrap;
    }

    .platform-card {
        flex: 0 1 calc(50% - 1rem);
        min-width: 0;
        padding: 1.25rem;
    }

    .platform-card h3 {
        font-size: 1rem;
    }

    .platform-icon {
        font-size: 2rem;
    }

    .platform-card p {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .donate-card {
        padding: 2rem;
    }

    .donate-amounts {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 1rem;
    }
}
