/* ==========================================================================
   Tracy Briggs for Fairport Mayor - Campaign Website Styles
   ========================================================================== */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --navy: #03294e;
    --navy-dark: #021d3a;
    --crimson: #9b1b30;
    --crimson-light: #b8253c;
    --white: #FFFFFF;
    --light-gray: #F5F6F8;
    --text: #2a2a2a;
    --text-muted: #3a3a3a;
    --border: #e2e4e8;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
:focus-visible {
    outline: 3px solid var(--crimson);
    outline-offset: 2px;
}

.hero :focus-visible,
.cta :focus-visible,
footer :focus-visible {
    outline-color: var(--white);
}

.newsletter :focus-visible {
    outline-color: var(--navy);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--crimson);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-decoration: none;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background: linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(155, 27, 48, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out both;
}

.hero-logo {
    margin-bottom: 2.5rem;
    animation: fadeIn 0.6s ease-out both;
}

.hero-logo img {
    height: 150px;
    width: auto;
}

.hero-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.7;
    padding-left: 1.25rem;
    border-left: 3px solid var(--crimson);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-image {
    position: relative;
    animation: scaleIn 0.9s ease-out 0.2s both;
}

.hero-image img {
    width: 100%;
    max-width: 420px;
    border-radius: 8px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 2;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -16px;
    right: -16px;
    width: calc(100% - 30px);
    max-width: 390px;
    height: calc(100% + 32px);
    border: 3px solid var(--crimson);
    border-radius: 8px;
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--crimson) 0%, transparent 60%);
    border-radius: 50%;
    opacity: 0.4;
    z-index: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    background: var(--crimson);
    color: var(--white);
    padding: 1rem 2.25rem;
    border: none;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 16px rgba(155, 27, 48, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(155, 27, 48, 0.35);
    background: var(--crimson-light);
}

.btn-donate-large {
    background: var(--crimson);
    color: var(--white);
    padding: 1.15rem 2.75rem;
    border: none;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 16px rgba(155, 27, 48, 0.25);
}

.btn-donate-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(155, 27, 48, 0.35);
    background: var(--crimson-light);
}

.btn-volunteer {
    background: transparent;
    color: var(--white);
    padding: 1.15rem 2.25rem;
    border: 2px solid var(--white);
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-volunteer:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-volunteer-hero {
    background: transparent;
    color: var(--white);
    padding: 1rem 2.25rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-volunteer-hero:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Vote Callout
   ========================================================================== */
.vote-callout {
    background: var(--navy);
    padding: 1.75rem 2rem;
    border-bottom: 3px solid var(--crimson);
}

.vote-callout-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.vote-callout-date {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vote-callout-message {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    flex: 1;
    min-width: 200px;
}

.vote-callout-link {
    display: inline-block;
    background: var(--crimson);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.vote-callout-link:hover {
    background: var(--crimson-light);
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */
.newsletter {
    background: var(--crimson);
    padding: 3rem 2rem;
}

.newsletter-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.newsletter-placeholder {
    background: rgba(255, 255, 255, 0.08);
    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: 5rem 2rem 4.5rem;
    background: var(--white);
}

.about-content {
    max-width: 820px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--crimson);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1.75rem;
    line-height: 1.2;
}

.about .section-title {
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.45;
}

.about-text > p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.leadership-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

/* Bio Dropdown */
.bio-dropdown {
    margin: 2rem 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.bio-dropdown summary {
    padding: 1rem 1.25rem;
    background: var(--light-gray);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.bio-dropdown summary::-webkit-details-marker {
    display: none;
}

.bio-dropdown summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--crimson);
    transition: transform 0.3s ease;
}

.bio-dropdown[open] summary::after {
    content: '\2212';
}

.bio-dropdown summary:hover {
    background: #eaecf0;
}

.bio-content {
    padding: 1.25rem 1.25rem 1.5rem;
    background: var(--white);
    max-height: 25rem;
    overflow-y: auto;
}

.bio-content p {
    font-size: 0.93rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.75;
}

.bio-content p:last-child {
    margin-bottom: 0;
}

.bio-content::-webkit-scrollbar {
    width: 5px;
}

.bio-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.bio-content::-webkit-scrollbar-thumb {
    background: var(--crimson);
    border-radius: 3px;
}

.bio-content::-webkit-scrollbar-thumb:hover {
    background: var(--navy);
}

/* Credentials */
.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.credential {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.credential-icon {
    width: 44px;
    height: 44px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    flex-shrink: 0;
}

.credential-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
}

/* ==========================================================================
   Priorities Section
   ========================================================================== */
.priorities {
    padding: 5rem 2rem;
    background: var(--light-gray);
}

.priorities-content {
    max-width: 1060px;
    margin: 0 auto;
    text-align: center;
}

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

.priority-item {
    background: var(--white);
    padding: 2rem 1.5rem 1.75rem;
    border-radius: 10px;
    border-top: 3px solid var(--crimson);
    box-shadow: 0 2px 12px rgba(3, 41, 78, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    width: calc(33.333% - 1rem);
    min-width: 200px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.priority-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(3, 41, 78, 0.12);
}

.priority-item svg {
    width: 40px;
    height: 40px;
    color: var(--navy);
}

.priority-item h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--navy);
    line-height: 1.3;
}

.priority-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ==========================================================================
   CTA / Donate Section
   ========================================================================== */
.cta {
    padding: 5rem 2rem;
    background: var(--navy);
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(155, 27, 48, 0.1) 50%, transparent 70%);
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--navy-dark);
    padding: 2.5rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1060px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 1.25rem;
}

.footer-logo img {
    height: 48px;
    width: auto;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.18);
}

.disclaimer {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
    margin-top: 0.4rem;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 968px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
        padding: 2rem 1.5rem;
    }

    .hero-text { order: 1; }
    .hero-image { order: 2; }

    .hero-logo {
        display: flex;
        justify-content: center;
    }

    .hero-logo img {
        height: 130px;
    }

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

    .hero-subtitle {
        margin: 0 auto 2rem;
        text-align: left;
        font-size: 1.25rem;
        font-weight: 500;
    }

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

    .hero-image::before { display: none; }
    .hero-image::after { display: none; }
    .hero-image img { max-width: 300px; }

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

    .priority-item {
        width: calc(50% - 0.75rem);
    }
}

@media (max-width: 600px) {
    .vote-callout-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .vote-callout-link {
        width: 100%;
        text-align: center;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero-logo img {
        height: 110px;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding-left: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-volunteer-hero {
        width: 100%;
        justify-content: center;
    }

    .section-title { font-size: 1.65rem; }
    .about .section-title { font-size: 1.3rem; }
    .cta h2 { font-size: 1.65rem; }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn-donate-large,
    .cta-buttons .btn-volunteer {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .credentials {
        flex-direction: column;
        gap: 1rem;
    }

    .about {
        padding: 3.5rem 1.5rem 3rem;
    }

    .priorities {
        padding: 3.5rem 1.25rem;
    }

    .cta {
        padding: 3.5rem 1.5rem;
    }

    .priority-item {
        width: 100%;
    }
}
