/* ==========================================================================
   Vote Childs Campaign Website - Titusville City Council Seat 5
   ========================================================================== */

/* CSS Variables */
:root {
    /* Primary Dark Red Palette */
    --primary: #990000;
    --primary-dark: #770000;
    --primary-light: #BB2222;
    --primary-subtle: #F5E0E0;
    
    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #FAF9F7;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--gray-900);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    background-color: var(--white);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-menu a {
    color: var(--gray-800);
}

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

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
}

.nav-menu a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: width var(--transition-fast);
}

.nav-menu a:not(.btn):hover::after {
    width: 100%;
}

.navbar.scrolled .nav-menu a:not(.btn)::after {
    background-color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all var(--transition-fast);
}

.navbar.scrolled .nav-toggle span {
    background-color: var(--gray-800);
}

/* ==========================================================================
   Hero Section with Scroll Transitions
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    transform: scale(1);
    transition: transform 0.1s ease-out;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
    opacity: 1;
    transition: opacity var(--transition-medium);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 120px 20px 60px;
    opacity: 1;
    transform: translateY(0);
    transition: all var(--transition-slow);
}

.hero.scrolled .hero-content {
    opacity: 0;
    transform: translateY(-50px);
}

.hero.scrolled .hero-bg {
    transform: scale(1.1);
}

.hero-text {
    color: var(--white);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    overflow: hidden;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(100%);
    animation: slideUp 0.8s ease forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 35px;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.5s forwards;
    text-transform: uppercase;
    letter-spacing: 3px;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.7s forwards;
}

/* Hero Image Container */
.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease 0.4s forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Candidate Image Placeholder */
.candidate-image-placeholder {
    width: 350px;
    height: 420px;
    background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border: 3px dashed rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    transition: all var(--transition-medium);
}

.candidate-image-placeholder:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
}

.candidate-image-placeholder.large {
    width: 100%;
    max-width: 400px;
    height: 500px;
    background: linear-gradient(145deg, var(--gray-100), var(--gray-200));
    border-color: var(--gray-300);
    color: var(--gray-500);
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.placeholder-icon svg {
    width: 100%;
    height: 100%;
}

.candidate-image-placeholder p {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Actual candidate image styling (when added) */

.candidate-image {
    width: 350px;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
    display: block;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    opacity: 0;
    animation: fadeIn 0.8s ease 1s forwards;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(10px); }
    60% { transform: rotate(45deg) translateY(5px); }
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
    background-color: var(--off-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--primary);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--gray-600);
}

.about-stats {
    display: flex;
    gap: 50px;
    margin-top: 35px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
}

/* ==========================================================================
   Priorities Section
   ========================================================================== */

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

.priorities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.priority-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-medium);
    border: 1px solid var(--gray-100);
}

.priority-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(139, 21, 56, 0.15);
    border-color: var(--primary-subtle);
}

.priority-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary);
    transition: all var(--transition-fast);
}

.priority-card:hover .priority-icon {
    background: var(--primary);
    color: var(--white);
}

.priority-icon svg {
    width: 30px;
    height: 30px;
}

.priority-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--gray-800);
}

.priority-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ==========================================================================
   Endorsements Section
   ========================================================================== */

.endorsements {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
}

.endorsements .section-header h2 {
    color: var(--white);
}

.endorsements .section-divider {
    background: rgba(255, 255, 255, 0.5);
}

.endorsements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.endorsement-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-medium);
}

.endorsement-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.endorsement-card blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.endorsement-card cite {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact {
    background-color: var(--off-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.contact-info > p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 30px;
}

.contact-methods {
    margin-bottom: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 1.3rem;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   Donate Section
   ========================================================================== */

.donate {
    position: relative;
    padding: 120px 0;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.donate-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
}

.donate-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, var(--primary) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, var(--primary-dark) 0%, transparent 40%);
    opacity: 0.3;
}

.donate .container {
    position: relative;
    z-index: 10;
}

.donate-content h2 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
}

.donate-content > p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.donate-amounts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.donate-amount {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.donate-amount:hover,
.donate-amount.active {
    background: var(--primary);
    border-color: var(--primary);
}

.donate-disclaimer {
    margin-top: 30px;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background-color: var(--gray-900);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 5px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.6;
}

.footer-bottom .disclaimer {
    margin-top: 10px;
    font-size: 0.8rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
    :root {
        --section-padding: 80px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

    .priorities-grid {
        grid-template-columns: 1fr;
    }

    .endorsements-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
    }

    .contact-methods {
        display: inline-block;
        text-align: left;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 40px;
        gap: 25px;
        transition: right var(--transition-medium);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

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

    .nav-menu a {
        color: var(--gray-800);
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .candidate-image-placeholder {
        width: 280px;
        height: 340px;
    }

    .donate-amounts {
        flex-direction: column;
        align-items: center;
    }

    .donate-amount {
        width: 100%;
        max-width: 200px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 80px 10px 30px;
        gap: 30px;
    }
    .hero-title {
        font-size: 1.3rem;
        word-break: break-word;
        line-height: 1.1;
    }
    .hero-text {
        padding: 0 2px;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .btn-large {
        width: 100%;
        max-width: 280px;
    }
    .candidate-image {
        width: 100%;
        max-width: 320px;
        height: auto;
        margin: 0 auto;
    }
    .priority-card {
        padding: 20px;
    }
    .contact-form {
        padding: 15px;
    }
}
