/* ── Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #060F1D; }
::-webkit-scrollbar-thumb { background: rgba(212,160,23,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212,160,23,0.5); }

/* ── Selection ──────────────────────────────────────── */
::selection { background: rgba(212,160,23,0.3); color: #FCD34D; }

/* ── Navbar ─────────────────────────────────────────── */
#navbar.scrolled {
    background: rgba(6, 15, 29, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 4px 40px rgba(0,0,0,0.3);
}

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

/* ── Service Cards ──────────────────────────────────── */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212,160,23,0.4), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.service-card:hover::after { opacity: 1; }

/* ── Listing Cards ──────────────────────────────────── */
.listing-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(212,160,23,0.06);
}

/* ── Testimonial Cards ──────────────────────────────── */
.testimonial-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

/* ── Gold shimmer accent line ───────────────────────── */
.gold-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4A017, transparent);
    opacity: 0.4;
}

/* ── Reveal animations (progressive enhancement) ───── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ── Focus visible ──────────────────────────────────── */
:focus-visible {
    outline: 2px solid rgba(212,160,23,0.6);
    outline-offset: 2px;
}

/* ── Select arrow ───────────────────────────────────── */
select {
    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='%23ffffff40' 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 12px center;
    padding-right: 36px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
    html { scroll-padding-top: 70px; }
}
