/* =============================================
   GLOBAL CSS — Samatta Vogue
   ============================================= */

:root {
    --gold:    #b8975a;
    --gold-lt: #d4b87a;
    --dark:    #0d0d0d;
    --dark-2:  #1a1a1a;
    --mid:     #2e2e2e;
    --light:   #f7f4ef;
    --cream:   #fdfbf8;
    --grey:    #888;

    --font-display: 'Playfair Display', serif;
    --font-body:    'Montserrat', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-expo:  cubic-bezier(0.7, 0, 0.84, 0);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    cursor: none;
}

/* ── Custom cursor ── */
.cursor {
    width: 12px; height: 12px;
    background: var(--gold);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
}
.cursor-follower {
    width: 36px; height: 36px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.25s var(--ease-out-expo), width 0.3s, height 0.3s;
}
.cursor.hover { width: 6px; height: 6px; background: var(--gold-lt); }
.cursor-follower.hover { width: 56px; height: 56px; border-color: var(--gold-lt); }

/* ── Navigation ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem 4rem;
    transition: background 0.5s ease, padding 0.4s ease, backdrop-filter 0.5s;
}
.nav.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    padding: 1rem 4rem;
}
.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo-img { height: 48px; object-fit: contain; mix-blend-mode: screen; filter: brightness(2); }
.nav-logo-text { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }
.nav-links { display: flex; gap: 2.5rem; }
.nav-link {
    font-family: var(--font-body); font-size: 0.75rem; font-weight: 500;
    letter-spacing: 2px; text-transform: uppercase;
    color: rgba(247,244,239,0.75); text-decoration: none;
    position: relative; padding-bottom: 4px;
    transition: color 0.3s;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 1px; background: var(--gold);
    transition: width 0.4s var(--ease-out-expo);
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-menu-btn {
    display: none; flex-direction: column; gap: 6px;
    background: none; border: none; cursor: none; padding: 4px;
}
.nav-menu-btn span {
    display: block; width: 28px; height: 1px; background: var(--light);
    transition: all 0.4s ease;
}
.nav-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; }
.nav-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu ── */
.mobile-menu {
    position: fixed; inset: 0; z-index: 900;
    background: var(--dark);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.6s var(--ease-out-expo);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-nav-link {
    font-family: var(--font-display); font-size: 2.5rem; font-weight: 400;
    color: var(--light); text-decoration: none;
    transition: color 0.3s;
}
.mobile-nav-link:hover { color: var(--gold); }

/* ── Page Transition Overlay ── */
.page-transition {
    position: fixed; inset: 0; z-index: 9000;
    pointer-events: none;
}
.page-transition.active { pointer-events: all; }

.morph-image-container {
    position: absolute; inset: 0;
    overflow: hidden;
}

/* JS drives opacity & transform inline — no default transition here */
.morph-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    display: block;
    will-change: opacity, transform;
}

.transition-curtain {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 0%;
    background: var(--dark);
    /* JS overrides this inline too */
    will-change: height;
}

/* Slogan-style label shown during transition */
.transition-label {
    position: absolute;
    bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
    pointer-events: none;
}
.page-transition.active .transition-label { opacity: 1; }
.transition-label-line1 {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    font-style: italic;
    letter-spacing: 2px;
    color: var(--gold);
    display: block;
}
.transition-label-line2 {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(247,244,239,0.5);
    display: block;
    margin-top: 0.3rem;
}

/* ── Shared section styles ── */
.section { padding: 8rem 4rem; }

.section-label {
    font-family: var(--font-body); font-size: 0.7rem; font-weight: 600;
    letter-spacing: 4px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1rem;
}
.section-title {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700; line-height: 1.15;
    color: var(--light);
}

/* ── Brand name typography ── */
.brand-name {
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: 6px;
    font-size: clamp(3rem, 8vw, 7rem);
    display: block;
}
.brand-sub {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 3px;
    color: var(--gold);
    display: block;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-block;
    font-family: var(--font-body); font-size: 0.72rem;
    font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    text-decoration: none; color: var(--dark);
    background: var(--gold);
    padding: 1rem 2.5rem;
    border: 1px solid var(--gold);
    transition: color 0.4s;
    position: relative; overflow: hidden;
    isolation: isolate; /* creates stacking context so z-index: -1 on ::before is relative to this element */
}
.btn-primary::before {
    content: ''; position: absolute;
    inset: 0;
    background: var(--dark);
    transform: translateX(-101%);
    transition: transform 0.45s var(--ease-out-expo);
    z-index: -1; /* reliably behind text content */
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { color: var(--light); }

.btn-ghost {
    display: inline-block;
    font-family: var(--font-body); font-size: 0.72rem;
    font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    text-decoration: none; color: var(--light);
    border: 1px solid rgba(247,244,239,0.4);
    padding: 1rem 2.5rem;
    transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── Scroll Reveal ── */
.reveal-up { opacity: 0; transform: translateY(50px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.reveal-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.reveal-right { opacity: 0; transform: translateX(60px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.revealed { opacity: 1 !important; transform: none !important; }

.delay-1 { transition-delay: 0.15s !important; }
.delay-2 { transition-delay: 0.3s !important; }
.delay-3 { transition-delay: 0.45s !important; }

/* ── Marquee ── */
.marquee-strip {
    background: var(--gold);
    overflow: hidden;
    padding: 0.9rem 0;
    white-space: nowrap;
}
.marquee-track {
    display: inline-flex; gap: 2rem;
    animation: marquee 18s linear infinite;
}
.marquee-track span {
    font-family: var(--font-body); font-size: 0.7rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; color: var(--dark);
}
.marquee-track .dot { color: var(--dark); opacity: 0.5; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Footer ── */
.footer {
    background: var(--dark);
    border-top: 1px solid var(--mid);
    padding: 3rem 4rem 2rem;
}
.footer-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-logo { height: 48px; mix-blend-mode: screen; filter: brightness(2); }
.footer-tagline { font-size: 0.7rem; letter-spacing: 2px; color: var(--grey); text-transform: uppercase; line-height: 1.9; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--grey); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 1.2rem; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--mid);
    display: flex; align-items: center; justify-content: center;
    color: var(--grey); text-decoration: none; font-size: 0.9rem;
    transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-4px); }
.footer-copy { font-size: 0.7rem; letter-spacing: 1px; color: var(--mid); text-align: center; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .nav { padding: 1.2rem 2rem; }
    .nav.scrolled { padding: 0.8rem 2rem; }
    .nav-links { display: none; }
    .nav-menu-btn { display: flex; }
    .section { padding: 6rem 2rem; }
    .footer { padding: 3rem 2rem 2rem; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}
