/* ========================================
   Milagros Beauty Salon — Custom Styles
   ======================================== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* ========================================
   Navigation
   ======================================== */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ========================================
   Hero Animations
   ======================================== */
.hero-subtitle {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}
.hero-title {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}
.hero-desc {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}
.hero-cta {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

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

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 2px;
    padding: 0;
    transition: all 0.4s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.service-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    transform: translateY(-4px);
    border-color: transparent;
}

/* ========================================
   Reveal Animations (scroll-triggered)
   ======================================== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .service-card,
    .hero-subtitle,
    .hero-title,
    .hero-desc,
    .hero-cta {
        animation: none;
        transition: none;
        opacity: 1 !important;
        transform: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ========================================
   Form Styling
   ======================================== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* ========================================
   Utility
   ======================================== */
::selection {
    background: #0d9488;
    color: #fff;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    @media (min-width: 640px) {
        .hero-title {
            font-size: 3.5rem;
        }
    }
    @media (min-width: 768px) {
        .hero-title {
            font-size: 4rem;
        }
    }
    @media (min-width: 1024px) {
        .hero-title {
            font-size: 5rem;
        }
    }
}
