/* ══════════════════════════════════════════════════════════
   GOLDEN CHAMPAKA — UI/UX PRO MAX & FRONTEND DESIGN UPGRADE
   "The Timeless Majlis" - Refined Maximalism
══════════════════════════════════════════════════════════ */

:root {
    /* ✦ THE TIMELESS MAJLIS LUXURY PALETTE ✦ */
    --oasis-emerald: #113527;
    --oasis-jade: #85A394;
    --gulf-midnight: #0B1D3A;
    --gulf-fog: #7A93AC;
    --oud-walnut: #2E1C15;
    --oud-ash: #8B6D5E;
    --dune-brass: #B38C3B;
    --dune-champagne: #F4E7CE;
    --leather-saddle: #4A2E1B;
    --leather-camel: #C2A792;
    --onyx-obsidian: #0A0A0C;
    --onyx-titanium: #6E7075;

    /* Theme Overrides for Luxury Feel */
    --surface: var(--gulf-midnight);
    --surface-container: rgba(11, 29, 58, 0.6); /* Gulf midnight with opacity */
    --primary: var(--oasis-emerald);
    --secondary: var(--dune-brass);
    --text: var(--dune-champagne);
    --text-bright: #FFFFFF;
    --muted: var(--gulf-fog);
    --bg: var(--onyx-obsidian);
}

/* --- GLOBAL TEXTURE: GRAIN OVERLAY --- */
body {
    background-color: var(--onyx-obsidian);
    color: var(--dune-champagne);
}

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- TYPOGRAPHY & FLUID SIZING --- */
h1, h2, h3, h4, .display-md, .display-lg {
    font-family: var(--font-serif);
    font-weight: 300;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.05;
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

.kicker {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--secondary-muted);
    display: block;
    margin-bottom: 1.5rem;
}

/* --- HERO CINEMATIC REDESIGN --- */
.gc-home-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

.gc-home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(179,140,59,0.15) 0%, rgba(11,29,58,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-text-gold {
    background: linear-gradient(to right, #ECC069 20%, #FFF3D6 50%, #B38C3B 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: goldShine 8s linear infinite;
    font-style: italic;
    font-weight: 400;
}

@keyframes goldShine {
    to { background-position: 200% center; }
}

.gc-hero-frame {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.gc-hero-frame .hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--muted);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* 1. SCARCITY BAR */
.scarcity-bar {
    background: var(--oud-walnut);
    color: var(--leather-camel);
    border-bottom: 1px solid rgba(179, 140, 59, 0.2); /* Dune Brass transparent */
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 10px 0;
    text-align: center;
}

.scarcity-bar strong, .scarcity-bar #countdown-inline {
    color: var(--dune-brass) !important;
}

.scarcity-dot {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--dune-brass);
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 0 10px var(--dune-brass);
    animation: scarcityPulse 2s infinite;
}

@keyframes scarcityPulse {
    0% { opacity: 1; box-shadow: 0 0 10px var(--dune-brass); }
    50% { opacity: 0.4; box-shadow: 0 0 2px var(--dune-brass); }
    100% { opacity: 1; box-shadow: 0 0 10px var(--dune-brass); }
}

/* 2. HERO SECTION */
.gc-home-hero {
    background: radial-gradient(circle at center, var(--gulf-midnight) 0%, var(--onyx-obsidian) 100%);
    border-bottom: 1px solid rgba(179, 140, 59, 0.1);
}

.hero-text-gold {
    background: linear-gradient(to right, var(--dune-brass) 20%, var(--dune-champagne) 50%, var(--dune-brass) 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: goldShine 8s linear infinite;
}

.gc-hero-frame .hero-eyebrow {
    color: var(--gulf-fog);
}

/* 3. TRUST STRIP */
.trust-strip {
    background: var(--onyx-obsidian);
    border-bottom: 1px solid rgba(179, 140, 59, 0.15);
    padding: 2rem 0;
}
.trust-strip p {
    color: var(--onyx-titanium);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* 4. STORY SECTION */
.gc-story-section {
    background: var(--onyx-obsidian);
    position: relative;
}
.gc-story-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 40%; height: 100%;
    background: radial-gradient(ellipse at center right, rgba(17, 53, 39, 0.1) 0%, transparent 70%); /* Oasis Emerald glow */
    pointer-events: none;
}
.gc-story-grid p {
    color: var(--leather-camel);
}

/* 5. PILLARS & 6. ARCHIVE (Luxury Cards) */
.gc-archive-card, .tier-card, .pillar-card, .ritual-step {
    background: rgba(11, 29, 58, 0.4); /* Gulf Midnight */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(179, 140, 59, 0.15); /* Dune Brass */
    box-shadow: 0 30px 60px rgba(10, 10, 12, 0.8), inset 0 1px 0 rgba(244, 231, 206, 0.05);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.8s ease;
    border-radius: 4px;
}

.gc-archive-card:hover, .tier-card:hover, .pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px rgba(10, 10, 12, 0.9), inset 0 1px 0 rgba(244, 231, 206, 0.1);
    border-color: rgba(179, 140, 59, 0.4);
    background: rgba(11, 29, 58, 0.6);
}

.gc-archive-card .price {
    color: var(--dune-brass);
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
}
.gc-archive-card h3 {
    color: var(--dune-champagne);
}
.gc-archive-card .desc {
    color: var(--gulf-fog);
}

/* 7. CALCULATOR */
.gc-calculator-section {
    background: linear-gradient(180deg, var(--onyx-obsidian) 0%, var(--gulf-midnight) 100%);
    position: relative;
}
.gc-calculator-section::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(179,140,59,0.3), transparent);
}
.calc-wrap {
    background: rgba(10, 10, 12, 0.6); /* Onyx */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(179, 140, 59, 0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-radius: 4px;
    padding: 3rem;
}
.calc-select {
    width: 100%;
    background: transparent;
    color: var(--dune-champagne);
    border: none;
    border-bottom: 2px solid var(--dune-brass);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    padding: 1rem 0;
    margin-bottom: 3rem;
    outline: none;
    appearance: none;
    border-radius: 0;
    cursor: pointer;
}
.calc-select option {
    background: var(--gulf-midnight);
    color: var(--dune-champagne);
}
.calc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.calc-stat-box {
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    transition: transform 0.4s ease;
}
.calc-stat-box:hover {
    transform: translateY(-5px);
}
.calc-stat-box label {
    display: block;
    color: var(--dune-brass);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.calc-stat-box .value {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--dune-champagne);
}
.calc-stat-box.highlight {
    box-shadow: 0 10px 30px rgba(11, 29, 58, 0.8);
}
.calc-stat-box.highlight .value {
    color: var(--dune-brass);
}

/* 8. GIFTING TIERS & RAMADAN BANNER */
.gc-gifting-section {
    background: var(--onyx-obsidian);
}
.tier-badge-crown {
    background: var(--dune-brass) !important;
    color: var(--onyx-obsidian) !important;
}
.ramadan-banner {
    background: rgba(46, 28, 21, 0.8) !important; /* Oud Walnut */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(179, 140, 59, 0.4) !important;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}
.ramadan-banner p {
    color: var(--dune-champagne) !important;
}

/* --- IMAGE TREATMENT --- */
.gc-archive-card__media {
    overflow: hidden;
    position: relative;
}

.gc-archive-card__media img {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.9) contrast(1.1);
    width: 100%;
    display: block;
}

.gc-archive-card:hover .gc-archive-card__media img {
    transform: scale(1.05);
}

/* 9. FOREST PLEDGE */
.gc-pledge-section {
    background: radial-gradient(circle at 50% 120%, var(--oasis-emerald) 0%, var(--onyx-obsidian) 70%) !important;
    position: relative;
}
.pledge-quote {
    color: var(--dune-brass) !important;
    text-shadow: 0 5px 15px rgba(17, 53, 39, 0.8);
}
.pledge-sub {
    color: var(--oasis-jade) !important;
}
.pledge-counter-badge {
    background: rgba(17, 53, 39, 0.4);
    border: 1px solid rgba(133, 163, 148, 0.2);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--dune-champagne);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin: 2rem auto;
}
.pledge-live-dot {
    width: 8px; height: 8px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10B981, 0 0 20px #10B981;
    animation: pledgePulse 2s ease-in-out infinite;
}
@keyframes pledgePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 10. BREWING RITUAL */
.gc-ritual-section {
    background: var(--onyx-obsidian) !important;
}
.ritual-step {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(46, 28, 21, 0.3) 0%, rgba(10, 10, 12, 0.6) 100%); /* Oud Walnut to Onyx */
    border: 1px solid rgba(179, 140, 59, 0.1);
    position: relative;
    overflow: hidden;
}
.ritual-step::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(179, 140, 59, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.ritual-step:hover::before {
    opacity: 1;
}
.ritual-step .step-num {
    color: var(--dune-brass) !important;
    opacity: 0.1 !important;
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: 6rem !important;
    pointer-events: none;
    transition: transform 0.6s ease;
}
.ritual-step:hover .step-num {
    transform: scale(1.1) rotate(5deg);
}
.ritual-step h3 {
    color: var(--dune-champagne);
}
.ritual-step .step-detail {
    color: var(--dune-brass) !important;
}
.ritual-step p:not(.step-detail) {
    color: var(--gulf-fog) !important;
}

/* 11. BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 3.5rem; height: 3.5rem;
    background: rgba(11, 29, 58, 0.7); /* Gulf Midnight */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(179, 140, 59, 0.3); /* Dune Brass */
    color: var(--dune-brass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--dune-brass);
    color: var(--onyx-obsidian);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(179, 140, 59, 0.4);
}

/* --- BUTTONS --- */
.btn-gold {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(179,140,59,0.2);
    border: none;
}

.btn-gold::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
}

.btn-gold:hover::after {
    left: 150%;
}

.btn-ghost {
    border: 1px solid rgba(179,140,59,0.3);
    color: var(--secondary);
    background: transparent;
}

.btn-ghost:hover {
    background: rgba(179,140,59,0.05);
    border-color: var(--secondary);
}

/* --- GSAP INITIAL STATES --- */
.gsap-reveal {
    opacity: 0;
    transform: translateY(40px);
}

.gsap-fade {
    opacity: 0;
}