/* ============================================
   Cowikee Volunteer Fire Department
   Clean Minimalist — Charcoal + Coral
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --charcoal: #1A1D23;
    --charcoal-light: #2A2D35;
    --charcoal-mid: #3D4050;
    --coral: #E8634B;
    --coral-light: #F28570;
    --coral-dark: #C94E38;
    --white: #FFFFFF;
    --off-white: #F7F7F5;
    --cream: #F0EFEC;
    --gray-100: #E8E8E4;
    --gray-200: #D1D1CC;
    --gray-300: #A0A09A;
    --gray-400: #6B6B65;
    --gray-500: #4A4A45;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--charcoal);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--charcoal);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 0;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(26, 29, 35, 0.06);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.125rem;
    color: var(--charcoal);
    letter-spacing: -0.02em;
}

.logo-icon {
    color: var(--coral);
}

.logo-text {
    font-weight: 400;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-list a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-500);
    letter-spacing: 0.02em;
    transition: color var(--transition);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--coral);
    transition: width var(--transition);
}

.nav-list a:hover {
    color: var(--charcoal);
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--charcoal);
    color: var(--white) !important;
    padding: 0.625rem 1.25rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: background var(--transition) !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--charcoal-light);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    width: 40px;
    height: 40px;
}

.hamburger {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--charcoal);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 1.5px;
    background: var(--charcoal);
    transition: var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --- Hero --- */
.hero {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--white);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    padding: 4rem 0;
}

.hero-content {
    padding-right: 2rem;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 2rem;
}

.label-line {
    width: 40px;
    height: 1px;
    background: var(--coral);
    flex-shrink: 0;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--charcoal);
    margin-bottom: 1.75rem;
    letter-spacing: -0.02em;
}

.hero-title em {
    font-style: italic;
    color: var(--coral);
}

.hero-description {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-400);
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    border: 1.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(232, 99, 75, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--charcoal);
    color: var(--charcoal);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

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

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 0.9375rem;
}

.btn-full {
    width: 100%;
}

/* --- Hero Image --- */
.hero-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    border: 2px solid var(--coral);
    border-radius: 8px;
    z-index: -1;
}

/* --- Stats --- */
.stats {
    padding: 5rem 0;
    background: var(--off-white);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    color: var(--coral);
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
}

/* --- Section Labels --- */
.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

/* --- Section Titles --- */
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--gray-400);
    line-height: 1.8;
    max-width: 560px;
}

/* --- About --- */
.about {
    padding: 8rem 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-content {
    order: 1;
}

.about-image {
    order: 2;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 7/8.5;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--gray-400);
    margin-bottom: 1.25rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--gray-100);
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--charcoal);
}

.value-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
    flex-shrink: 0;
}

/* --- Services --- */
.services {
    padding: 8rem 0;
    background: var(--charcoal);
}

.services .section-label {
    color: var(--gray-300);
}

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

.services .section-subtitle {
    color: var(--gray-300);
}

.section-header {
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--charcoal-light);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: rgba(232, 99, 75, 0.3);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(232, 99, 75, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
    margin-bottom: 1.75rem;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--coral);
    color: var(--white);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.875rem;
    letter-spacing: -0.01em;
}

.service-desc {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--gray-300);
}

/* --- Community --- */
.community {
    padding: 8rem 0;
    background: var(--white);
}

.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.community-image {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-text {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--gray-400);
    margin-bottom: 1.25rem;
}

.community-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* --- CTA --- */
.cta {
    padding: 8rem 0;
    background: var(--coral);
}

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

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.cta-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

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

/* --- Contact --- */
.contact {
    padding: 8rem 0;
    background: var(--off-white);
    border-top: 1px solid var(--gray-100);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-text {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--gray-400);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: 0.25rem;
}

.contact-item span:not(.contact-label) {
    font-size: 0.9375rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.contact-item a {
    color: var(--charcoal);
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--coral);
}

/* --- Form --- */
.contact-form-wrapper {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid var(--gray-100);
    box-shadow: 0 4px 40px rgba(26, 29, 35, 0.04);
}

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

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 0.625rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--gray-100);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--charcoal);
    background: var(--off-white);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(232, 99, 75, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-200);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(232, 99, 75, 0.08);
    border-radius: 8px;
    color: var(--coral-dark);
    font-size: 0.9375rem;
}

.form-success svg {
    color: var(--coral);
    flex-shrink: 0;
}

/* --- Footer --- */
.site-footer {
    background: var(--charcoal);
    padding: 5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-light {
    color: var(--white);
}

.footer-desc {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--gray-400);
    margin-top: 1.25rem;
    max-width: 300px;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    font-size: 0.9375rem;
    color: var(--gray-400);
    transition: color var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

.footer-emergency {
    color: var(--coral) !important;
    font-weight: 400;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 3rem;
    }

    .about-grid,
    .community-grid,
    .contact-grid {
        gap: 3rem;
    }

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

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

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        z-index: 101;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right var(--transition);
        z-index: 99;
    }

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

    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-list a {
        font-size: 1.25rem;
    }

    .nav-cta {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 0;
    }

    .hero-content {
        padding-right: 0;
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .image-frame {
        aspect-ratio: 3/4;
    }

    .image-accent {
        display: none;
    }

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

    .about-grid,
    .community-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        order: 2;
    }

    .about-image {
        order: 1;
        aspect-ratio: 4/3;
    }

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

    .section-header {
        margin-bottom: 3rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

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

    .stat-number {
        font-size: 2.25rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .community-cta {
        flex-direction: column;
    }

    .community-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

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

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
