/* ═══════════════════════════════════════════════
   Custom Beauty — Custom Styles
   Deep Navy + Warm Gold | Vibrant Modern
   ═══════════════════════════════════════════════ */

/* ── Base ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #D4A84B;
    color: #0A1D3A;
}

/* ── Scroll indicator animation ── */
@keyframes scroll-indicator {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.animate-scroll-indicator {
    animation: scroll-indicator 1.5s ease-in-out infinite;
}

/* ── Service card hover ── */
.service-card {
    border: 1px solid rgba(10, 29, 58, 0.06);
}

.service-card:hover {
    border-color: rgba(212, 168, 75, 0.3);
    transform: translateY(-4px);
}

/* ── Nav link underline ── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4A84B;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ── Mobile nav link ── */
.mobile-nav-link {
    position: relative;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .animate-float-slow,
    .animate-float-medium,
    .animate-float-fast {
        animation: none;
    }
    .animate-scroll-indicator {
        animation: none;
    }
}

/* ── Navbar scroll state ── */
.navbar-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(10, 29, 58, 0.08);
}

/* ── Back to top ── */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#back-to-top:not(.visible) {
    transform: translateY(10px);
}

/* ── Image placeholder fallback ── */
img {
    max-width: 100%;
    height: auto;
}

/* ── Focus styles ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #D4A84B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Smooth transitions for all interactive elements ── */
button, a, input, textarea, select {
    transition: all 0.3s ease;
}

/* ── Mobile menu transitions ── */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
