/* ============================================
   HORNICK VOLUNTEER FIRE AND RESCUE
   Custom Stylesheet
   ============================================ */

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

:root {
    --green-900: #0D3212;
    --green-800: #1B5E20;
    --green-700: #2E7D32;
    --green-600: #388E3C;
    --green-500: #4CAF50;
    --green-100: #C8E6C9;
    --green-50: #E8F5E9;
    --cream: #F5F0E8;
    --cream-light: #FAF7F2;
    --cream-dark: #E8E0D0;
    --orange-600: #E65100;
    --orange-500: #FF6F00;
    --orange-400: #FF8F00;
    --orange-300: #FFAB00;
    --text-dark: #1A1A1A;
    --text-mid: #3D3D3D;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.65;
    -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;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--green-800);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 12px;
}

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

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-700);
    background: var(--green-50);
    border: 1px solid var(--green-100);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-accent {
    color: var(--green-700);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

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

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

.btn:focus-visible {
    outline: 3px solid var(--orange-400);
    outline-offset: 2px;
}

.btn--primary {
    background: var(--green-800);
    color: var(--white);
    border-color: var(--green-800);
}
.btn--primary:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    background: transparent;
    color: var(--green-800);
    border-color: var(--green-800);
}
.btn--outline:hover {
    background: var(--green-800);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--white {
    background: var(--white);
    color: var(--green-800);
    border-color: var(--white);
}
.btn--white:hover {
    background: var(--cream);
    border-color: var(--cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 94, 32, 0.08);
    transition: box-shadow var(--transition);
}

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

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

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

.logo__icon {
    flex-shrink: 0;
}

.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo__name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-800);
}

.logo__sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.04em;
}

.logo--light .logo__name {
    color: var(--white);
}
.logo--light .logo__sub {
    color: rgba(255,255,255,0.7);
}

/* Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle__line {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--green-800);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-mid);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav__link:hover {
    color: var(--green-800);
    background: var(--green-50);
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: var(--orange-500);
    padding: 9px 18px;
    border-radius: var(--radius-xl);
    transition: all var(--transition);
    margin-left: 8px;
}
.nav__cta:hover {
    background: var(--orange-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0D3212 0%, #1B5E20 35%, #2E7D32 60%, #388E3C 80%, #1B5E20 100%);
    padding: 120px 24px 80px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/30237897/pexels-photo-30237897.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(27,94,32,0.6) 0%, rgba(13,50,18,0.85) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    padding: 40px 20px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.hero__badge svg {
    color: var(--orange-300);
}

.hero__title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.12;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero__accent {
    color: var(--orange-300);
    position: relative;
}

.hero__description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto 40px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 56px;
}

.hero__actions .btn--primary {
    background: var(--orange-500);
    border-color: var(--orange-500);
}
.hero__actions .btn--primary:hover {
    background: var(--orange-600);
    border-color: var(--orange-600);
}
.hero__actions .btn--outline {
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}
.hero__actions .btn--outline:hover {
    background: var(--white);
    color: var(--green-800);
    border-color: var(--white);
}

.hero__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hero__trust-item {
    text-align: center;
}

.hero__trust-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
}

.hero__trust-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
}

.hero__trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

.hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

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

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

.about__images {
    position: relative;
}

.about__image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about__image-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.about__image-accent {
    position: absolute;
    bottom: -32px;
    right: -24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream);
}

.about__image-accent img {
    width: 320px;
    height: 240px;
    object-fit: cover;
}

.about__image-badge {
    position: absolute;
    top: -20px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--green-800);
    color: var(--white);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
}

.about__image-badge svg {
    color: var(--orange-400);
}

.about__content {
    padding: 20px 0;
}

.about__text {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about__highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.highlight__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.highlight span {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
}

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

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all var(--transition);
}

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

.service-card__icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-card__text {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- Community CTA --- */
.community {
    padding: 100px 0;
    background: var(--cream);
}

.community__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.community__content {
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.community__text {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 36px;
}

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

.community__image {
    overflow: hidden;
    min-height: 400px;
}

.community__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

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

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

.contact__text {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 36px;
}

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

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

.contact-item__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

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

.contact-item a {
    color: var(--green-700);
    transition: color var(--transition);
}
.contact-item a:hover {
    color: var(--green-600);
    text-decoration: underline;
}

/* Contact Form */
.contact__form-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 44px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-form__title {
    font-size: 1.4rem;
    margin-bottom: 28px;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream-light);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-600);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(76,175,80,0.12);
}

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

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

.form-note {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 16px;
    text-align: center;
    line-height: 1.5;
}

/* Form Success */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success__icon {
    width: 72px;
    height: 72px;
    background: var(--green-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.form-success h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.form-success p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* --- Footer --- */
.footer {
    background: var(--green-900);
    color: rgba(255,255,255,0.75);
    padding: 72px 0 0;
}

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

.footer__tagline {
    font-size: 0.9rem;
    line-height: 1.75;
    margin-top: 16px;
    color: rgba(255,255,255,0.6);
    max-width: 300px;
}

.footer__links h4,
.footer__contact h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}
.footer__links a:hover {
    color: var(--orange-400);
}

.footer__emergency {
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.9);
}

.footer__emergency a {
    color: var(--orange-400);
    font-weight: 700;
}

.footer__contact p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.65);
}

.footer__contact a {
    color: rgba(255,255,255,0.75);
    transition: color var(--transition);
}
.footer__contact a:hover {
    color: var(--orange-400);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer__disclaimer {
    font-size: 0.78rem !important;
}

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

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about__grid {
        gap: 48px;
    }
    
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .community__card {
        grid-template-columns: 1fr;
    }
    
    .community__image {
        min-height: 300px;
        max-height: 300px;
    }
    
    .contact__grid {
        gap: 48px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--cream);
        padding: 100px 32px 40px;
        transition: right var(--transition);
        box-shadow: var(--shadow-xl);
        z-index: 1000;
    }
    
    .nav.open {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    
    .nav__link {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    .nav__cta {
        margin-left: 0;
        margin-top: 16px;
        justify-content: center;
        padding: 14px;
    }
    
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 999;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    .hero {
        padding: 120px 20px 80px;
        min-height: auto;
    }
    
    .hero__title {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }
    
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero__trust {
        gap: 20px;
    }
    
    .hero__trust-divider {
        display: none;
    }
    
    .about__grid {
        grid-template-columns: 1fr;
    }
    
    .about__image-accent {
        right: 16px;
        bottom: -24px;
    }
    
    .about__image-accent img {
        width: 240px;
        height: 180px;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .community__content {
        padding: 40px 28px;
    }
    
    .community__actions {
        flex-direction: column;
    }
    
    .community__actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact__grid {
        grid-template-columns: 1fr;
    }
    
    .contact__form-wrapper {
        padding: 28px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 100px 16px 60px;
    }
    
    .about, .services, .community, .contact {
        padding: 72px 0;
    }
    
    .about__image-badge {
        right: 16px;
        top: -16px;
        padding: 10px 14px;
        font-size: 0.82rem;
    }
}

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

@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;
    }
}
