/* Salaire Maroc — Design System 2026 */

:root {
    --color-primary: #0F766E;
    --color-primary-dark: #115E59;
    --color-primary-light: #14B8A6;
    --color-text: #0F172A;
    --color-muted: #64748B;
    --color-bg: #F8FAFC;
    --color-card: #FFFFFF;
    --color-border: #E2E8F0;
    --color-accent: #F59E0B;
    --color-success: #16A34A;
    --color-danger: #DC2626;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
    --max-width: 1180px;
    --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --transition: 0.2s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
}

body.rtl {
    font-family: "IBM Plex Sans Arabic", var(--font);
}

img, svg { display: block; max-width: 100%; }

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

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

.container {
    width: min(var(--max-width), calc(100% - 2rem));
    margin-inline: auto;
}

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 0;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text);
    text-decoration: none;
    flex-shrink: 0;
}

.logo:hover { color: var(--color-text); }

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.15rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.logo-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.logo-text small {
    font-size: 0.75rem;
    color: var(--color-muted);
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--color-muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
    background: rgba(15, 118, 110, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-inline-start: auto;
}

.lang-switch {
    display: flex;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.lang-switch a {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-muted);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.lang-switch a:hover { color: var(--color-primary); }

.lang-switch a.active {
    background: var(--color-primary);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Main ───────────────────────────────────────────────────────── */
.site-main { padding-bottom: 3rem; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
    padding: 2.5rem 0 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(15, 118, 110, 0.1);
    color: var(--color-primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.hero-lead {
    font-size: 1.05rem;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
}

.chip::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
}

.hero-preview {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
}

.hero-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.hero-preview-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-muted);
}

.hero-preview-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    font-size: 0.9rem;
}

.preview-row:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
}

.preview-row span:first-child { color: var(--color-muted); }

.preview-row span:last-child {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.preview-row.highlight span:last-child {
    color: var(--color-primary);
    font-size: 1.25rem;
}

.preview-row.deduction span:last-child { color: var(--color-danger); }

/* ── Cards ────────────────────────────────────────────────────────── */
.card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 1.5rem 1.5rem 0;
}

.card-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.35rem;
}

.card-header p {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.card-body { padding: 1.5rem; }

/* ── Calculator form ──────────────────────────────────────────────── */
.calculator-section { margin-bottom: 2.5rem; }

.calc-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.field {
    margin-bottom: 1.25rem;
}

.field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-top: 0.35rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
}

.input-group input {
    flex: 1;
    width: 100%;
    padding: 0.8rem 1rem;
    padding-inline-end: 3.5rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.input-group input:hover { border-color: #CBD5E1; }

.input-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
    background: var(--color-card);
}

.input-suffix {
    position: absolute;
    inset-inline-end: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-muted);
    pointer-events: none;
}

.field input[type="number"]:not(.input-group input),
.field input[type="text"]:not(.input-group input) {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
    background: var(--color-card);
}

.field-error {
    display: none;
    font-size: 0.8rem;
    color: var(--color-danger);
    margin-top: 0.35rem;
}

.field.is-invalid .field-error { display: block; }

.field.is-invalid input { border-color: var(--color-danger); }

.field-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 0;
    grid-column: 1 / -1;
}

.field-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.field-checkbox label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.4;
}

/* Advanced mode */
.advanced-card {
    grid-column: 1 / -1;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg);
}

.advanced-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--color-text);
    transition: background var(--transition);
}

.advanced-card summary::-webkit-details-marker { display: none; }

.advanced-card summary::after {
    content: "+";
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 400;
}

.advanced-card[open] summary::after { content: "−"; }

.advanced-card summary:hover { background: rgba(15, 118, 110, 0.05); }

.advanced-card-body {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--color-border);
}

.advanced-desc {
    font-size: 0.875rem;
    color: var(--color-muted);
    padding: 1rem 0 0.75rem;
}

.components-list {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.component-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.component-row input[type="text"],
.component-row input[type="number"] {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
}

.component-row label {
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-muted);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    grid-column: 1 / -1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform 0.1s, box-shadow var(--transition);
    text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

.btn-secondary {
    background: var(--color-card);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

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

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background: rgba(15, 118, 110, 0.08);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ── Results ──────────────────────────────────────────────────────── */
.results-panel {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}

.results-panel[hidden] { display: none !important; }

.result-hero-card {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.result-hero-card .result-eyebrow {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.result-hero-card .result-amount {
    font-size: clamp(2.25rem, 6vw, 3rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.result-hero-card .result-gross {
    font-size: 0.95rem;
    opacity: 0.9;
}

.result-hero-card .result-gross strong {
    color: var(--color-accent);
}

.result-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.result-actions .btn-outline {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.result-actions .btn-outline:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.stat-card-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-muted);
    margin-bottom: 0.35rem;
}

.stat-card-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--color-text);
}

.stat-card.deduction .stat-card-value { color: var(--color-danger); }
.stat-card.success .stat-card-value { color: var(--color-success); }

/* Breakdown table */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    background: var(--color-card);
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 480px;
}

.breakdown-table caption {
    text-align: start;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
    padding: 1rem 1.25rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.breakdown-table th,
.breakdown-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    text-align: start;
}

.breakdown-table th {
    font-weight: 500;
    color: var(--color-muted);
    width: 60%;
}

.breakdown-table td {
    font-weight: 600;
    text-align: end;
    font-variant-numeric: tabular-nums;
    color: var(--color-text);
}

.breakdown-table tr:last-child th,
.breakdown-table tr:last-child td { border-bottom: none; }

.breakdown-table .row-total th,
.breakdown-table .row-total td {
    background: rgba(22, 163, 74, 0.06);
    color: var(--color-success);
    font-size: 1rem;
}

.breakdown-table .row-deduction td { color: var(--color-danger); }

.employer-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.employer-card-header {
    padding: 1rem 1.25rem;
    background: rgba(15, 118, 110, 0.06);
    border-bottom: 1px solid var(--color-border);
}

.employer-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.employer-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--color-bg);
    font-weight: 700;
    font-size: 1.05rem;
}

.employer-total span:last-child {
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
}

.formulas-section {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.formulas-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.formula-list {
    margin: 0;
    padding-inline-start: 1.25rem;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.formula-list li { margin-bottom: 0.4rem; }

.disclaimer-box {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--color-text);
    line-height: 1.5;
}

.disclaimer-box::before {
    content: "ℹ";
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ── SEO content ──────────────────────────────────────────────────── */
.content-section {
    margin-bottom: 2.5rem;
}

.content-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.content-section p,
.content-section li {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.content-section ul {
    padding-inline-start: 1.25rem;
    margin-bottom: 1rem;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.seo-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.seo-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.seo-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* FAQ accordion */
.faq-section { margin-bottom: 2rem; }

.faq-section > h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

.faq-item {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    font-size: 1.2rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item summary:hover { background: var(--color-bg); }

.faq-item .faq-answer {
    padding: 0 1.25rem 1rem;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    margin: 0 1.25rem 1rem;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.related-links a {
    background: var(--color-card);
    color: var(--color-primary);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    text-decoration: none;
}

.related-links a:hover {
    border-color: var(--color-primary);
    background: rgba(15, 118, 110, 0.05);
}

/* Page hero (secondary pages) */
.page-hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.page-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: var(--color-muted);
    max-width: 640px;
    margin: 0 auto;
}

.article-content {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.article-content h2 {
    font-size: 1.2rem;
    color: var(--color-text);
    margin: 1.5rem 0 0.75rem;
}

.article-content h2:first-child { margin-top: 0; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 2rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text small { color: rgba(255,255,255,0.6); }

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 0.875rem;
    padding: 0.25rem 0;
    text-decoration: none;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.footer-disclaimer {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    max-width: 600px;
    line-height: 1.5;
}

/* ── Print ────────────────────────────────────────────────────────── */
@media print {
    .site-header, .site-footer, .calc-form, .no-print,
    .hero, .content-section, .faq-section, .seo-grid { display: none !important; }
    .results-panel { border: none; padding: 0; margin: 0; }
    .result-hero-card { background: none; color: #000; border: 2px solid #000; }
    .result-hero-card .result-amount { color: #000; }
    body { background: #fff; }
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-preview { max-width: 480px; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .seo-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

    .header-actions { order: 3; }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        order: 10;
        padding: 0.5rem 0;
    }

    .main-nav.open { display: flex; }

    .main-nav a {
        padding: 0.75rem 1rem;
        border-radius: var(--radius-sm);
    }

    .calc-form .form-grid { grid-template-columns: 1fr; }

    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }

    .stat-cards { grid-template-columns: 1fr; }

    .component-row { grid-template-columns: 1fr; }

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

    .card-body, .card-header { padding: 1.25rem; }
}
