/* ── Base & Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Hero Gradient ─────────────────────────────────── */
.hero-gradient {
    background: linear-gradient(135deg, #134e4a 0%, #0f766e 30%, #115e59 60%, #1e293b 100%);
}

/* ── Hero Subtle Pattern ───────────────────────────── */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 40px 40px;
}

/* ── Hero Ornaments ────────────────────────────────── */
.hero-ornament {
    background: radial-gradient(circle, rgba(45,212,191,0.4) 0%, transparent 70%);
}

/* ── Testimonial Pattern ───────────────────────────── */
.testimonial-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
    background-size: 32px 32px;
}

/* ── Hero Animations ───────────────────────────────── */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes lineGrow {
    from { height: 0; opacity: 0; }
    to   { height: 40px; opacity: 1; }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-20px) scale(1.05); }
}

.hero-subtitle {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-headline {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-desc {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-ctas {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.hero-scroll {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

.hero-line {
    animation: lineGrow 0.6s ease forwards;
    animation-delay: 1.4s;
    opacity: 0;
}

.hero-ornament--1 {
    animation: floatSlow 8s ease-in-out infinite;
}

.hero-ornament--2 {
    animation: floatSlow 10s ease-in-out infinite reverse;
}

/* ── Hero Buttons ──────────────────────────────────── */
.hero-btn-primary {
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.hero-btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* ── Scroll Reveal (progressive enhancement) ───────── */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* ── Navbar Transition ─────────────────────────────── */
.nav-scrolled .nav-logo {
    color: #1e293b !important;
}
.nav-scrolled a:not(.hero-btn) {
    color: rgba(30,41,59,0.7) !important;
}
.nav-scrolled a:not(.hero-btn):hover {
    color: #1e293b !important;
}
.nav-scrolled #menu-btn {
    color: #1e293b !important;
}

/* ── Mobile Menu ───────────────────────────────────── */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ── Service Card Hover ────────────────────────────── */
.service-card {
    transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
}
.service-card:hover {
    transform: translateY(-4px);
}

/* ── Neighborhood Card ─────────────────────────────── */
.neighborhood-card {
    cursor: pointer;
}
.neighborhood-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,0);
    transition: border-color 0.4s ease;
    pointer-events: none;
}
.neighborhood-card:hover::after {
    border-color: rgba(255,255,255,0.2);
}

/* ── Testimonial Card ──────────────────────────────── */
.testimonial-card {
    transition: background 0.4s ease, transform 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ── Focus Styles ──────────────────────────────────── */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* ── Selection ─────────────────────────────────────── */
::selection { background: rgba(13,148,136,0.2); color: #134e4a; }
