/* ==========================================================================
   MAHDI Trading & Contracting -- design system
   Navy is the surface. Gold is the accent, never a large fill.
   Written with LOGICAL properties throughout so Arabic RTL mirrors correctly.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand -- taken from the logo */
    --navy-900: #0B1F4D;
    --navy-800: #12296B;
    --navy-700: #1B3A85;
    --navy-600: #24499e;
    --gold-600: #C9862A;
    --gold-500: #E9A13B;
    --gold-400: #F0B65E;
    --gold-300: #F6CE8E;
    --white:    #FFFFFF;
    --slate-50:  #F7F9FC;
    --slate-100: #EFF3F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;

    --success: #16A34A;
    --warning: #D97706;
    --danger:  #DC2626;
    --info:    #2563EB;

    /* Semantic -- light mode */
    --bg:            var(--slate-50);
    --bg-elevated:   var(--white);
    --bg-sunken:     var(--slate-100);
    --surface-navy:  var(--navy-800);
    --text:          var(--navy-900);
    --text-muted:    var(--slate-500);
    --text-inverse:  var(--white);
    --border:        var(--slate-200);
    --border-strong: var(--slate-300);
    --accent:        var(--gold-500);
    --accent-hover:  var(--gold-400);
    --accent-press:  var(--gold-600);
    --on-accent:     var(--navy-900);
    --focus-ring:    var(--gold-500);

    /* Elevation -- soft and layered, never a hard border alone */
    --shadow-xs: 0 1px 2px rgba(11, 31, 77, .06);
    --shadow-sm: 0 1px 3px rgba(11, 31, 77, .08), 0 1px 2px rgba(11, 31, 77, .04);
    --shadow-md: 0 4px 12px rgba(11, 31, 77, .08), 0 2px 4px rgba(11, 31, 77, .04);
    --shadow-lg: 0 12px 32px rgba(11, 31, 77, .10), 0 4px 8px rgba(11, 31, 77, .05);
    --shadow-xl: 0 24px 56px rgba(11, 31, 77, .14), 0 8px 16px rgba(11, 31, 77, .06);

    /* Radii */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 999px;

    /* 8px spacing grid */
    --s-1: 8px;   --s-2: 16px;  --s-3: 24px;  --s-4: 32px;
    --s-5: 40px;  --s-6: 48px;  --s-7: 56px;  --s-8: 64px;
    --s-10: 80px; --s-12: 96px; --s-16: 128px;

    /* Layout */
    --container: 1280px;
    --gutter: 24px;
    --header-h: 76px;
    --header-h-scrolled: 64px;

    /* Type */
    --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-ar: 'IBM Plex Sans Arabic', 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif;
    --font: var(--font-sans);

    --leading-body: 1.6;
    --leading-tight: 1.15;

    /* Motion */
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --dur-fast: .18s;
    --dur: .32s;
    --dur-slow: .6s;

    color-scheme: light;
}

[dir="rtl"] {
    --font: var(--font-ar);
}

/* Dark mode -- navy-based, never black. */
[data-theme="dark"] {
    --bg:            #071634;
    --bg-elevated:   #0E244F;
    --bg-sunken:     #050F27;
    --surface-navy:  #0E244F;
    --text:          #EAF0FB;
    --text-muted:    #9DB0D4;
    --text-inverse:  var(--white);
    --border:        rgba(255, 255, 255, .10);
    --border-strong: rgba(255, 255, 255, .18);
    --accent:        var(--gold-400);
    --accent-hover:  var(--gold-300);
    --accent-press:  var(--gold-500);
    --on-accent:     #071634;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .40);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .50);
    --shadow-xl: 0 24px 56px rgba(0, 0, 0, .55);

    color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Offset anchor jumps so the sticky header does not cover the heading. */
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: var(--leading-body);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* Guarantee no horizontal scrollbar anywhere on the site.
       `clip` rather than `hidden`: `hidden` turns the body into a scroll
       container, which silently breaks `position: sticky` on the header. */
    overflow-x: clip;
    min-height: 100vh;
}

img, video, svg, canvas { display: block; max-width: 100%; height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: 0; padding: 0; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

table { border-collapse: collapse; width: 100%; }

/* Long unbroken strings (URLs, SKUs) must never widen the layout. */
p, li, td, th, h1, h2, h3, h4, h5, h6, dd, dt { overflow-wrap: break-word; }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
    line-height: var(--leading-tight);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
    letter-spacing: 0; /* Arabic must never be letter-spaced */
}

h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }
h4 { font-size: 1.0625rem; font-weight: 700; }

.lead {
    font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
    color: var(--text-muted);
    line-height: 1.7;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-block-end: var(--s-2);
}
[dir="rtl"] .eyebrow { letter-spacing: 0; }

.eyebrow::before {
    content: "";
    inline-size: 28px;
    block-size: 2px;
    background: var(--accent);
    border-radius: 2px;
    flex: none;
}

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

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
    inline-size: 100%;
    max-inline-size: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--s-12); }
.section--tight { padding-block: var(--s-8); }
.section--navy {
    background: var(--surface-navy);
    color: var(--text-inverse);
}
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 {
    color: var(--text-inverse);
}
.section--navy .lead, .section--navy .muted { color: rgba(255, 255, 255, .72); }
.section--sunken { background: var(--bg-sunken); }

.section-head {
    max-inline-size: 640px;
    margin-block-end: var(--s-6);
}
.section-head--center {
    margin-inline: auto;
    text-align: center;
}
.section-head--center .eyebrow { justify-content: center; }

/* The recurring gold hairline motif. */
.rule-gold {
    block-size: 3px;
    inline-size: 56px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    margin-block: var(--s-2);
}
.section-head--center .rule-gold { margin-inline: auto; }

.grid { display: grid; gap: var(--s-3); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.stack   { display: flex; flex-direction: column; gap: var(--s-2); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.between { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; justify-content: space-between; }

.sr-only {
    position: absolute;
    inline-size: 1px; block-size: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%);
    white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   5. Focus + accessibility
   -------------------------------------------------------------------------- */
:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    inset-block-start: -60px;
    inset-inline-start: var(--s-2);
    z-index: 200;
    background: var(--accent);
    color: var(--navy-900);
    padding: 12px 20px;
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    font-weight: 700;
    transition: inset-block-start var(--dur-fast) var(--ease);
}
.skip-link:focus { inset-block-start: 0; }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-block-size: 46px;
    padding: 12px 22px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: .9375rem;
    line-height: 1;
    border: 1.5px solid transparent;
    transition: background-color var(--dur-fast) var(--ease),
                border-color var(--dur-fast) var(--ease),
                color var(--dur-fast) var(--ease),
                transform var(--dur-fast) var(--ease),
                box-shadow var(--dur-fast) var(--ease);
    text-align: center;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] {
    opacity: .55;
    pointer-events: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }
.btn-primary:active { background: var(--accent-press); }

.btn-navy {
    background: var(--navy-800);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-navy:hover { background: var(--navy-700); box-shadow: var(--shadow-md); }

.btn-outline {
    border-color: var(--border-strong);
    color: var(--text);
    background: var(--bg-elevated);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Outlined button sitting on a navy/photo surface. */
.btn-ghost-light {
    border-color: rgba(255, 255, 255, .55);
    color: var(--white);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(6px);
}
.btn-ghost-light:hover {
    background: rgba(255, 255, 255, .16);
    border-color: var(--white);
}

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }

.btn-sm { min-block-size: 38px; padding: 8px 16px; font-size: .875rem; }
.btn-lg { min-block-size: 54px; padding: 16px 30px; font-size: 1rem; }
.btn-block { inline-size: 100%; }

/* Icon-only control -- always at least 44x44 for touch. */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 44px;
    block-size: 44px;
    border-radius: var(--r-sm);
    color: inherit;
    transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.icon-btn:hover { background: rgba(127, 145, 185, .16); }

/* Directional icons must mirror in Arabic. */
[dir="rtl"] .icon-flip { transform: scaleX(-1); }

/* --------------------------------------------------------------------------
   7. Badges + pills
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: var(--r-full);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.4;
    background: var(--bg-sunken);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.badge-accent  { background: rgba(233, 161, 59, .16); color: var(--gold-600); border-color: rgba(233, 161, 59, .35); }
.badge-success { background: rgba(22, 163, 74, .12);  color: var(--success); border-color: rgba(22, 163, 74, .3); }
.badge-warning { background: rgba(217, 119, 6, .12);  color: var(--warning); border-color: rgba(217, 119, 6, .3); }
.badge-danger  { background: rgba(220, 38, 38, .10);  color: var(--danger);  border-color: rgba(220, 38, 38, .28); }
.badge-info    { background: rgba(37, 99, 235, .10);  color: var(--info);    border-color: rgba(37, 99, 235, .28); }

[data-theme="dark"] .badge-accent { color: var(--gold-400); }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
    background: var(--bg-elevated);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.card-body { padding: var(--s-3); }
.card-pad-lg { padding: var(--s-4); }

.panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--s-4);
}

/* --------------------------------------------------------------------------
   9. Media boxes -- fixed ratios so nothing shifts while images load
   -------------------------------------------------------------------------- */
.ratio { position: relative; overflow: hidden; background: var(--bg-sunken); }
.ratio > img, .ratio > video, .ratio > iframe {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
}
.ratio-1x1     { aspect-ratio: 1 / 1; }
.ratio-4x3     { aspect-ratio: 4 / 3; }
.ratio-3x2     { aspect-ratio: 3 / 2; }
.ratio-16x9    { aspect-ratio: 16 / 9; }
.ratio-hero    { aspect-ratio: 1536 / 672; }  /* the video's true ratio */
.ratio-portrait{ aspect-ratio: 3 / 4; }

.img-zoom img { transition: transform var(--dur-slow) var(--ease); }
.card-hover:hover .img-zoom img { transform: scale(1.06); }

/* --------------------------------------------------------------------------
   10. Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 100;
    background: var(--navy-800);
    color: var(--white);
    transition: background-color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
    will-change: background-color;
}
.site-header.is-scrolled {
    background: rgba(11, 31, 77, .86);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .28);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    block-size: var(--header-h);
    transition: block-size var(--dur) var(--ease);
}
.site-header.is-scrolled .header-inner { block-size: var(--header-h-scrolled); }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: none;
    color: var(--white);
}
.brand-mark { block-size: 38px; inline-size: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
    font-weight: 800;
    font-size: 1.0625rem;
    letter-spacing: .04em;
}
[dir="rtl"] .brand-name { letter-spacing: 0; }
.brand-sub {
    font-size: .625rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-400);
    font-weight: 600;
}
[dir="rtl"] .brand-sub { letter-spacing: 0; font-size: .6875rem; }

.main-nav { display: none; margin-inline-start: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    position: relative;
    display: block;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: .9375rem;
    color: rgba(255, 255, 255, .84);
    transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.main-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.main-nav a.is-active { color: var(--white); }
.main-nav a.is-active::after {
    content: "";
    position: absolute;
    inset-block-end: 2px;
    inset-inline-start: 14px;
    inline-size: calc(100% - 28px);
    block-size: 2px;
    background: var(--gold-500);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-inline-start: auto;
}
.main-nav + .header-actions { margin-inline-start: var(--s-1); }

.header-actions .icon-btn { color: rgba(255, 255, 255, .9); }
.header-actions .icon-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    block-size: 40px;
    padding-inline: 14px;
    border-radius: var(--r-full);
    border: 1.5px solid rgba(255, 255, 255, .3);
    color: #fff;
    font-weight: 700;
    font-size: .8125rem;
    transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.lang-switch:hover { border-color: var(--gold-500); background: rgba(233, 161, 59, .16); }

.cart-btn { position: relative; }
.cart-count {
    position: absolute;
    inset-block-start: 4px;
    inset-inline-end: 2px;
    min-inline-size: 19px;
    block-size: 19px;
    padding-inline: 5px;
    border-radius: var(--r-full);
    background: var(--gold-500);
    color: var(--navy-900);
    font-size: .6875rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    line-height: 1;
}
.cart-count[hidden] { display: none; }

.nav-toggle { display: inline-flex; }

@media (min-width: 1024px) {
    .main-nav { display: block; }
    .nav-toggle { display: none; }
}

/* --------------------------------------------------------------------------
   11. Mobile drawer
   -------------------------------------------------------------------------- */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(7, 16, 40, .55);
    /* No backdrop blur: behind a 55% dark overlay a 2px blur is invisible,
       but it still forces the browser to keep a composited layer alive on
       every page. */
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.drawer {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: 200;
    inline-size: min(340px, 88vw);
    background: var(--navy-800);
    color: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease-out);
    overflow-y: auto;
    overscroll-behavior: contain;
}
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.is-open { transform: translateX(0); }

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s-2) var(--s-3);
    border-block-end: 1px solid rgba(255, 255, 255, .12);
    flex: none;
}
.drawer-nav { padding: var(--s-2) var(--s-2) var(--s-4); }
.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-block-size: 52px;
    padding: 12px 16px;
    border-radius: var(--r-sm);
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
}
.drawer-nav a:hover, .drawer-nav a.is-active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}
.drawer-nav a.is-active { box-shadow: inset 3px 0 0 var(--gold-500); }
[dir="rtl"] .drawer-nav a.is-active { box-shadow: inset -3px 0 0 var(--gold-500); }

.drawer-sep {
    block-size: 1px;
    background: rgba(255, 255, 255, .12);
    margin-block: var(--s-2);
}

/* --------------------------------------------------------------------------
   12. Hero
   -------------------------------------------------------------------------- */
/* The supplied clip is a logo reveal on brand navy, so the whole hero block
   is navy and the video band sits inside it seamlessly -- no scrim needed. */
.hero {
    position: relative;
    background: var(--navy-900);
    color: #fff;
    padding-block-end: var(--s-8);
}

.hero-media {
    position: relative;
    inline-size: 100%;
    /* Never upscale past the source's native width -- it is a low-bitrate
       encode and stretching it past 1536px shows compression artifacts. */
    max-inline-size: 1536px;
    margin-inline: auto;
    overflow: hidden;
    background: var(--navy-900);
}

.hero-media video,
.hero-media .hero-poster {
    inline-size: 100%;
    block-size: 100%;
    /* contain, not cover: the lockup must never be cropped at any width. */
    object-fit: contain;
    object-position: center;
    display: block;
    background: var(--navy-900);
}

/* The loop is ~4.5s, so we crossfade the seam instead of hard-cutting. */
.hero-video { transition: opacity .45s linear; }
.hero-video.is-looping { opacity: 0; }

/* A soft edge vignette only. It blends the band into the section on wide
   displays and hides banding in the flat navy -- it does not darken the
   logo itself. */
.hero-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, var(--navy-900) 0%, transparent 9%, transparent 91%, var(--navy-900) 100%),
        linear-gradient(180deg, transparent 70%, rgba(7, 16, 40, .55) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-block-start: var(--s-4);
}
.hero-content h1 {
    color: #fff;
    max-inline-size: 20ch;
    margin-inline: auto;
}
.hero-content .lead {
    color: rgba(255, 255, 255, .78);
    max-inline-size: 60ch;
    margin: var(--s-2) auto 0;
}
.hero-ctas {
    margin-block-start: var(--s-4);
    gap: 12px;
    justify-content: center;
}

.hero-scroll {
    display: none;
    position: absolute;
    inset-block-end: var(--s-2);
    inset-inline-start: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, .7);
    font-size: .6875rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    align-items: center;
    flex-direction: column;
    gap: 6px;
}
[dir="rtl"] .hero-scroll { letter-spacing: 0; }
.hero-scroll span { animation: bob 2.2s var(--ease) infinite; }
.hero-scroll:hover { color: var(--gold-400); }

@keyframes bob {
    0%, 100% { transform: translateY(0); opacity: .65; }
    50%      { transform: translateY(7px); opacity: 1; }
}

.hero-pause {
    position: absolute;
    inset-block-end: var(--s-1);
    inset-inline-end: var(--s-1);
    z-index: 4;
    inline-size: 40px;
    block-size: 40px;
    border-radius: var(--r-full);
    background: rgba(7, 16, 40, .5);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    display: grid;
    place-items: center;
    opacity: .35;
    transition: opacity var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.hero-media:hover .hero-pause,
.hero-pause:focus-visible { opacity: 1; }
.hero-pause:hover { background: rgba(7, 16, 40, .85); }

@media (min-width: 768px) {
    .hero { padding-block-end: var(--s-10); }
    .hero-content { padding-block-start: var(--s-5); }
    .hero-scroll { display: flex; }
}

/* --------------------------------------------------------------------------
   13. Trust bar
   -------------------------------------------------------------------------- */
.trust-bar {
    background: var(--bg-elevated);
    border-block-end: 1px solid var(--border);
    padding-block: var(--s-3);
}
.trust-label {
    text-align: center;
    font-size: .8125rem;
    color: var(--text-muted);
    margin-block-end: var(--s-2);
}
.trust-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-5);
}
.trust-item {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: .08em;
    color: var(--text-muted);
    opacity: .65;
    text-transform: uppercase;
    transition: opacity var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
    white-space: nowrap;
}
[dir="rtl"] .trust-item { letter-spacing: 0; }
.trust-item:hover { opacity: 1; color: var(--accent); }

/* --------------------------------------------------------------------------
   14. Stats
   -------------------------------------------------------------------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat { text-align: start; }
.stat-value {
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    margin-block-start: 6px;
    font-size: .875rem;
    color: var(--text-muted);
    font-weight: 600;
}
.section--navy .stat-label { color: rgba(255, 255, 255, .72); }

/* --------------------------------------------------------------------------
   15. Service cards
   -------------------------------------------------------------------------- */
.service-card {
    position: relative;
    padding: var(--s-4) var(--s-3) var(--s-3);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
    block-size: 100%;
}
.service-card::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: 100%;
    block-size: 3px;
    background: linear-gradient(90deg, var(--gold-500), transparent);
    transform: scaleX(0);
    transform-origin: inline-start;
    transition: transform var(--dur) var(--ease);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(233, 161, 59, .4);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    inline-size: 52px;
    block-size: 52px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    background: rgba(233, 161, 59, .14);
    color: var(--gold-600);
    margin-block-end: var(--s-2);
}
[data-theme="dark"] .service-icon { color: var(--gold-400); }
.service-card h3 { margin-block-end: 8px; font-size: 1.125rem; }
.service-card p { color: var(--text-muted); font-size: .9375rem; }

/* --------------------------------------------------------------------------
   16. Product cards
   -------------------------------------------------------------------------- */
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    block-size: 100%;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.product-card .ratio { border-block-end: 1px solid var(--border); }
.product-media { position: relative; }
.product-flags {
    position: absolute;
    inset-block-start: 10px;
    inset-inline-start: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.product-body {
    padding: var(--s-2);
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.product-cat {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
[dir="rtl"] .product-cat { letter-spacing: 0; }

.product-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    /* Two-line clamp keeps every card the same height -> no layout jitter. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card a:hover .product-name { color: var(--accent); }

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-block-start: auto;
    padding-block-start: 6px;
}
.product-price {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.product-compare {
    font-size: .875rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-actions {
    padding: 0 var(--s-2) var(--s-2);
    display: flex;
    gap: 8px;
}
/* The add-to-cart button is wrapped in a form, so the FORM has to stretch --
   sizing only the button leaves cards with mismatched button widths. */
.product-actions > form,
.product-actions > .btn { flex: 1 1 auto; min-inline-size: 0; }
.product-actions .btn { inline-size: 100%; }

/* --------------------------------------------------------------------------
   17. Category tiles
   -------------------------------------------------------------------------- */
.cat-tile {
    position: relative;
    display: block;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--navy-800);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-tile img { transition: transform var(--dur-slow) var(--ease); opacity: .78; }
.cat-tile:hover img { transform: scale(1.07); }
.cat-tile-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 31, 77, .1) 30%, rgba(11, 31, 77, .88) 100%);
}
.cat-tile-body {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    padding: var(--s-2);
    color: #fff;
}
.cat-tile-body h3 { color: #fff; font-size: 1.0625rem; }
.cat-tile-count { font-size: .8125rem; color: rgba(255, 255, 255, .72); }

/* --------------------------------------------------------------------------
   18. Project cards + lightbox
   -------------------------------------------------------------------------- */
.project-card {
    position: relative;
    display: block;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--navy-900);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    inline-size: 100%;
    text-align: start;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.project-card img { transition: transform var(--dur-slow) var(--ease); }
.project-card:hover img { transform: scale(1.06); }
.project-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 31, 77, 0) 40%, rgba(7, 16, 40, .9) 100%);
}
.project-body {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    padding: var(--s-3);
    color: #fff;
}
.project-body h3 { color: #fff; font-size: 1.125rem; }
.project-meta {
    font-size: .8125rem;
    color: rgba(255, 255, 255, .74);
    margin-block-start: 4px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(5, 12, 30, .94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--s-3);
}
.lightbox.is-open { display: flex; }
.lightbox img {
    max-inline-size: min(1100px, 94vw);
    max-block-size: 86vh;
    inline-size: auto;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xl);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    inset-block-start: var(--s-2);
    inset-inline-end: var(--s-2);
    inline-size: 44px;
    block-size: 44px;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    display: grid;
    place-items: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .24); }
.lightbox-nav {
    position: absolute;
    inset-block-start: 50%;
    transform: translateY(-50%);
    inline-size: 48px;
    block-size: 48px;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    display: grid;
    place-items: center;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox-prev { inset-inline-start: var(--s-2); }
.lightbox-next { inset-inline-end: var(--s-2); }
.lightbox-caption {
    position: absolute;
    inset-block-end: var(--s-3);
    inset-inline: 0;
    text-align: center;
    color: rgba(255, 255, 255, .8);
    font-size: .875rem;
    padding-inline: var(--s-3);
}

/* --------------------------------------------------------------------------
   19. Testimonials
   -------------------------------------------------------------------------- */
.testimonial {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-4);
    box-shadow: var(--shadow-sm);
    block-size: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}
.testimonial-quote {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
}
.testimonial-quote::before {
    content: "\201C";
    display: block;
    font-size: 3rem;
    line-height: .6;
    color: var(--accent);
    margin-block-end: 12px;
    font-family: Georgia, serif;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-block-start: auto; }
.testimonial-avatar {
    inline-size: 46px;
    block-size: 46px;
    border-radius: var(--r-full);
    object-fit: cover;
    flex: none;
    background: var(--bg-sunken);
}
.testimonial-name { font-weight: 700; font-size: .9375rem; }
.testimonial-role { font-size: .8125rem; color: var(--text-muted); }
.stars { color: var(--accent); font-size: .875rem; letter-spacing: 2px; }

/* --------------------------------------------------------------------------
   20. Carousel (scroll-snap -- no JS library needed)
   -------------------------------------------------------------------------- */
.carousel { position: relative; }
.carousel-track {
    display: flex;
    gap: var(--s-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-block-end: var(--s-2);
    /* Bleed to the screen edge on mobile so cards do not look cramped. */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}
.carousel-track::-webkit-scrollbar { block-size: 6px; }
.carousel-track::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--r-full);
}
.carousel-track > * {
    scroll-snap-align: start;
    flex: 0 0 auto;
    inline-size: min(280px, 78vw);
}
.carousel-nav { display: none; gap: 8px; }
@media (min-width: 768px) {
    .carousel-nav { display: flex; }
    .carousel-track { margin-inline: 0; padding-inline: 0; }
}
.carousel-btn {
    inline-size: 44px;
    block-size: 44px;
    border-radius: var(--r-full);
    border: 1.5px solid var(--border-strong);
    background: var(--bg-elevated);
    color: var(--text);
    display: grid;
    place-items: center;
    transition: all var(--dur-fast) var(--ease);
}
.carousel-btn:hover { border-color: var(--accent); color: var(--accent); }
.carousel-btn:disabled { opacity: .35; pointer-events: none; }

/* --------------------------------------------------------------------------
   21. Forms
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
}
.field-label .req { color: var(--danger); }
.field-hint { font-size: .8125rem; color: var(--text-muted); }

.input, .textarea, .select {
    inline-size: 100%;
    min-block-size: 46px;
    padding: 11px 14px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--border-strong);
    background: var(--bg-elevated);
    color: var(--text);
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.textarea { min-block-size: 120px; resize: vertical; line-height: 1.6; }

.input:hover, .textarea:hover, .select:hover { border-color: var(--slate-400); }
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 161, 59, .25);
}
.input::placeholder, .textarea::placeholder { color: var(--slate-400); }

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-inline-end: 38px;
}
[dir="rtl"] .select {
    background-position: left 14px center;
    padding-inline-end: 14px;
    padding-inline-start: 38px;
}

.field.has-error .input,
.field.has-error .textarea,
.field.has-error .select { border-color: var(--danger); }
.field-error {
    font-size: .8125rem;
    color: var(--danger);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    min-block-size: 44px;
    align-items: center;
}
.check input[type="checkbox"], .check input[type="radio"] {
    inline-size: 20px;
    block-size: 20px;
    accent-color: var(--gold-500);
    flex: none;
    cursor: pointer;
}
.check span { font-size: .9375rem; }

/* Radio card -- used for payment method selection. */
.radio-card {
    display: flex;
    gap: 12px;
    padding: var(--s-2);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
    background: var(--bg-elevated);
}
.radio-card:hover { border-color: var(--slate-400); }
.radio-card:has(input:checked) {
    border-color: var(--accent);
    background: rgba(233, 161, 59, .07);
}
.radio-card input { margin-block-start: 3px; accent-color: var(--gold-500); inline-size: 20px; block-size: 20px; flex: none; }
.radio-card strong { display: block; font-size: .9375rem; }
.radio-card small { color: var(--text-muted); font-size: .8125rem; }

/* --------------------------------------------------------------------------
   22. Alerts + toasts
   -------------------------------------------------------------------------- */
.alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--r-sm);
    border: 1px solid;
    font-size: .9375rem;
    font-weight: 500;
}
.alert-success { background: rgba(22, 163, 74, .10); border-color: rgba(22, 163, 74, .35); color: #15803D; }
.alert-error   { background: rgba(220, 38, 38, .09); border-color: rgba(220, 38, 38, .32); color: #B91C1C; }
.alert-info    { background: rgba(37, 99, 235, .09); border-color: rgba(37, 99, 235, .32); color: #1D4ED8; }
.alert-warning { background: rgba(217, 119, 6, .10); border-color: rgba(217, 119, 6, .32); color: #B45309; }

[data-theme="dark"] .alert-success { color: #4ADE80; }
[data-theme="dark"] .alert-error   { color: #FCA5A5; }
[data-theme="dark"] .alert-info    { color: #93C5FD; }
[data-theme="dark"] .alert-warning { color: #FCD34D; }

.toast-region {
    position: fixed;
    inset-block-end: var(--s-3);
    inset-inline-start: 50%;
    transform: translateX(-50%);
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 10px;
    inline-size: min(420px, calc(100vw - 32px));
    pointer-events: none;
}
@media (min-width: 768px) {
    .toast-region {
        inset-inline-start: auto;
        inset-inline-end: var(--s-3);
        transform: none;
    }
}
.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--r-md);
    background: var(--navy-800);
    color: #fff;
    box-shadow: var(--shadow-xl);
    font-size: .9375rem;
    font-weight: 600;
    animation: toast-in .3s var(--ease-out);
    border-inline-start: 4px solid var(--gold-500);
}
.toast--success { border-inline-start-color: var(--success); }
.toast--error   { border-inline-start-color: var(--danger); }
.toast.is-leaving { animation: toast-out .25s var(--ease) forwards; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
    to { opacity: 0; transform: translateY(10px) scale(.97); }
}

/* --------------------------------------------------------------------------
   23. Breadcrumb + pagination
   -------------------------------------------------------------------------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: .8125rem;
    color: var(--text-muted);
    margin-block-end: var(--s-2);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .5; }
[dir="rtl"] .breadcrumb .sep { transform: scaleX(-1); display: inline-block; }

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-block-start: var(--s-5);
}
.page-link {
    min-inline-size: 44px;
    block-size: 44px;
    padding-inline: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--border);
    background: var(--bg-elevated);
    font-weight: 600;
    font-size: .875rem;
    transition: all var(--dur-fast) var(--ease);
}
.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-link.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}
.page-link.is-disabled { opacity: .4; pointer-events: none; }
.page-gap { display: inline-flex; align-items: center; padding-inline: 6px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   24. Empty + skeleton states
   -------------------------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: var(--s-8) var(--s-3);
    color: var(--text-muted);
}
.empty-state svg { margin-inline: auto; margin-block-end: var(--s-2); opacity: .4; }
.empty-state h3 { color: var(--text); margin-block-end: 8px; }
.empty-state p { max-inline-size: 42ch; margin-inline: auto; }

.skeleton {
    background: linear-gradient(90deg, var(--bg-sunken) 25%, var(--border) 50%, var(--bg-sunken) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
    border-radius: var(--r-sm);
}
@keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}
[dir="rtl"] .skeleton { animation-direction: reverse; }

/* --------------------------------------------------------------------------
   25. Floating WhatsApp button
   -------------------------------------------------------------------------- */
.wa-float {
    position: fixed;
    inset-block-end: 20px;
    inset-inline-end: 20px;
    z-index: 150;
    inline-size: 56px;
    block-size: 56px;
    border-radius: var(--r-full);
    background: #25D366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(37, 211, 102, .5);
}
.wa-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid #25D366;
    animation: wa-pulse 2.6s var(--ease) infinite;
}
@keyframes wa-pulse {
    0%        { transform: scale(1);   opacity: .7; }
    70%, 100% { transform: scale(1.5); opacity: 0; }
}

/* --------------------------------------------------------------------------
   26. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, .74);
    padding-block: var(--s-8) var(--s-3);
    margin-block-start: auto;
}
.footer-grid {
    display: grid;
    gap: var(--s-5);
    grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }

.footer-col h4 {
    color: #fff;
    font-size: .8125rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-block-end: var(--s-2);
}
[dir="rtl"] .footer-col h4 { letter-spacing: 0; font-size: .9375rem; }

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { transition: color var(--dur-fast) var(--ease); font-size: .9375rem; }
.footer-col a:hover { color: var(--gold-400); }

.footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .9375rem;
}
.footer-contact svg { flex: none; margin-block-start: 3px; color: var(--gold-500); }

.socials { display: flex; gap: 10px; }
.social-link {
    inline-size: 44px;
    block-size: 44px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.social-link:hover { background: var(--gold-500); color: var(--navy-900); transform: translateY(-2px); }

.footer-bottom {
    margin-block-start: var(--s-6);
    padding-block-start: var(--s-3);
    border-block-start: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-1) var(--s-3);
    align-items: center;
    justify-content: space-between;
    font-size: .8125rem;
    color: rgba(255, 255, 255, .6);
}

/* --------------------------------------------------------------------------
   27. Tables (public + admin) -- scroll inside their own container
   -------------------------------------------------------------------------- */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg-elevated);
}
.table { min-inline-size: 560px; font-size: .9375rem; }
.table th, .table td {
    padding: 14px 16px;
    text-align: start;
    border-block-end: 1px solid var(--border);
    vertical-align: middle;
}
.table th {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-sunken);
    white-space: nowrap;
}
[dir="rtl"] .table th { letter-spacing: 0; }
.table tbody tr:last-child td { border-block-end: 0; }
.table tbody tr { transition: background-color var(--dur-fast) var(--ease); }
.table tbody tr:hover { background: var(--bg-sunken); }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --------------------------------------------------------------------------
   28. Scroll reveal (progressive enhancement)
   The .js class is added by JS; without JS everything is simply visible.
   -------------------------------------------------------------------------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    will-change: opacity, transform;
}
.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   29. Reduced motion -- switch everything off
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
    .carousel-track { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   30. Print -- used for the admin invoice
   -------------------------------------------------------------------------- */
@media print {
    .site-header, .site-footer, .wa-float, .no-print,
    .admin-sidebar, .admin-topbar, .toast-region { display: none !important; }
    body { background: #fff; color: #000; }
    .panel, .card { box-shadow: none; border: 1px solid #ccc; }
    a[href]::after { content: ""; }
    @page { margin: 16mm; }
}
