*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-900: #0d3318;
    --green-800: #1a4d2e;
    --green-700: #236b3f;
    --green-600: #2d8a52;
    --green-500: #3aa864;
    --green-400: #5cc482;
    --green-100: #d1f0dc;
    --green-50: #eaf7ef;
    --off-white: #f8f7f4;
    --cream: #faf9f7;
    --warm-gray: #6b6560;
    --warm-gray-light: #9e9790;
    --text-primary: #1a1a18;
    --text-secondary: #4a4642;
    --text-muted: #7a7570;
    --line: rgba(26, 77, 46, 0.12);
    --line-strong: rgba(26, 77, 46, 0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-primary);
    background: var(--off-white);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.page-wrapper {
    position: relative;
}

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

/* Typography */
.section-eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.section-title em {
    font-style: italic;
    color: var(--green-700);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
    background: rgba(248, 247, 244, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--green-800);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
}

.nav-logo-icon {
    color: var(--green-700);
    flex-shrink: 0;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--green-700);
}

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

.nav-cta {
    background: var(--green-800) !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

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

.nav-cta:hover {
    background: var(--green-700) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 77, 46, 0.3);
}

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

.nav-toggle-bar {
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(45, 138, 82, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 60%, rgba(26, 77, 46, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 30%, rgba(58, 168, 100, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--green-50) 0%, var(--off-white) 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        linear-gradient(var(--green-800) 1px, transparent 1px),
        linear-gradient(90deg, var(--green-800) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 780px;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.15s forwards;
}

.hero-em {
    font-style: italic;
    color: var(--green-700);
    position: relative;
}

.hero-em::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green-400), var(--green-600));
    opacity: 0.4;
    border-radius: 2px;
}

.hero-sub {
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.45s forwards;
}

.hero-emergency {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeUp 0.8s ease 0.6s forwards;
}

.emergency-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-500);
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeUp 0.8s ease 0.75s forwards;
}

.hero-scroll svg {
    color: var(--green-600);
    opacity: 0.5;
    animation: scroll-bounce 2s ease-in-out infinite;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--green-800);
    color: white;
    box-shadow: 0 2px 8px rgba(26, 77, 46, 0.2);
}

.btn-primary:hover {
    background: var(--green-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 77, 46, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--green-700);
    border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
    background: var(--green-50);
    border-color: var(--green-400);
    transform: translateY(-2px);
}

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

/* Divider */
.divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.divider-line {
    height: 1px;
    background: var(--line);
}

/* About */
.about {
    padding: 100px 0;
}

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

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

.about-image-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 2px solid var(--green-200, #b8e4c8);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    color: var(--green-700);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Services */
.services {
    padding: 100px 0;
}

.services-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.services-intro {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.75;
}

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

.service-card {
    padding: 36px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--cream);
}

.service-card:hover {
    border-color: var(--green-300, #a8d8b8);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--green-50);
    color: var(--green-700);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--green-100);
    transform: scale(1.05);
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Community */
.community {
    padding: 100px 0;
}

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

.community-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
}

.community-list {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.community-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.community-list li svg {
    color: var(--green-600);
    flex-shrink: 0;
}

.community-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.community-img {
    border-radius: var(--radius);
    overflow: hidden;
}

.community-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.community-img:hover img {
    transform: scale(1.04);
}

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

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

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-size: 16px;
}

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

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

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: white;
    color: var(--green-700);
    flex-shrink: 0;
    border: 1px solid var(--line);
}

.contact-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.5;
}

.contact-value a {
    color: var(--green-700);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: var(--green-500);
    text-decoration: underline;
}

.emergency-value {
    color: var(--green-800);
    font-size: 16px;
}

/* Form */
.contact-form-wrap {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 300;
    color: var(--text-primary);
    background: var(--off-white);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green-500);
    background: white;
    box-shadow: 0 0 0 3px rgba(58, 168, 100, 0.1);
}

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

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

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: var(--radius);
    color: var(--green-800);
    font-size: 14px;
    margin-top: 16px;
}

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

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

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

.footer-brand a {
    text-decoration: none;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 20px;
}

.footer-logo-icon {
    color: var(--green-400);
}

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

.footer-links h4 {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.emergency-link {
    color: var(--green-400) !important;
    font-weight: 500 !important;
}

.footer-links address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links address a {
    color: rgba(255, 255, 255, 0.65);
}

.footer-links address a:hover {
    color: white;
}

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

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

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

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

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

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--off-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 40px;
        gap: 24px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        border-left: 1px solid var(--line);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

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

    .about-image-wrap {
        order: -1;
    }

    .about-image-accent {
        display: none;
    }

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

    .community-image-grid {
        grid-template-columns: 1fr;
    }

    .community-img img {
        height: 200px;
    }

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

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

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

    .hero {
        padding: 100px 20px 60px;
    }

    .about-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* Mobile overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}
