/* ==========================================
   1. CSS VARIABLES & DESIGN TOKENS
   ========================================== */
:root {
    /* Luxury Warm Palette */
    --espresso-dark: #120C08;
    --espresso-light: #2A1D14;
    --charcoal: #1C1C1C;
    --cream-bg: #FDFBF7;
    --cream-card: #F7F3EB;
    --gold-accent: #D4AF37;
    --gold-hover: #E8C355;
    --amber-glow: rgba(185, 122, 68, 0.4);
    --text-dark: #2A1D14;
    --text-muted: #5C4B3E;
    --text-light: #FDFBF7;
    --white: #FFFFFF;

    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Fluid Spacing & Sizing */
    --space-xs: clamp(0.5rem, 1vw, 1rem);
    --space-sm: clamp(1rem, 2vw, 2rem);
    --space-md: clamp(2rem, 4vw, 4rem);
    --space-lg: clamp(4rem, 8vw, 8rem);
    --space-xl: clamp(6rem, 12vw, 12rem);
    
    /* Effects */
    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-fast: all 0.3s ease;
    --glass-bg: rgba(253, 251, 247, 0.85);
    --glass-dark: rgba(18, 12, 8, 0.85);
    --shadow-subtle: 0 10px 30px rgba(42, 29, 20, 0.05);
    --shadow-hover: 0 20px 40px rgba(42, 29, 20, 0.12);
    --shadow-glow: 0 0 40px var(--amber-glow);
    
    /* Layout */
    --container-width: 1280px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* ==========================================
   2. BASE RESETS & GLOBALS
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FIX: This completely removes the "White Box" horizontal scroll bug */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--cream-bg);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2.5rem); }
p { font-size: clamp(1rem, 1.2vw, 1.125rem); color: var(--text-muted); }

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--gold-accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-accent), #B97A44);
    color: var(--white) !important;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--gold-hover), var(--gold-accent));
}

.btn-outline {
    background: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--espresso-dark);
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================
   3. PREMIUM STICKY NAVBAR
   ========================================== */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    padding: 1rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

header.scrolled-dark {
    background: var(--glass-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: clamp(24px, 4vw, 36px);
    width: auto;
    object-fit: contain;
    z-index: 1002;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition-fast);
    position: relative;
}

header.hero-active .nav-links a {
    color: var(--text-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--gold-accent);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--gold-accent); }

/* Hamburger Menu Base */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* FIX: Proper color switching for Hamburger lines */
header.hero-active .hamburger span,
header.scrolled-dark .hamburger span { 
    background-color: var(--text-light); 
}

/* FIX: Force lines to be white when the dark mobile menu is open */
.hamburger.active span { 
    background-color: var(--text-light) !important; 
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================
   4. CINEMATIC HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--espresso-dark);
    color: var(--text-light);
    overflow: hidden;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-md);
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 60vw; height: 60vw;
    min-width: 500px; min-height: 500px;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, rgba(18,12,8,0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    animation: pulseGlow 8s infinite alternate;
}

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

.hero h1 { color: var(--text-light); margin-bottom: 1.5rem; }
.hero p { color: rgba(253, 251, 247, 0.8); margin: 0 auto 3rem; max-width: 700px; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; }

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    100% { transform: scale(1.05) translate(-20px, 20px); opacity: 1; }
}

/* ==========================================
   5. STORYTELLING & VISION
   ========================================== */
.section { padding: var(--space-lg) 0; position: relative; }
.story-container { max-width: 800px; margin: 0 auto; text-align: center; }

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-accent);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.story-section h2 { margin-bottom: 1.5rem; }
.story-section p { margin-bottom: 1.5rem; }

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* FIX: Mobile safety */
    gap: 2rem;
    margin-top: var(--space-md);
}

.vision-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--gold-accent), var(--amber-glow));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.vision-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.vision-card:hover::before { transform: scaleX(1); }

.vision-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: var(--cream-card);
    border-radius: 12px;
}

.vision-card h3 { font-size: 1.25rem; margin-bottom: 1rem; }

/* ==========================================
   6. FOUNDERS SECTION
   ========================================== */
.founders-section {
    background-color: var(--espresso-dark);
    color: var(--text-light);
    padding: var(--space-xl) 0;
}

.founders-header { text-align: center; margin-bottom: var(--space-lg); }
.founders-header h2 { color: var(--text-light); }

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* FIX: Mobile safety */
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.founder-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.founder-card:hover { transform: translateY(-10px); border-color: rgba(212, 175, 55, 0.3); box-shadow: var(--shadow-glow); }

.founder-img-wrapper {
    width: 100%;
    aspect-ratio: 4/4; /* Adjusted for better mobile display */
    overflow: hidden;
    position: relative;
}

.founder-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, var(--espresso-dark), transparent);
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.founder-card:hover .founder-img { transform: scale(1.05); }

.founder-info { padding: 2rem; position: relative; z-index: 2; }
.founder-name { font-size: 1.5rem; color: var(--text-light); margin-bottom: 0.5rem; }
.founder-pos { color: var(--gold-accent); font-size: 0.875rem; font-weight: 600; text-transform: uppercase; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.founder-loc { color: rgba(253, 251, 247, 0.6); font-size: 0.875rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.founder-bio { color: rgba(253, 251, 247, 0.8); font-size: 0.95rem; }

/* ==========================================
   7. STATS SECTION
   ========================================== */
.stats-section {
    background: var(--cream-card);
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; text-align: center; }
.stat-number { font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600; margin-bottom: 0.5rem; background: linear-gradient(135deg, var(--espresso-dark), var(--gold-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ==========================================
   8. OUR PROMISE SECTION
   ========================================== */
.promise-section { padding: var(--space-xl) 0; }
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* FIX: Mobile safety */ gap: 2rem; margin-top: var(--space-lg); }

.promise-card {
    display: flex; gap: 1.25rem; padding: 2rem; background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle); transition: var(--transition-smooth); border: 1px solid rgba(0,0,0,0.03);
    align-items: flex-start;
}

.promise-card:hover { box-shadow: var(--shadow-hover); transform: translateX(5px); border-color: rgba(212, 175, 55, 0.2); }
.promise-icon-wrapper { flex-shrink: 0; width: 50px; height: 50px; background: var(--cream-card); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--gold-accent); transition: var(--transition-smooth); }
.promise-card:hover .promise-icon-wrapper { background: var(--gold-accent); color: var(--white); transform: scale(1.1) rotate(5deg); }
.promise-content h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.promise-content p { font-size: 0.95rem; margin: 0; color: var(--text-muted); }

/* ==========================================
   9. JOIN CTA SECTION
   ========================================== */
.cta-section { padding: var(--space-lg) var(--space-sm); }
.cta-box {
    background: linear-gradient(135deg, var(--espresso-dark), var(--charcoal)); border-radius: var(--radius-lg);
    padding: var(--space-lg) 2rem; text-align: center; color: var(--text-light); position: relative; overflow: hidden; box-shadow: var(--shadow-glow);
}
.cta-box::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23d4af37" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>'); opacity: 0.5; }
.cta-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.cta-box h2 { color: var(--white); margin-bottom: 1rem; }
.cta-box p { color: rgba(253, 251, 247, 0.8); font-size: 1.125rem; margin-bottom: 2rem; }

/* ==========================================
   10. LUXURY FOOTER
   ========================================== */
footer { background-color: #0A0705; color: rgba(253, 251, 247, 0.7); padding: var(--space-xl) 0 2rem; border-top: 1px solid rgba(212, 175, 55, 0.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 4rem; margin-bottom: var(--space-md); }
.footer-brand .logo-img { filter: brightness(0) invert(1); margin-bottom: 1.5rem; height: 30px; }
.footer-brand p { font-size: 0.95rem; max-width: 320px; margin-bottom: 2rem; }
.social-links { display: flex; gap: 1rem; }
.social-link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); color: var(--white); transition: var(--transition-smooth); border: 1px solid rgba(255, 255, 255, 0.1); }
.social-link:hover { background: var(--gold-accent); color: var(--espresso-dark); transform: translateY(-5px); border-color: var(--gold-accent); }

.footer-col h4 { color: var(--white); font-size: 1.125rem; margin-bottom: 1.5rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { transition: var(--transition-fast); font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold-accent); padding-left: 5px; }

.contact-list li { display: flex; gap: 1rem; margin-bottom: 1.25rem; font-size: 0.95rem; align-items: flex-start; }
.contact-icon { color: var(--gold-accent); margin-top: 3px; flex-shrink: 0; }

.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.875rem; }

/* ==========================================
   11. RESPONSIVE DESIGN (MOBILE FIXES)
   ========================================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    /* FIX: Mobile Menu Display */
    .nav-links {
        position: fixed; 
        top: 0; left: 0; width: 100vw; height: 100vh;
        background: var(--espresso-dark); 
        flex-direction: column; justify-content: center; align-items: center;
        gap: 2rem; 
        transform: translateY(-100%); transition: transform 0.5s ease-in-out; 
        z-index: 1001;
    }
    .nav-links.active { transform: translateY(0); }
    
    /* FIX: Force mobile links to be white so they are visible! */
    .nav-links a { 
        font-size: 1.5rem; 
        color: var(--text-light) !important; 
    }
    .nav-links a::after { display: none; } /* Hide underline on mobile */

    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn { width: 100%; padding: 1.25rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    
    .promise-card { flex-direction: column; align-items: center; text-align: center; }
    
    .cta-box { padding: 3rem 1.5rem; } /* Prevent horizontal overflow on CTA box */
}