/* ==========================================================================
   German Experts — Design System v3
   One stylesheet for every page. Replaces the per-page CSS files and the
   premium.css / responsive-fixes.css override layers.

   Contents
   01 Fonts            08 Cards & grids       15 Auth & account
   02 Tokens           09 Home                16 Orders & checkout
   03 Base             10 Services + modal    17 Blog (Soro embed)
   04 Typography       11 Products            18 404
   05 Layout           12 About               19 Footer
   06 Buttons          13 Contact             20 Utilities, toast, motion
   07 Header & nav     14 Forms
   ========================================================================== */

/* 01 — Fonts (self-hosted, SIL OFL 1.1 — see assets/fonts/OFL-*.txt) ------
   Two Arabic files only (both preloaded): 400 serves 400–500, 700 serves 600–700,
   so font-display: optional never leaves a weight on the fallback font. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: optional;
    src: url('../fonts/inter-latin-var.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400 500; font-display: optional; src: url('../fonts/plex-arabic-400.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600 700; font-display: optional; src: url('../fonts/plex-arabic-700.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }

/* 02 — Tokens ------------------------------------------------------------ */
:root {
    /* Brand */
    --black: #0B0B0D;
    --yellow: #FFD000;
    --yellow-hover: #FFDB3D;
    --dark-surface: #151517;
    --wa: #25D366;
    --wa-hover: #3BE077;

    /* Theme (light) */
    --bg: #F7F7F8;
    --surface: #FFFFFF;
    --surface-2: #F1F1F3;
    --text: #0B0B0D;
    --text-2: #4B5563;      /* body copy on light — 7.5:1 */
    --muted: #6B7280;       /* secondary — 4.8:1 on white */
    --border: #E4E4E7;
    --border-strong: #D4D4D8;
    --accent-ink: #0B0B0D;  /* text placed on yellow */
    --link: #0B0B0D;
    --danger: #B42318;
    --danger-bg: #FEF3F2;
    --success: #067647;
    --success-bg: #ECFDF3;
    --focus: #0B0B0D;

    /* Shape & depth */
    --r-sm: 6px;
    --r: 10px;
    --r-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(11, 11, 13, .06);
    --shadow: 0 1px 2px rgba(11, 11, 13, .05), 0 8px 24px -12px rgba(11, 11, 13, .14);

    /* Layout */
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 72px;
    --section-y: clamp(56px, 8vw, 104px);

    /* Type */
    --font-en: 'Inter', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-ar: 'IBM Plex Sans Arabic', 'Inter', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);

    color-scheme: light;
}

html.dark-theme {
    --bg: #0B0B0D;
    --surface: #151517;
    --surface-2: #1C1C1F;
    --text: #F4F4F5;
    --text-2: #C4C4CC;
    --muted: #A1A1AA;       /* 7:1 on #151517 */
    --border: #27272A;
    --border-strong: #3F3F46;
    --link: #FFD000;
    --danger: #FDA29B;
    --danger-bg: #2A1513;
    --success: #75E0A7;
    --success-bg: #0F2419;
    --focus: #FFD000;
    --shadow-sm: none;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 12px 28px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
}

@media (max-width: 1080px) { :root { --header-h: 64px; } }

/* 03 — Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-en);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.75; }
main { flex: 1 0 auto; display: block; }
img, svg, video, iframe { display: block; max-width: 100%; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
bdi, [dir="ltr"] { unicode-bidi: isolate; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .band-dark :focus-visible { outline-color: var(--yellow); }

[hidden] { display: none !important; }

/* Language visibility — one rule for the entire site */
html[lang="ar"] .lang-en,
html:not([lang="ar"]) .lang-ar { display: none !important; }

/* 04 — Typography -------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--text); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { line-height: 1.4; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem); }
h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 600; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9375rem; text-transform: none; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--yellow); flex: none; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--text-2); line-height: 1.65; }
html[lang="ar"] .lead { line-height: 1.85; }
.muted { color: var(--muted); }
.text-link { color: var(--link); font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: currentColor; }

/* 05 — Layout ------------------------------------------------------------ */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(820px + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--text-2); font-size: 1.0625rem; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head-row .section-head { margin-bottom: 0; }

.band-dark { background: var(--black); color: #fff; }
.band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark .eyebrow { color: #A1A1AA; }
.band-dark .section-head p, .band-dark p { color: #C4C4CC; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* 06 — Buttons ----------------------------------------------------------- */
.btn {
    --btn-bg: var(--surface);
    --btn-fg: var(--text);
    --btn-bd: var(--border-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--btn-bd);
    border-radius: var(--r-sm);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
html[lang="ar"] .btn { font-size: 1rem; }
.btn .icon { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn:hover { border-color: var(--text); }
.btn-primary { --btn-bg: var(--yellow); --btn-fg: var(--accent-ink); --btn-bd: var(--yellow); }
.btn-primary:hover { --btn-bg: var(--yellow-hover); --btn-bd: var(--yellow-hover); }
.btn-dark { --btn-bg: var(--black); --btn-fg: #fff; --btn-bd: var(--black); }
.btn-dark:hover { --btn-bg: #26262A; --btn-bd: #26262A; }
html.dark-theme .btn-dark { --btn-bg: #F4F4F5; --btn-fg: var(--black); --btn-bd: #F4F4F5; }
html.dark-theme .btn-dark:hover { --btn-bg: #fff; }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { --btn-bd: #fff; --btn-bg: rgba(255, 255, 255, .08); }
.btn-wa { --btn-bg: var(--wa); --btn-fg: #052E16; --btn-bd: var(--wa); }
.btn-wa:hover { --btn-bg: var(--wa-hover); --btn-bd: var(--wa-hover); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
html[dir="rtl"] .link-arrow .icon, html[dir="rtl"] .btn .icon-arrow { transform: scaleX(-1); }
html[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(3px); }

/* 07 — Header & navigation ------------------------------------------------ */
.skip-link {
    position: absolute; inset-inline-start: 12px; top: -100px; z-index: 1000;
    padding: 10px 16px; border-radius: var(--r-sm);
    background: var(--yellow); color: var(--black); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--black);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: box-shadow .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .6); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; padding: 4px 0; }
.brand-logo { height: 46px; width: auto; }

.primary-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-link {
    position: relative;
    display: flex; align-items: center;
    height: var(--header-h);
    padding: 0 14px;
    color: rgba(255, 255, 255, .74);
    font-size: .9375rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color .15s var(--ease);
}
html[lang="ar"] .nav-link { font-size: 1rem; }
.nav-link::after {
    content: ""; position: absolute; inset-inline: 14px; bottom: -1px; height: 3px;
    background: var(--yellow); border-radius: 3px 3px 0 0;
    transform: scaleX(0); transition: transform .2s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link.is-active { color: #fff; font-weight: 600; }
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link:focus-visible { outline-offset: -6px; }
.nav-mobile-extras { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
    position: relative;
    display: inline-grid; place-items: center;
    width: 40px; height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--r-sm);
    background: transparent;
    color: #fff;
    transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.icon-btn .icon { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
html.dark-theme .theme-toggle .icon-sun { display: block; }
html.dark-theme .theme-toggle .icon-moon { display: none; }

.lang-switch { display: inline-flex; padding: 3px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-sm); }
.lang-opt {
    min-width: 36px; height: 32px; padding: 0 8px;
    border: 0; border-radius: 4px;
    background: transparent; color: rgba(255, 255, 255, .7);
    font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
}
.lang-opt[lang="ar"] { font-family: var(--font-ar); font-size: 1rem; letter-spacing: 0; }
.lang-opt:hover { color: #fff; }
.lang-opt[aria-pressed="true"] { background: var(--yellow); color: var(--black); }

.account { position: relative; }
.account-dot { position: absolute; top: 7px; inset-inline-end: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--black); }
.account-menu {
    position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 120;
    min-width: 220px; padding: 6px;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--r);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .35);
}
.account-menu[hidden] { display: none; }
.account-hello { margin: 4px 10px 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: .8125rem; color: var(--muted); }
.account-hello strong { display: block; color: var(--text); font-size: .9375rem; }
.account-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-size: .9375rem; font-weight: 500; }
.account-item:hover { background: var(--surface-2); }
.account-item .icon { width: 18px; height: 18px; color: var(--muted); }

.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1240px) {
    .nav-link { padding: 0 10px; }
    .nav-link::after { inset-inline: 10px; }
}
@media (max-width: 1080px) {
    .brand-logo { height: 40px; }
    .header-inner { gap: 12px; justify-content: space-between; }
    .nav-toggle { display: inline-grid; }
    .header-cta { display: none; }
    .primary-nav {
        position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
        display: flex; flex-direction: column; justify-content: flex-start; gap: 24px;
        padding: 16px var(--gutter) 32px;
        background: var(--black);
        overflow-y: auto;
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
    }
    .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    html.nav-open, html.nav-open body { overflow: hidden; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-link { height: auto; padding: 16px 4px; font-size: 1.125rem; border-bottom: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); }
    .nav-link::after { inset-inline: auto; inset-inline-start: calc(-1 * var(--gutter)); top: 14px; bottom: 14px; width: 3px; height: auto; border-radius: 0 3px 3px 0; transform: scaleY(0); }
    .nav-link.is-active::after { transform: scaleY(1); }
    .nav-mobile-extras { display: grid; gap: 12px; }
}
@media (max-width: 420px) {
    .brand-logo { height: 34px; }
    .header-actions { gap: 6px; }
    .icon-btn { width: 36px; height: 36px; }
    .lang-opt { min-width: 30px; height: 28px; padding: 0 6px; }
}
@media (max-width: 340px) {
    .theme-toggle { display: none; }
}

/* 08 — Cards & grids ------------------------------------------------------ */
.card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: clamp(20px, 2.4vw, 28px);
    box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: .9688rem; }
.card-link { transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
.card-link:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-foot { margin-top: auto; padding-top: 18px; }

.icon-tile {
    display: inline-grid; place-items: center;
    width: 48px; height: 48px; margin-bottom: 18px;
    border-radius: var(--r-sm);
    background: var(--black); color: var(--yellow);
}
html.dark-theme .icon-tile { background: #26262A; }
.icon-tile .icon { width: 24px; height: 24px; }

.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-inline-start: 28px; color: var(--text-2); font-size: .9688rem; }
.check-list li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .45em;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.pill-yellow { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Page hero (inner pages) */
.page-hero { position: relative; isolation: isolate; background: var(--black); color: #fff; overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 11, 13, .88) 0%, rgba(11, 11, 13, .62) 55%, rgba(11, 11, 13, .35) 100%); }
html[dir="rtl"] .page-hero.has-media::before { background: linear-gradient(270deg, rgba(11, 11, 13, .88) 0%, rgba(11, 11, 13, .62) 55%, rgba(11, 11, 13, .35) 100%); }
.page-hero-inner { padding-block: clamp(56px, 9vw, 112px); max-width: 760px; }
.page-hero.hero-split::before { content: none; }
/* Keep copy on a solid surface and the existing workshop photography at inline-end. */
.hero-split .page-hero-media { position: absolute; inset: auto; inset-block: 0; inset-inline-end: 0; width: 54%; z-index: -2; }
.hero-split .page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.hero-split .page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--black), rgba(11, 11, 13, .22) 28%, transparent 60%); }
html[dir="rtl"] .hero-split .page-hero-media::after { background: linear-gradient(270deg, var(--black), rgba(11, 11, 13, .22) 28%, transparent 60%); }
.hero-split .page-hero-inner { padding-block: clamp(44px, 6vw, 76px); }
.page-hero.hero-split .page-hero-inner { width: 48%; min-height: 360px; display: flex; flex-direction: column; justify-content: center; }
.page-hero.hero-split .btn-row { align-self: start; }
.page-services .hero-split .page-hero-inner { min-height: 420px; }
.page-services .hero-split .page-hero-media img { object-position: 70% 60%; }
@media (max-width: 760px) {
    .page-hero.hero-split { display: flex; flex-direction: column; }
    .page-hero.hero-split > .container { order: 0; }
    .page-hero.hero-split .page-hero-inner { width: 100%; min-height: 0; padding-block: 36px 24px; }
    .hero-split .page-hero-media { position: relative; inset: auto; order: 1; width: 100%; height: clamp(200px, 48vw, 340px); z-index: 0; }
    .hero-split .page-hero-media::after, html[dir="rtl"] .hero-split .page-hero-media::after { background: linear-gradient(180deg, var(--black), transparent 35%); }
    .hero-split .page-hero-media img { object-position: center 55%; }
    .page-services .hero-split .page-hero-media img { object-position: center 60%; }
}
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: #D4D4D8; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); max-width: 60ch; }
.page-hero .eyebrow { color: #C4C4CC; }
.page-hero .btn-row { margin-top: 28px; }
.page-hero::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--yellow) 0 120px, transparent 120px); }
html[dir="rtl"] .page-hero::after { background: linear-gradient(270deg, var(--yellow) 0 120px, transparent 120px); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; font-size: .875rem; color: #A1A1AA; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 8px; color: #52525B; }

/* CTA band */
.cta-band { background: var(--dark-surface); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--yellow); }
.cta-band h2 { color: #fff; margin-bottom: 6px; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); }
.cta-band p { color: #C4C4CC; margin: 0; max-width: 56ch; }

/* 09 — Home -------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; background: var(--black); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(11, 11, 13, .94) 0%, rgba(11, 11, 13, .78) 34%, rgba(11, 11, 13, .2) 62%, rgba(11, 11, 13, 0) 78%),
        linear-gradient(0deg, rgba(11, 11, 13, .55) 0%, rgba(11, 11, 13, 0) 30%);
}
.hero-inner { display: flex; align-items: center; min-height: clamp(540px, calc(88vh - var(--header-h)), 760px); padding-block: clamp(48px, 7vw, 88px); }
.hero-content { max-width: 640px; margin-right: auto; } /* physical left in both directions: the car sits on the right of the photo */
html[dir="rtl"] .hero-content { margin-left: 0; margin-right: auto; }
.hero .eyebrow { color: #D4D4D8; }
.hero h1 { color: #fff; font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); line-height: 1.05; margin-bottom: 20px; letter-spacing: -0.03em; }
html[lang="ar"] .hero h1 { line-height: 1.3; letter-spacing: 0; }
.hero h1 .accent { color: var(--yellow); }
.hero-sub { color: #D4D4D8; font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.6; max-width: 46ch; margin-bottom: 32px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9375rem; color: #E4E4E7; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--yellow); }

@media (max-width: 767px) {
    .hero { display: flex; flex-direction: column; }
    .hero-media { position: relative; inset: auto; aspect-ratio: 16 / 10; overflow: hidden; min-height: 0; }
    .hero-media img { position: absolute; inset: 0; object-position: 74% 60%; }
    .hero::before { top: 0; right: 0; bottom: auto; left: 0; height: calc(100vw * 10 / 16 + 1px); background: linear-gradient(0deg, var(--black) 0%, rgba(11, 11, 13, 0) 45%); }
    .hero-inner { min-height: 0; padding-block: 8px 44px; }
    .hero-content { max-width: none; }
    .hero .btn-row .btn { flex: 1 1 100%; }
}

/* Brand strip */
.brand-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.brand-strip-inner { display: flex; align-items: center; gap: 24px 40px; padding-block: 28px; flex-wrap: wrap; justify-content: space-between; }
.brand-strip-label { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
html[lang="ar"] .brand-strip-label { letter-spacing: 0; text-transform: none; font-size: .9375rem; }
.brand-list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px clamp(20px, 4vw, 56px); }
.brand-list li { font-family: var(--font-en); font-size: clamp(.9375rem, .85rem + .4vw, 1.1875rem); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.brand-list li + li { position: relative; }
@media (max-width: 640px) {
    .brand-strip-inner { justify-content: center; text-align: center; }
    .brand-list { justify-content: center; gap: 10px 22px; }
}

/* Service cards (icon) */
.service-card .card-link-cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.service-card .link-arrow { position: relative; z-index: 2; }

/* Specialisation cards */
.spec-card { padding: 0; overflow: hidden; }
.spec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 22px 24px 18px; background: var(--black); color: #fff; border-bottom: 3px solid var(--yellow); }
html.dark-theme .spec-head { background: #1F1F23; }
.spec-head h3 { color: #fff; margin: 0; font-size: 1.125rem; letter-spacing: .02em; }
.spec-head .spec-index { font-family: var(--font-en); font-size: .8125rem; font-weight: 600; color: #A1A1AA; letter-spacing: .1em; }
.spec-body { padding: 22px 24px 26px; }

/* Trust band */
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .12); }
.trust-item { padding: 28px clamp(16px, 2vw, 28px) 4px 0; }
html[dir="rtl"] .trust-item { padding: 28px 0 4px clamp(16px, 2vw, 28px); }
.trust-item + .trust-item { border-inline-start: 1px solid rgba(255, 255, 255, .12); padding-inline-start: clamp(16px, 2vw, 28px); }
.trust-item .icon { width: 28px; height: 28px; color: var(--yellow); margin-bottom: 16px; }
.trust-item h3 { color: #fff; font-size: 1.0625rem; margin-bottom: 8px; }
.trust-item p { color: #A1A1AA; font-size: .9375rem; margin: 0; }
@media (max-width: 1024px) {
    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-item:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
    .trust-item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 24px; }
}
@media (max-width: 560px) {
    .trust-grid { grid-template-columns: minmax(0, 1fr); }
    .trust-item, html[dir="rtl"] .trust-item { border-inline-start: 0 !important; padding-inline: 0 !important; }
    .trust-item + .trust-item { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 0; }
}

/* Location block */
.location { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.location-info { padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 22px; }
.location-info h2 { margin: 0; }
.location-map { position: relative; min-height: 360px; background: var(--surface-2); }
.location-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
html.dark-theme .location-map iframe { filter: grayscale(.2) invert(.9) hue-rotate(180deg); }
@media (max-width: 860px) {
    .location { grid-template-columns: minmax(0, 1fr); }
    .location-map { min-height: 280px; aspect-ratio: 4 / 3; }
}

.info-list { list-style: none; display: grid; gap: 18px; }
.info-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.info-list .info-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.info-list .info-icon .icon { width: 20px; height: 20px; }
.info-list .info-label { display: block; font-size: .8125rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
html[lang="ar"] .info-list .info-label { text-transform: none; letter-spacing: 0; font-size: .875rem; }
.info-list .info-value { font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.info-list a.info-value:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* 10 — Services + modal --------------------------------------------------- */
.media-card { padding: 0; overflow: hidden; height: 100%; }
.media-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.media-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.media-card:hover .media-card-img img { transform: scale(1.03); }
.media-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.media-card-body h3 { margin-bottom: 8px; }
.media-card-body p { color: var(--text-2); font-size: .9688rem; }
.media-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); }
.media-card-actions .btn { min-height: 42px; }
.wa-mini { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--text-2); }
.wa-mini .icon { width: 18px; height: 18px; color: #1B9E4B; }
html.dark-theme .wa-mini .icon { color: var(--wa); }
.wa-mini:hover { color: var(--text); }

.modal { padding: 0; border: 0; background: transparent; max-width: min(720px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); color: var(--text); }
.modal::backdrop { background: rgba(11, 11, 13, .72); backdrop-filter: blur(2px); }
.modal-panel { position: relative; background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.modal-media { aspect-ratio: 21 / 9; overflow: hidden; background: var(--black); flex: none; }
@media (max-width: 560px) { .modal-media { aspect-ratio: 16 / 9; } }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: clamp(22px, 3vw, 32px); overflow-y: auto; }
.modal-body h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); margin-bottom: 10px; }
.modal-body > p { color: var(--text-2); }
.modal-body .check-list { margin: 18px 0; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--border); }
.modal-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; background: rgba(11, 11, 13, .7); border-color: rgba(255, 255, 255, .25); }
@media (max-width: 560px) { .modal-actions .btn { flex: 1 1 100%; } }

/* 11 — Products ----------------------------------------------------------- */
.notice-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); }
.notice-panel h2 { margin: 14px 0 12px; }
.notice-panel p { color: var(--text-2); }
.notice-panel .btn-row { margin-top: 24px; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; background: var(--surface-2); border-radius: var(--r); border: 1px solid var(--border); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--black); color: var(--yellow); font-weight: 700; font-family: var(--font-en); }
html.dark-theme .steps li::before { background: #2A2A2E; }
.steps strong { display: block; margin-bottom: 2px; }
.steps span { color: var(--text-2); font-size: .9375rem; }
@media (max-width: 860px) { .notice-panel { grid-template-columns: minmax(0, 1fr); } }

/* 12 — About ------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split-media { border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.prose p { color: var(--text-2); font-size: 1.0625rem; }
.prose .lead { color: var(--text); font-weight: 500; font-size: clamp(1.125rem, 1.05rem + .4vw, 1.3125rem); }

.promise-card { background: var(--black); color: #fff; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); position: relative; overflow: hidden; }
html.dark-theme .promise-card { background: #1C1C1F; border: 1px solid var(--border); }
.promise-card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: var(--yellow); }
.promise-card h3 { color: #fff; font-size: 1.25rem; }
.promise-card p { color: #C4C4CC; }
.promise-card .pill-yellow { margin-top: 18px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.stat { padding: clamp(22px, 3vw, 36px); text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--border); }
.stat-num { font-family: var(--font-en); font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.stat-num::after { content: ""; display: block; width: 28px; height: 3px; margin: 14px auto 12px; background: var(--yellow); }
.stat-label { color: var(--muted); font-weight: 500; }
@media (max-width: 560px) { .stats { grid-template-columns: minmax(0, 1fr); } .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--border); } }

/* 13 — Contact ----------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: clamp(24px, 3vw, 32px); }
.quick-action { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); transition: border-color .18s var(--ease); }
.quick-action:hover { border-color: var(--text); }
.quick-action .qa-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--black); color: var(--yellow); flex: none; }
.quick-action.is-wa .qa-icon { background: var(--wa); color: #052E16; }
.quick-action .qa-icon .icon { width: 22px; height: 22px; }
.quick-action strong { display: block; font-size: .9688rem; }
.quick-action span { display: block; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
@media (max-width: 760px) { .quick-actions { grid-template-columns: minmax(0, 1fr); } }
.hours-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.hours-table th, .hours-table td { padding: 10px 0; border-bottom: 1px solid var(--border); text-align: start; }
.hours-table td { text-align: end; font-weight: 500; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { font-weight: 500; color: var(--text-2); }
.map-frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 3; background: var(--surface-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
html.dark-theme .map-frame iframe { filter: grayscale(.2) invert(.9) hue-rotate(180deg); }

/* 14 — Forms ------------------------------------------------------------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow-sm); }
.form-card > h2 { font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); margin-bottom: 6px; }
.form-card > p.muted { margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field-label { font-size: .9375rem; font-weight: 600; color: var(--text); }
.field .req { color: var(--danger); margin-inline-start: 2px; }
.field .hint { font-size: .8125rem; color: var(--muted); }
.input, .field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 1rem; /* ≥16px avoids iOS zoom */
    line-height: 1.4;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
html.dark-theme .field input, html.dark-theme .field select, html.dark-theme .field textarea { background: #0F0F11; }
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9CA3AF; }
html.dark-theme .field input::placeholder, html.dark-theme .field textarea::placeholder { color: #71717A; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(255, 208, 0, .55); }
.field select {
    appearance: none; -webkit-appearance: none;
    padding-inline-end: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: 18px; background-position: right 14px center;
}
html[dir="rtl"] .field select { background-position: left 14px center; }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field input.error, .field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error, .field .error-message { display: flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 500; color: var(--danger); margin: 0; }
.field-error[hidden] { display: none; }
.field-error .icon { width: 16px; height: 16px; flex: none; }
.input-group { position: relative; }
.input-group input { padding-inline-end: 52px !important; }
.input-addon { position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); }
.input-addon:hover { color: var(--text); background: var(--surface-2); }
.input-addon .icon { width: 20px; height: 20px; }
.input-addon[aria-pressed="true"] { color: var(--text); }
.form-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.form-note { font-size: .875rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.form-note .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: .9375rem; }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 18px; border-radius: var(--r-sm); font-size: .9375rem; font-weight: 500; border: 1px solid transparent; }
.alert .icon { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert-error, .alert-danger { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.alert-success { background: var(--success-bg); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: ge-spin .7s linear infinite; }
@keyframes ge-spin { to { transform: rotate(360deg); } }

/* 15 — Auth & account ----------------------------------------------------- */
.auth-wrap { display: grid; place-items: center; padding: clamp(32px, 6vw, 72px) var(--gutter); flex: 1 0 auto; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card.wide { max-width: 560px; }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head .icon-tile { margin: 0 auto 16px; }
.auth-head h1 { font-size: clamp(1.625rem, 1.4rem + 1vw, 2rem); margin-bottom: 6px; }
.auth-head p { color: var(--muted); margin: 0; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .9375rem; }
.auth-foot { text-align: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-2); font-size: .9375rem; }
.auth-foot a, .auth-row a { font-weight: 600; color: var(--link); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.otp-input { text-align: center; font-family: var(--font-en) !important; font-size: 1.5rem !important; letter-spacing: .5em; font-weight: 600; }
.password-rules { list-style: none; display: grid; gap: 4px; font-size: .8125rem; color: var(--muted); }

.account-shell { padding-block: clamp(32px, 5vw, 56px); }
.account-top { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--black); color: var(--yellow); font-family: var(--font-en); font-size: 1.375rem; font-weight: 700; flex: none; }
html.dark-theme .avatar { background: #26262A; }
.account-top h1 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); margin: 0; }
.account-top p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab-btn { position: relative; padding: 12px 16px; border: 0; background: transparent; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active, .tab-btn[aria-selected="true"] { color: var(--text); }
.tab-btn.active::after, .tab-btn[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: 12px; bottom: -1px; height: 3px; background: var(--yellow); border-radius: 3px 3px 0 0; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* 16 — Orders & checkout -------------------------------------------------- */
.order-list { display: grid; gap: 12px; }
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.order-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; width: 100%; padding: 16px 18px; border: 0; background: transparent; text-align: start; cursor: pointer; }
.order-card-header:hover { background: var(--surface-2); }
.order-id { font-weight: 700; font-family: var(--font-en); }
.order-meta { color: var(--muted); font-size: .875rem; }
.order-card-body { display: none; padding: 0 18px 18px; border-top: 1px solid var(--border); }
.order-card.expanded .order-card-body, .order-card.open .order-card-body { display: block; }
.order-items { list-style: none; display: grid; gap: 8px; padding-top: 14px; }
.order-items li { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.order-total { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); font-weight: 700; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pending { color: #B54708; background: #FFFAEB; border-color: #FEDF89; }
.status-processing { color: #175CD3; background: #EFF8FF; border-color: #B2DDFF; }
.status-shipped { color: #5925DC; background: #F4F3FF; border-color: #D9D6FE; }
.status-delivered, .status-completed { color: #067647; background: #ECFDF3; border-color: #ABEFC6; }
.status-cancelled { color: #B42318; background: #FEF3F2; border-color: #FECDCA; }
html.dark-theme .status-badge { background: var(--surface-2); border-color: var(--border); }
html.dark-theme .status-pending { color: #FEC84B; } html.dark-theme .status-processing { color: #84CAFF; } html.dark-theme .status-shipped { color: #BDB4FE; } html.dark-theme .status-delivered, html.dark-theme .status-completed { color: #75E0A7; } html.dark-theme .status-cancelled { color: #FDA29B; }
.empty-state { text-align: center; padding: clamp(32px, 5vw, 56px) 20px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); }
.empty-state .icon-tile { margin: 0 auto 16px; }
.empty-state p { color: var(--muted); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .checkout-layout { grid-template-columns: minmax(0, 1fr); } }
.cart-lines { list-style: none; display: grid; gap: 10px; }
.cart-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }

/* 17 — Blog (Soro embed) -------------------------------------------------- */
#soro-blog { min-height: 320px; }
.soro-blog { max-width: none !important; margin: 0 !important; padding: 0 !important; background: transparent !important; color: var(--text) !important; font-family: inherit !important; }
.soro-blog-header { display: block !important; margin: 0 0 24px !important; padding: 0 !important; background: none !important; border: 0 !important; }
.soro-blog-header > :not(.soro-blog-back) { display: none !important; } /* page already has its own title; keep Soro's back link */
.soro-blog-header:not(:has(.soro-blog-back)) { display: none !important; }
.soro-blog-list { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: clamp(16px, 2vw, 24px) !important; padding: 0 !important; margin: 0 !important; }
@media (max-width: 1024px) { .soro-blog-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .soro-blog-list { grid-template-columns: minmax(0, 1fr) !important; } }
.soro-blog-card { display: flex !important; flex-direction: column !important; margin: 0 !important; padding: 0 !important; background: var(--surface) !important; border: 1px solid var(--border) !important; border-radius: var(--r) !important; overflow: hidden !important; box-shadow: var(--shadow-sm) !important; transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease) !important; text-decoration: none !important; color: inherit !important; cursor: pointer; }
.soro-blog-card:hover { border-color: var(--border-strong) !important; transform: translateY(-2px); box-shadow: var(--shadow) !important; }
.soro-blog-card-image { width: 100% !important; aspect-ratio: 16 / 9 !important; height: auto !important; object-fit: cover !important; border-radius: 0 !important; margin: 0 !important; background: var(--surface-2); }
.soro-blog-card-content { padding: 20px 22px 24px !important; display: flex !important; flex-direction: column !important; gap: 8px !important; }
.soro-blog-card-title { font-size: 1.125rem !important; font-weight: 600 !important; line-height: 1.45 !important; color: var(--text) !important; margin: 0 !important; }
.soro-blog-card-excerpt { font-size: .9375rem !important; color: var(--text-2) !important; line-height: 1.7 !important; margin: 0 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.soro-blog-card-date, .soro-blog-article-date { font-size: .8125rem !important; color: var(--muted) !important; order: -1; }
.soro-blog-article { max-width: 760px !important; margin: 0 auto !important; padding: 0 !important; background: transparent !important; color: var(--text) !important; }
.soro-blog-article-title { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem) !important; line-height: 1.3 !important; color: var(--text) !important; margin: 12px 0 18px !important; }
.soro-blog-article-image { width: 100% !important; border-radius: var(--r) !important; margin: 0 0 28px !important; aspect-ratio: 16 / 9; object-fit: cover; }
.soro-blog-article-content { font-size: 1.0625rem !important; line-height: 1.85 !important; color: var(--text-2) !important; }
.soro-blog-article-content h2, .soro-blog-article-content h3 { color: var(--text) !important; margin: 1.6em 0 .6em !important; line-height: 1.4 !important; }
.soro-blog-article-content a { color: var(--link) !important; text-decoration: underline !important; text-decoration-color: var(--yellow) !important; text-underline-offset: 3px; }
.soro-blog-article-content img { border-radius: var(--r); height: auto; }
.soro-blog-article-content ul, .soro-blog-article-content ol { padding-inline-start: 1.4em; margin: 0 0 1em; }
.soro-blog-back { display: inline-flex !important; align-items: center; gap: 6px; padding: 8px 14px !important; border: 1px solid var(--border-strong) !important; border-radius: var(--r-sm) !important; background: var(--surface) !important; color: var(--text) !important; font-weight: 600 !important; cursor: pointer; }
.soro-blog button:not(.soro-blog-back) { min-height: 44px; padding: 0 18px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font-weight: 600; }

/* Blog polish stays scoped to this page; the provider owns content and navigation. */
.page-blog .blog-articles { padding-block-start: calc(var(--section-y) * .75); }
.page-blog .soro-blog { direction: inherit !important; text-align: start !important; }
.page-blog .soro-blog-list { grid-auto-rows: 1fr; }
.page-blog .soro-blog-card { gap: 0 !important; height: 100%; min-width: 0; }
.page-blog .soro-blog-card-content { flex: 1; }
.page-blog .soro-blog-card-title { min-block-size: calc(1.45em * 2); }
.page-blog .soro-blog-card-title,
.page-blog .soro-blog-card-excerpt,
.page-blog .soro-blog-article-title,
.page-blog .soro-blog-article-content,
.page-blog .soro-blog-article-content p {
    text-align: start !important;
    text-align-last: auto !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    overflow-wrap: anywhere;
}
.page-blog #soro-blog [lang="ar"] { font-family: var(--font-ar); }
.page-blog .blog-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; order: -1; min-block-size: 24px; }
.page-blog .blog-card-meta time { order: 0; white-space: nowrap; }
.page-blog .blog-article-language { display: inline-flex; padding: 2px 7px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-2); font-family: var(--font-en); font-size: .8125rem; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.page-blog .blog-article-language[hidden] { display: none; }
.page-blog .soro-blog-article header > .blog-article-language { margin-inline: 12px; }
.page-blog .soro-blog-back { direction: inherit; }
.page-blog .soro-blog-back svg { transform: rotate(180deg); }
html[dir="rtl"] .page-blog .soro-blog-back svg { transform: none; }
.page-blog .soro-blog-pager a { border-color: var(--border-strong); color: var(--text-2); }
.page-blog .soro-blog-pager a:hover { background: var(--surface-2); border-color: var(--yellow); }
.page-blog .soro-blog-pager-current { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }

/* 18 — 404 --------------------------------------------------------------- */
.error-page { display: grid; place-items: center; text-align: center; padding: clamp(56px, 10vw, 120px) var(--gutter); flex: 1 0 auto; }
.error-code { font-family: var(--font-en); font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 700; line-height: 1; letter-spacing: -0.05em; color: var(--text); }
.error-code span { color: var(--yellow); -webkit-text-stroke: 2px var(--text); color: transparent; }
.error-page h1 { margin: 16px 0 10px; font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); }
.error-page p { color: var(--text-2); max-width: 48ch; margin: 0 auto 28px; }
.error-page .btn-row { justify-content: center; }

/* 19 — Footer ------------------------------------------------------------ */
.site-footer { background: var(--black); color: #A1A1AA; font-size: .9375rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(28px, 4vw, 56px); padding-block: clamp(48px, 6vw, 72px) 40px; }
.footer-logo img { height: 52px; width: auto; }
.footer-about { margin: 18px 0 20px; max-width: 36ch; line-height: 1.7; }
.footer-title { color: #fff; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; }
html[lang="ar"] .footer-title { font-size: .9375rem; letter-spacing: 0; text-transform: none; }
.footer-links, .footer-contact, .footer-social { list-style: none; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: #D4D4D8; transition: color .15s var(--ease); }
.footer-links a:hover, .footer-contact a:hover { color: var(--yellow); }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.55; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--yellow); }
.footer-email { overflow-wrap: anywhere; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, .14); color: #fff; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.footer-social a:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.footer-social .icon { width: 18px; height: 18px; }
.footer-legal { padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; }
.footer-cr { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer-cr bdi { color: #fff; font-weight: 600; font-family: var(--font-en); }
.footer-verify { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--yellow); font-weight: 600; }
.footer-verify:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-verify .icon { width: 16px; height: 16px; }
.footer-bottom { padding-block: 18px 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8125rem; color: #8B8B94; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand, .footer-col:last-child { grid-column: 1 / -1; }
    .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-block: 40px 28px; }
    .footer-contact { grid-template-columns: minmax(0, 1fr); }
    .footer-cr { flex-direction: column; align-items: flex-start; }
    .footer-verify { margin-inline-start: 0; }
}

/* WhatsApp floating button */
.wa-float {
    position: fixed; z-index: 90; bottom: max(20px, env(safe-area-inset-bottom)); inset-inline-end: 20px;
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: var(--wa); color: #052E16;
    box-shadow: 0 0 0 3px var(--black), 0 10px 24px -6px rgba(0, 0, 0, .45);
    transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); background: var(--wa-hover); }
.wa-float .icon { width: 30px; height: 30px; }
html.nav-open .wa-float { display: none; }
@media (max-width: 560px) { .wa-float { width: 52px; height: 52px; bottom: max(16px, env(safe-area-inset-bottom)); inset-inline-end: 16px; } }

/* 20 — Utilities, toast, motion ------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.cart-link { display: none !important; } /* shop not live yet: no cart entry points */

.toast {
    position: fixed; z-index: 200; left: 50%; bottom: 24px;
    max-width: calc(100vw - 32px); padding: 14px 18px;
    background: var(--black); color: #fff; border-radius: var(--r-sm);
    border-inline-start: 4px solid var(--yellow);
    box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .5);
    font-weight: 500;
    transform: translate(-50%, 20px); opacity: 0;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
    .site-header, .site-footer, .wa-float, .skip-link { display: none !important; }
    body { background: #fff; color: #000; }
}
.band-dark .link-arrow { color: #fff; }
.band-dark .link-arrow .icon { color: var(--yellow); }
.stack { display: grid; gap: 20px; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 1.1875rem; margin: 0; }
.card-title .icon { width: 20px; height: 20px; }

.footer-contact li > a, .footer-contact li > span { justify-self: start; }
.measure { max-width: 62ch; margin-inline: auto; }
.pt-0 { padding-top: 0 !important; }
.pill .icon { width: 16px; height: 16px; }
html[dir="rtl"] input[dir="ltr"]:placeholder-shown { direction: rtl; }
.account-top .btn-push { margin-inline-start: auto; }
.icon-tile.mb-0 { margin-bottom: 0; }
.input-locked { background: var(--surface-2) !important; color: var(--muted) !important; cursor: not-allowed; }
.order-card-header > span:last-child { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-card-header .icon { width: 18px; height: 18px; color: var(--muted); transition: transform .2s var(--ease); }
.order-card.expanded .order-card-header .icon { transform: rotate(180deg); }
.order-success-modal { position: fixed; inset: 0; z-index: 300; align-items: center; justify-content: center; padding: 16px; background: rgba(11, 11, 13, .72); }
.order-success-content { max-width: 440px; text-align: center; }
.order-success-content .icon-tile { margin-inline: auto; }
.cart-total { margin-top: 14px; font-weight: 600; }
.empty-cart { color: var(--muted); padding: 12px 0; }
html.dark-theme .site-footer { border-top: 1px solid var(--border); }
.otp-input:placeholder-shown { font-family: inherit !important; font-size: 1rem !important; letter-spacing: 0; font-weight: 400; }
@media (max-width: 480px) {
    .btn { white-space: normal; }
    .btn-row > .btn { flex: 1 1 100%; }
    .btn-lg { padding-inline: 20px; }
}
html.dark-theme .band-dark { background: #111113; border-block: 1px solid var(--border); }
.account-form { margin: 0; }
button.account-item { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.wa-handoff { padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.wa-handoff .icon { color: #1B9E4B; }
html.dark-theme .wa-handoff .icon { color: var(--wa); }
.wa-handoff strong { color: var(--text); }
