/* ── Tokens ───────────────────────────────────────────── */
:root {
    --ink: #1C2331;
    --ink-light: #2D3748;
    --paper: #F8F6F1;
    --paper-warm: #F0ECE3;
    --gold: #B8860B;
    --gold-light: #D4A843;
    --gold-dark: #8B6508;
    --stone: #6B7280;
    --stone-light: #9CA3AF;
    --cream: #E8E0D0;
    --cream-dark: #D4C9B5;
    --white: #FFFFFF;
    --success: #2D5A27;
    --success-bg: #E8F5E3;
    --warning: #92400E;
    --warning-bg: #FEF3C7;
    --error: #991B1B;
    --error-bg: #FEE2E2;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 6px 10px rgba(0,0,0,0.08);
    --transition: 0.2s ease;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; }
input, select, textarea { font: inherit; }

/* ── Typography ──────────────────────────────────────── */
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

/* ── Layout ──────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* ── Language Switcher ───────────────────────────────── */
.lang-switcher {
    position: fixed; top: 16px; right: 16px; z-index: 1001;
    display: flex; gap: 4px;
    background: rgba(28, 35, 49, 0.9); backdrop-filter: blur(10px);
    border-radius: 20px; padding: 4px;
}
.lang-switcher a {
    display: block; padding: 6px 12px; border-radius: 16px;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
    color: rgba(255,255,255,0.6); transition: var(--transition);
}
.lang-switcher a:hover { color: var(--white); }
.lang-switcher a.active { background: var(--gold); color: var(--white); }

/* ── Navbar ──────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; height: 72px;
    background: rgba(248, 246, 241, 0.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-family: Georgia, serif; font-size: 1.1rem; font-weight: 700;
    letter-spacing: 0.15em; color: var(--ink);
}
.brand-icon { width: 32px; height: 32px; color: var(--gold); }
.nav-links {
    display: flex; align-items: center; gap: 32px;
    list-style: none;
}
.nav-links a {
    font-size: 0.9rem; font-weight: 500; color: var(--ink-light);
    transition: var(--transition); position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px; background: var(--gold); transform: scaleX(0);
    transition: transform 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
    background: var(--ink) !important; color: var(--white) !important;
    padding: 10px 24px !important; border-radius: var(--radius) !important;
    font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold) !important; }

.nav-toggle {
    display: none; background: none; border: none; padding: 8px;
    flex-direction: column; gap: 5px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--ink);
    transition: var(--transition);
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: var(--ink);
}
.hero canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(28,35,49,0.7) 0%, rgba(28,35,49,0.4) 50%, rgba(184,134,11,0.15) 100%);
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    max-width: 800px; padding: 120px 24px 80px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border-radius: 24px;
    background: rgba(184,134,11,0.15); border: 1px solid rgba(184,134,11,0.3);
    color: var(--gold-light); font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 32px;
}
.hero-badge svg { width: 18px; height: 18px; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero-sub {
    color: rgba(255,255,255,0.75); font-size: 1.15rem;
    line-height: 1.7; margin-bottom: 40px; max-width: 600px; margin-inline: auto;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 64px; }
.hero-stats {
    display: flex; gap: 48px; justify-content: center;
    padding-top: 48px; border-top: 1px solid rgba(255,255,255,0.1);
}
.stat { text-align: center; }
.stat-number {
    display: block; font-family: Georgia, serif; font-size: 2.5rem;
    font-weight: 700; color: var(--gold-light); line-height: 1;
}
.stat-suffix { font-family: Georgia, serif; font-size: 2rem; color: var(--gold-light); }
.stat-label {
    display: block; font-size: 0.8rem; color: rgba(255,255,255,0.5);
    text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: var(--radius);
    font-weight: 600; font-size: 0.95rem;
    transition: var(--transition); border: none;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
    background: transparent; color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Section Headers ─────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
    display: block; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--gold); margin-bottom: 12px;
}

/* ── Services Grid ───────────────────────────────────── */
.services { background: var(--white); }
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}
.service-card {
    padding: 40px 32px; border-radius: var(--radius-lg);
    border: 1px solid var(--cream); background: var(--paper);
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}
.service-icon {
    width: 56px; height: 56px; margin-bottom: 20px;
    color: var(--gold);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--stone); font-size: 0.95rem; }

/* ── Video Section ───────────────────────────────────── */
.video-section { background: var(--paper-warm); }
.video-wrapper {
    max-width: 900px; margin: 0 auto;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--cream);
}
.video-wrapper video {
    display: block; width: 100%; height: auto;
    background: var(--ink);
}

/* ── CTA Section ─────────────────────────────────────── */
.cta-section { background: var(--ink); padding: 80px 0; }
.cta-card {
    text-align: center; padding: 64px 40px; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--ink-light), var(--ink));
    border: 1px solid rgba(184,134,11,0.2);
}
.cta-card h2 { color: var(--white); margin-bottom: 16px; }
.cta-card p { color: rgba(255,255,255,0.7); margin-bottom: 32px; font-size: 1.1rem; }

/* ── Page Hero ───────────────────────────────────────── */
.page-hero {
    padding: 140px 0 60px; background: var(--ink);
    text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero .section-eyebrow { color: var(--gold-light); }

/* ── About ───────────────────────────────────────────── */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--stone); margin-bottom: 16px; line-height: 1.8; }
.about-values { display: flex; flex-direction: column; gap: 32px; }
.value-card {
    padding: 32px; border-radius: var(--radius-lg);
    background: var(--white); border: 1px solid var(--cream);
    position: relative;
}
.value-number {
    position: absolute; top: 16px; right: 20px;
    font-family: Georgia, serif; font-size: 2.5rem; font-weight: 700;
    color: var(--cream); line-height: 1;
}
.value-card h3 { color: var(--gold-dark); margin-bottom: 8px; position: relative; z-index: 1; }
.value-card p { color: var(--stone); font-size: 0.95rem; position: relative; z-index: 1; }

/* ── Team ────────────────────────────────────────────── */
.team-section { background: var(--white); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.team-card { padding: 40px 24px; }
.team-avatar {
    width: 100px; height: 100px; margin: 0 auto 20px;
    border-radius: 50%; background: var(--cream);
    display: flex; align-items: center; justify-content: center;
    color: var(--stone-light);
}
.team-avatar svg { width: 60px; height: 60px; }
.team-role { color: var(--gold); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

/* ── Cases ───────────────────────────────────────────── */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; }
.case-card {
    padding: 32px; border-radius: var(--radius-lg);
    background: var(--white); border: 1px solid var(--cream);
    transition: var(--transition);
}
.case-card:hover { box-shadow: var(--shadow-lg); }
.case-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.case-type {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--gold);
}
.case-status {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; padding: 4px 12px; border-radius: 12px;
}
.case-status.success { background: var(--success-bg); color: var(--success); }
.case-card h3 { margin-bottom: 12px; }
.case-card p { color: var(--stone); font-size: 0.95rem; margin-bottom: 24px; }
.case-metrics { display: flex; gap: 24px; padding-top: 20px; border-top: 1px solid var(--cream); }
.metric { text-align: center; flex: 1; }
.metric-value { display: block; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.metric-label { font-size: 0.75rem; color: var(--stone-light); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Auth ────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 120px 24px 80px; background: var(--paper-warm);
}
.auth-container { width: 100%; max-width: 440px; }
.auth-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 48px 40px; box-shadow: var(--shadow-lg);
    border: 1px solid var(--cream);
}
.auth-header { text-align: center; margin-bottom: 36px; }
.auth-icon { width: 48px; height: 48px; color: var(--gold); margin-bottom: 16px; }
.auth-header h1 { font-size: 1.5rem; margin-bottom: 8px; }
.auth-header p { color: var(--stone); font-size: 0.9rem; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-footer { text-align: center; margin-top: 24px; }
.auth-footer a { color: var(--stone); font-size: 0.9rem; }
.auth-footer a:hover { color: var(--gold); }

/* ── Forms ───────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 0.85rem; font-weight: 600; color: var(--ink-light);
}
.form-group input, .form-group select, .form-group textarea {
    padding: 12px 16px; border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius); background: var(--paper);
    transition: var(--transition); font-size: 0.95rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--stone-light);
}

/* ── Dashboard ───────────────────────────────────────── */
.dashboard { padding: 120px 0 80px; }
.dashboard-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 40px; flex-wrap: wrap; gap: 16px;
}
.dashboard-header h1 { font-size: 2rem; }
.dashboard-user { color: var(--stone); margin-top: 4px; }
.dashboard-actions { display: flex; gap: 12px; }

/* ── Stats Grid ──────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.stat-card {
    background: var(--white); border: 1px solid var(--cream);
    border-radius: var(--radius-lg); padding: 24px; text-align: center;
}
.stat-card-number {
    display: block; font-family: Georgia, serif; font-size: 2rem;
    font-weight: 700; color: var(--gold);
}
.stat-card-label { font-size: 0.8rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Table ───────────────────────────────────────────── */
.table-container {
    background: var(--white); border: 1px solid var(--cream);
    border-radius: var(--radius-lg); overflow: hidden;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    padding: 14px 20px; text-align: left; font-size: 0.75rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--stone); background: var(--paper);
    border-bottom: 1px solid var(--cream);
}
.data-table td {
    padding: 16px 20px; border-bottom: 1px solid var(--cream);
    font-size: 0.9rem;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--paper); }
.cell-name { font-weight: 600; }
.cell-empty { text-align: center; color: var(--stone); padding: 40px 20px; }
.cell-actions { display: flex; gap: 8px; }
.btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: var(--radius);
    border: 1px solid var(--cream); background: var(--white);
    color: var(--stone); transition: var(--transition);
}
.btn-icon:hover { border-color: var(--gold); color: var(--gold); }
.btn-icon svg { width: 16px; height: 16px; }
.btn-icon-danger:hover { border-color: var(--error); color: var(--error); background: var(--error-bg); }

/* ── Status Badge ────────────────────────────────────── */
.status-badge {
    display: inline-block; padding: 4px 12px; border-radius: 12px;
    font-size: 0.75rem; font-weight: 600;
}
.status-pending { background: var(--warning-bg); color: var(--warning); }
.status-in_progress { background: #DBEAFE; color: #1E40AF; }
.status-completed { background: var(--success-bg); color: var(--success); }

/* ── Client Form ─────────────────────────────────────── */
.client-form { display: flex; flex-direction: column; gap: 40px; }
.form-section {
    background: var(--white); border: 1px solid var(--cream);
    border-radius: var(--radius-lg); padding: 32px;
}
.form-section h2 {
    font-size: 1.1rem; margin-bottom: 24px; padding-bottom: 12px;
    border-bottom: 1px solid var(--cream);
}
.form-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.full-width { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 16px; }

/* ── Flash Messages ──────────────────────────────────── */
.flash-container { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 1000; }
.flash {
    padding: 12px 24px; border-radius: var(--radius);
    font-size: 0.9rem; font-weight: 500; margin-bottom: 8px;
    box-shadow: var(--shadow-lg); animation: slideDown 0.3s ease;
}
.flash-success { background: var(--success-bg); color: var(--success); border: 1px solid #86EFAC; }
.flash-error { background: var(--error-bg); color: var(--error); border: 1px solid #FCA5A5; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Footer ──────────────────────────────────────────── */
.footer { background: var(--ink); padding: 60px 0 32px; }
.footer-content { text-align: center; }
.footer-brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: Georgia, serif; font-size: 1rem; font-weight: 700;
    letter-spacing: 0.15em; color: var(--white); margin-bottom: 12px;
}
.footer-brand .brand-icon { color: var(--gold); }
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-bottom: 24px; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 24px; }
.footer-links a { color: rgba(255,255,255,0.4); font-size: 0.85rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 0.8rem; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
    .navbar { padding: 0 16px; }
    .nav-links {
        position: fixed; top: 72px; left: 0; right: 0;
        background: var(--white); flex-direction: column;
        padding: 24px; gap: 16px; box-shadow: var(--shadow-lg);
        transform: translateY(-100%); opacity: 0;
        transition: var(--transition); pointer-events: none;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-toggle { display: flex; }
    .hero-stats { flex-direction: column; gap: 24px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .team-grid { grid-template-columns: 1fr; }
    .cases-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .dashboard-header { flex-direction: column; align-items: flex-start; }
    .lang-switcher { top: auto; bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 32px 24px; }
}
