/* ===================================
   WHITE OAK FIRE DEPARTMENT
   Vibrant Modern Design System
   =================================== */

/* CSS Custom Properties */
:root {
    --color-charcoal: #2D2D2D;
    --color-charcoal-dark: #1A1A1A;
    --color-charcoal-light: #3D3D3D;
    --color-coral: #E85D4A;
    --color-coral-light: #F07868;
    --color-coral-dark: #D14A38;
    --color-white: #FFFFFF;
    --color-off-white: #F8F7F5;
    --color-light-gray: #F0EFED;
    --color-medium-gray: #E0DED9;
    --color-text: #1A1A1A;
    --color-text-light: #6B6B6B;
    
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    --shadow-sm: 0 2px 8px rgba(45, 45, 45, 0.08);
    --shadow-md: 0 4px 20px rgba(45, 45, 45, 0.12);
    --shadow-lg: 0 8px 40px rgba(45, 45, 45, 0.16);
    --shadow-coral: 0 8px 30px rgba(232, 93, 74, 0.3);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.text-coral {
    color: var(--color-coral);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--color-coral-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(232, 93, 74, 0.4);
}

.btn-secondary {
    background: var(--color-charcoal);
    color: var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-charcoal-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

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

/* Section Tags */
.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-coral);
    margin-bottom: var(--spacing-sm);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-charcoal-dark);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-medium-gray);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-charcoal-dark);
}

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--color-charcoal);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-coral);
    transition: width 0.3s ease;
}

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

.nav-cta {
    background: var(--color-coral);
    color: var(--color-white) !important;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

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

.nav-cta:hover {
    background: var(--color-coral-light);
    transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-charcoal);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-white);
    z-index: 1001;
    padding: var(--spacing-lg) var(--spacing-md);
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
}

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

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-charcoal);
    padding: 0.5rem;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-charcoal);
    border-bottom: 1px solid var(--color-light-gray);
}

.mobile-menu a:hover {
    color: var(--color-coral);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    background: var(--color-charcoal-dark);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 8rem var(--spacing-md) 4rem;
}

/* Geometric Background Shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.geo-shape {
    position: absolute;
    opacity: 0.08;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--color-coral);
    top: -200px;
    right: -100px;
}

.geo-square-1 {
    width: 300px;
    height: 300px;
    background: var(--color-coral);
    bottom: 10%;
    left: 5%;
    transform: rotate(45deg);
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid var(--color-coral);
    top: 20%;
    left: 15%;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--color-white);
    bottom: 15%;
    right: 25%;
    opacity: 0.03;
}

.geo-diamond-1 {
    width: 150px;
    height: 150px;
    background: var(--color-coral);
    top: 40%;
    right: 10%;
    transform: rotate(45deg);
    opacity: 0.05;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(232, 93, 74, 0.15);
    border: 1px solid rgba(232, 93, 74, 0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-coral-light);
    margin-bottom: var(--spacing-md);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-coral);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    line-height: 1.05;
}

.hero-subheadline {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.hero-cta-group {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.hero-cta-group .btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

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

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.stat-card-1 { border-left: 4px solid var(--color-coral); }
.stat-card-2 { border-left: 4px solid var(--color-white); }
.stat-card-3 { border-left: 4px solid var(--color-coral-light); }
.stat-card-4 { border-left: 4px solid var(--color-medium-gray); }

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
    padding: var(--spacing-xl) 0;
    background: var(--color-off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--color-light-gray);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-coral);
}

.service-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--color-coral), var(--color-coral-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--color-charcoal-dark);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    padding: var(--spacing-xl) 0;
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.about-text {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.about-features {
    margin-top: var(--spacing-md);
    display: grid;
    gap: var(--spacing-sm);
}

.about-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

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

.about-feature span {
    font-weight: 500;
    color: var(--color-charcoal);
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: var(--color-coral);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* ===================================
   COMMUNITY SECTION
   =================================== */
.community {
    padding: var(--spacing-xl) 0;
    background: var(--color-charcoal-dark);
    position: relative;
    overflow: hidden;
}

.community::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--color-coral);
    border-radius: 50%;
    opacity: 0.05;
}

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

.community .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.community-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
}

.community-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.community-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.coral-bg {
    background: var(--color-coral);
}

.charcoal-bg {
    background: var(--color-charcoal-light);
}

.community-card h3 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.community-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.link-arrow {
    font-weight: 600;
    color: var(--color-coral);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.link-arrow:hover {
    color: var(--color-coral-light);
    gap: 0.5rem;
}

/* ===================================
   SAFETY TIPS SECTION
   =================================== */
.safety-tips {
    padding: var(--spacing-xl) 0;
    background: var(--color-off-white);
}

.safety-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.safety-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-light-gray);
    transition: all 0.3s ease;
}

.safety-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-coral);
}

.safety-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-coral);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.safety-item h3 {
    font-size: 1.25rem;
    color: var(--color-charcoal-dark);
    margin-bottom: 0.5rem;
}

.safety-item p {
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.safety-cta {
    text-align: center;
    background: var(--color-charcoal-dark);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.safety-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
}

.safety-cta .btn-primary {
    background: var(--color-coral);
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    padding: var(--spacing-xl) 0;
    background: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: var(--spacing-sm);
}

.contact-text {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.contact-details {
    display: grid;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--color-coral);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--color-charcoal-dark);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--color-text-light);
    line-height: 1.6;
}

.contact-item a {
    color: var(--color-coral);
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

.contact-form h3 {
    font-size: 1.75rem;
    color: var(--color-charcoal-dark);
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-medium-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color 0.3s ease;
}

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

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

.form-success {
    display: none;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: #10B981;
    color: var(--color-white);
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-sm);
}

.form-success.show {
    display: flex;
}

/* ===================================
   MAP SECTION
   =================================== */
.map-section {
    background: var(--color-charcoal-dark);
}

.map-container {
    filter: grayscale(30%);
}

.map-container iframe:hover {
    filter: grayscale(0%);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--color-charcoal-dark);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
}

.footer-links ul {
    display: grid;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

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

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

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

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .hero-stats {
        max-width: 500px;
        margin: var(--spacing-md) auto 0;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content .section-title,
    .contact-info .section-title {
        text-align: center;
    }
    
    .about-text,
    .contact-text {
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 7rem var(--spacing-sm) 3rem;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .safety-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .image-accent {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
    }
}

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