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

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── Navbar ── */
.nav-scrolled {
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

/* ── Hero ── */
.hero-section {
    position: relative;
}

/* ── Floating Cards ── */
.card-float-1 {
    animation: float-slow 6s ease-in-out infinite;
}
.card-float-2 {
    animation: float-medium 5s ease-in-out infinite;
    animation-delay: -1s;
}
.card-float-3 {
    animation: float-slow 7s ease-in-out infinite;
    animation-delay: -3s;
}
.card-float-4 {
    animation: float-medium 4.5s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ── Service Cards ── */
.card-service {
    perspective: 800px;
}
.card-service > div {
    transform: translateZ(0);
    will-change: transform;
}

/* ── Reveal Animations (progressive enhancement) ── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ── Mobile Menu Transition ── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
#mobile-menu.open {
    max-height: 300px;
    padding-top: 0;
}

/* ── Utility ── */
::selection {
    background-color: rgba(217, 96, 50, 0.15);
    color: #a1371c;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf8f5; }
::-webkit-scrollbar-thumb { background: #d4c4b4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b8a08a; }
