/* 
   3PLB — Premium "Quiet Luxury" Global Styles
   Designed by Antigravity (Senior UX/UI)
*/

:root {
    --bg-dark: #070708; /* Slightly deeper, cooler black */
    --bg-section: #0B0B0C;
    --gold: #CBA876; /* Sophisticated champagne gold */
    --gold-light: #E2CBA3;
    --text-white: #FAFAFA; /* Softer off-white */
    --text-muted: rgba(250, 250, 250, 0.65);
    --border-color: rgba(203, 168, 118, 0.2);
    --hairline: rgba(250, 250, 250, 0.05);
}

/* 1. Global Texture & Feel */
html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.noise-bg::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.03;
    z-index: 9999;
    pointer-events: none;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
}

/* 2. Typography Upgrade */
h1, h2, h3, h4, .font-serif {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 300 !important;
    letter-spacing: -0.010em;
}

.editorial-title {
    font-size: clamp(2.3rem, 6.2vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
}

.meta-label {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.65rem, 1.2vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gold);
    margin-bottom: 1rem;
    display: block;
}

/* 3. Spacing & Grid */
section {
    padding: clamp(3rem, 6vw, 6rem) 0;
}

.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

/* 4. Gold Hairlines */
.hairline-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: clamp(1rem, 2vw, 2rem) 0;
}

section > .hairline-separator:first-child,
.container-custom > .hairline-separator:first-child {
    margin-top: 0;
}

/* 5. Premium Components */
.card-premium {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--hairline);
    padding: clamp(2rem, 4vw, 3rem);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-premium:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.03);
    transform: translateY(-5px);
}

.btn-premium {
    display: inline-block;
    padding: clamp(0.9rem, 2vw, 1.1rem) clamp(2rem, 4vw, 3rem);
    font-size: clamp(0.7rem, 1.2vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: 1px solid var(--border-color);
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-premium:hover {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
}

/* 6. Animations & Effects */
.reveal-text {
    overflow: hidden;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
    animation: reveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes reveal {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}

.parallax-image {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.parallax-image:hover {
    transform: scale(1.05);
}

.staggered-list li {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* 7. Nav & Header Fixes */
nav {
    background: rgba(10, 10, 10, 0.7) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.content-under-nav {
    padding-top: 160px !important;
}

@media (max-width: 1024px) {
    .content-under-nav {
        padding-top: 120px !important;
    }
}

/* 8. Mobile Refinements */
@media (max-width: 1024px) {
    .container-custom {
        padding: 0 1.5rem;
    }
    section {
        padding: 6rem 0;
    }
}

/* 9. Tailwind Overrides (Quiet Luxury Enforcement) */
.text-gold { color: var(--gold) !important; }
.text-gold-light { color: var(--gold-light) !important; }
.text-accent { color: var(--gold) !important; }
.text-accent-light { color: var(--gold-light) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-accent { background-color: var(--gold) !important; }
.border-gold { border-color: var(--gold) !important; }
.border-accent { border-color: var(--gold) !important; }
.hover\:bg-accent-light:hover { background-color: var(--gold-light) !important; }
.hover\:text-accent:hover { color: var(--gold) !important; }

/* 10. Scroll Animations - Bulletproof Version */
.fade-up-section {
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

body.js-enabled .fade-up-section:not(.is-visible) {
    opacity: 0;
    transform: translateY(40px);
}

body.js-enabled .fade-up-section.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 11. Custom Cursor */
@media (hover: hover) and (pointer: fine) {
    .custom-cursor {
        position: fixed;
        width: 16px;
        height: 16px;
        background-color: var(--gold-light);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99999;
        mix-blend-mode: difference;
        transform: translate(-50%, -50%);
        transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
        opacity: 0;
    }

    body:hover .custom-cursor {
        opacity: 1;
    }

    /* Interactive state */
    body.cursor-hover .custom-cursor {
        width: 48px;
        height: 48px;
        background-color: rgba(226, 203, 163, 0.2); /* gold-light transparent */
        border: 1px solid var(--gold-light);
        mix-blend-mode: normal;
    }
}
/* Custom styles for the 3PLB Quiet Luxury Hero Section */

:root {
    --gold: #CBA876;
    --gold-bright: #E2CBA3;
    --bg-dark: #070708;
    --text-white: #FAFAFA;
    --text-muted: rgba(250, 250, 250, 0.75);
    --gold-gradient: linear-gradient(135deg, #CBA876 0%, #A68656 100%);
}

.hero-section-refined {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
    overflow: hidden;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.hero-bg-render {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('images/hero_render_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    filter: brightness(0.8) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.container-refined {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 0 40px 0; /* Removed side padding because container-custom handles it */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.hero-grid-refined {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

/* Left Track */
.hero-left-track {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gold-dot {
    width: 18px;
    height: 18px;
    background-color: var(--gold);
    border-radius: 50%;
    margin-bottom: 2.5rem;
    box-shadow: 0 0 15px rgba(203, 168, 118, 0.4), 0 0 30px rgba(203, 168, 118, 0.2);
    position: relative;
    z-index: 100;
    display: block;
    animation: gentle-pulse 4s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.sub-header-refined {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: 2rem;
}

.main-header-refined {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.2rem, 6.5vw, 5.5rem);
    line-height: 1.05;
    font-weight: 300;
    margin: 0;
}

.header-line-white {
    display: block;
    color: var(--text-white);
}

.header-line-gold {
    display: block;
    color: var(--gold);
    font-style: italic;
    margin-top: 0.25rem;
}

/* Right Track */
.hero-right-track {
    display: flex;
    flex-direction: column;
    padding-top: 0;
    justify-content: center;
}

.body-text-refined {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 650px; /* Stretched from 500px */
    width: 100%;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    padding: 2rem 2.5rem;
    border: 1px solid rgba(212, 175, 55, 0.15); /* Full border added */
    border-left: 2px solid var(--gold); /* Emphasize left border */
    transition: all 0.5s ease;
}

.body-text-refined:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(212, 175, 55, 0.3);
}

.body-text-refined em {
    font-style: italic;
    color: var(--text-white);
}

.cta-group-refined {
    display: flex;
    gap: 1.5rem;
}

.btn-refined {
    padding: 1rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.btn-gold {
    background: var(--gold);
    color: #070708;
}

.btn-gold:hover {
    background: var(--gold-bright);
    color: #070708;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(203, 168, 118, 0.15);
}

.btn-outline {
    border-color: rgba(203, 168, 118, 0.4);
    color: var(--gold);
}

.btn-outline:hover {
    border-color: var(--gold);
    background: rgba(203, 168, 118, 0.05);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-grid-refined {
        gap: 4rem;
    }
    .main-header-refined {
        font-size: 4.5rem;
    }
}

@media (max-width: 1024px) {
    .hero-section-refined {
        padding-top: 140px;
        padding-bottom: 80px;
        height: auto;
        min-height: 100vh;
    }
    .hero-grid-refined {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .main-header-refined {
        font-size: 3.8rem;
    }
    .hero-right-track {
        padding-top: 0;
    }
    .body-text-refined {
        padding: 2rem;
        font-size: 1.1rem;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .main-header-refined {
        font-size: 2.8rem;
    }
    .sub-header-refined {
        font-size: 0.7rem;
        margin-bottom: 1.5rem;
    }
    .gold-dot {
        width: 16px;
        height: 16px;
        margin-bottom: 2rem;
    }
    .cta-group-refined {
        flex-direction: column;
        gap: 1rem;
    }
    .btn-refined {
        width: 100%;
        text-align: center;
        padding: 1.2rem;
    }
    .body-text-refined {
        padding: 1.5rem;
        margin-bottom: 2.5rem;
    }
}






/* --- CUSTOM JIT FALLBACKS --- */
.min-w-full { min-width: 100%; }
.max-w-7xl { max-width: 80rem; }
.gap-10 { gap: 2.5rem; }
.min-h-\[100dvh\] { min-height: 100dvh; }
.pt-\[160px\] { padding-top: 160px; }
.pt-\[140px\] { padding-top: 140px; }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:gap-16 { gap: 4rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:gap-8 { gap: 2rem; }
    .lg\:col-span-8 { grid-column: span 8 / span 8; }
    .lg\:col-span-7 { grid-column: span 7 / span 7; }
    .lg\:col-span-6 { grid-column: span 6 / span 6; }
    .lg\:col-span-5 { grid-column: span 5 / span 5; }
    .lg\:col-span-4 { grid-column: span 4 / span 4; }
    .lg\:col-start-6 { grid-column-start: 6; }
    .lg\:col-start-7 { grid-column-start: 7; }
    .lg\:col-start-8 { grid-column-start: 8; }
}


html { scroll-behavior: auto !important; }


/* --- LENIS SCROLL FIXES --- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }


/* --- PREMIUM GRID BACKGROUND --- */
.premium-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(203, 168, 118, 1) 1px, transparent 1px), linear-gradient(90deg, rgba(203, 168, 118, 1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.03;
    transition: opacity 0.7s ease;
    pointer-events: none;
}
.group:hover .premium-grid-bg, .premium-grid-container:hover .premium-grid-bg {
    opacity: 0.10;
}


/* --- PREMIUM INTERACTIVE GRID --- */
.premium-grid-container { position: relative; overflow: hidden; }
.premium-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: linear-gradient(var(--gold) 1px, transparent 1px), linear-gradient(90deg, var(--gold) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
section:hover .premium-grid-bg, .premium-grid-container:hover .premium-grid-bg {
    opacity: 0.15;
}

