/* ── Base & Typography ── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ── Navigation ── */
.nav {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.08);
}

.nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.25s ease;
    border-radius: 1px;
}

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

/* ── Buttons ── */
.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.35);
    background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: #064e3b;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(6, 78, 59, 0.2);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: #059669;
    background: rgba(6, 78, 59, 0.04);
    transform: translateY(-2px);
}

/* ── Inputs ── */
.input {
    background: white;
    border: 1.5px solid rgba(6, 78, 59, 0.12);
    border-radius: 12px;
    padding: 0.8125rem 1rem;
    font-size: 0.9375rem;
    color: #064e3b;
    transition: all 0.2s ease;
    font-family: 'DM Sans', system-ui, sans-serif;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.input::placeholder {
    color: #a7c4b5;
}

.input:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.input:hover:not(:focus) {
    border-color: rgba(5, 150, 105, 0.35);
}

select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, #fefdf8 0%, #ecfdf5 50%, #d1fae5 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(209, 250, 229, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* ── Service Cards ── */
.service-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid rgba(6, 78, 59, 0.06);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(6, 78, 59, 0.08);
    border-color: rgba(5, 150, 105, 0.15);
}

/* ── Neighborhood Cards ── */
.neighborhood-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(6, 78, 59, 0.06);
    transition: all 0.3s ease;
}

.neighborhood-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(6, 78, 59, 0.08);
}

/* ── Testimonial Cards ── */
.testimonial-card {
    transition: all 0.3s ease;
}

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

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

.scroll-reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal.revealed:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal.revealed:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal.revealed:nth-child(6) { transition-delay: 0.5s; }

/* ── Mobile Menu ── */
.mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease, pointer-events 0.3s ease;
}

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

.mobile-menu.closed {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.mobile-nav-link {
    display: block;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: #059669;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    .hero .order-1 {
        order: 2;
    }

    .hero .order-2 {
        order: 1;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-image {
        max-height: 400px;
    }

    .hero-image img {
        height: 100%;
    }

    .floating-badge {
        display: none;
    }
}

/* ── Subtle pattern overlay ── */
.hero::before {
    background-image: radial-gradient(circle at 1px 1px, rgba(6, 78, 59, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}
