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

/* ── Navbar ─────────────────────────────────────── */
#navbar {
    background: transparent;
}
#navbar.scrolled {
    background: rgba(45, 10, 14, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.nav-link { color: rgba(255,255,255,0.8); }
.nav-link:hover { color: #fff; }

/* ── Hero Animations ────────────────────────────── */
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards 0.3s;
}
.hero-title {
    animation: fadeUp 0.8s ease forwards 0.5s;
}
.hero-desc {
    animation: fadeUp 0.8s ease forwards 0.7s;
}
.hero-cta {
    animation: fadeUp 0.8s ease forwards 0.9s;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Indicator ───────────────────────────── */
.scroll-indicator { animation: pulse-down 2s ease-in-out infinite; }
@keyframes pulse-down {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
    50%       { opacity: 1;   transform: translateX(-50%) translateY(6px); }
}

/* ── Section Layout ─────────────────────────────── */
.section-label { display: block; }
.section-title { line-height: 1.1; }
.section-line  { transition: width 0.4s ease; }

/* ── Property Cards ─────────────────────────────── */
.property-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.property-card.revealed {
    opacity: 1;
    transform: translateY(0);
}
.property-card:nth-child(2) { transition-delay: 0.1s; }
.property-card:nth-child(3) { transition-delay: 0.2s; }

/* ── Area Cards ─────────────────────────────────── */
.area-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.area-card.revealed {
    opacity: 1;
    transform: translateY(0);
}
.area-card:nth-child(2) { transition-delay: 0.1s; }
.area-card:nth-child(3) { transition-delay: 0.2s; }
.area-card:nth-child(4) { transition-delay: 0.3s; }

/* ── Testimonial Cards ──────────────────────────── */
.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.testimonial-card.revealed {
    opacity: 1;
    transform: translateY(0);
}
.testimonial-card:nth-child(2) { transition-delay: 0.15s; }

/* ── Mobile Menu ────────────────────────────────── */
.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.25s; }

/* ── Form Focus States ──────────────────────────── */
input:focus, textarea:focus {
    box-shadow: 0 0 0 1px rgba(123, 45, 59, 0.3);
}

/* ── Reduced Motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .property-card, .area-card, .testimonial-card {
        opacity: 1;
        transform: none;
    }
    .hero-subtitle, .hero-title, .hero-desc, .hero-cta {
        opacity: 1;
        transform: none;
    }
}

/* ── Responsive Tweaks ──────────────────────────── */
@media (max-width: 640px) {
    .section-title { font-size: 2.25rem; }
}
