/* ============================================
   THE CLIMATE LEDGER — DESIGN SYSTEM V3
   Fresh Light Green & Emerald Premium Theme
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Colors - Exact Logo Teal & High-Tech Climate Palette */
    --bg-primary: #0fa98f;
    --bg-secondary: #0c8c77;
    --bg-tertiary: #096f5e;
    --bg-card: #ffffff;

    --accent-emerald: #10b981;
    --accent-emerald-light: #34d399;
    --accent-emerald-dark: #059669;
    --accent-teal: #0fa98f;
    --accent-cyan: #2dd4bf;
    --accent-mint: #6ee7b7;
    --accent-blue: #38bdf8;
    --accent-violet: #8b5cf6;
    --accent-violet-rgb: 139, 92, 246;
    --accent-purple: var(--accent-violet);
    --accent-pink: #ec4899;
    --accent-amber: #f59e0b;
    --accent-gold: #fbbf24;

    /* Primary Accent — Iconic Logo Teal & Glowing Mint */
    --accent-main: #ffffff;
    --accent-main-light: #6ee7b7;
    --accent-main-rgb: 255, 255, 255;
    --accent-cyan-rgb: 45, 212, 191;

    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #a7f3d0 50%, #34d399 100%);
    --gradient-hero: linear-gradient(135deg, #0fa98f 0%, #0c8c77 50%, #096f5e 100%);
    --gradient-card: linear-gradient(145deg, #093c33 0%, #052720 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(110, 231, 183, 0.25) 0%, transparent 70%);

    /* Luxury Obsidian-Teal Card System */
    --bg-card: #093c33;
    --glass-bg: #093c33;
    --glass-bg-hover: #0b453c;
    --glass-border: rgba(110, 231, 183, 0.28);
    --glass-border-hover: rgba(110, 231, 183, 0.55);
    --glass-blur: 24px;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #e6faf6;
    --text-tertiary: rgba(255, 255, 255, 0.78);
    --text-accent: #a7f3d0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(4, 52, 44, 0.12);
    --shadow-md: 0 4px 16px rgba(4, 52, 44, 0.16);
    --shadow-lg: 0 8px 32px rgba(4, 52, 44, 0.22);
    --shadow-xl: 0 16px 64px rgba(4, 52, 44, 0.28);
    --shadow-glow: 0 0 30px rgba(110, 231, 183, 0.35);
    --shadow-glow-lg: 0 0 60px rgba(110, 231, 183, 0.25), 0 0 120px rgba(52, 211, 153, 0.15);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;

    /* Z-indexes */
    --z-canvas: -1;
    --z-content: 1;
    --z-navbar: 150;
    --z-mobile-menu: 100;
    --z-modal: 200;
    --z-widget: 300;
    --z-transition: 999;

    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: #0fa98f !important;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Subtle high-tech topographic pattern and soft depth vignette on exact #0fa98f */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        /* Fine micro-dot grid */
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        /* Subtle contour gridlines */
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        /* Soft corner depth vignette to focus attention */
        radial-gradient(ellipse at 50% 50%, transparent 65%, rgba(6, 68, 57, 0.28) 100%),
        #0fa98f;
    background-size: 28px 28px, 56px 56px, 56px 56px, 100% 100%, 100% 100%;
    pointer-events: none;
}

/* Three.js Canvas Background */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-canvas);
    pointer-events: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #ffffff;
}

h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 20, 16, 0.4);
}

h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 30, 24, 0.25);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 600;
    color: #ffffff;
}

h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #065f46;
}

p {
    color: var(--text-secondary);
    max-width: 680px;
    font-size: 1.05rem;
    line-height: 1.75;
}

a {
    color: var(--accent-main);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
}

a:hover {
    color: #064e3b;
}

/* --- Focus visibility (keyboard navigation) --- */
:focus-visible {
    outline: 2px solid var(--accent-main);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Gradient text — elegant, high contrast, radiant white typography on teal */
.gradient-text {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ffffff 0%, #e6faf6 50%, #ffffff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block;
    font-weight: 800 !important;
    text-shadow: none !important;
    filter: drop-shadow(0 2px 10px rgba(0, 20, 16, 0.35)) !important;
}

.gradient-text-hero {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ffffff 0%, #d1fae5 50%, #6ee7b7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block;
    font-weight: 800 !important;
    text-shadow: none !important;
    filter: drop-shadow(0 2px 12px rgba(0, 20, 16, 0.4)) !important;
}

.gradient-text-emerald-cyan {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 60%, #34d399 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block;
    font-weight: 800 !important;
    text-shadow: none !important;
}

.gradient-text-aurora {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ffffff 0%, #bbf7d0 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block;
    text-shadow: none !important;
}

/* =================================================================
   UNIVERSAL HIGH-DEFINITION LUXURY OBSIDIAN-TEAL CARD & BOX SYSTEM
   Deep executive emerald cards that blend seamlessly with logo teal (#0fa98f),
   paired with gleaming radiant white and ice-mint razor-sharp typography.
   No jarring white boxes, no blur, 100% visible and stunningly premium.
   ================================================================= */
.card,
.glass-card,
.service-card,
.service-card-full,
.service-preview-card,
.article-card,
.spotlight-card,
.cta-card,
.feature-card,
.dashboard-card,
.modal-card,
.briefing-modal-card,
.dash-card,
.dash-booking-card,
.booking-form-section,
.booking-summary,
.next-step-card,
.contact-form-card,
.contact-channel,
.inquiry-card,
.about-console-card,
.about-quote-box,
.pillar-card-v2,
.value-card-v2,
.team-card-v2,
.comparison-card,
.legacy-card,
.tcl-card,
.pillar-preview-card,
.esg-question-card,
.esg-details-form,
.category-score-card,
.expert-card,
.expert-preview-card,
.impact-stat-card,
.research-card,
.briefing-takeaways-box,
.briefing-cta-box,
.console-metric-tile {
    background: linear-gradient(145deg, #093c33 0%, #052720 100%) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(110, 231, 183, 0.28) !important;
    box-shadow: 0 16px 45px -4px rgba(0, 20, 16, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.card:hover,
.glass-card:hover,
.service-card:hover,
.service-card-full:hover,
.service-preview-card:hover,
.article-card:hover,
.spotlight-card:hover,
.feature-card:hover,
.dash-card:hover,
.dash-booking-card:hover,
.inquiry-card:hover,
.pillar-card-v2:hover,
.value-card-v2:hover,
.team-card-v2:hover,
.pillar-preview-card:hover,
.category-score-card:hover,
.expert-card:hover,
.research-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(110, 231, 183, 0.55) !important;
    box-shadow: 0 24px 60px -4px rgba(0, 20, 16, 0.65), 0 0 28px rgba(110, 231, 183, 0.22) !important;
}

/* Headings inside any card are gleaming radiant pure white */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.glass-card h1, .glass-card h2, .glass-card h3, .glass-card h4,
.service-card h1, .service-card h2, .service-card h3, .service-card h4,
.service-card-full h1, .service-card-full h2, .service-card-full h3, .service-card-full h4,
.service-preview-card h1, .service-preview-card h2, .service-preview-card h3, .service-preview-card h4,
.article-card h1, .article-card h2, .article-card h3, .article-card h4,
.spotlight-card h1, .spotlight-card h2, .spotlight-card h3, .spotlight-card h4,
.cta-card h1, .cta-card h2, .cta-card h3, .cta-card h4,
.modal-card h1, .modal-card h2, .modal-card h3, .modal-card h4,
.briefing-modal-card h1, .briefing-modal-card h2, .briefing-modal-card h3, .briefing-modal-card h4,
.dash-card h1, .dash-card h2, .dash-card h3, .dash-card h4,
.dash-booking-card h1, .dash-booking-card h2, .dash-booking-card h3, .dash-booking-card h4,
.booking-form-section h1, .booking-form-section h2, .booking-form-section h3, .booking-form-section h4,
.booking-summary h1, .booking-summary h2, .booking-summary h3, .booking-summary h4,
.contact-form-card h1, .contact-form-card h2, .contact-form-card h3, .contact-form-card h4,
.inquiry-card h1, .inquiry-card h2, .inquiry-card h3, .inquiry-card h4,
.about-console-card h1, .about-console-card h2, .about-console-card h3, .about-console-card h4,
.pillar-card-v2 h1, .pillar-card-v2 h2, .pillar-card-v2 h3, .pillar-card-v2 h4,
.value-card-v2 h1, .value-card-v2 h2, .value-card-v2 h3, .value-card-v2 h4,
.team-card-v2 h1, .team-card-v2 h2, .team-card-v2 h3, .team-card-v2 h4,
.pillar-preview-card h1, .pillar-preview-card h2, .pillar-preview-card h3, .pillar-preview-card h4,
.esg-question-card h1, .esg-question-card h2, .esg-question-card h3, .esg-question-card h4,
.esg-details-form h1, .esg-details-form h2, .esg-details-form h3, .esg-details-form h4,
.expert-card h1, .expert-card h2, .expert-card h3, .expert-card h4,
.research-card h1, .research-card h2, .research-card h3, .research-card h4,
.article-title, .spotlight-title, .service-title, .team-name, .briefing-modal-title,
.service-preview-card h3, .impact-stat-card .stat-number, .booking-header h4 {
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: -0.015em !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Paragraphs & body text inside any card are rich luminous ice-mint */
.card p, .card li,
.glass-card p, .glass-card li,
.service-card p, .service-card li,
.service-card-full p, .service-card-full li,
.service-preview-card p, .service-preview-card li,
.article-card p, .article-card li,
.spotlight-card p, .spotlight-card li,
.cta-card p, .cta-card li,
.modal-card p, .modal-card li,
.briefing-modal-card p, .briefing-modal-card li,
.dash-card p, .dash-card li,
.dash-booking-card p, .dash-booking-card li,
.booking-form-section p, .booking-form-section li,
.booking-summary p, .booking-summary li,
.contact-form-card p, .contact-form-card li,
.contact-channel p,
.inquiry-card p,
.about-console-card p, .about-console-card li,
.about-quote-box p,
.pillar-card-v2 p, .pillar-card-v2 li,
.value-card-v2 p, .value-card-v2 li,
.team-card-v2 p, .team-card-v2 li,
.team-bio-text,
.comparison-card p, .comparison-card li,
.pillar-preview-card p,
.esg-question-card p, .esg-question-card li,
.esg-details-form p, .esg-details-form li,
.expert-card p,
.research-card p, .research-card-abstract,
.briefing-p, .takeaways-list li,
.excerpt-text, .spotlight-excerpt,
.service-deliverable-item,
.service-target-line,
.question-text,
.cta-card p {
    color: #e2f8f4 !important;
    font-weight: 450 !important;
    line-height: 1.72 !important;
    font-size: 0.98rem !important;
}

/* Meta, labels, timestamps & tags inside cards */
.article-card-meta,
.article-read-time,
.spotlight-read-time,
.service-timeline-pill,
.console-badge,
.telemetry-item,
.impact-stat-card .stat-label,
.form-label,
.esg-form-label,
.checklist-group-label,
.booking-date,
.progress-labels {
    color: #a7f3d0 !important;
    font-weight: 600 !important;
}

/* Universal high-contrast Form Inputs across all sections */
.form-input,
.form-select,
.form-textarea,
.esg-form-input,
.esg-form-select,
.footer-input {
    background: rgba(3, 33, 27, 0.85) !important;
    border: 1.5px solid rgba(110, 231, 183, 0.35) !important;
    border-radius: var(--radius-md) !important;
    color: #ffffff !important;
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    padding: 0.85rem 1.25rem !important;
    outline: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.2s ease !important;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.esg-form-input:focus,
.esg-form-select:focus,
.footer-input:focus {
    background: rgba(3, 33, 27, 0.98) !important;
    border-color: #34d399 !important;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

.form-input::placeholder,
.form-textarea::placeholder,
.esg-form-input::placeholder,
.footer-input::placeholder {
    color: rgba(226, 248, 244, 0.6) !important;
    font-weight: 400 !important;
}

/* Tasteful, harmonious color font accents */
.highlight-emerald {
    color: #34d399 !important;
    font-weight: 600;
    text-shadow: 0 0 14px rgba(52, 211, 153, 0.3);
}

.highlight-cyan {
    color: #2dd4bf !important;
    font-weight: 600;
    text-shadow: 0 0 14px rgba(45, 212, 191, 0.3);
}

.highlight-blue {
    color: #38bdf8 !important;
    font-weight: 600;
    text-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.highlight-mint {
    color: #6ee7b7 !important;
    font-weight: 600;
}

/* Logo & Brand text */
.logo-text,
.nav-logo .logo-text,
.footer-brand span {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: inline-block;
}

/* --- Layout --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.main-content {
    position: relative;
    z-index: var(--z-content);
    min-height: 100vh;
}

.section {
    padding: var(--space-5xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-header .section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: var(--space-md);
    padding: var(--space-xs) var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 16px rgba(4, 52, 44, 0.15);
    backdrop-filter: blur(12px);
}

.section-header h2 {
    margin-bottom: var(--space-lg);
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 30, 24, 0.35);
}

.section-header p {
    margin: 0 auto;
    font-size: 1.15rem;
    color: #f0fdfa;
    max-width: 720px;
}

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    :root {
        --container-padding: 1rem;
        --space-5xl: 5rem;
        --space-4xl: 4rem;
    }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(5, 150, 105, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(5, 150, 105, 0.4);
}

/* --- Selection --- */
::selection {
    background: rgba(16, 185, 129, 0.25);
    color: #064e3b;
}

/* --- Page Transition Overlay --- */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: var(--z-transition);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-accent { color: var(--accent-cyan); }
.text-secondary { color: var(--text-secondary); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { gap: var(--space-md); }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
