/* ============================================
   MAGNOLIA JANE NAILS — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5fcf9;
}

::-webkit-scrollbar-thumb {
    background: #1a2f4d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4ab396;
}

/* Selection */
::selection {
    background: #4ab396;
    color: #fff;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

#navbar.scrolled .nav-logo-color {
    color: #0a1628;
}

#navbar.scrolled .nav-sub-color {
    color: #223c60;
}

#navbar.scrolled .menu-line {
    background: #0a1628;
}

#navbar.scrolled .nav-link {
    color: #1a2f4d;
}

/* ============================================
   MOBILE MENU
   ============================================ */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

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

#menuBtn.open .menu-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

#menuBtn.open .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.open .menu-line:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.1);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal[data-reveal="delay-1"] { transition-delay: 0.1s; }
    .reveal[data-reveal="delay-2"] { transition-delay: 0.2s; }
    .reveal[data-reveal="delay-3"] { transition-delay: 0.3s; }
    .reveal[data-reveal="delay-4"] { transition-delay: 0.4s; }
    .reveal[data-reveal="delay-5"] { transition-delay: 0.5s; }
    .reveal[data-reveal="delay-6"] { transition-delay: 0.6s; }

    /* Hidden state applied via JS for progressive enhancement */
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Fallback: ensure content is always visible even if JS is disabled */
.reveal-hidden {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ============================================
   FORM STYLES
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(74, 179, 150, 0.15);
}

/* ============================================
   IMAGE HOVER EFFECTS
   ============================================ */
img {
    display: block;
    max-width: 100%;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}

@media (max-width: 640px) {
    nav {
        padding: 0 1rem;
    }
}
