/* ============================================
   Stunner Status Salon — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Header ───────────────────────────────── */
#site-header {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#site-header.scrolled {
    background-color: rgba(30, 22, 18, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #F5C4B0 !important;
}

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

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

.mobile-nav-link {
    font-size: 1.75rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

#mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }

/* ── Hero ─────────────────────────────────── */
.hero-bg {
    will-change: transform;
}

.hero-scrim {
    background: linear-gradient(
        to bottom,
        rgba(20, 15, 12, 0.55) 0%,
        rgba(20, 15, 12, 0.40) 40%,
        rgba(20, 15, 12, 0.70) 100%
    );
}

.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-eyebrow {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero-sub {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-ctas {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-scroll-indicator {
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(245,228,211,0.6), rgba(245,228,211,0));
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

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

/* ── Buttons ──────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: #B85C38;
    color: #fefdfb;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #a04e30;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 92, 56, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: #F5E6D3;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.02em;
    border: 1px solid rgba(245, 230, 211, 0.35);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: rgba(245, 230, 211, 0.1);
    border-color: rgba(245, 230, 211, 0.6);
    transform: translateY(-2px);
}

/* ── Section Shared ───────────────────────── */
.section-eyebrow {
    display: block;
}

.section-title {
    font-weight: 400;
}

.section-desc {
    max-width: 28ch;
}

/* ── Service Cards ────────────────────────── */
.service-card {
    background-color: #ffffff;
    border: 1px solid #f3dbb8;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(30, 22, 18, 0.12);
}

.service-card-img-wrap {
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-img {
    transform: scale(1.06);
}

.service-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-icon {
    color: #B85C38;
}

.service-card-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.service-card-desc {
    margin-bottom: 0;
    flex: 1;
}

/* ── About ────────────────────────────────── */
.about-img-wrap {
    overflow: hidden;
    border-radius: 6px;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-img-wrap:hover .about-img {
    transform: scale(1.04);
}

.about-stat {
    border-radius: 6px;
}

/* ── Gallery ──────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 3 / 2;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 15, 12, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-label {
    color: #F5E6D3;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Testimonials ─────────────────────────── */
.testimonial-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(30, 22, 18, 0.08);
}

/* ── Contact Form ─────────────────────────── */
.contact-input {
    width: 100%;
}

.contact-input::placeholder {
    color: rgba(30, 22, 18, 0.2);
}

.contact-input:focus {
    outline: none;
    border-color: #ed9f82;
    box-shadow: 0 0 0 3px rgba(237, 159, 130, 0.15);
}

select.contact-input {
    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='%236c3623' stroke-width='2.5' 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;
}

/* ── Scroll Reveal ────────────────────────── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(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; }
    .reveal { opacity: 1; transform: none; }
    .hero-headline, .hero-eyebrow, .hero-sub, .hero-ctas {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Focus Visible ────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ed9f82;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Selection ────────────────────────────── */
::selection {
    background-color: rgba(184, 92, 56, 0.2);
    color: #1e1612;
}
