/* ----------------------------------------------------------------
   PRANTH IMPERIAL: CORE RESET & GLOBAL ARCHITECTURE
---------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&family=Outfit:wght@300;400;600;700&family=Syncopate:wght@400;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
    --lux-paper: #edede8;
    --lux-ink: #1d2a25;
    --lux-gold: #ceb086;
    --lux-burgundy: #481e28;
    --lux-forest: #31443c;
    --ease-cinematic: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ----------------------------------------------------------------
   IMPERIAL COMPONENTS
---------------------------------------------------------------- */
.site-logo {
    height: 45px;
    width: auto;
    transition: var(--ease-cinematic);
}

.main-navbar.scrolled .site-logo {
    height: 35px;
}

.site-logo-loader {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Preloader / Loader Curtain */
.preloader,
.loader-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s var(--ease-cinematic), visibility 1s;
}

.preloader.fade-out,
.loader-curtain.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 
   Cursor rules removed to ensure visibility. 
   Custom cursor will overlay if active, but default cursor remains safe. 
*/

.cursor-dot,
.cursor-outline {
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

html,
body {
    background-color: var(--lux-paper);
    color: var(--lux-ink);
    font-family: 'Outfit', 'Manrope', sans-serif;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

p {
    line-height: 1.8;
    color: rgba(29, 42, 37, 0.8);
    margin-bottom: 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
}

.italic {
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
}

/* ----------------------------------------------------------------
   CUSTOM IMPERIAL CURSOR
---------------------------------------------------------------- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s var(--ease-cinematic);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--lux-gold);
}

.cursor-outline {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(206, 176, 134, 0.5);
}

body.hovered .cursor-outline {
    width: 70px;
    height: 70px;
    background-color: rgba(206, 176, 134, 0.1);
    border-color: var(--lux-gold);
}

@media (max-width: 991px) {
    * {
        cursor: auto !important;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

/* ----------------------------------------------------------------
   IMPERIAL UTILITIES
---------------------------------------------------------------- */
.site-title-mask {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(to bottom, #fff, #ceb086);
    margin-top: 1.5rem !important;
    /* Safety margin for parallax shift */
}

.glass-paper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.letter-spacing-5 {
    letter-spacing: 5px;
}

.letter-spacing-3 {
    letter-spacing: 3px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.x-small {
    font-size: 0.65rem;
}

/* ----------------------------------------------------------------
   LEGACY OVERRIDES
---------------------------------------------------------------- */
.main-wrapper {
    min-height: 100vh;
}

.bg-imperial {
    background-color: var(--lux-ink) !important;
}

.bg-paper {
    background-color: var(--lux-paper) !important;
}

.text-gold {
    color: var(--lux-gold) !important;
}

.text-imperial {
    color: var(--lux-ink) !important;
}

.text-burgundy {
    color: var(--lux-burgundy) !important;
}

.text-dark-green {
    color: #133b2a !important;
    /* Deep Rich Green */
}

/* GSAP ScrollTrigger Refresh fix */
.gsap-marker-start,
.gsap-marker-end,
.gsap-marker-scroller-start,
.gsap-marker-scroller-end {
    display: none !important;
}

/* ----------------------------------------------------------------
   MOBILE MENU FIX
---------------------------------------------------------------- */
#offcanvasNavbar .nav-link {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

#offcanvasNavbar .nav-link:hover,
#offcanvasNavbar .nav-link.active {
    color: var(--lux-gold) !important;
}

#offcanvasNavbar .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ----------------------------------------------------------------
   HOVER DROPDOWN (DESKTOP)
---------------------------------------------------------------- */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Coming Soon / Locked Projects */
.project-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(29, 42, 37, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    opacity: 1;
    transition: all 0.6s var(--ease-cinematic);
}

.project-locked:hover .project-locked-overlay {
    background: rgba(29, 42, 37, 0.6);
    backdrop-filter: blur(12px);
}

.lock-shield {
    color: var(--lux-gold);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.locked-text {
    font-family: 'Syncopate', sans-serif;
    color: white;
    letter-spacing: 5px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.reserved-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    border: 2px solid var(--lux-gold);
    padding: 10px 30px;
    color: var(--lux-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.2rem;
    pointer-events: none;
    opacity: 0.2;
}

.blur-sm {
    filter: blur(4px);
}

.blur-md {
    filter: blur(10px);
}

/* Gradient Utilities */
.bg-gradient-to-b {
    background: linear-gradient(to bottom, var(--imperial-green), var(--imperial-green), transparent);
}

.bg-gradient-to-t {
    background: linear-gradient(to top, var(--imperial-green), transparent);
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-1 {
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

/* ----------------------------------------------------------------
   SAFETY OVERRIDE: FORCE VISIBILITY
   Prevents GSAP race conditions from hiding content.
---------------------------------------------------------------- */
.h-reveal {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    /* Disables GSAP transforms to prevent layout shifts/stuck positions */
}

/* ----------------------------------------------------------------
   IMPERIAL COMPONENT REFINEMENTS
---------------------------------------------------------------- */

/* Investment Channels */
.channel-card {
    transition: all 0.6s var(--ease-cinematic);
    border: 1px solid rgba(206, 176, 134, 0.1) !important;
}

.channel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

.channel-card .btn-link i {
    transition: transform 0.4s ease;
}

.channel-card:hover .btn-link i {
    transform: translateX(5px);
}

/* Philosophy / Standard Cards */
.phil-card {
    transition: all 0.5s var(--ease-cinematic);
}

.hover-bg-imperial:hover {
    background-color: var(--lux-ink) !important;
    color: white !important;
}

.hover-bg-imperial:hover .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Timeline Custom */
.timeline-main::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: rgba(206, 176, 134, 0.1);
    z-index: 1;
}

.timeline-dot {
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 5px rgba(206, 176, 134, 0.1);
}

/* VIP Form Elements */
.focus-border-gold:focus {
    border-color: var(--lux-gold) !important;
    box-shadow: none !important;
}

.custom-chip .form-check-input:checked+.form-check-label {
    background-color: var(--lux-gold);
    color: var(--lux-ink);
    border-color: var(--lux-gold) !important;
}

.custom-chip .form-check-label {
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: var(--lux-ink);
    font-weight: 500;
}

.bg-imperial .custom-chip .form-check-label {
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: white;
}

.bg-imperial .custom-chip .form-check-input:checked+.form-check-label {
    background-color: var(--lux-gold);
    color: var(--lux-ink);
    border-color: var(--lux-gold) !important;
}