/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F5F0E8; }
::-webkit-scrollbar-thumb { background: #1B4332; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #153527; }

/* ── Header ── */
#site-header { transition: background-color 0.4s ease, box-shadow 0.4s ease; }
#site-header.scrolled {
    background-color: rgba(27, 67, 50, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

/* ── Mobile Menu ── */
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu.closed { opacity: 0; pointer-events: none; }
#mobile-menu.open .mobile-link { animation: fadeDown 0.4s ease forwards; opacity: 0; }
#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Hamburger ── */
.menu-line { transition: all 0.3s ease; }
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) { opacity: 0; }
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); width: 1.5rem; }

/* ── Stat Cards ── */
.stat-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ── Service Cards ── */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(27, 67, 50, 0.2);
}

/* ── Testimonial Cards ── */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* ── Scroll Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s 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; }

/* ── Floating Animation ── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.float-1 { animation: float 4s ease-in-out infinite; }
.float-2 { animation: float 4s ease-in-out 1s infinite; }
.float-3 { animation: float 4s ease-in-out 2s infinite; }
.float-4 { animation: float 4s ease-in-out 0.5s infinite; }

/* ── Gold Accent Line ── */
.gold-line {
    position: relative;
}
.gold-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #D4A373, transparent);
    border-radius: 2px;
}

/* ── Focus Styles ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #D4A373;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Selection ── */
::selection { background: #D4A373; color: #0f2617; }
