/* ============================================
   SHEAR AMBIANCE — Custom Styles
   Classic & Elegant Beauty Salon
   ============================================ */

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(140, 31, 37, 0.15);
    color: #410b0d;
}

/* ---- Navbar ---- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 247, 244, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled #logo-text,
#navbar.scrolled .nav-link {
    color: #410b0d;
}

#navbar.scrolled .nav-link {
    color: #6d5c4e;
}

.nav-link {
    position: relative;
}

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

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

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

#mobile-menu:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    position: relative;
}

/* ---- Hero Animations ---- */
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-desc {
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-cta {
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-stats {
    animation: fadeUp 0.8s ease forwards 1s;
}

.hero-img-main {
    animation: fadeIn 1s ease forwards 0.5s;
    opacity: 0;
}

.hero-img-accent {
    animation: fadeIn 1s ease forwards 0.8s;
    opacity: 0;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---- Scroll Indicator ---- */
@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

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

/* ---- Section Headers ---- */
.section-header,
.section-about-header,
.section-gallery-header,
.section-quote,
.section-contact-info,
.section-contact-form {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-header.visible,
.section-about-header.visible,
.section-gallery-header.visible,
.section-quote.visible,
.section-contact-info.visible,
.section-contact-form.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Service Cards ---- */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.5s; }

/* ---- About Section ---- */
.about-images {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-images.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-text {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-values {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.about-values.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Gallery ---- */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item:nth-child(1) { transition-delay: 0s; }
.gallery-item:nth-child(2) { transition-delay: 0.05s; }
.gallery-item:nth-child(3) { transition-delay: 0.1s; }
.gallery-item:nth-child(4) { transition-delay: 0.15s; }
.gallery-item:nth-child(5) { transition-delay: 0.2s; }
.gallery-item:nth-child(6) { transition-delay: 0.25s; }
.gallery-item:nth-child(7) { transition-delay: 0.3s; }
.gallery-item:nth-child(8) { transition-delay: 0.35s; }

/* ---- Contact ---- */
#contact .grid > div:first-child {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#contact .grid > div:first-child.visible {
    opacity: 1;
    transform: translateY(0);
}

#contact .grid > div:last-child {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

#contact .grid > div:last-child.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Smooth Image Loading ---- */
img {
    background-color: #e8e2da;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a82327;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 767px) {
    .hero-img-main {
        height: 450px;
    }

    .hero-img-accent {
        width: 100px;
        height: 130px;
        bottom: -4px;
        left: -4px;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stats > div:first-child {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-stats > div:first-child div:last-child {
        margin-left: 0;
    }

    .hero-stats > div:last-child {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-stats .w-px {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-img-main {
        height: 550px;
    }
}

/* ---- Print Styles ---- */
@media print {
    #navbar,
    .scroll-indicator,
    .hero-cta {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
