/* ============================================
   Hebron Fire & Rescue — Stylesheet
   Classic & Elegant · Midnight Blue + Mint
   ============================================ */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a2a3a;
    background-color: #FAFBFC;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: #0C1F3A;
}

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

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(12, 31, 58, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(61, 181, 160, 0.15);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: 'Lora', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.01em;
}

.logo-location {
    font-size: 11px;
    color: rgba(61, 181, 160, 0.8);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Navigation ---------- */
.nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 16px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    letter-spacing: 0.02em;
}

.nav-menu a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

.nav-emergency {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(61, 181, 160, 0.15) !important;
    color: #3DB5A0 !important;
    border: 1px solid rgba(61, 181, 160, 0.3) !important;
    margin-left: 8px;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
}

.nav-emergency:hover {
    background: rgba(61, 181, 160, 0.25) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #FFFFFF;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #071526 0%, #0C1F3A 40%, #102A45 100%);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    pointer-events: none;
}

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

.hero-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(61, 181, 160, 0.2);
    border-radius: 20px;
    padding: 48px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.eyebrow-line {
    width: 32px;
    height: 2px;
    background: #3DB5A0;
    border-radius: 2px;
    flex-shrink: 0;
}

.hero-eyebrow span {
    font-size: 13px;
    font-weight: 500;
    color: #3DB5A0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-headline {
    font-size: clamp(36px, 5vw, 64px);
    color: #FFFFFF;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.hero-headline .accent {
    color: #3DB5A0;
    font-style: italic;
    font-weight: 500;
}

.hero-sub {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.btn-primary {
    background: #3DB5A0;
    color: #0C1F3A;
}

.btn-primary:hover {
    background: #4EC5AF;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61, 181, 160, 0.35);
}

.btn-ghost {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
    border-color: #3DB5A0;
    color: #3DB5A0;
    transform: translateY(-2px);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

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

/* ---------- Stat Cards ---------- */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(61, 181, 160, 0.2);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
    transform: translateX(6px);
    border-color: rgba(61, 181, 160, 0.45);
}

.stat-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(61, 181, 160, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(61, 181, 160, 0.2);
}

.stat-number {
    font-family: 'Lora', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
    letter-spacing: 0.03em;
}

/* ---------- Section Eyebrow ---------- */
.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #3DB5A0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* ---------- Section Title ---------- */
.section-title {
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 20px;
    color: #0C1F3A;
}

.section-subtitle {
    font-size: 17px;
    color: #4A5568;
    line-height: 1.8;
    max-width: 600px;
}

/* ---------- Services ---------- */
.services {
    padding: 100px 0;
    background: #FAFBFC;
}

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

.section-header .section-subtitle {
    margin: 0 auto;
}

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

.service-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 36px;
    border: 1px solid rgba(12, 31, 58, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0C1F3A, #3DB5A0);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(12, 31, 58, 0.1);
    border-color: rgba(61, 181, 160, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-accent {
    display: none;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(61, 181, 160, 0.08);
    border: 1px solid rgba(61, 181, 160, 0.2);
    border-radius: 14px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: #0C1F3A;
}

.service-description {
    font-size: 15px;
    color: #4A5568;
    line-height: 1.75;
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2D3748;
    font-weight: 500;
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #3DB5A0;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- About ---------- */
.about {
    padding: 100px 0;
    background: #FFFFFF;
}

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

.about-image-wrap {
    position: relative;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(12, 31, 58, 0.15);
}

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

.about-accent-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #0C1F3A;
    color: #FFFFFF;
    padding: 20px 28px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid rgba(61, 181, 160, 0.3);
}

.about-accent-box .accent-box-number {
    font-size: 12px;
    font-weight: 600;
    color: #3DB5A0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-accent-box .accent-box-year {
    font-family: 'Lora', Georgia, serif;
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    margin-top: 4px;
}

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

.about-text {
    font-size: 16px;
    color: #4A5568;
    line-height: 1.85;
    margin-bottom: 20px;
}

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

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1a2a3a;
}

.value-item svg {
    flex-shrink: 0;
}

/* ---------- Community CTA ---------- */
.community {
    padding: 100px 0;
    background: linear-gradient(160deg, #071526 0%, #0C1F3A 50%, #102A45 100%);
    position: relative;
    overflow: hidden;
}

.community::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(61, 181, 160, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.community-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.community-content .section-title {
    color: #FFFFFF;
}

.community-text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.85;
    margin-bottom: 36px;
}

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

.community-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

/* ---------- Contact ---------- */
.contact {
    padding: 100px 0;
    background: #FAFBFC;
}

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

.contact-subtitle {
    font-size: 16px;
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 36px;
}

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

.contact-detail {
    display: flex;
    gap: 16px;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(61, 181, 160, 0.08);
    border: 1px solid rgba(61, 181, 160, 0.2);
    border-radius: 12px;
}

.contact-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #3DB5A0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-detail-value {
    font-size: 15px;
    color: #1a2a3a;
    font-weight: 500;
    line-height: 1.6;
}

.contact-detail-value a {
    color: #1a2a3a;
    transition: color 0.2s ease;
}

.contact-detail-value a:hover {
    color: #3DB5A0;
}

/* ---------- Form ---------- */
.contact-form-wrap {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(12, 31, 58, 0.08);
    box-shadow: 0 8px 32px rgba(12, 31, 58, 0.06);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #0C1F3A;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    padding: 12px 16px;
    border: 1px solid rgba(12, 31, 58, 0.15);
    border-radius: 10px;
    background: #FAFBFC;
    color: #1a2a3a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3DB5A0;
    box-shadow: 0 0 0 3px rgba(61, 181, 160, 0.12);
    background: #FFFFFF;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94A3B8;
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(61, 181, 160, 0.08);
    border: 1px solid rgba(61, 181, 160, 0.25);
    border-radius: 10px;
    color: #0C1F3A;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.form-success svg {
    flex-shrink: 0;
    color: #3DB5A0;
}

/* ---------- Footer ---------- */
.footer {
    background: #071526;
    padding: 64px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo span {
    font-family: 'Lora', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #3DB5A0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a,
.footer-col li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s ease;
    line-height: 1.5;
}

.footer-col a:hover {
    color: #3DB5A0;
}

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

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.footer-disclaimer {
    font-weight: 500;
    color: rgba(61, 181, 160, 0.6) !important;
}

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1;
        min-width: 160px;
    }

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

    .about-inner,
    .community-inner,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content {
        max-width: 100%;
    }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(12, 31, 58, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px 24px;
        gap: 4px;
        border-bottom: 1px solid rgba(61, 181, 160, 0.15);
        transform: translateY(-110%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu a {
        padding: 12px 16px;
        font-size: 15px;
    }

    .nav-emergency {
        margin-left: 0 !important;
        justify-content: center;
        margin-top: 8px;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-card {
        padding: 32px;
    }

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

    .stat-card {
        min-width: auto;
    }

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

    .about-accent-box {
        bottom: -12px;
        right: 12px;
        padding: 14px 20px;
    }

    .about-accent-box .accent-box-year {
        font-size: 28px;
    }

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

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

    .community-actions .btn {
        justify-content: center;
    }

    .contact-form-wrap {
        padding: 24px;
    }

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

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

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

    .hero-card {
        padding: 24px;
    }

    .hero-headline {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .service-card {
        padding: 24px;
    }
}
