/* Nail Atelier demo, isolated to its dedicated page. */

:root {
    --cream: #FBF6F2;
    --blush: #F3E4E0;
    --rose: #C98D86;
    --rose-dark: #A96B64;
    --gold: #C9A227;
    --silver: #F4F3F5;
    --silver-mid: #D9D6DC;
    --ink: #2B2321;
    --ink-soft: #6B5E5A;
    --serif: 'Cormorant Garamond', serif;
    --sans: 'Jost', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Preloader ---------- */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(135deg, var(--blush) 0%, var(--silver) 100%);
    display: flex; align-items: center; justify-content: center;
}
#preloader .loader-text {
    font-family: var(--serif);
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--rose);
    font-style: italic;
}

/* ---------- Custom cursor ---------- */
.cursor-dot {
    position: fixed; top: 0; left: 0; width: 12px; height: 12px;
    background: var(--rose); border-radius: 50%;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 0; transition: background .3s, padding .3s;
}
.site-header.scrolled {
    background: rgba(251, 246, 242, .92);
    backdrop-filter: blur(12px);
    padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo {
    font-family: var(--serif); font-size: 1.6rem; color: var(--ink);
    text-decoration: none; font-style: italic;
}
.site-logo .custom-logo-link { display: inline-flex; align-items: center; }
.site-logo .custom-logo { width: auto; max-height: 54px; }
.main-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
    text-decoration: none; color: var(--ink); font-size: .9rem;
    letter-spacing: .1em; text-transform: uppercase; position: relative;
}
.main-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -4px;
    width: 0; height: 1px; background: var(--rose); transition: width .3s;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { width: 100%; }
.btn-book {
    background: var(--ink); color: var(--cream); padding: 12px 28px;
    text-decoration: none; border-radius: 50px; font-size: .85rem;
    letter-spacing: .1em; text-transform: uppercase;
    transition: background .3s; display: inline-flex; align-items: center; justify-content: center;
}
.btn-book:hover, .btn-book:focus-visible { background: var(--rose-dark); }

.menu-toggle {
    display: none;
    width: 44px; height: 44px; border: 0; background: transparent;
    align-items: center; justify-content: center; flex-direction: column; gap: 5px;
    cursor: pointer; color: var(--ink);
}
.menu-toggle span { width: 24px; height: 1.5px; background: currentColor; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(251,246,242,.98);
    display: none; align-items: center; justify-content: center;
    padding: 100px 24px 40px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav ul { list-style: none; text-align: center; display: grid; gap: 24px; }
.mobile-nav a { color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 2rem; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: 100px; }
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-title { font-size: clamp(3rem, 9vw, 7.5rem); line-height: 1.02; max-width: 760px; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word { display: inline-block; }
.hero-title em { color: var(--rose); font-style: italic; }
.hero-sub { max-width: 420px; margin-top: 28px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; }
.hero-cta { margin-top: 40px; display: flex; gap: 16px; align-items: center; }
.hero-image {
    position: absolute; right: 6vw; top: 50%; transform: translateY(-50%);
    width: 34vw; max-width: 480px; aspect-ratio: 3/4;
    border-radius: 200px 200px 24px 24px; overflow: visible;
    z-index: 1;
}
.hero-image-frame { width: 100%; height: 100%; overflow: hidden; border-radius: inherit; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
    position: absolute; bottom: -30px; left: -40px;
    background: #fff;
    color: var(--rose-dark);
    border: 1px solid var(--silver-mid);
    box-shadow: 0 12px 28px rgba(42, 35, 48, .12);
    padding: 20px 26px;
    border-radius: 16px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    z-index: 3;
}

/* ---------- Marquee ---------- */
.marquee {
    background: linear-gradient(90deg, var(--silver) 0%, var(--blush) 50%, var(--silver) 100%);
    color: var(--ink);
    padding: 18px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--silver-mid);
    border-bottom: 1px solid var(--silver-mid);
}
.marquee-track { display: inline-flex; gap: 48px; padding-right: 48px; will-change: transform; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: 1.4rem; }
.marquee .dot { color: var(--rose); }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-label {
    font-size: .8rem; letter-spacing: .3em; text-transform: uppercase;
    color: var(--rose); margin-bottom: 16px; display: block;
}
.section-title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 48px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card {
    background: #fff; border-radius: 20px; padding: 40px 32px;
    transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(169,107,100,.15); }
.service-card .num { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--rose); }
.service-card h3 { font-size: 1.6rem; margin: 16px 0 12px; }
.service-card p { color: var(--ink-soft); line-height: 1.65; font-size: .95rem; }
.service-card .price { display: inline-block; margin-top: 20px; font-weight: 500; letter-spacing: .05em; }

/* Gallery */
.gallery {
    background: linear-gradient(180deg, var(--silver) 0%, var(--blush) 100%);
    color: var(--ink);
}
.gallery .section-title { color: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 0 12px 32px rgba(42, 35, 48, .10);
    transition: box-shadow .4s;
}
.gallery-item:hover { box-shadow: 0 20px 44px rgba(242, 108, 167, .22); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.06); }

/* Pricing */
.price-list { max-width: 720px; margin: 0 auto; }
.price-row {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 22px 0; border-bottom: 1px solid #E8DDD8;
}
.price-row .name { font-family: var(--serif); font-size: 1.4rem; }
.price-row .dots { flex: 1; border-bottom: 1px dashed #D8CBC5; margin: 0 16px; }
.price-row .value { font-size: 1.1rem; color: var(--rose-dark); font-weight: 500; white-space: nowrap; }

/* CTA */
.booking-cta {
    background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
    color: #fff; text-align: center; border-radius: 32px;
    padding: 90px 40px; margin: 0 24px;
}
.booking-cta h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); color: #fff; }
.booking-cta p { margin: 16px auto 36px; max-width: 480px; opacity: .9; }
.btn-light {
    background: #fff; color: var(--ink); padding: 16px 40px;
    text-decoration: none; border-radius: 50px;
    letter-spacing: .1em; text-transform: uppercase; font-size: .85rem;
    display: inline-block;
}

/* Footer */
.site-footer {
    background: var(--ink);
    background: linear-gradient(135deg, var(--silver-mid) 0%, var(--silver) 60%, var(--blush) 100%);
    color: var(--ink);
    padding: 60px 0 30px;
    border-top: 1px solid var(--silver-mid);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--ink); }
.site-footer .logo { color: var(--ink); }
.site-footer nav ul { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; }

/* ---------- Reveal states (GSAP) ---------- */
.reveal { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hero-title { max-width: 58vw; }
    .hero-image { right: 3vw; width: 38vw; }
}

@media (max-width: 900px) {
    .site-header { background: rgba(251,246,242,.94); backdrop-filter: blur(12px); }
    .main-nav, .header-inner > .btn-book { display: none; }
    .menu-toggle { display: inline-flex; position: relative; z-index: 110; }

    .hero {
        display: block;
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 90px;
    }
    .hero-title { max-width: 100%; font-size: clamp(3.2rem, 14vw, 6rem); }
    .hero-sub { max-width: 560px; }
    .hero-image {
        position: relative; right: auto; top: auto; transform: none;
        width: min(100%, 520px); max-width: 520px; margin: 56px auto 0;
    }
    .hero-badge { left: 16px; bottom: -24px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .container { padding: 0 18px; }
    section { padding: 80px 0; }
    .gallery-grid { grid-template-columns: 1fr; }
    .service-card { padding: 32px 24px; }
    .booking-cta { margin: 0 16px; padding: 64px 24px; border-radius: 24px; }
    .price-row { gap: 10px; }
    .price-row .dots { display: none; }
    .price-row .name { font-size: 1.2rem; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
    #preloader { display: none !important; }
    .cursor-dot { display: none !important; }
}

/* Demo navigation and motion preferences. */
.demo-return { color:var(--ink); font:500 .8rem var(--sans); text-decoration:underline; }
@media(max-width:767px){.site-header{backdrop-filter:none}.site-footer .footer-inner{gap:1.25rem}.mobile-nav{overflow-y:auto}.site-header .demo-return{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
