/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --charcoal-900: #0d0d0d;
    --charcoal-800: #141414;
    --charcoal-700: #1c1c1c;
    --coral-500: #e8655b;
    --coral-400: #f0786e;
    --gold-400: #c9a84c;
}

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

body {
    background-color: var(--charcoal-900);
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--coral-500);
    color: #fff;
}

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

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

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: var(--coral-400) !important;
}

/* Mobile menu */
#mobile-menu {
    z-index: 50;
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu:not(.open) {
    transform: translateX(-100%);
}

.mobile-link {
    position: relative;
}

/* Hamburger animation */
#menu-btn.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active #bar2 {
    opacity: 0;
}

#menu-btn.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ========== HERO ========== */
.hero-tag {
    animation: slideInLeft 0.8s ease forwards 0.2s;
    opacity: 0;
}

.hero-title {
    animation: slideInUp 0.8s ease forwards 0.4s;
    opacity: 0;
}

.hero-subtitle {
    animation: slideInUp 0.8s ease forwards 0.6s;
    opacity: 0;
}

.hero-cta {
    animation: slideInUp 0.8s ease forwards 0.8s;
    opacity: 0;
}

.hero-trust {
    animation: slideInUp 0.8s ease forwards 1s;
    opacity: 0;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SERVICE CARDS ========== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--coral-500), var(--gold-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ========== NEIGHBORHOOD CARDS ========== */
.neighborhood-card {
    position: relative;
    overflow: hidden;
}

.neighborhood-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: border-color 0.5s ease;
    pointer-events: none;
}

.neighborhood-card:hover::after {
    border-color: rgba(232, 101, 91, 0.3);
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 6rem;
    line-height: 1;
    color: rgba(232, 101, 91, 0.08);
    pointer-events: none;
}

/* ========== SECTION REVEAL ANIMATION ========== */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Stagger children */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

.neighborhood-card:nth-child(1) { transition-delay: 0.05s; }
.neighborhood-card:nth-child(2) { transition-delay: 0.1s; }
.neighborhood-card:nth-child(3) { transition-delay: 0.15s; }
.neighborhood-card:nth-child(4) { transition-delay: 0.2s; }
.neighborhood-card:nth-child(5) { transition-delay: 0.25s; }
.neighborhood-card:nth-child(6) { transition-delay: 0.3s; }

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--charcoal-900);
}

::-webkit-scrollbar-thumb {
    background: var(--charcoal-500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--coral-500);
}

/* ========== FORM STYLES ========== */
select option {
    background: var(--charcoal-700);
    color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-trust {
        gap: 6px !important;
    }

    .hero-trust > div {
        min-width: 80px;
    }

    .testimonial-card::before {
        font-size: 4rem;
        top: 12px;
        right: 16px;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }

    .hero-title {
        font-size: 2rem !important;
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .section-reveal {
        opacity: 1;
        transform: none;
    }
}
