/* ============================================
   Head to Toe Salon — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F5;
}
::-webkit-scrollbar-thumb {
    background: #d4a0aa;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7B2D3B;
}

/* ---- Hero Section ---- */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(58, 19, 25, 0.82) 0%,
        rgba(123, 45, 59, 0.72) 50%,
        rgba(58, 19, 25, 0.85) 100%
    );
}

/* Hero entrance animations */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: heroEntrance 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroEntrance 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: heroEntrance 1s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

.hero-description {
    opacity: 0;
    transform: translateY(20px);
    animation: heroEntrance 1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

.hero-buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: heroEntrance 1s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}

.hero-scroll {
    opacity: 0;
    animation: heroEntrance 1s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards;
}

.hero-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes heroEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollLine {
    0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ---- Service Cards ---- */
.service-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
    transform: translateY(-6px);
}

/* ---- Navbar ---- */
.nav-link {
    position: relative;
}

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

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

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

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

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

/* ---- 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;
    }
}

/* ---- Selection ---- */
::selection {
    background: #7B2D3B;
    color: white;
}
