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

::selection { background: #d4a84b; color: #0f2440; }

/* ── Navbar ──────────────────────────────────────────── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(15, 36, 64, 0.08);
}
#navbar.scrolled .font-serif,
#navbar.scrolled .text-navy-800 { color: #0f2440; }
#navbar.scrolled .text-navy-600 { color: #1a3558; }

/* ── Hero Stat Cards ─────────────────────────────────── */
.stat-card {
    animation: floatIn 0.6s ease-out both;
}
.stat-card:nth-child(1) { animation-delay: 0.3s; }
.stat-card:nth-child(2) { animation-delay: 0.45s; }
.stat-card:nth-child(3) { animation-delay: 0.6s; }
.stat-card:nth-child(4) { animation-delay: 0.75s; }

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

/* ── Service Cards ───────────────────────────────────── */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4a84b, #c9982e);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.service-card:hover::after {
    transform: scaleX(1);
}

/* ── Testimonial Cards ───────────────────────────────── */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(15, 36, 64, 0.12);
}

/* ── Scroll Reveal ───────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    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; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Mobile Menu Transition ──────────────────────────── */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 767px) {
    .font-serif { line-height: 1.15; }
}
