/* ═══════════════════════════════════════════════════════
   TLJC THE SALON — Custom Styles
   ═══════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
}

/* ── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
    background: #a11d35;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #841d33;
}

/* ── Navigation ──────────────────────────────────────── */
#nav {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#nav.scrolled {
    background-color: rgba(254, 253, 251, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(132, 29, 51, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a11d35, #ff87a3);
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

#nav:not(.scrolled) .nav-link {
    color: rgba(254, 253, 251, 0.85);
}

#nav:not(.scrolled) .nav-link:hover {
    color: #ffb8cc;
}

#nav:not(.scrolled) .nav-link::after {
    background: linear-gradient(90deg, #ffb8cc, #ff87a3);
}

#nav:not(.scrolled) .font-display {
    color: rgba(254, 253, 251, 0.95);
}

#nav:not(.scrolled) .font-light {
    color: rgba(255, 184, 204, 0.9) !important;
}

#nav:not(.scrolled) .bg-burgundy-800 {
    background-color: rgba(161, 29, 53, 0.7);
    backdrop-filter: blur(8px);
}

#nav:not(.scrolled) .bg-burgundy-800:hover {
    background-color: rgba(196, 42, 68, 0.85);
}

/* ── Mobile Menu ─────────────────────────────────────── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.menu-line {
    display: block;
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

#menu-btn[aria-expanded="true"] {
    background-color: rgba(161, 29, 53, 0.1);
}

/* ── Service Cards ───────────────────────────────────── */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a11d35, #ff87a3, #a11d35);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ── Gallery Items ───────────────────────────────────── */
.gallery-item {
    cursor: pointer;
}

/* ── Testimonial Cards ───────────────────────────────── */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: border-color 0.4s ease;
    pointer-events: none;
}

.testimonial-card:hover::after {
    border-color: rgba(255, 135, 163, 0.3);
}

/* ── Scroll Reveal Animations (progressive enhancement) ─ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .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; }
}

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

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

/* ── Selection ───────────────────────────────────────── */
::selection {
    background-color: rgba(161, 29, 53, 0.2);
    color: #1a1a1a;
}
