/* =====================================================================
   public/assets/css/style.css
   ---------------------------------------------------------------------
   DESIGN SYSTEM: "Trade Routes — Dark"
   A single dark, premium theme across the whole site (not just the
   hero), built for comfortable long-form reading (resume, articles)
   with a very faint world trade-map watermark fixed behind everything.
   Navy + brass/gold + teal, generous line-height, minimal motion.

   Sections in this file:
   1. Design tokens
   2. Base / reset
   3. World-map background watermark
   4. Typography
   5. Header & navigation (incl. mobile drawer)
   6. Hero (simple: name, title, CTAs — no heavy animation)
   7. Section scaffolding, cards, grids
   8. Skills boxes (no numeric level)
   9. Timeline (experience)
   10. About section
   11. Tags, buttons, forms, alerts
   12. Footer + contact/social
   13. Admin panel (kept simple, readable type)
   14. Responsive breakpoints
   15. Motion / reveal-on-scroll + reduced-motion support
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------------- */
:root {
    /* Backgrounds — whole site is dark; two shades give subtle section separation */
    --bg-950: #0A1420;
    --bg-900: #0E1D2E;
    --surface-800: #14293C;
    --surface-700: #1B3348;

    /* Borders (dark surfaces use borders instead of shadows) */
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    /* Brass/gold — primary accent */
    --gold-500: #C9A227;
    --gold-300: #E3C463;

    /* Teal — secondary accent */
    --teal-500: #2C8C99;
    --teal-300: #6FB8C2;

    /* Text on dark backgrounds */
    --text-100: #F4F2EC;
    --text-300: rgba(244, 242, 236, 0.82);
    --text-500: rgba(244, 242, 236, 0.56);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Type */
    --font-fa: 'Vazirmatn', 'Tahoma', sans-serif;
    --font-latin: 'Space Grotesk', 'Vazirmatn', sans-serif;

    --max-width: 1120px;
}

/* ---------------------------------------------------------------------
   2. BASE / RESET
   --------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-fa);
    font-weight: 400;
    color: var(--text-300);
    background: var(--bg-950);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

html[dir="rtl"] body { text-align: right; }
html[dir="ltr"] body { text-align: left; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.mono { font-family: var(--font-latin); letter-spacing: 0.04em; }

/* ---------------------------------------------------------------------
   3. WORLD-MAP BACKGROUND WATERMARK
   Fixed behind all content, very low opacity, non-interactive.
   See views/partials/world-map-bg.php for the markup.
   --------------------------------------------------------------------- */
.world-map-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}
.world-map-bg svg { width: 100%; height: 100%; }
.wm-dots circle { fill: rgba(255, 255, 255, 0.05); }
.wm-route {
    fill: none;
    stroke: var(--gold-500);
    stroke-width: 1;
    opacity: 0.10;
}
.wm-route-flow {
    stroke: var(--gold-300);
    stroke-width: 1.2;
    stroke-dasharray: 1 10;
    opacity: 0.16;
    animation: wm-flow 14s linear infinite;
}
@keyframes wm-flow { to { stroke-dashoffset: -220; } }

/* ---------------------------------------------------------------------
   4. TYPOGRAPHY
   --------------------------------------------------------------------- */
h1, h2, h3, h4 {
    margin: 0;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text-100);
}

.eyebrow {
    font-family: var(--font-latin);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-500);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--gold-500);
}
html[dir="rtl"] .eyebrow::before { order: 2; }

/* ---------------------------------------------------------------------
   5. HEADER & NAVIGATION
   --------------------------------------------------------------------- */
.site-header {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(10, 20, 32, 0.86);
    backdrop-filter: blur(12px);
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 16px;
}
.site-logo {
    font-family: var(--font-latin);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-100);
    letter-spacing: -0.02em;
}
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
    color: var(--text-500);
    font-size: 0.93rem;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}
.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold-500);
    transition: width 0.25s ease;
}
html[dir="ltr"] .main-nav a::after { right: auto; left: 0; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a:hover, .main-nav a.active { color: var(--text-100); }

.header-right { display: flex; align-items: center; gap: 16px; }

.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 99px;
    color: var(--text-500);
    font-family: var(--font-latin);
}
.lang-switch a.active { background: var(--gold-500); color: var(--bg-950); border-color: var(--gold-500); }

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
    content: "";
    display: block;
    width: 18px; height: 2px;
    background: var(--text-100);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle::before { transform: translateY(-6px); }
.nav-toggle::after { transform: translateY(6px); }
.nav-toggle.is-open span { opacity: 0; }
.nav-toggle.is-open::before { transform: translateY(0) rotate(45deg); }
.nav-toggle.is-open::after { transform: translateY(0) rotate(-45deg); }

/* ---------------------------------------------------------------------
   6. HERO — simple: name, title, CTAs. The map watermark behind it
   already carries the "international trade" motif, so the hero itself
   stays quiet and readable.
   --------------------------------------------------------------------- */
.hero { padding: 96px 0 72px; }
.hero-content { max-width: 640px; }
.hero h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    margin-bottom: 16px;
}
.hero h1 .accent { color: var(--gold-300); }
.hero p {
    color: var(--text-500);
    font-size: 1.06rem;
    max-width: 540px;
    margin: 0;
}
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   7. SECTION SCAFFOLDING / CARDS / GRIDS
   --------------------------------------------------------------------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-900); }
.section-title { font-size: 1.6rem; margin: 0 0 8px; }
.section-sub { color: var(--text-500); font-size: 0.97rem; margin: 0 0 32px; max-width: 560px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; flex-wrap: wrap; gap: 12px; }
.section-head a { font-size: 0.9rem; font-weight: 600; color: var(--teal-300); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    background: var(--surface-800);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-700); }
.card h3 { margin: 0 0 8px; font-size: 1.04rem; }
.card p { color: var(--text-500); font-size: 0.92rem; margin: 0 0 12px; }
.card .meta { font-size: 0.8rem; color: var(--text-500); font-family: var(--font-latin); }
.card-img {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin: -22px -22px 16px;
    width: calc(100% + 44px);
    background: linear-gradient(135deg, var(--surface-700), var(--bg-950));
}

/* ---------------------------------------------------------------------
   8. SKILLS — boxed cards, intentionally no numeric level/progress bar.
   --------------------------------------------------------------------- */
.skill-box {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    background: var(--surface-800);
    height: 100%;
}
.skill-box .skill-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-950);
    color: var(--gold-300);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-latin);
    font-weight: 700;
    margin-bottom: 16px;
    border: 1px solid var(--border-strong);
}
.skill-box h3 { font-size: 1rem; margin-bottom: 6px; }
.skill-box p { color: var(--text-500); font-size: 0.9rem; margin: 0 0 12px; }
.skill-box .category-tag {
    font-family: var(--font-latin);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--teal-300);
}

/* ---------------------------------------------------------------------
   9. TIMELINE (experience)
   --------------------------------------------------------------------- */
.timeline { position: relative; }
.timeline-item {
    border-inline-start: 2px solid var(--border-strong);
    padding-inline-start: 28px;
    margin-bottom: 34px;
    position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
    content: "";
    position: absolute;
    inset-inline-start: -8px;
    top: 2px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--bg-950);
    border: 2px solid var(--gold-500);
}
.timeline-item h3 { margin: 0 0 4px; font-size: 1.04rem; }
.timeline-item .org { color: var(--teal-300); font-size: 0.92rem; margin-bottom: 4px; font-weight: 500; }
.timeline-item .dates { color: var(--text-500); font-size: 0.8rem; margin-bottom: 10px; font-family: var(--font-latin); letter-spacing: 0.03em; }
.timeline-item p { color: var(--text-300); margin: 0; }

/* ---------------------------------------------------------------------
   10. ABOUT SECTION
   --------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 210px 1fr; gap: 44px; align-items: start; }
.about-photo {
    width: 210px; height: 210px;
    border-radius: var(--radius-lg);
    background: var(--surface-800);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-strong);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .initial { font-family: var(--font-latin); font-size: 3.8rem; font-weight: 700; color: var(--gold-300); }
.about-text p { color: var(--text-300); font-size: 1.02rem; margin: 0 0 16px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.about-tag {
    font-size: 0.82rem; font-weight: 500;
    padding: 7px 14px;
    border-radius: 99px;
    background: var(--surface-800);
    border: 1px solid var(--border);
    color: var(--text-300);
}

/* ---------------------------------------------------------------------
   11. TAGS, BUTTONS, FORMS, ALERTS
   --------------------------------------------------------------------- */
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tag {
    font-size: 0.74rem;
    font-family: var(--font-latin);
    background: var(--surface-700);
    padding: 4px 12px;
    border-radius: 99px;
    color: var(--text-300);
    border: 1px solid var(--border);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--gold-500); color: var(--bg-950); }
.btn-primary:hover { background: var(--gold-300); transform: translateY(-1px); }
.btn-outline { border-color: var(--border-strong); color: var(--text-100); }
.btn-outline:hover { border-color: var(--gold-300); color: var(--gold-300); }
.btn-danger { background: #B4433A; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; margin-bottom: 7px; font-weight: 600; color: var(--text-100); }
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--surface-800);
    color: var(--text-100);
}
.form-control::placeholder { color: var(--text-500); }
.form-control:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(44,140,153,0.2); }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-check { display: flex; align-items: center; gap: 8px; }

.alert { padding: 13px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: 0.9rem; }
.alert-success { background: rgba(39,107,57,0.18); color: #7FD79A; border: 1px solid rgba(127,215,154,0.3); }
.alert-error { background: rgba(150,52,42,0.18); color: #F0958A; border: 1px solid rgba(240,149,138,0.3); }

/* ---------------------------------------------------------------------
   12. FOOTER — room for email + LinkedIn, both as icon buttons and
   explicit readable text links.
   --------------------------------------------------------------------- */
.site-footer { background: var(--bg-900); border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-top {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.footer-brand { font-family: var(--font-latin); font-size: 1.1rem; font-weight: 700; color: var(--text-100); margin-bottom: 8px; }
.footer-tagline { font-size: 0.92rem; color: var(--text-500); max-width: 340px; margin: 0; }

.footer-contact-title { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-500); margin-bottom: 14px; }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--text-300);
}
.footer-contact-row:hover { color: var(--gold-300); }
.footer-contact-row .icon {
    width: 34px; height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-100);
    transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-contact-row:hover .icon { border-color: var(--gold-500); color: var(--gold-300); }
.footer-contact-row .icon svg { width: 16px; height: 16px; }
.footer-contact-row span.value { direction: ltr; unicode-bidi: plaintext; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    font-family: var(--font-latin);
    color: var(--text-500);
}

/* ---------------------------------------------------------------------
   13. ADMIN PANEL — light theme, independent from the public site's
   dark tokens. IMPORTANT: h1–h4, .form-group label and .form-control
   are styled globally above for the DARK public site (light text on
   dark surfaces). Everything under .admin-body must explicitly reset
   those to dark-on-light, or text becomes invisible — that was the
   original readability bug here.
   --------------------------------------------------------------------- */
.admin-body { background: #f1f3f6; font-family: var(--font-fa); color: #1f2937; }
.admin-body h1, .admin-body h2, .admin-body h3, .admin-body h4 { color: #111827; }
.admin-body a { color: inherit; }

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: var(--bg-950); color: #fff; padding: 24px 0; flex-shrink: 0; }
.admin-sidebar .brand { padding: 0 20px 20px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.15); margin-bottom: 12px; font-family: var(--font-latin); color: #fff; }
.admin-sidebar a { display: block; padding: 10px 20px; color: #cbd5df; font-size: 0.92rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: #fff; }

.admin-main { flex: 1; padding: 28px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.admin-card { background: #fff; border-radius: var(--radius-md); padding: 24px; border: 1px solid #e5e7eb; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-box { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius-md); padding: 18px; }
.stat-box .num { font-size: 1.6rem; font-weight: 700; font-family: var(--font-latin); color: #111827; }
.stat-box .label { color: #6b7280; font-size: 0.85rem; }

/* Tables can overflow on narrow screens — wrap them in .table-scroll in
   the view (see admin/*/index.php) so they scroll horizontally instead
   of breaking the layout. */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.admin-table { width: 100%; min-width: 640px; border-collapse: collapse; background: #fff; }
table.admin-table th, table.admin-table td { text-align: inherit; padding: 12px 14px; border-bottom: 1px solid #e5e7eb; font-size: 0.9rem; color: #1f2937; }
table.admin-table th { color: #6b7280; font-weight: 600; background: #f9fafb; }

.badge { font-size: 0.75rem; padding: 3px 10px; border-radius: 99px; font-weight: 500; }
.badge-active { background: #EAF6ED; color: #276B39; }
.badge-inactive { background: #f3f4f6; color: #6b7280; }
.badge-featured { background: #FBF1D9; color: #8A6A0F; }
.actions-cell { display: flex; gap: 8px; flex-wrap: wrap; }

/* Admin forms: override the dark public .form-control with a light,
   readable version (white field, dark text, light border). */
.admin-body .form-group label { color: #111827; }
.admin-body .form-control {
    background: #fff;
    color: #111827;
    border-color: #d1d5db;
}
.admin-body .form-control::placeholder { color: #9ca3af; }
.admin-body .form-control:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(44,140,153,0.15); }

/* Rich-text editor (Quill) inside admin forms — the hidden source
   textarea is visually hidden; only the Quill-rendered box shows. */
.hidden-editor-source { display: none; }
.rich-editor { background: #fff; border-radius: var(--radius-sm); }
.rich-editor .ql-toolbar { border-color: #d1d5db; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.rich-editor .ql-container { border-color: #d1d5db; border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-family: var(--font-fa); font-size: 0.95rem; min-height: 220px; }
.rich-editor .ql-editor { min-height: 220px; }

/* ---------------------------------------------------------------------
   RICH CONTENT DISPLAY — for project/insight detail pages, rendering
   the HTML saved by the Quill editor above (headings, bold, lists,
   links, images) styled to match the dark public theme.
   --------------------------------------------------------------------- */
.rich-content { font-size: 1.02rem; line-height: 1.9; color: var(--text-300); }
.rich-content p { margin: 0 0 20px; }
.rich-content h2, .rich-content h3 { color: var(--text-100); margin: 32px 0 14px; }
.rich-content h2 { font-size: 1.35rem; }
.rich-content h3 { font-size: 1.15rem; }
.rich-content strong { color: var(--text-100); font-weight: 700; }
.rich-content a { color: var(--teal-300); text-decoration: underline; }
.rich-content ul, .rich-content ol { margin: 0 0 20px; padding-inline-start: 22px; }
.rich-content li { margin-bottom: 8px; }
.rich-content blockquote {
    border-inline-start: 3px solid var(--gold-500);
    padding-inline-start: 18px;
    margin: 24px 0;
    color: var(--text-500);
    font-style: italic;
}
.rich-content img { border-radius: var(--radius-md); margin: 24px 0; }


.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-950); }
.login-box { width: 100%; max-width: 360px; background: #fff; padding: 36px; border-radius: var(--radius-md); }
.login-box h1 { font-size: 1.2rem; margin-bottom: 22px; text-align: center; color: var(--bg-950); }

/* ---------------------------------------------------------------------
   14. RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .about-photo { width: 130px; height: 130px; }
    .footer-top { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets (~768–860px): Persian nav labels run wider than English, so
   the hamburger switches on earlier than an English-first site would
   need — keeps the header from wrapping/crowding on tablet widths. */
@media (max-width: 860px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--bg-950);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 24px 20px;
        gap: 4px;
    }
    .site-header .container { position: relative; }
    .main-nav.is-open { display: flex; }
    .main-nav a { width: 100%; padding: 10px 0; }
    .nav-toggle { display: flex; }
    .header-right .lang-switch { order: -1; }

    /* Admin: sidebar becomes a horizontally scrollable top bar instead
       of a narrow icon rail (there are no icons defined, so an
       icon-only collapse would just cut labels off mid-word). */
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        width: 100%;
        display: flex;
        align-items: center;
        overflow-x: auto;
        padding: 10px 12px;
        gap: 4px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .admin-sidebar .brand { display: none; }
    .admin-sidebar a { padding: 8px 14px; border-radius: 8px; flex-shrink: 0; }
    .admin-main { padding: 20px; }
}

@media (max-width: 640px) {
    .hero { padding: 64px 0 48px; }
    .section { padding: 52px 0; }
    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-card { padding: 18px; }
}

/* ---------------------------------------------------------------------
   15. MOTION — scroll reveal + reduced motion
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .wm-route-flow { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .card, .btn-primary { transition: none; }
}
