/* ROX Motor Egypt · internal pages · base design system (design lab, D21).
   Tokens, chrome (floating bar, menu sheet, footer), buttons, reveals and the concierge launcher for every internal page.
   Visual source of truth: the locked homepage (theme 0.7.0, assets/css/egypt-home.css). Values are copied, not shared,
   so nothing here can change the homepage. Written mobile-first: base styles are the phone layout, wider screens are
   layered on with min-width. Logical properties throughout (RTL-ready). */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../../../fonts/manrope-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../../../fonts/manrope-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens: primitives (exact homepage values) ---------- */
:root {
	--paper: #ffffff;
	--mist: #f6f7f7;
	--stone: #ecedec;
	--ink: #121416;
	--ink-hover: #2b2f33;
	--graphite: #5a6066;
	--line: rgba(18, 20, 22, .14);
	--line-strong: rgba(18, 20, 22, .3);
	--night: #0d0f10;
	--night-2: #16191b;
	--on-night: #f2f1ee;
	--on-night-2: #a3a9ae;
	--line-night: rgba(242, 241, 238, .16);
	--pending: #8a5a00;
	--pending-night: #e5b45a;
	--gut: clamp(16px, 4.2vw, 64px);
	--max: 1440px;
	--bar-h: 56px;
	--ease: cubic-bezier(.2, .7, .1, 1);
	--ease-io: cubic-bezier(.7, 0, .2, 1);
	--t-ui: .3s;
	--t-reveal: 1.2s;
	--t-mask: 1.5s;
	--f: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--f-ar: 'Alexandria', 'Manrope', system-ui, sans-serif;

	/* Semantic layer */
	--surface: var(--paper);
	--surface-alt: var(--mist);
	--surface-inverse: var(--night);
	--text: var(--ink);
	--text-muted: var(--graphite);
	--text-inverse: var(--on-night);
	--text-inverse-muted: var(--on-night-2);
	--rule: var(--line);
	--note-pending: var(--pending);

	/* Type scale (homepage values) */
	--fs-body: 17px;
	--fs-small: 14px;
	--fs-label: 12px;
	--fs-display: clamp(2.9rem, 13vw, 3.8rem);
	--fs-title: clamp(2.2rem, 9vw, 2.8rem);
	--fs-sub: clamp(1.6rem, 6vw, 2rem);

	/* Component tokens */
	--btn-h: 48px;
	--btn-h-sm: 40px;
	--btn-primary-bg: var(--ink);
	--btn-primary-hover: var(--ink-hover);
	--z-bar: 40;
	--z-ask: 35;
	--z-ask-panel: 45;
	--z-toast: 60;
	--z-skip: 100;
}
@media (min-width: 601px) { :root { --bar-h: 64px; } }
@media (min-width: 761px) {
	:root { --fs-display: clamp(3.2rem, 8.2vw, 8.6rem); --fs-title: clamp(2.4rem, 5.4vw, 5rem); --fs-sub: clamp(1.8rem, 3vw, 2.6rem); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (min-width: 601px) { html { scroll-padding-top: 84px; } }
body { margin: 0; background: var(--surface); color: var(--text); font: 400 var(--fs-body)/1.6 var(--f); font-feature-settings: 'lnum', 'tnum'; overflow-x: clip; -webkit-font-smoothing: antialiased; }
[lang="ar"] body, body[dir="rtl"] { font-family: var(--f-ar); }
/* block-size: auto stops the HTML height attribute (kept for CLS) from overriding CSS aspect ratios. */
img, video, canvas { display: block; max-inline-size: 100%; block-size: auto; }
picture { display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.sr { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: var(--z-skip); padding: 10px 16px; background: var(--ink); color: #fff; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { max-inline-size: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- Buttons and links (homepage values) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-block-size: var(--btn-h); padding: 0 24px; border: 1px solid transparent; border-radius: 0; font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background var(--t-ui), color var(--t-ui), border-color var(--t-ui), transform .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn--sm { min-block-size: var(--btn-h-sm); padding: 0 18px; font-size: 12px; }
.btn--ink { background: var(--btn-primary-bg); color: #fff; }
.btn--ink:hover { background: var(--btn-primary-hover); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--stone); }
.btn--line { border-color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--mist); }
.btn--line-light { border-color: rgba(255,255,255,.6); color: #fff; }
/* Internal pages: a solid hover (the homepage's 12% white wash measured 1.00:1 in verify_states). */
.btn--line-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.link { display: inline-block; padding-block: 7px 6px; font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 4px) / 100% 1px; }
.link:hover { background-size: 0 1px; background-position: 100% calc(100% - 4px); transition: background-size .4s var(--ease); }
.pending { color: var(--note-pending); font-weight: 500; }

/* ---------- Floating bar (copied from the homepage, D5) ---------- */
.bar { position: fixed; inset-block-start: 8px; inset-inline: 8px; z-index: var(--z-bar); transition: transform .45s var(--ease); }
.bar__in { max-inline-size: calc(var(--max) - 24px); margin-inline: auto; display: flex; align-items: center; gap: 10px; block-size: var(--bar-h); padding-inline: 14px 8px; background: rgba(12, 14, 15, .34); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); color: #fff; transition: background .4s, color .4s, box-shadow .4s; }
.bar.is-light .bar__in { background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(0,0,0,.25); }
.bar__logo { display: block; padding-block: 4px; }
.bar__logo img { block-size: 22px; inline-size: auto; filter: invert(1); transition: filter .4s; }
.bar.is-light .bar__logo img { filter: none; }
.bar__nav { display: none; gap: clamp(14px, 1.8vw, 28px); margin-inline-start: 12px; }
.bar__nav a { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-decoration: none; padding-block: 8px; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .35s var(--ease); }
.bar__nav a:hover, .bar__nav a[aria-current] { background-size: 100% 1px; }
.bar__end { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.bar__tel { display: none; font-weight: 700; font-size: 15px; text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.bar__tel-k { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-inline-end: 4px; }
.bar .btn { gap: 0; white-space: pre; padding: 0 12px; font-size: 11px; letter-spacing: .08em; }
.bar:not(.is-light) .btn--ink { background: #fff; color: var(--ink); }
.bar__td-x { display: none; }
.bar__menu { display: inline-flex; align-items: center; min-block-size: 40px; padding: 0 14px; border: 1px solid currentColor; background: none; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.bar.is-away { transform: translateY(calc(-100% - 16px)); }
@media (min-width: 601px) {
	.bar { inset-block-start: 12px; inset-inline: 12px; }
	.bar__in { gap: 24px; padding-inline: 22px 14px; }
	.bar__logo img { block-size: 26px; }
	.bar__tel { display: inline; }
	.bar__end { gap: 14px; }
	.bar .btn { padding: 0 18px; font-size: 12px; letter-spacing: .12em; }
	.bar__td-x { display: inline; }
}
@media (min-width: 1181px) {
	.bar__nav { display: flex; }
	.bar__menu { display: none; }
}

/* ---------- Menu sheet ---------- */
.sheet { inline-size: min(440px, 100vw); max-inline-size: 100vw; block-size: 100dvh; max-block-size: 100dvh; margin: 0 0 0 auto; padding: 20px 24px 28px; border: 0; background: var(--paper); color: var(--ink); }
[dir="rtl"] .sheet { margin: 0 auto 0 0; }
.sheet::backdrop { background: rgba(10,12,13,.5); }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .45s var(--ease); }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } }
.sheet__head { display: flex; justify-content: space-between; align-items: center; padding-block-end: 18px; border-block-end: 1px solid var(--line); }
.sheet__head img { block-size: 24px; inline-size: auto; }
.sheet__close { border: 1px solid var(--ink); background: none; min-block-size: 44px; padding: 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.sheet__nav { display: flex; flex-direction: column; margin-block: 8px auto; overflow-y: auto; }
.sheet__nav a { padding-block: 13px; border-block-end: 1px solid var(--line); font-size: 19px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.sheet__nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.sheet__nav .sheet__sub { padding-inline-start: 18px; font-size: 16px; font-weight: 500; color: var(--graphite); }
.sheet__tel { margin-block-start: 20px; font-size: 22px; font-weight: 700; text-decoration: none; }

/* ---------- Page head (breadcrumb) ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.crumbs li + li::before { content: '/'; margin-inline-end: 10px; opacity: .5; }
.crumbs a { text-decoration: none; padding-block: 6px; display: inline-block; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Shared reveal language (one-shot, IntersectionObserver in internal.js) ---------- */
.rise { display: inline-block; overflow: hidden; vertical-align: top; padding-block-end: .06em; }
.rise > span { display: inline-block; transform: translateY(105%); transition: transform var(--t-reveal) var(--ease); }
.is-in .rise > span, .rise.is-in > span { transform: none; }
.is-in .rise:nth-child(2) > span { transition-delay: .12s; }
/* The mask sits on the media inside the observed element: a fully clipped target never intersects in Chrome. */
[data-reveal="mask"] > * { clip-path: inset(0 0 0 100%); transition: clip-path var(--t-mask) var(--ease-io); }
[dir="rtl"] [data-reveal="mask"] > * { clip-path: inset(0 100% 0 0); }
[data-reveal="mask"].is-in > * { clip-path: inset(0); }
[data-reveal="mask"] > button { clip-path: none; }
[data-reveal="lift"] { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal="lift"].is-in { opacity: 1; transform: none; }
/* Without JS everything is visible. */
.no-js [data-reveal], .no-js .rise > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* ---------- Footer (copied from the homepage) ---------- */
.foot { background: var(--mist); padding: 56px var(--gut) 28px; }
.foot__brand, .foot__cols, .foot__base { max-inline-size: calc(var(--max) - 2 * var(--gut)); margin-inline: auto; }
.foot__brand { display: grid; grid-template-columns: 1fr; gap: 10px 48px; align-items: end; padding-block-end: 36px; border-block-end: 1px solid var(--line); }
.foot__rox { block-size: 40px; inline-size: auto; }
.foot__tag { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); }
.foot__dist { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-block-start: 14px; max-inline-size: 560px; }
.foot__dist img { inline-size: 180px; block-size: auto; flex: none; }
.foot__dist p { margin: 0; font-size: 14px; color: var(--graphite); }
.foot__dist b { color: var(--ink); font-weight: 600; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-block: 36px; }
.foot__cols h3 { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); }
.foot__cols a { display: block; padding-block: 6px; font-size: 15px; text-decoration: none; overflow-wrap: anywhere; }
.foot__cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__base { display: flex; gap: 24px; flex-wrap: wrap; padding-block-start: 22px; border-block-start: 1px solid var(--line); font-size: 13px; color: var(--graphite); }
.foot__base a { text-decoration: none; padding-block: 6px; display: inline-block; }
.foot__base span { inline-size: 100%; }
@media (min-width: 901px) {
	.foot { padding-block-start: clamp(56px, 7vw, 96px); }
	.foot__brand { grid-template-columns: auto 1fr; }
	.foot__tag { grid-row: 2; }
	.foot__dist { grid-row: 1 / span 2; grid-column: 2; justify-self: end; flex-direction: row; align-items: center; gap: 22px; margin-block-start: 0; }
	.foot__cols { grid-template-columns: repeat(4, 1fr); }
	.foot__base span { inline-size: auto; margin-inline-start: auto; }
}

/* ---------- Concierge launcher (site-wide, guided) ---------- */
.ask { position: fixed; z-index: var(--z-ask); inset-inline-end: 12px; inset-block-end: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; inline-size: 44px; min-block-size: 44px; padding: 0; border: 0; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); transition: transform .4s var(--ease), opacity .4s; }
.ask__dot { inline-size: 12px; block-size: 12px; background: #fff; box-shadow: 6px 6px 0 -2px #fff; }
.ask__l { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ask.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.ask-panel { position: fixed; z-index: var(--z-ask-panel); inset-inline: 8px; inset-block-end: 64px; max-block-size: calc(100dvh - 136px); display: flex; flex-direction: column; background: var(--paper); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45), 0 0 0 1px var(--line); }
.ask-panel[hidden] { display: none; }
.ask-panel__head { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 10px; padding-inline: 16px 10px; border-block-end: 1px solid var(--line); }
.ask-panel__head p { margin: 0; display: flex; flex-direction: column; font-size: 15px; }
.ask-panel__head span { font-size: 12px; color: var(--graphite); }
.ask-panel__close { position: relative; flex: none; inline-size: 44px; block-size: 44px; padding: 0; border: 1px solid var(--line); background: var(--paper); color: var(--ink); transition: background .2s, border-color .2s, color .2s; }
.ask-panel__close::before, .ask-panel__close::after { content: ''; position: absolute; inset: 0; margin: auto; inline-size: 18px; block-size: 1.5px; background: currentColor; transform: rotate(45deg); }
.ask-panel__close::after { transform: rotate(-45deg); }
.ask-panel__close:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.ask-panel__log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ask-msg { margin: 0; padding: 10px 12px; background: var(--mist); font-size: 14.5px; line-height: 1.5; max-inline-size: 92%; }
.ask-msg--me { align-self: flex-end; background: var(--ink); color: #fff; }
.ask-panel__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 16px; border-block-start: 1px solid var(--line); }
.ask-panel__chips button { min-block-size: 36px; padding: 0 12px; border: 1px solid var(--line); background: #fff; font-size: 13px; }
.ask-panel__chips button:hover { border-color: var(--ink); }
@media (min-width: 601px) {
	.ask { inset-inline-end: 20px; inset-block-end: 20px; inline-size: auto; min-block-size: 48px; padding: 0 20px; }
	.ask__l { position: static; inline-size: auto; block-size: auto; overflow: visible; clip: auto; }
	.ask__dot { inline-size: 8px; block-size: 8px; box-shadow: none; }
	.ask-panel { inset-inline: auto 20px; inset-block-end: 80px; inline-size: min(380px, calc(100vw - 24px)); max-block-size: min(560px, calc(100dvh - 172px)); }
}

.toast { position: fixed; z-index: var(--z-toast); inset-inline-start: 50%; inset-block-end: 24px; transform: translateX(-50%); max-inline-size: min(520px, calc(100vw - 32px)); margin: 0; padding: 12px 16px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.6); }
[dir="rtl"] .toast { transform: translateX(50%); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	[data-reveal], .rise > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
