/* ============================================
   Jade and Jadyn the Salon — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #7B2D5B;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 9999;
    font-weight: 600;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ── Navbar ── */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 242, 248, 0);
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-scrolled.scrolled {
    background: rgba(253, 242, 248, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 45, 91, 0.1);
    box-shadow: 0 4px 20px rgba(123, 45, 91, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: #F5C518;
    border-radius: 1px;
    transition: transform 0.2s ease, width 0.2s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
    width: 24px;
}

/* ── Mobile Menu ── */
.mobile-menu-btn {
    transition: background 0.2s ease;
}

.mobile-menu {
    box-shadow: none;
}

.mobile-menu.open {
    max-height: 400px;
    box-shadow: 0 10px 40px rgba(123, 45, 91, 0.1);
}

.mobile-nav-link {
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:hover {
    padding-left: 0.75rem;
}

/* ── Hero ── */
.hero {
    position: relative;
}

.hero-bg {
    will-change: transform;
}

.hero-img {
    will-change: transform;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(42, 13, 30, 0.82) 0%,
        rgba(123, 45, 91, 0.65) 50%,
        rgba(42, 13, 30, 0.85) 100%
    );
}

.hero-content {
    padding-top: 80px;
}

.hero-title {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.hero-blob {
    transition: transform 8s ease-in-out infinite;
}

.hero-blob-1 {
    animation: blobFloat1 10s ease-in-out infinite;
}

.hero-blob-2 {
    animation: blobFloat2 12s ease-in-out infinite;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-25px, 25px) scale(1.08); }
    66% { transform: translate(15px, -15px) scale(0.92); }
}

/* ── Scroll Indicator ── */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
    50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ── Trust Bar ── */
.trust-bar {
    transition: transform 0.3s ease;
}

.trust-item {
    transition: transform 0.2s ease;
}

.trust-item:hover {
    transform: translateY(-2px);
}

/* ── Service Cards ── */
.service-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-link {
    transition: color 0.2s ease;
}

.service-link svg {
    transition: transform 0.2s ease;
}

/* ── About Section ── */
.about-img {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-img-main:hover .about-img {
    transform: scale(1.03);
}

.about-float-card {
    animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.about-stat {
    transition: transform 0.2s ease;
}

.about-stat:hover {
    transform: translateY(-3px);
}

/* ── Gallery ── */
.gallery-item {
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(123, 45, 91, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

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

.gallery-img {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Testimonials ── */
.testimonial-slide {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-dot {
    transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
}

.testimonial-dot.active {
    background: #F5C518;
    transform: scale(1.3);
    width: 24px;
    border-radius: 12px;
}

.testimonial-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
}

/* ── Contact Form ── */
.contact-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-input:focus {
    border-color: #F5C518;
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.2);
    transform: translateY(-1px);
}

.contact-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.contact-submit {
    position: relative;
    overflow: hidden;
}

.contact-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.contact-submit:hover::before {
    left: 100%;
}

/* ── Footer ── */
.footer-social-icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

.footer-social-icon:hover {
    transform: scale(1.15) rotate(-5deg);
}

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

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

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

    .scroll-indicator {
        animation: none;
        opacity: 0.4;
    }

    .hero-blob {
        animation: none;
    }

    .about-float-card {
        animation: none;
    }

    .gallery-img {
        transition: none;
    }

    .gallery-item:hover .gallery-img {
        transform: none;
    }
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .services-grid {
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .about-float-card {
        position: relative;
        bottom: auto;
        right: auto;
        max-width: 100%;
        margin-top: 1rem;
    }

    .contact-grid {
        gap: 2rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .about-grid {
        gap: 3rem;
    }
}

/* ── Print ── */
@media print {
    .nav-scrolled,
    .scroll-indicator,
    .hero-blob,
    .cta-blob-1,
    .cta-blob-2,
    .testimonial-blob-1,
    .testimonial-blob-2 {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-overlay {
        background: rgba(123, 45, 91, 0.9) !important;
    }
}
