/* ========================================
   Tesh's Hair Salon — Custom Styles
   Classic & Elegant | Emerald + Cream
======================================== */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(30, 70, 41, 0.2);
    color: #1e4629;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8ec89e;
}

/* ---------- Scroll Reveal ---------- */
.scroll-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);
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Navbar ---------- */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 252, 250, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(30, 70, 41, 0.08);
}

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

#navbar.scrolled .nav-link:hover {
    color: #2d6e3d;
}

#navbar.scrolled #nav-logo-text,
#navbar.scrolled #nav-subtitle {
    color: #1e4629;
}

#navbar.scrolled .menu-line {
    background-color: #1e4629;
}

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

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

/* ---------- Hero ---------- */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, #fdfcfa, transparent);
    pointer-events: none;
    z-index: 1;
}

/* ---------- Buttons ---------- */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ---------- Form ---------- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232d6e3d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

select:focus {
    outline: none;
    border-color: #2d6e3d;
    box-shadow: 0 0 0 3px rgba(45, 110, 61, 0.1);
}

/* ---------- Map ---------- */
iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* ---------- Utility ---------- */
@media (max-width: 767px) {
    #hero::after {
        height: 80px;
    }
}

/* ---------- Print ---------- */
@media print {
    #navbar, #mobile-menu-btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
