/* ============================================
   Worth Township Fire Station 71 — Styles
   Emerald Green + Cream | Fresh & Airy
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --emerald-50:  #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --emerald-950: #022c22;

    --cream-50:  #fefdf8;
    --cream-100: #fefce8;
    --cream-200: #fef9c3;
    --cream-300: #fef08a;
    --cream-400: #fde047;

    --surface: #ffffff;
    --surface-alt: var(--cream-50);
    --text-primary: var(--emerald-950);
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --text-light: var(--cream-50);
    --border: var(--emerald-100);
    --shadow-sm: 0 1px 3px rgba(6, 78, 59, 0.06), 0 1px 2px rgba(6, 78, 59, 0.04);
    --shadow-md: 0 4px 16px rgba(6, 78, 59, 0.08), 0 2px 6px rgba(6, 78, 59, 0.05);
    --shadow-lg: 0 12px 40px rgba(6, 78, 59, 0.12), 0 4px 12px rgba(6, 78, 59, 0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-secondary); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-600);
    color: #ffffff;
    border-color: var(--emerald-600);
}
.btn-primary:hover {
    background: var(--emerald-700);
    border-color: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--emerald-700);
    border-color: var(--emerald-300);
}
.btn-outline:hover {
    background: var(--emerald-50);
    border-color: var(--emerald-500);
    transform: translateY(-2px);
}

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

.btn-light {
    background: #ffffff;
    color: var(--emerald-700);
    border-color: #ffffff;
}
.btn-light:hover {
    background: var(--cream-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* --- Section Shared --- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emerald-600);
    background: var(--emerald-100);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 16px;
}

.section-title.light { color: #ffffff; }

.section-desc, .about-text, .contact-desc, .community-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 560px;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}
.section-header .section-desc { margin: 0 auto; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--emerald-800);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--emerald-100);
    border-radius: var(--radius-sm);
    color: var(--emerald-600);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald-500);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--emerald-700); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    padding: 10px 22px;
    font-size: 0.9rem;
}

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

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--emerald-800);
    border-radius: 2px;
    transition: var(--transition);
}

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

/* --- Mobile Menu --- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(254, 253, 248, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
}

.mobile-menu.open { display: block; }

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
}

.mobile-link {
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-link:hover {
    background: var(--emerald-50);
    color: var(--emerald-700);
}

.mobile-menu .btn {
    margin-top: 8px;
    justify-content: center;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    background: linear-gradient(135deg, var(--cream-50) 0%, var(--emerald-50) 50%, var(--cream-100) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(110, 231, 183, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(5, 150, 105, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--emerald-700);
    background: var(--emerald-100);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}

.hero-title {
    margin-bottom: 20px;
    color: var(--emerald-900);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald-700);
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--emerald-200);
}

.hero-image {
    position: relative;
}

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

.hero-img-wrapper img {
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.hero-img-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--emerald-200);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--surface);
}

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

.service-card {
    background: var(--cream-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--emerald-200);
    background: #ffffff;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-100);
    border-radius: var(--radius-md);
    color: var(--emerald-700);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--emerald-600);
    color: #ffffff;
}

.service-card h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--emerald-900);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--cream-50);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image { position: relative; }

.about-img-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-wrapper img {
    width: 100%;
    height: 640px;
    object-fit: cover;
}

.about-floating-card {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: var(--emerald-700);
    color: #ffffff;
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.floating-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.floating-label {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.about-content { max-width: 480px; }

.about-text {
    margin-bottom: 16px;
    line-height: 1.75;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.about-feature span {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* --- Community CTA --- */
.community-cta {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--emerald-800) 0%, var(--emerald-900) 60%, var(--emerald-950) 100%);
    overflow: hidden;
}

.community-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(110, 231, 183, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(52, 211, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.community-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.community-cta .section-tag {
    background: rgba(255,255,255,0.15);
    color: var(--emerald-200);
}

.community-cta .section-title { margin-bottom: 20px; }

.community-desc {
    color: rgba(255,255,255,0.8);
    margin: 0 auto 40px;
    max-width: 520px;
}

.community-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.contact-info { max-width: 520px; }

.contact-desc { margin-bottom: 40px; }

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-100);
    border-radius: var(--radius-md);
    color: var(--emerald-700);
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.contact-text a,
.contact-text span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
}

.contact-text a:hover { color: var(--emerald-600); }

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-md);
}

/* --- Footer --- */
.footer {
    background: var(--emerald-950);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .logo {
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    background: rgba(255,255,255,0.1);
    color: var(--emerald-300);
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4, .footer-contact h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 4px;
}

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

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

.footer-contact p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

.footer-contact a {
    font-size: 0.92rem;
    color: var(--emerald-300);
    transition: var(--transition);
}

.footer-contact a:hover { color: var(--emerald-200); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    text-align: center;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container { gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-container { gap: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 0;
    }

    .hero-content { max-width: 100%; order: 1; }
    .hero-image { order: 0; max-width: 400px; margin: 0 auto; }
    .hero-img-wrapper img { height: 420px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }

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

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image { max-width: 400px; margin: 0 auto; }
    .about-img-wrapper img { height: 400px; }
    .about-floating-card { bottom: -16px; left: 50%; transform: translateX(-50%); }
    .about-content { max-width: 100%; }
    .about-features { grid-template-columns: 1fr; }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { max-width: 100%; }
    .contact-map { min-height: 300px; }

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

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }
    .community-actions { flex-direction: column; align-items: center; }
    .community-actions .btn { width: 100%; justify-content: center; }
}
