/* ==========================================================================
   CSS Variables & Luxury Editorial Theme
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Velvet Charcoal & Champagne Gold */
    --bg-base: #0A0A0B; /* Deepest Charcoal */
    --bg-surface: #121214; /* Slightly lighter surface */
    --bg-panel: #1A1A1D;
    
    --primary: #D4AF37; /* Champagne Gold */
    --primary-hover: #E5C158;
    --primary-dim: rgba(212, 175, 55, 0.1);
    
    --text-light: #F5F5F0; /* Pearl White */
    --text-muted: #9E9E95;
    
    /* Structural Elements */
    --border-gold: rgba(212, 175, 55, 0.25);
    --border-light: rgba(255, 255, 255, 0.08);
    
    /* Typography Fonts */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Layout & Animation */
    --max-width: 1400px;
    --nav-height: 90px;
    --transition-fast: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    --section-pad: 150px 5%;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--bg-base);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-light);
}

/* Emphasized italic text in headings for that editorial look */
h1 em, h2 em, h3 em {
    font-style: italic;
    color: var(--primary);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Selection & Scrollbar */
::selection { background: var(--primary); color: var(--bg-base); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--primary-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.display-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background-color: transparent;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid var(--primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
    z-index: -1;
}

.btn-gold:hover { color: var(--bg-base); }
.btn-gold:hover::before { transform: scaleX(1); transform-origin: left; }

/* ==========================================================================
   Master Header 
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--nav-height);
    background-color: var(--bg-base);
    border-bottom: 1px solid var(--border-light);
    z-index: 9999;
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.site-header.scrolled {
    height: 75px;
    background-color: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gold);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5%;
}

.logo img {
    height: 55px;
    filter: invert(1);
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    opacity: 0.7;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover, .nav-links a.active {
    opacity: 1;
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10000;
}

.hamburger span {
    display: block;
    width: 30px; height: 1px;
    background-color: var(--primary);
    transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section (Editorial Split)
   ========================================================================== */
.hero {
    padding-top: var(--nav-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5%;
    position: relative;
    background: radial-gradient(circle at 50% 50%, var(--primary-dim) 0%, transparent 50%);
}

.hero-main p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

/* Luxury abstract graphic */
.hero-graphic {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    z-index: -1;
    animation: slowSpin 30s linear infinite;
}

.hero-graphic::after {
    content: '';
    position: absolute;
    top: -10%; left: 50%;
    width: 1px; height: 120%;
    background: var(--border-gold);
}

/* ==========================================================================
Marquee
   ========================================================================== */
.client-marquee {
    padding: 3rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    background: var(--bg-surface);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.mq-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    color: var(--text-muted);
    margin: 0 4rem;
    transition: var(--transition-fast);
}

.mq-logo:hover { color: var(--primary); }

/* ==========================================================================
   Philosophy / About
   ========================================================================== */
.philosophy {
    padding: var(--section-pad);
    border-bottom: 1px solid var(--border-light);
}

.phil-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.phil-text p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
}

.phil-text p strong {
    color: var(--text-light);
    font-weight: 500;
}

.phil-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-box {
    border-top: 1px solid var(--primary);
    padding-top: 2rem;
}

.stat-box h3 {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-box p {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ==========================================================================
   Services (Accordion Style)
   ========================================================================== */
.services {
    padding: var(--section-pad);
    background-color: var(--bg-surface);
}

.srv-container {
    max-width: 1000px;
    margin: 0 auto;
}

.srv-item {
    border-bottom: 1px solid var(--border-light);
    padding: 3rem 0;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    transition: var(--transition-fast);
    cursor: pointer;
}

.srv-item:first-child { border-top: 1px solid var(--border-light); }

.srv-item:hover {
    padding-left: 2rem;
    border-bottom-color: var(--primary);
}

.srv-item:hover .srv-num { color: var(--primary); }

.srv-num {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.srv-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.srv-content p {
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Intelligence / Analytics (CSS Visuals)
   ========================================================================== */
.intelligence {
    padding: var(--section-pad);
    border-bottom: 1px solid var(--border-light);
}

.intel-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.chart-panel {
    border: 1px solid var(--border-gold);
    padding: 3rem;
    position: relative;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
}

.chart-panel::before {
    content: '';
    position: absolute;
    top: -5px; left: -5px;
    width: 10px; height: 10px;
    background: var(--primary);
}

/* Pure CSS Minimalist Bar Chart */
.css-bars {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    height: 300px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
    margin-top: 3rem;
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.bar {
    width: 100%;
    background-color: var(--border-light);
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar.gold { background-color: var(--primary); }
.chart-panel.in-view .bar { transform: scaleY(1); }

.bar-lbl {
    margin-top: 15px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Investment Estimator (Calculator)
   ========================================================================== */
.calculator {
    padding: var(--section-pad);
    background-color: var(--bg-surface);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    margin-top: 4rem;
}

.slider-wrap { margin-bottom: 3rem; }

.slider-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.slider-val {
    color: var(--primary);
    font-weight: 600;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 1px;
    background: var(--border-gold);
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px; width: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    margin-top: -8px;
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.5); }

.calc-output {
    padding: 3rem;
    border: 1px solid var(--border-gold);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calc-output h4 {
    font-size: 4.5rem;
    color: var(--text-light);
    line-height: 1;
    margin-bottom: 1rem;
}

.calc-output p {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ==========================================================================
   Industry Clientele
   ========================================================================== */
.industries {
    padding: var(--section-pad);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.ind-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 4rem;
}

.ind-pill {
    padding: 1rem 2.5rem;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-fast);
    cursor: default;
}

.ind-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
    padding: var(--section-pad);
    background-color: var(--bg-surface);
}

.test-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.test-quote {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.3;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.test-author {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

/* ==========================================================================
   Concierge (Contact & Chat)
   ========================================================================== */
.contact-section {
    padding: var(--section-pad);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.form-group { margin-bottom: 3rem; }

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

textarea.form-input { height: 100px; resize: none; }

/* Elegant Chat Mockup */
.chat-window {
    border: 1px solid var(--border-light);
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-head {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot { width: 6px; height: 6px; border-radius: 50%; background-color: var(--primary); }

.chat-body {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.msg {
    max-width: 80%;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
}

.msg.ai { color: var(--text-muted); align-self: flex-start; }
.msg.user { color: var(--text-light); align-self: flex-end; text-align: right; }

/* ==========================================================================
   Legal Pages Styling
   ========================================================================== */
.legal-main {
    padding: calc(var(--nav-height) + 100px) 5% 100px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-main h1 { font-size: 4rem; margin-bottom: 3rem; border-bottom: 1px solid var(--border-gold); padding-bottom: 1rem; }
.legal-main h2 { font-size: 1.75rem; color: var(--primary); margin: 3rem 0 1rem; font-style: italic; }
.legal-main p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; font-weight: 300; }

/* ==========================================================================
   Master Footer (Exact Velvet Charcoal)
   ========================================================================== */
.site-footer {
    background-color: var(--bg-base);
    border-top: 1px solid var(--border-light);
    padding: 100px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto 4rem;
}

.footer-brand img { height: 40px; margin-bottom: 2rem; }
.footer-brand p { color: var(--text-muted); font-weight: 300; font-size: 0.95rem; max-width: 300px; }

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 1rem; }
.footer-col a, .footer-col li { color: var(--text-muted); font-size: 0.9rem; transition: var(--transition-fast); }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
@keyframes slowSpin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes marquee { 100% { transform: translateX(-50%); } }

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .phil-grid, .intel-grid, .calc-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-graphic { width: 400px; height: 400px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: var(--nav-height); left: -100%; width: 100%; height: calc(100vh - var(--nav-height));
        background-color: var(--bg-base);
        flex-direction: column; justify-content: center;
        transition: var(--transition-slow);
    }
    .nav-links.active { left: 0; }
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .srv-item { grid-template-columns: 1fr; gap: 0.5rem; }
    .srv-num { display: none; }
    .phil-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}