/* ============================================
   Hair By Ivan — Custom Styles
   Clean Minimalist | Plum + Amber Palette
   ============================================ */

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

::selection {
    background-color: rgba(176, 93, 136, 0.15);
    color: #562a3f;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf5f7;
}
::-webkit-scrollbar-thumb {
    background: #ddaac2;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b05d88;
}

/* --- Navigation --- */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(221, 170, 194, 0.2);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(46, 19, 32, 0.06);
}

.nav-link {
    position: relative;
}

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

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

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

.mobile-link {
    position: relative;
}

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

.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* --- Reveal Animations --- */
.reveal-text {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-gallery {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll-reveal variants — applied via JS */
[data-reveal] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal="left"] {
    transform: translateX(0);
}

[data-reveal="right"] {
    transform: translateX(0);
}

[data-reveal="scale"] {
    transform: scale(1);
}

/* --- 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(46, 19, 32, 0.08);
}

.service-card h3 {
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #7a3857;
}

/* --- 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='%23ddaac2' 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;
    padding-right: 2.5rem;
}

select:focus {
    border-color: #b05d88;
    outline: none;
}

/* --- Gallery Hover --- */
.reveal-gallery img {
    transition: transform 0.7s ease, filter 0.7s ease;
    filter: grayscale(20%);
}

.reveal-gallery img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}

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

/* --- Responsive --- */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}
