/**
 * Design System — 4F BUILD Platform
 * Paleta extraída da identidade visual 4F BUILD (navy, azul médio, teal, laranja).
 * LEI ZERO: SOBERANIA DOS TOKENS. NENHUM VALOR HARDCODED FORA DO :root.
 */

:root {
    /* ── Paleta 4F BUILD ──────────────────────────────── */
    --brand-navy: #1d3557;
    --brand-blue: #2878c0;
    --brand-blue-hover: #1f64a8;
    --brand-blue-active: #17497d;
    --brand-teal: #3ab8d0;
    --brand-orange: #e87722;
    --brand-orange-hover: #d0661a;
    /* ──────────────────────────────────────────────────── */

    /* Cores Semânticas - Texto */
    --text-primary: #1d3557;
    --text-secondary: #4a637e;
    --text-muted: #8fa4b8;
    --text-on-dark: #ffffff;
    --text-on-brand: #ffffff;
    --text-inverse: #ffffff;

    /* Cores Semânticas - Superfícies */
    --surface-page: #eef2f7;
    --surface-section: #f5f8fb;
    --surface-card: #ffffff;
    --surface-subtle: #eef2f7;
    --surface-elevated: #dde4ed;

    /* Cores Semânticas - Ações */
    --action-primary: var(--brand-blue);
    --action-primary-hover: var(--brand-blue-hover);
    --action-primary-active: var(--brand-blue-active);
    --action-secondary: #dde4ed;
    --action-strong: var(--brand-orange);
    --action-strong-hover: var(--brand-orange-hover);

    /* Cores Semânticas - Bordas */
    --border-default: #c5d3e0;
    --border-subtle: #e8eef5;
    --border-focus: var(--brand-blue);

    /* Cores Semânticas - Status */
    --status-success: #1a9a5c;
    --status-warning: var(--brand-orange);
    --status-error: #d63031;
    --status-info: var(--brand-teal);

    /* Escala de Espaçamento */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Tipografia */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --text-4xl: 36px;
    --text-5xl: 48px;

    /* Pesos de Fonte */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* UI & Elevação */
    --radius-sm: 3px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 1px rgba(29, 53, 87, 0.08);
    --shadow-md: 0 2px 8px rgba(29, 53, 87, 0.12);
    --shadow-lg: 0 4px 16px rgba(29, 53, 87, 0.18);
    --shadow-card: 0 1px 3px rgba(29, 53, 87, 0.08);
    --shadow-card-hover: 0 4px 12px rgba(29, 53, 87, 0.14);
    --shadow-button-primary: 0 2px 6px rgba(40, 120, 192, 0.3);
}

/* Base resets mapped to tokens */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--surface-page);
    color: var(--text-primary);
    font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
}

a {
    color: var(--action-primary);
    text-decoration: none;
}

a:hover {
    color: var(--action-primary-hover);
}

/* =========================================================================
   UTILITY CLASSES (Semantic Mappings)
   ========================================================================= */

/* --- Colors: Text --- */
.text-primary {
    color: var(--text-primary);
}

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

.text-muted {
    color: var(--text-muted);
}

.text-on-dark {
    color: var(--text-on-dark);
}

.text-on-brand {
    color: var(--text-on-brand);
}

.status-success-text {
    color: var(--status-success);
}

.status-warning-text {
    color: var(--status-warning);
}

.status-error-text {
    color: var(--status-error);
}

.action-primary-text {
    color: var(--action-primary);
}

/* --- Colors: Surfaces --- */
.surface-page {
    background-color: var(--surface-page);
}

.surface-section {
    background-color: var(--surface-section);
}

.surface-card {
    background-color: var(--surface-card);
}

.surface-subtle {
    background-color: var(--surface-subtle);
}

.surface-elevated {
    background-color: var(--surface-elevated);
}

.action-primary-bg {
    background-color: var(--action-primary);
}

/* --- Status Backgrounds --- */
.status-success-bg {
    background-color: var(--status-success);
    color: var(--text-on-dark);
}

.status-warning-bg {
    background-color: var(--status-warning);
    color: var(--text-on-dark);
}

.status-error-bg {
    background-color: var(--status-error);
    color: var(--text-on-dark);
}

.status-info-bg {
    background-color: var(--status-info);
    color: var(--text-on-dark);
}

/* --- Typography: Sizes --- */
.text-xs {
    font-size: var(--text-xs);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-base {
    font-size: var(--text-base);
}

.text-lg {
    font-size: var(--text-lg);
}

.text-xl {
    font-size: var(--text-xl);
}

.text-2xl {
    font-size: var(--text-2xl);
}

.text-3xl {
    font-size: var(--text-3xl);
}

.text-4xl {
    font-size: var(--text-4xl);
}

.text-5xl {
    font-size: var(--text-5xl);
}

/* --- Typography: Weights --- */
.font-normal {
    font-weight: var(--font-normal);
}

.font-medium {
    font-weight: var(--font-medium);
}

.font-semibold {
    font-weight: var(--font-semibold);
}

.font-bold {
    font-weight: var(--font-bold);
}

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

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

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

/* --- Spacing: Margins --- */
.m-0 {
    margin: 0;
}

.m-space-1 {
    margin: var(--space-1);
}

.m-space-2 {
    margin: var(--space-2);
}

.m-space-3 {
    margin: var(--space-3);
}

.m-space-4 {
    margin: var(--space-4);
}

.m-space-6 {
    margin: var(--space-6);
}

.m-space-8 {
    margin: var(--space-8);
}

.m-space-12 {
    margin: var(--space-12);
}

.m-space-16 {
    margin: var(--space-16);
}

.m-space-20 {
    margin: var(--space-20);
}

.mt-space-1 {
    margin-top: var(--space-1);
}

.mt-space-2 {
    margin-top: var(--space-2);
}

.mt-space-4 {
    margin-top: var(--space-4);
}

.mt-space-6 {
    margin-top: var(--space-6);
}

.mt-space-8 {
    margin-top: var(--space-8);
}

.mt-space-12 {
    margin-top: var(--space-12);
}

.mt-space-16 {
    margin-top: var(--space-16);
}

.mb-space-1 {
    margin-bottom: var(--space-1);
}

.mb-space-2 {
    margin-bottom: var(--space-2);
}

.mb-space-3 {
    margin-bottom: var(--space-3);
}

.mb-space-4 {
    margin-bottom: var(--space-4);
}

.mb-space-6 {
    margin-bottom: var(--space-6);
}

.mb-space-8 {
    margin-bottom: var(--space-8);
}

.mb-space-12 {
    margin-bottom: var(--space-12);
}

.ml-space-2 {
    margin-left: var(--space-2);
}

.ml-space-4 {
    margin-left: var(--space-4);
}

.ml-space-8 {
    margin-left: var(--space-8);
}

.mr-space-2 {
    margin-right: var(--space-2);
}

.mr-space-4 {
    margin-right: var(--space-4);
}

.mr-space-8 {
    margin-right: var(--space-8);
}

/* --- Spacing: Paddings --- */
.p-0 {
    padding: 0;
}

.p-space-1 {
    padding: var(--space-1);
}

.p-space-2 {
    padding: var(--space-2);
}

.p-space-3 {
    padding: var(--space-3);
}

.p-space-4 {
    padding: var(--space-4);
}

.p-space-6 {
    padding: var(--space-6);
}

.p-space-8 {
    padding: var(--space-8);
}

.p-space-12 {
    padding: var(--space-12);
}

.p-space-16 {
    padding: var(--space-16);
}

.p-space-20 {
    padding: var(--space-20);
}

.pt-space-4 {
    padding-top: var(--space-4);
}

.pt-space-8 {
    padding-top: var(--space-8);
}

.pt-space-12 {
    padding-top: var(--space-12);
}

.pb-space-4 {
    padding-bottom: var(--space-4);
}

.pb-space-8 {
    padding-bottom: var(--space-8);
}

.pb-space-12 {
    padding-bottom: var(--space-12);
}

.ph-space-4 {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.ph-space-8 {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}

/* --- Layout Structure --- */
.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.flex {
    display: flex;
}

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

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

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-space-2 {
    gap: var(--space-2);
}

.gap-space-4 {
    gap: var(--space-4);
}

.gap-space-6 {
    gap: var(--space-6);
}

.gap-space-8 {
    gap: var(--space-8);
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

/* Grid systems */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Responsive adjustments for generic layout */
@media (max-width: 768px) {
    .md-grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .md-flex-col {
        flex-direction: column;
    }
}

/* --- Borders & Radii --- */
.border-default {
    border: 1px solid var(--border-default);
}

.border-subtle {
    border: 1px solid var(--border-subtle);
}

.border-top-default {
    border-top: 1px solid var(--border-default);
}

.border-bottom-default {
    border-bottom: 1px solid var(--border-default);
}

.border-top-thick-primary {
    border-top: 3px solid var(--action-primary);
}

.radius-sm {
    border-radius: var(--radius-sm);
}

.radius-md {
    border-radius: var(--radius-md);
}

.radius-lg {
    border-radius: var(--radius-lg);
}

.radius-full {
    border-radius: var(--radius-full);
}

/* --- Elevations (Shadows) --- */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-card {
    box-shadow: var(--shadow-card);
}

.shadow-card-hover:hover {
    box-shadow: var(--shadow-card-hover);
}

/* --- Components Base --- */

/* App Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.btn-primary {
    background-color: var(--action-primary);
    color: var(--text-on-brand);
    border-color: var(--action-primary-hover);
    box-shadow: var(--shadow-button-primary);
}

.btn-primary:hover {
    background-color: var(--action-primary-hover);
    color: var(--text-on-brand);
}

.btn-secondary {
    background-color: var(--surface-card);
    color: var(--text-primary);
    border-color: var(--border-default);
}

.btn-secondary:hover {
    background-color: var(--surface-subtle);
}

.btn-strong {
    background-color: var(--action-strong);
    color: var(--text-on-dark);
    border-color: var(--action-strong-hover);
}

.btn-strong:hover {
    background-color: var(--action-strong-hover);
}

.btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
}

.disabled,
:disabled {
    color: var(--text-muted) !important;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi parent on surface page is an exception for overlays */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

/* Header & Nav */
.header-navbar {
    background-color: var(--action-primary);
    padding: var(--space-2) var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.header-logo {
    color: var(--text-on-brand);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    letter-spacing: 1px;
}

.header-nav-link {
    color: var(--text-on-brand);
    padding: var(--space-2) var(--space-3);
    font-weight: var(--font-medium);
    transition: background-color 0.2s;
}

.header-nav-link:hover {
    background-color: var(--action-primary-hover);
}

/* Generic Section Hero */
.hero-section {
    background-color: var(--surface-card);
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
    border-bottom: 1px solid var(--border-default);
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-xl);
    max-width: 800px;
    margin: 0 auto;
}

/* Card Block (AdminLTE Classic Box) */
.box {
    background-color: var(--surface-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    border-top: 3px solid var(--border-default);
    margin-bottom: var(--space-4);
    width: 100%;
}

.box-primary {
    border-top-color: var(--action-primary);
}

.box-success {
    border-top-color: var(--status-success);
}

.box-warning {
    border-top-color: var(--status-warning);
}

.box-danger {
    border-top-color: var(--status-error);
}

.box-header {
    color: var(--text-primary);
    display: block;
    padding: var(--space-2) var(--space-2);
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}

.box-title {
    display: inline-block;
    font-size: var(--text-lg);
    margin: 0;
    line-height: 1;
    font-weight: var(--font-normal);
}

.box-body {
    border-radius: var(--radius-sm);
    padding: var(--space-3);
}


.box-footer {
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-2);
    background-color: var(--surface-card);
    border-bottom-left-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
}

/* Interactive elements state */
.interactive-hover:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

/* Features icons */
.feature-icon-wrapper {
    background-color: var(--surface-subtle);
    color: var(--action-primary);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

/* Footers */
.site-footer {
    background-color: var(--surface-card);
    border-top: 1px solid var(--border-default);
    padding: var(--space-8) 0;
    margin-top: var(--space-12);
}

/* =========================================================================
   FRONTPAGE SPECIFIC COMPONENTS
   ========================================================================= */

/* --- Hero 2 colunas --- */
.hero-section {
    background-color: var(--surface-card);
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
    border-bottom: 1px solid var(--border-default);
}

.hero-section .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-section .hero-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.hero-section .hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-visual {
    background-color: var(--surface-subtle);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.hero-visual-bar {
    background-color: var(--surface-elevated);
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.hero-visual-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background-color: var(--border-default);
}

.hero-visual-dot.red {
    background-color: var(--status-error);
}

.hero-visual-dot.yellow {
    background-color: var(--status-warning);
}

.hero-visual-dot.green {
    background-color: var(--status-success);
}

.hero-visual-content {
    padding: var(--space-4);
}

/* KPI cards inside hero mock */
.hero-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.hero-kpi-card {
    background-color: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: var(--space-3);
    box-shadow: var(--shadow-sm);
}

.hero-kpi-card .kpi-value {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--action-primary);
}

.hero-kpi-card .kpi-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.hero-kpi-card.success .kpi-value {
    color: var(--status-success);
}

.hero-kpi-card.warning .kpi-value {
    color: var(--status-warning);
}

.hero-kpi-card.error .kpi-value {
    color: var(--status-error);
}

/* Mock bar chart inside hero */
.hero-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: var(--space-2);
    height: 64px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: var(--space-1);
}

.hcb {
    flex: 1;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background-color: var(--action-primary);
    opacity: 0.7;
}

.hcb.h1 {
    height: 40%;
}

.hcb.h2 {
    height: 70%;
}

.hcb.h3 {
    height: 55%;
}

.hcb.h4 {
    height: 85%;
}

.hcb.h5 {
    height: 65%;
    opacity: 1;
}

.hcb.h6 {
    height: 50%;
}

/* --- Stats Bar --- */
.stats-bar {
    background-color: #2d3748;
    border-top: none;
    border-bottom: none;
    padding: var(--space-6) 0;
}

.stats-bar .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    text-align: center;
}

.stats-bar .stat-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--text-on-dark);
    line-height: 1;
}

.stats-bar .stat-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.55);
    margin-top: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-bar .stat-divider {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stats-bar .stat-divider:last-child {
    border-right: none;
}

/* --- CTA Section (Banner intermediário) --- */
.cta-banner {
    background-color: var(--action-primary);
    padding: var(--space-12) 0;
    text-align: center;
}

.cta-banner .cta-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--text-on-brand);
    margin-bottom: var(--space-2);
}

.cta-banner .cta-sub {
    font-size: var(--text-base);
    color: var(--text-on-brand);
    opacity: 0.85;
    margin-bottom: var(--space-6);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--text-on-dark);
    border: 2px solid var(--text-on-dark);
    padding: var(--space-3) var(--space-8);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-base);
}

.btn-outline-white:hover {
    background-color: var(--action-primary-active);
    color: var(--text-on-dark);
}

/* --- Module Cards (melhorado) --- */
.module-card {
    background-color: var(--surface-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    border-top: 3px solid var(--border-default);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.module-card .module-card-header {
    padding: var(--space-6) var(--space-6) 0 var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.module-card .module-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
    border: 2px solid transparent;
}

.module-card .module-title {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.module-card .module-desc {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    line-height: 1.5;
}

.module-card .module-card-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.module-card .module-card-body {
    padding: var(--space-3) var(--space-6) var(--space-4);
    flex: 1;
}

/* Variações de cor para cards de módulo (Lei Zero: sem hardcode) */
.module-card.mc-success {
    border-top-color: var(--status-success);
}

.module-card.mc-warning {
    border-top-color: var(--status-warning);
}

.module-card.mc-primary {
    border-top-color: var(--action-primary);
}

.module-card.mc-danger {
    border-top-color: var(--status-error);
}

.module-card.mc-info {
    border-top-color: var(--status-info);
}

.icon-bg-success {
    background-color: var(--status-success);
    color: var(--text-on-dark);
}

.icon-bg-warning {
    background-color: var(--status-warning);
    color: var(--text-on-dark);
}

.icon-bg-primary {
    background-color: var(--action-primary);
    color: var(--text-on-dark);
}

.icon-bg-danger {
    background-color: var(--status-error);
    color: var(--text-on-dark);
}

.icon-bg-info {
    background-color: var(--status-info);
    color: var(--text-on-dark);
}

/* --- Module Features list inside card --- */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.feature-list li {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.feature-list li::before {
    content: "✓";
    color: var(--status-success);
    font-weight: var(--font-bold);
    flex-shrink: 0;
    margin-top: 1px;
}

/* --- Footer expandido (3 colunas) --- */
.site-footer {
    background-color: var(--surface-card);
    border-top: 3px solid var(--action-primary);
    padding: var(--space-12) 0 0 0;
    margin-top: 0;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-8);
    padding-bottom: var(--space-8);
}

.site-footer .footer-brand-name {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.site-footer .footer-brand-tagline {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.site-footer .footer-social-row {
    display: flex;
    gap: var(--space-3);
}

.site-footer .footer-social-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background-color: var(--surface-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border-default);
    transition: background-color 0.2s, color 0.2s;
}

.site-footer .footer-social-icon:hover {
    background-color: var(--action-primary);
    color: var(--text-on-dark);
    border-color: var(--action-primary);
}

.site-footer .footer-col-title {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: var(--space-2);
}

.site-footer .footer-link-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.site-footer .footer-link-list li a {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color 0.2s;
}

.site-footer .footer-link-list li a:hover {
    color: var(--action-primary);
}

.site-footer .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.site-footer .footer-contact-item i {
    color: var(--action-primary);
    width: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.site-footer .footer-bottom {
    border-top: 1px solid var(--border-default);
    padding: var(--space-4) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-footer .footer-bottom-text {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-section .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .stats-bar .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 640px) {
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .stats-bar .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-actions {
        flex-direction: column;
    }
}

/* --- Mobile Hamburger Nav --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-on-dark);
    font-size: var(--text-xl);
    padding: var(--space-2);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-desktop {
        display: none;
    }

    .nav-desktop.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 46px;
        right: 0;
        left: 0;
        background-color: var(--action-primary);
        padding: var(--space-4);
        gap: var(--space-2);
        z-index: 999;
    }

    .header-navbar {
        position: relative;
    }
}