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

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf8f4; }
::-webkit-scrollbar-thumb { background: #1a2744; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #243352; }

/* ── Selection ── */
::selection { background: #c9a84c; color: #1a2744; }

/* ── Navigation ── */
#navbar {
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 39, 68, 0.06);
}
#navbar.scrolled {
    background: rgba(250, 248, 244, 0.97);
    box-shadow: 0 1px 20px rgba(26, 39, 68, 0.08);
}

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

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

/* ── Hamburger ── */
.menu-line { transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
body.menu-open .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
body.menu-open .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 5rem;
}

/* ── Section Labels ── */
.section-label {
    animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Hero Animations ── */
.hero-label { animation: heroIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards; }
.hero-title { animation: heroIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards; }
.hero-subtitle { animation: heroIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards; }
.hero-cta { animation: heroIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards; }
.hero-trust { animation: heroIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.75s forwards; }
.hero-image-wrapper { animation: heroImageIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards; }

@keyframes heroIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroImageIn {
    from { opacity: 0; transform: translateX(32px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ── Service Cards ── */
.service-card {
    transform: translateY(0);
}
.service-card:hover {
    transform: translateY(-4px);
}
.service-card:hover .w-14 {
    background: #1a2744;
}
.service-card:hover svg path,
.service-card:hover svg circle,
.service-card:hover svg rect {
    stroke: #c9a84c !important;
}

/* ── Gallery ── */
.gallery-item {
    overflow: hidden;
}
.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Testimonial Cards ── */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(26, 39, 68, 0.1) !important;
}

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

/* ── Button Focus ── */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* ── Smooth image loading ── */
img {
    background: linear-gradient(135deg, #ebe4d6 0%, #f5f0e8 100%);
}

/* ── Responsive Tweaks ── */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-image-wrapper {
        margin-top: 2rem;
    }
    .absolute.-bottom-6.-left-6 {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        margin-left: 1rem;
        max-width: 100%;
    }
}
