/* ==========================================================================
   STERLING CAPITAL — PRIVATE WEALTH & FAMILY OFFICE
   Ultra-Premium Swiss / Mayfair Institutional Style System
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-primary: #060a14;
    --bg-secondary: #0a1020;
    --bg-surface: #0f182e;
    --bg-surface-elevated: #14203d;
    --bg-card: rgba(15, 24, 46, 0.75);
    --bg-card-hover: rgba(20, 32, 61, 0.85);
    --bg-input: #0a1122;

    /* Gold System */
    --gold-100: #fbf5e8;
    --gold-200: #f0dbaf;
    --gold-300: #dfba73;
    --gold-400: #c5a059;
    --gold-500: #a9833e;
    --gold-600: #7d5e24;
    --gold-grad: linear-gradient(135deg, #f5e2ba 0%, #c5a059 50%, #8e6e34 100%);
    --gold-grad-soft: linear-gradient(135deg, rgba(223, 186, 115, 0.15) 0%, rgba(197, 160, 89, 0.04) 100%);
    --gold-glow: rgba(197, 160, 89, 0.25);
    --gold-glow-subtle: rgba(197, 160, 89, 0.08);

    /* Text & Lines */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --line-subtle: rgba(255, 255, 255, 0.07);
    --line-gold: rgba(197, 160, 89, 0.35);

    /* Accents */
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;

    /* Typography */
    --font-serif: 'Cinzel', serif;
    --font-editorial: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    /* Elevation & Transitions */
    --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 10px 35px -5px rgba(197, 160, 89, 0.2);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Utility Containers & Typography */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.75rem;
}

h1, h2, h3, h4, .brand-title {
    font-family: var(--font-serif);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.text-gold {
    color: var(--gold-400);
}

.text-gold-light {
    color: var(--gold-200);
}

.gold-gradient-text {
    background: var(--gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-center {
    text-align: center;
}

.text-green {
    color: var(--accent-emerald);
}

.text-yellow {
    color: #f59e0b;
}

/* Eyebrow Badges */
.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(197, 160, 89, 0.08);
    border: 1px solid var(--border-gold, rgba(197, 160, 89, 0.3));
    color: var(--gold-300);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 1.18;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
}

/* ==========================================================================
   TOP BAR & NAVIGATION
   ========================================================================== */

.top-bar {
    background: #04070e;
    border-bottom: 1px solid var(--line-subtle);
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
    z-index: 1001;
}

.top-bar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.fca-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    color: var(--gold-300);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    display: inline-block;
}

.divider-v {
    width: 1px;
    height: 12px;
    background: var(--line-subtle);
}

.desk-item {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.desk-item .city {
    color: var(--text-secondary);
}

.desk-item .time {
    color: var(--gold-300);
}

.btn-portal-trigger {
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--line-gold);
    color: var(--gold-200);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.btn-portal-trigger:hover {
    background: var(--gold-400);
    color: var(--bg-primary);
}

/* Header & Nav */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(6, 10, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-subtle);
    z-index: 1000;
    transition: var(--transition);
}

.header.is-scrolled {
    background: rgba(4, 7, 14, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.1rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-crest-svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.brand-crest-svg.small {
    width: 28px;
    height: 28px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    line-height: 1.1;
}

.brand-sub {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    margin-top: 2px;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold-400);
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-advisory-cta {
    background: transparent;
    border: 1px solid var(--gold-400);
    color: var(--gold-300) !important;
    padding: 0.6rem 1.35rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: var(--transition);
}

.btn-advisory-cta:hover {
    background: var(--gold-400);
    color: var(--bg-primary) !important;
    box-shadow: 0 0 20px var(--gold-glow);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold-300);
    transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    padding: 7rem 0 6rem;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.12) 0%, rgba(6, 10, 20, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.75rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    background: rgba(197, 160, 89, 0.07);
    border: 1px solid var(--line-gold);
    color: var(--gold-200);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    margin-bottom: 2rem;
}

.badge-tag {
    background: var(--gold-400);
    color: var(--bg-primary);
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 3px;
    font-size: 0.65rem;
}

.hero-title {
    font-size: clamp(2.6rem, 5.8vw, 4.4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-editorial {
    font-family: var(--font-editorial);
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-style: italic;
    color: var(--gold-200);
    max-width: 780px;
    margin: 0 auto 1.5rem;
    line-height: 1.4;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 740px;
    margin: 0 auto 2.75rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 4.5rem;
    flex-wrap: wrap;
}

.btn-primary-gold {
    background: var(--gold-grad);
    color: #060a14;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.35);
    transition: var(--transition);
}

.btn-primary-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.5);
    background: linear-gradient(135deg, #fdf1d6 0%, #d8b46d 50%, #9e7d3d 100%);
}

.btn-secondary-glass {
    background: rgba(15, 24, 46, 0.7);
    border: 1px solid var(--line-gold);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.85rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.btn-secondary-glass:hover {
    border-color: var(--gold-300);
    color: var(--gold-200);
    background: rgba(22, 34, 64, 0.9);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Hero Stats Grid */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    border-top: 1px solid var(--line-subtle);
    padding-top: 2.75rem;
    text-align: left;
}

.stat-card {
    background: rgba(15, 24, 46, 0.5);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.35rem;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--line-gold);
    background: rgba(20, 32, 61, 0.7);
    transform: translateY(-2px);
}

.stat-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.stat-num {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--gold-300);
}

.stat-indicator {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

.stat-indicator.neutral {
    color: var(--gold-300);
    background: rgba(197, 160, 89, 0.1);
}

.stat-lbl {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    line-height: 1.35;
}

/* ==========================================================================
   SIMULATOR SECTION (Multi-Decade Compounding)
   ========================================================================== */

.simulator-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--line-subtle);
    border-bottom: 1px solid var(--line-subtle);
    padding: 6.5rem 0;
    position: relative;
}

.simulator-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.35fr;
    gap: 2.5rem;
    align-items: start;
}

.sim-controls-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-subtle);
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line-subtle);
}

.card-heading {
    font-size: 1.35rem;
}

.reset-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.reset-link:hover {
    color: var(--gold-300);
}

.input-control-block {
    margin-bottom: 2rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.slider-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.slider-val {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 600;
}

/* Custom Range Input */
.gold-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: #1c2742;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gold-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold-grad);
    border: 2px solid #060a14;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.6);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gold-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 16px rgba(197, 160, 89, 0.9);
}

.gold-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold-grad);
    border: 2px solid #060a14;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.6);
    cursor: pointer;
}

.quick-chips {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.chip-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-subtle);
    color: var(--text-secondary);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.chip-btn:hover, .chip-btn.is-active {
    border-color: var(--gold-400);
    color: var(--gold-200);
    background: rgba(197, 160, 89, 0.12);
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.slider-subtext {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Strategy Cards */
.strategy-selector-block {
    margin-top: 1.5rem;
}

.strat-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.strat-card {
    background: var(--bg-primary);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    transition: var(--transition);
}

.strat-card:hover {
    border-color: rgba(197, 160, 89, 0.4);
    background: #0d152a;
}

.strat-card.is-selected {
    border-color: var(--gold-400);
    background: rgba(197, 160, 89, 0.08);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.1);
}

.strat-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    margin-top: 3px;
    flex-shrink: 0;
    position: relative;
    transition: var(--transition);
}

.strat-card.is-selected .strat-radio {
    border-color: var(--gold-400);
}

.strat-card.is-selected .strat-radio::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--gold-400);
}

.strat-info {
    width: 100%;
}

.strat-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.strat-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.strat-rate {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-300);
}

.strat-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Analytics Output Card */
.sim-analytics-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.analytics-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.metric-box {
    background: var(--bg-primary);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
}

.metric-box.highlight {
    border-color: var(--line-gold);
    background: rgba(197, 160, 89, 0.05);
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.metric-val {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.metric-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Chart Canvas Wrapper */
.chart-wrapper {
    background: var(--bg-primary);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
}

.chart-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chart-title-wrap {
    display: flex;
    flex-direction: column;
}

.chart-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chart-legend {
    display: flex;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.gold {
    background: var(--gold-400);
}

.legend-dot.blue {
    background: var(--accent-blue);
}

.legend-dot.cyan {
    background: var(--accent-cyan);
}

.canvas-box {
    position: relative;
    width: 100%;
    height: 280px;
}

#growthCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.chart-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(6, 10, 20, 0.95);
    border: 1px solid var(--gold-400);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 10;
    min-width: 180px;
    backdrop-filter: blur(8px);
}

/* Asset Allocation Stacked Bar */
.asset-allocation-bar-wrap {
    background: var(--bg-primary);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.alloc-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.alloc-title {
    font-weight: 600;
    color: var(--text-secondary);
}

.alloc-active-name {
    font-family: var(--font-mono);
    color: var(--gold-300);
    font-size: 0.78rem;
}

.alloc-stacked-bar {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    margin-bottom: 0.85rem;
    background: #1c2742;
}

.alloc-seg {
    height: 100%;
    transition: width 0.4s ease;
}

.seg-equity { background: #c5a059; }
.seg-credit { background: #3b82f6; }
.seg-real { background: #10b981; }
.seg-cash { background: #06b6d4; }

.alloc-legend-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.alloc-legend-row .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 4px;
}

.dot.eq { background: #c5a059; }
.dot.cr { background: #3b82f6; }
.dot.re { background: #10b981; }
.dot.ca { background: #06b6d4; }

.sim-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.sim-disclaimer svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--gold-400);
}

/* ==========================================================================
   SECTION 2: INHERITANCE TAX (IHT) CALCULATOR
   ========================================================================== */

.iht-section {
    padding: 6.5rem 0;
    position: relative;
}

.iht-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.25fr;
    gap: 2.5rem;
    align-items: start;
}

.iht-inputs-card, .iht-results-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-subtle);
}

.card-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: -0.25rem;
    margin-bottom: 2rem;
}

.iht-form-group {
    margin-bottom: 1.85rem;
}

.iht-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.iht-val-badge {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--gold-300);
    font-weight: 600;
}

.field-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.45rem;
    line-height: 1.35;
}

.iht-form-row {
    margin-bottom: 1.85rem;
}

.radio-pill-group {
    display: flex;
    gap: 0.6rem;
    flex-direction: column;
}

.pill-btn {
    background: var(--bg-primary);
    border: 1px solid var(--line-subtle);
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.pill-btn:hover {
    border-color: var(--line-gold);
    color: var(--text-primary);
}

.pill-btn.is-active {
    border-color: var(--gold-400);
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-200);
    font-weight: 600;
}

/* IHT Results Card */
.iht-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line-subtle);
}

.iht-verdict-badge {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--accent-emerald);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
}

.iht-comparison-box {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.25rem;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}

.comp-col {
    display: flex;
    flex-direction: column;
}

.comp-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.comp-tag.danger {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.comp-tag.success {
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold-300);
    border: 1px solid var(--line-gold);
}

.comp-figure {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
}

.comp-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.comp-bar-track {
    width: 100%;
    height: 8px;
    background: #1c2742;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.comp-bar-fill {
    height: 100%;
    transition: width 0.4s ease;
}

.comp-bar-fill.red {
    background: var(--accent-rose);
}

.comp-bar-fill.gold {
    background: var(--gold-grad);
}

.comp-subtext {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.comp-vs {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* Mitigation Mechanisms List */
.mitigation-mechanisms {
    margin-bottom: 2rem;
}

.mechanisms-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 1rem;
}

.mechanism-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.mech-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: var(--bg-primary);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
}

.mech-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.mech-body strong {
    font-size: 0.88rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.2rem;
}

.mech-body p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* ==========================================================================
   SECTION 3: FIDUCIARY DISCIPLINES
   ========================================================================== */

.disciplines-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--line-subtle);
    border-bottom: 1px solid var(--line-subtle);
    padding: 6.5rem 0;
}

.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.discipline-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.discipline-card:hover {
    border-color: var(--line-gold);
    background: var(--bg-surface-elevated);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.disc-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gold-400);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.disc-icon {
    color: var(--gold-300);
    margin-bottom: 1.25rem;
}

.discipline-card h3 {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.discipline-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.disc-points {
    list-style: none;
    border-top: 1px solid var(--line-subtle);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.disc-points li {
    font-size: 0.82rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.25rem;
    line-height: 1.35;
}

.disc-points li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold-400);
    font-size: 0.7rem;
}

/* ==========================================================================
   SECTION 4: PORTFOLIO ARCHITECTURE & TRACK RECORD
   ========================================================================== */

.track-record-section {
    padding: 6.5rem 0;
}

.table-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.table-responsive {
    overflow-x: auto;
}

.perf-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.perf-table th {
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line-subtle);
}

.perf-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--line-subtle);
    color: var(--text-secondary);
}

.perf-table tbody tr {
    transition: background 0.2s ease;
}

.perf-table tbody tr:hover {
    background: rgba(197, 160, 89, 0.04);
}

.perf-table .featured-row {
    background: rgba(197, 160, 89, 0.07);
    border-left: 3px solid var(--gold-400);
}

.perf-table .sub-cell {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.badge-flag {
    background: var(--gold-400);
    color: var(--bg-primary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.table-footer {
    padding: 1.25rem 1.75rem;
    background: var(--bg-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.table-link {
    color: var(--gold-300);
    text-decoration: none;
    font-weight: 600;
}

.table-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   SECTION 5: CASE STUDIES
   ========================================================================== */

.case-studies-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--line-subtle);
    border-bottom: 1px solid var(--line-subtle);
    padding: 6.5rem 0;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.case-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.case-card:hover {
    border-color: var(--line-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.case-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold-300);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.case-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
}

.case-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.case-solution {
    background: var(--bg-primary);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.case-solution strong {
    font-size: 0.82rem;
    color: var(--gold-200);
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-solution ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.case-solution li {
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.1rem;
    line-height: 1.35;
}

.case-solution li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--gold-400);
    font-weight: bold;
    font-size: 1rem;
    line-height: 0.8;
}

.case-stat-box {
    border-top: 1px solid var(--line-subtle);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
}

.cs-num {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
}

.cs-lbl {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   SECTION 6: SENIOR LEADERSHIP & PARTNERS
   ========================================================================== */

.leadership-section {
    padding: 6.5rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.partner-card:hover {
    border-color: var(--line-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.partner-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
}

.avatar-initials {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--gold-300);
    font-weight: 700;
}

.partner-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
}

.partner-role {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--gold-300);
    display: block;
    margin-bottom: 1rem;
}

.partner-bio {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.partner-creds {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.partner-creds span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    border: 1px solid var(--line-subtle);
}

/* ==========================================================================
   SECTION 7: INSTITUTIONAL CUSTODY & SAFEGUARDS
   ========================================================================== */

.custody-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--line-subtle);
    border-bottom: 1px solid var(--line-subtle);
    padding: 5rem 0;
}

.custody-box {
    text-align: center;
    max-width: 1050px;
    margin: 0 auto;
}

.custody-header h2 {
    font-size: 2.2rem;
    margin: 0.5rem 0 1rem;
}

.custody-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 780px;
    margin: 0 auto 3rem;
    line-height: 1.65;
}

.custodians-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.cust-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.25rem;
    transition: var(--transition);
}

.cust-card:hover {
    border-color: var(--line-gold);
    transform: translateY(-2px);
}

.cust-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: var(--gold-200);
    margin-bottom: 0.5rem;
}

.cust-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
    line-height: 1.4;
}

/* ==========================================================================
   SECTION 8: SENIOR PARTNER CONSULTATION (Interactive Multi-Step Flow)
   ========================================================================== */

.consultation-section {
    padding: 6.5rem 0;
    position: relative;
}

.consult-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 3.5rem;
    align-items: start;
}

.consult-copy h2 {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    margin: 0.5rem 0 1.25rem;
    line-height: 1.15;
}

.consult-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 2.25rem;
}

.consult-locations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.loc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

.loc-icon {
    font-size: 1.4rem;
}

.loc-item strong {
    font-size: 0.95rem;
    color: var(--text-primary);
    display: block;
}

.loc-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.direct-contact-bar {
    border-top: 1px solid var(--line-subtle);
    padding-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.88rem;
}

.dc-lbl {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.dc-val {
    color: var(--gold-300);
}

/* Multi-Step Booking Card */
.consult-form-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-xl);
    padding: 2.75rem 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    position: relative;
}

.step-progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.25rem;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.step-indicator span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--line-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-indicator.is-active {
    color: var(--gold-300);
}

.step-indicator.is-active span {
    background: var(--gold-400);
    color: var(--bg-primary);
    border-color: var(--gold-400);
}

.step-line {
    flex-grow: 1;
    height: 1px;
    background: var(--line-subtle);
    margin: 0 0.75rem;
}

.form-step-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step-pane.is-visible {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-heading {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.step-field {
    margin-bottom: 1.5rem;
}

.field-label, .input-lbl {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.6rem;
}

.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.option-tile {
    cursor: pointer;
}

.option-tile input {
    display: none;
}

.tile-inner {
    display: block;
    background: var(--bg-primary);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: var(--transition);
}

.option-tile input:checked + .tile-inner {
    border-color: var(--gold-400);
    background: rgba(197, 160, 89, 0.08);
}

.tile-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.2rem;
}

.tile-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
}

.f-select, .f-input, .f-textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--line-subtle);
    color: var(--text-primary);
    padding: 0.95rem 1.15rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition);
}

.f-select:focus, .f-input:focus, .f-textarea:focus {
    border-color: var(--gold-400);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.15);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cb-pill {
    background: var(--bg-primary);
    border: 1px solid var(--line-subtle);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.cb-pill input {
    accent-color: var(--gold-400);
}

.cb-pill:hover {
    border-color: var(--line-gold);
}

.f-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.f-group {
    margin-bottom: 1.25rem;
}

.nda-checkbox-wrap {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(197, 160, 89, 0.05);
    border: 1px dashed var(--line-gold);
    border-radius: var(--radius-sm);
}

.cb-container {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.4;
}

.cb-container input {
    accent-color: var(--gold-400);
    margin-top: 3px;
}

.step-btn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-back {
    background: none;
    border: 1px solid var(--line-subtle);
    color: var(--text-secondary);
    padding: 0.95rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-back:hover {
    border-color: var(--gold-400);
    color: var(--text-primary);
}

/* Success Screen */
.success-screen {
    text-align: center;
    padding: 1.5rem 0;
}

.success-crest-icon {
    font-size: 2.5rem;
    color: var(--gold-400);
    margin-bottom: 1rem;
}

.success-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.success-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 2rem;
}

.booking-ref-card {
    background: var(--bg-primary);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    max-width: 380px;
    margin: 0 auto 2rem;
}

.ref-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.35rem;
}

.ref-code {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    color: var(--gold-300);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.35rem;
}

.ref-sub {
    font-size: 0.75rem;
    color: var(--accent-emerald);
}

.success-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ==========================================================================
   SECTION 9: FAQ ACCORDION
   ========================================================================== */

.faq-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--line-subtle);
    border-bottom: 1px solid var(--line-subtle);
    padding: 6.5rem 0;
}

.faq-accordion-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.is-open {
    border-color: var(--line-gold);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 1.75rem;
    text-align: left;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--gold-300);
}

.faq-toggle-icon {
    font-size: 1.35rem;
    color: var(--gold-400);
    transition: transform 0.25s ease;
}

.faq-item.is-open .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
    padding: 0 1.75rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

.faq-item.is-open .faq-answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

/* ==========================================================================
   CLIENT PORTAL MODAL
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 14, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-backdrop.is-active {
    display: flex;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-xl);
    max-width: 460px;
    width: 100%;
    padding: 2.75rem 2.25rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-crest {
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.45rem;
    margin-bottom: 0.35rem;
}

.modal-sub {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold-300);
    margin-bottom: 2rem;
}

.portal-form {
    text-align: left;
    margin-bottom: 1.5rem;
}

.mono-font {
    font-family: var(--font-mono);
    letter-spacing: 0.2em;
    font-size: 1.1rem;
    text-align: center;
}

.portal-status-alert {
    background: var(--bg-primary);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-badge-sec {
    color: var(--accent-emerald);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.portal-footer-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: #04070e;
    border-top: 1px solid var(--line-subtle);
    padding: 5.5rem 0 3rem;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 1.25rem 0 1.5rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-cert-tags {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cert-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.footer-heading {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.footer-address {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-address strong {
    color: var(--gold-300);
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--gold-300);
}

.footer-regulatory-box {
    border-top: 1px solid var(--line-subtle);
    border-bottom: 1px solid var(--line-subtle);
    padding: 1.75rem 0;
    margin-bottom: 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: var(--gold-300);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1080px) {
    .simulator-grid, .iht-grid, .consult-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(6, 10, 20, 0.98);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--line-gold);
        display: none;
    }

    .nav-links.is-open {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .top-bar-left, .top-bar-right {
        justify-content: center;
        width: 100%;
    }

    .hero {
        padding: 4.5rem 0 3.5rem;
    }

    .analytics-metrics-grid {
        grid-template-columns: 1fr;
    }

    .option-grid, .f-row {
        grid-template-columns: 1fr;
    }

    .iht-comparison-box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .comp-tag {
        align-self: center;
    }

    .comp-vs {
        margin: 0.5rem 0;
    }
}

@media (max-width: 600px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
    }

    .sim-controls-card, .sim-analytics-card, .iht-inputs-card, .iht-results-card, .consult-form-card {
        padding: 1.5rem 1.25rem;
    }
}
