/* =====================================================================
   JSW website styles
   Colors and fonts are set once at the top (the "tokens"). Change a
   value there and it updates everywhere on the site.
   ===================================================================== */

:root {
  /* Layout: start-aligned editorial columns (max 1240px). The logo's nested diamond frame is the
     recurring shape; the one bold moment is the live route map in the home hero. */
  --bg: #131316;            /* charcoal from the logo */
  --bg-raised: #1a1a1e;
  --surface: #222227;
  --line: #2f2f36;
  --line-strong: #46464e;
  --text: #ecebe7;
  --muted: #a7a59f;
  --gold: #d4a64a;          /* brushed gold */
  --gold-hi: #f0d488;
  --gold-lo: #a07a26;
  --silver: #bab8b2;
  --plate: #f7f6f3;         /* background behind brand logos */
  --plate-dark: #1b1b1f;
  --btn-a: #f0d488;
  --btn-b: #b8892f;
  --on-gold: #1a150a;
  --map-dot: rgba(186, 184, 178, 0.24);
  --map-glow: #d4a64a;
  --danger: #f29b8f;
  --ok: #9ad6a6;
  --wa: #25d366;
  --on-photo: #ffffff;
  --photo-shade: rgba(12, 12, 14, 0.82);
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.7);

  --font-display: "Archivo", "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-display-ar: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-hero: clamp(2.6rem, 1.1rem + 5.2vw, 5.4rem);
  --fs-h1: clamp(2.3rem, 1.4rem + 3.2vw, 4.1rem);
  --fs-h2: clamp(1.8rem, 1.25rem + 1.8vw, 2.8rem);
  --fs-h3: clamp(1.18rem, 1.08rem + 0.35vw, 1.4rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.35vw, 1.28rem);
  --fs-small: 0.875rem;

  --radius: 16px;
  --radius-sm: 10px;
  --max: 1240px;
  --header-h: 72px;
  --gutter: 24px;
  --section: clamp(72px, 8vw, 120px);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fbfbf9;
    --bg-raised: #f3f2ef;
    --surface: #ffffff;
    --line: #e3e1dc;
    --line-strong: #cdcac3;
    --text: #18181b;
    --muted: #5b5954;
    --gold: #8c661a;
    --gold-hi: #a77c22;
    --gold-lo: #6e5013;
    --silver: #77756f;
    --plate: #ffffff;
    --plate-dark: #1d1d21;
    --btn-a: #a77c22;
    --btn-b: #6e5013;
    --on-gold: #ffffff;
    --map-dot: rgba(70, 68, 62, 0.2);
    --map-glow: #b0852b;
    --danger: #b3261e;
    --ok: #2e7d32;
    --shadow: 0 24px 48px -30px rgba(40, 32, 12, 0.35);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #fbfbf9;
  --bg-raised: #f3f2ef;
  --surface: #ffffff;
  --line: #e3e1dc;
  --line-strong: #cdcac3;
  --text: #18181b;
  --muted: #5b5954;
  --gold: #8c661a;
  --gold-hi: #a77c22;
  --gold-lo: #6e5013;
  --silver: #77756f;
  --plate: #ffffff;
  --plate-dark: #1d1d21;
  --btn-a: #a77c22;
  --btn-b: #6e5013;
  --on-gold: #ffffff;
  --map-dot: rgba(70, 68, 62, 0.2);
  --map-glow: #b0852b;
  --danger: #b3261e;
  --ok: #2e7d32;
  --shadow: 0 24px 48px -30px rgba(40, 32, 12, 0.35);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(ar) body { line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 110%;
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 {
  font-family: var(--font-display-ar);
  font-stretch: normal;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--gold) 45%, transparent); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -80px; z-index: 100;
  background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Page fades in once the text is ready (with a safety net if scripts are blocked) */
html.is-loading body > * { opacity: 0; animation: jsw-failsafe 0.01s 3s forwards; }
body > * { transition: opacity 0.25s ease; }
@keyframes jsw-failsafe { to { opacity: 1; } }
.noscript { padding: 24px; text-align: center; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
@media (max-width: 600px) { :root { --gutter: 16px; } }
.section { padding-block: var(--section); }
.section.raised { background: var(--bg-raised); border-block: 1px solid var(--line); }
.section.tight { padding-block: clamp(48px, 5vw, 72px); }

.section-head { display: grid; gap: 14px; max-width: 44rem; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 40rem; }
.lead-sm { color: var(--muted); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-hi); font-size: 0.95rem; font-weight: 500;
}
.kicker::before, .dia {
  content: ""; width: 8px; height: 8px; flex: none;
  background: var(--gold); transform: rotate(45deg);
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn-gold { background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); color: var(--on-gold); }
.btn-gold:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold-hi); font-weight: 600; text-decoration: none;
  transition: gap 0.2s ease;
}
.text-link svg { width: 18px; height: 18px; }
.text-link:hover { gap: 10px; text-decoration: underline; text-underline-offset: 4px; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
#site-header { display: contents; }
.bar {
  display: flex; align-items: center; gap: 20px; height: var(--header-h);
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 36px; height: auto; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text b { font-family: var(--font-display); font-stretch: 120%; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.06em; }
.brand-text small { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.01em; }
.nav { margin-inline-start: 12px; }
.nav ul { list-style: none; display: flex; gap: 2px; }
.nav a {
  position: relative; display: block; padding: 8px 13px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.97rem;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px;
  background: var(--gold); transform: translateX(-50%) rotate(45deg);
}
.tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer; color: var(--text);
}
.icon-btn:hover { border-color: var(--gold); }
.icon-btn svg { width: 19px; height: 19px; }
.lang-toggle, .lang-select {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--text); cursor: pointer; font-size: 0.92rem; font-weight: 500;
}
.lang-toggle:hover, .lang-select:hover { border-color: var(--gold); }
.lang-toggle svg, .lang-select svg { width: 17px; height: 17px; color: var(--gold-hi); }
.lang-toggle[lang="ar"], .lang-toggle :lang(ar) { font-family: var(--font-display-ar); }
.lang-select select { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 760px) {
  .hide-md { display: none; }
}
@media (max-width: 440px) {
  .brand-text small { display: none; }
  .bar { gap: 10px; }
  .lang-toggle { padding: 0 12px; }
}

.drawer {
  position: fixed; z-index: 45;
  inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
  background: var(--bg); overflow-y: auto;
  display: flex; flex-direction: column; gap: 28px;
  padding-top: 24px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.drawer ul { list-style: none; display: grid; }
.drawer nav a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-stretch: 110%; font-size: 1.6rem; font-weight: 600; text-decoration: none;
}
:lang(ar) .drawer nav a { font-family: var(--font-display-ar); font-stretch: normal; }
.drawer nav a[aria-current="page"] { color: var(--gold-hi); }
.drawer .btn { align-self: flex-start; }
.drawer-foot { display: grid; gap: 10px; color: var(--muted); }
.drawer-foot a { text-decoration: none; }
html.menu-open { overflow: hidden; }

/* ---------- Home hero with the route map ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 30%, transparent 60%);
}
[dir="rtl"] .hero::before {
  background: linear-gradient(270deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 30%, transparent 60%);
}
.hero .wrap { padding-block: clamp(72px, 9vw, 136px) clamp(64px, 7vw, 104px); }
.hero-copy { max-width: 37rem; display: grid; gap: 22px; }
.hero h1 {
  font-size: var(--fs-hero); font-weight: 700; font-stretch: 112%;
  letter-spacing: -0.032em; line-height: 0.98;
}
:lang(ar) .hero h1 { font-size: clamp(2.3rem, 1.1rem + 4.4vw, 4.6rem); line-height: 1.22; font-weight: 700; }
.hero h1 .gold {
  background: linear-gradient(100deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: var(--muted); max-width: 33rem; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: var(--fs-small); }
.legend span { display: inline-flex; align-items: center; gap: 9px; }
.legend .l-office::before { content: ""; width: 9px; height: 9px; background: var(--gold-hi); transform: rotate(45deg); outline: 1px solid var(--gold); outline-offset: 2px; }
.legend .l-project::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-hi); }

@media (max-width: 999px) {
  .hero .wrap { padding-bottom: clamp(330px, 46vw, 420px); padding-top: 48px; }
  .hero::before, [dir="rtl"] .hero::before {
    background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 52%, transparent 70%);
  }
}

/* Stats under the hero */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 28px 24px; border-inline-start: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat b {
  font-family: var(--font-display); font-stretch: 115%; font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  direction: ltr; justify-self: start;
}
.stat span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 22px 16px; }
  .stat:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Brand logos ---------- */
.plate {
  display: grid; place-items: center; background: var(--plate);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.plate-dark { background: var(--plate-dark); border-color: var(--line); }
.plate img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

.marquee-head { color: var(--muted); font-family: var(--font-body); font-size: 1rem; font-weight: 500; font-stretch: normal; letter-spacing: 0; margin-bottom: 22px; }
.marquee {
  display: flex; overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  list-style: none; display: flex; gap: 14px; padding-inline-end: 14px; flex: none;
  animation: marquee 80s linear infinite;
}
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .plate { width: 132px; height: 78px; padding: 12px 18px; border-radius: 12px; }
.marquee .plate img { filter: grayscale(1); opacity: 0.85; transition: filter 0.3s, opacity 0.3s; }
.marquee .plate:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes marquee-rtl { to { transform: translateX(100%); } }

/* ---------- Service tabs (home) ---------- */
.explorer { display: grid; grid-template-columns: minmax(230px, 0.78fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.ex-tabs { display: flex; flex-direction: column; border-inline-start: 1px solid var(--line); }
.ex-tabs [role="tab"] {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 15px 18px; background: none; border: 0; cursor: pointer; text-align: start;
  font-family: var(--font-display); font-stretch: 106%; font-size: 1.05rem; font-weight: 550; color: var(--muted);
}
:lang(ar) .ex-tabs [role="tab"] { font-family: var(--font-display-ar); font-stretch: normal; font-weight: 500; }
.ex-tabs [role="tab"] .dia { width: 8px; height: 8px; background: transparent; border: 1px solid var(--silver); transition: background 0.2s, border-color 0.2s; }
.ex-tabs [role="tab"]:hover { color: var(--text); }
.ex-tabs [role="tab"][aria-selected="true"] { color: var(--text); }
.ex-tabs [role="tab"][aria-selected="true"] .dia { background: var(--gold); border-color: var(--gold); }
.ex-tabs [role="tab"][aria-selected="true"]::before {
  content: ""; position: absolute; inset-inline-start: -1px; top: 10px; bottom: 10px; width: 2px; background: var(--gold);
}
.ex-panel {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 36px);
  padding: clamp(18px, 2.4vw, 28px); background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 440px;
}
.ex-panel:not(:has(.ex-media)) { grid-template-columns: minmax(0, 1fr); }
.ex-media { margin: 0; }
.ex-media img { width: 100%; height: 100%; min-height: 280px; max-height: 470px; object-fit: cover; border-radius: var(--radius-sm); }
.ex-copy { display: grid; gap: 16px; align-content: start; padding-block: 8px; min-width: 0; }
.ex-copy h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); }
.ex-copy .text-link { margin-top: 4px; }

.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 24px; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 3px; top: 0.72em; width: 7px; height: 7px;
  border: 1px solid var(--gold); transform: rotate(45deg);
}
.ticks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }

@media (max-width: 900px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .ex-tabs { flex-direction: row; overflow-x: auto; border-inline-start: 0; gap: 8px; padding-bottom: 6px; scrollbar-width: thin; }
  .ex-tabs [role="tab"] { width: auto; flex: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; font-size: 0.95rem; }
  .ex-tabs [role="tab"][aria-selected="true"] { border-color: var(--gold); }
  .ex-tabs [role="tab"][aria-selected="true"]::before { display: none; }
  .ex-panel { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ex-media img { min-height: 0; aspect-ratio: 16 / 10; max-height: 320px; }
}

/* ---------- Two ways to work with us ---------- */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.path {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius);
  min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  padding: clamp(24px, 3vw, 40px); color: var(--on-photo); text-decoration: none;
  border: 1px solid var(--line);
}
.path img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s ease; }
.path::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 38%, var(--photo-shade) 86%); }
.path:hover img { transform: scale(1.04); }
.path h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.path p { max-width: 30rem; opacity: 0.88; }
.path .btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 760px) {
  .paths { grid-template-columns: minmax(0, 1fr); }
  .path { min-height: 380px; }
}

/* ---------- Split sections and the logo frame ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split .copy { display: grid; gap: 18px; align-content: start; min-width: 0; }
.split h2 { font-size: var(--fs-h2); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.framed { position: relative; margin: 14px; isolation: isolate; }
.framed img { width: 100%; border-radius: 4px; aspect-ratio: 5 / 4; object-fit: cover; }
.framed::before, .framed::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.framed::before { inset: -14px 14px 14px -14px; border: 1px solid var(--gold); }
.framed::after { inset: 14px -14px -14px 14px; border: 1px solid var(--silver); opacity: 0.6; }
[dir="rtl"] .framed::before { inset: -14px -14px 14px 14px; }
[dir="rtl"] .framed::after { inset: 14px 14px -14px -14px; }

.creds { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: 10px; }
.creds li { display: grid; gap: 2px; align-content: start; padding-inline-start: 20px; position: relative; }
.creds li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.creds b { font-weight: 600; line-height: 1.4; }
.creds span { color: var(--muted); font-size: var(--fs-small); }
.creds li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 560px) { .creds { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Brand cards ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.brand-grid.featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .brand-grid.featured { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .brand-grid.featured { grid-template-columns: minmax(0, 1fr); } }
.brand-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.brand-card:hover { border-color: var(--line-strong); }
.brand-card .plate { position: relative; aspect-ratio: 16 / 9; border: 0; border-bottom: 1px solid var(--line); }
.brand-card .plate img { position: absolute; inset: 14% 18%; width: 64%; height: 72%; max-width: none; max-height: none; object-fit: contain; }
.brand-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.brand-body h3 { font-size: 1.2rem; }
.brand-body p:not(.brand-cat) { color: var(--muted); font-size: 0.96rem; }
.brand-cat { color: var(--gold-hi); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.brand-body .text-link { margin-top: auto; padding-top: 8px; font-size: 0.94rem; }

/* ---------- Franchise directory ---------- */
.dir-tools {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 20;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.search {
  display: flex; align-items: center; gap: 10px; max-width: 520px;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 16px; background: var(--bg-raised);
}
.search:focus-within { border-color: var(--gold); }
.search svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; padding: 12px 0; outline: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  font-size: 0.9rem; color: var(--muted);
}
.chip .count { font-variant-numeric: tabular-nums; font-size: 0.8rem; color: var(--muted); opacity: 0.8; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.chip[aria-pressed="true"] .count { color: var(--on-gold); }
.dir-count { color: var(--muted); font-size: var(--fs-small); margin: 20px 0 18px; }
.dir-empty { padding: 48px 0; color: var(--muted); text-align: center; }

.partners { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; }
.partners .plate { position: relative; width: 160px; height: 92px; border-radius: 12px; }
.partners .plate img, .marquee .plate img { position: absolute; inset: 12% 14%; width: 72%; height: 76%; max-width: none; max-height: none; object-fit: contain; }
.marquee .plate { position: relative; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.quote { margin: 0; display: flex; flex-direction: column; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.quote h3 { font-size: 1.15rem; display: flex; gap: 10px; align-items: baseline; }
.quote h3::before { content: "\201C"; font-family: var(--font-display); color: var(--gold); font-size: 2.2rem; line-height: 0; transform: translateY(0.32em); }
[dir="rtl"] .quote h3::before { content: "\201D"; }
.quote blockquote { margin: 0; color: var(--muted); }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.who b { display: block; font-weight: 600; }
.who span { color: var(--muted); font-size: var(--fs-small); }
.t-logo {
  flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; position: relative;
  background: var(--plate); border: 1px solid var(--line);
}
.t-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.mono {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--gold-hi);
}
.mono::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--gold); transform: rotate(45deg); }
.mono.lg { width: 64px; height: 64px; font-size: 1.15rem; }
.mono.lg::before { inset: 9px; box-shadow: 0 0 0 5px var(--bg-raised), 0 0 0 6px color-mix(in srgb, var(--silver) 50%, transparent); }
@media (max-width: 900px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Events ---------- */
.events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.event {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
}
.event > img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-bottom: 1px solid var(--line); }
.event-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; padding: clamp(20px, 2.5vw, 28px); }
.events-more { margin-top: 28px; }
.event .date {
  font-family: var(--font-display); font-stretch: 110%; font-weight: 650; color: var(--gold-hi);
  font-size: 1rem; line-height: 1.25; max-width: 7.5rem; padding-inline-end: 22px; border-inline-end: 1px solid var(--line-strong);
}
:lang(ar) .event .date { font-family: var(--font-display-ar); font-stretch: normal; }
.event h3 { font-size: 1.25rem; margin-bottom: 6px; }
.event .place { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--fs-small); margin-bottom: 10px; }
.event .place svg { width: 16px; height: 16px; flex: none; }
.event p:last-child { color: var(--muted); }
@media (max-width: 860px) {
  .events { grid-template-columns: minmax(0, 1fr); }
  .event-body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .event .date { border: 0; padding: 0; max-width: none; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq h2 { font-size: var(--fs-h2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-stretch: 104%; font-weight: 600; font-size: 1.1rem;
}
:lang(ar) .faq summary { font-family: var(--font-display-ar); font-stretch: normal; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; border: 1px solid var(--gold);
  transform: rotate(45deg); transition: background 0.2s ease, transform 0.25s ease;
}
.faq details[open] summary::after { background: var(--gold); transform: rotate(225deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 42rem; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Call to action band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--bg-raised); border-block: 1px solid var(--line); }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 33px, color-mix(in srgb, var(--gold) 16%, transparent) 33px 34px),
    repeating-linear-gradient(-45deg, transparent 0 33px, color-mix(in srgb, var(--gold) 16%, transparent) 33px 34px);
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
[dir="rtl"] .cta-band::before {
  -webkit-mask-image: linear-gradient(270deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(270deg, transparent 35%, #000 100%);
}
.cta-inner { display: grid; gap: 20px; max-width: 42rem; }
.cta-inner h2 { font-size: var(--fs-h2); }
.cta-inner p { color: var(--muted); font-size: var(--fs-lead); }
.cta-inner .cta-direct { font-size: 0.95rem; }
.cta-direct { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); font-size: 0.95rem; }
.cta-direct a { text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.cta-direct a:hover { color: var(--text); }
.cta-direct svg { width: 17px; height: 17px; color: var(--gold-hi); }

/* ---------- Inner page heading ---------- */
.page-head { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(56px, 8vw, 112px) clamp(44px, 6vw, 80px); display: grid; gap: 18px; }
.page-head h1 { font-size: var(--fs-h1); max-width: 18ch; }
:lang(ar) .page-head h1 { max-width: 22ch; }
.page-head .lead { max-width: 42rem; }
.diamonds { position: absolute; z-index: -1; inset-inline-end: clamp(-180px, -6vw, -60px); top: 50%; width: clamp(260px, 34vw, 460px); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
.diamonds i { position: absolute; border: 1px solid var(--gold); transform: rotate(45deg); opacity: 0.5; }
.diamonds i:nth-child(1) { inset: 0; }
.diamonds i:nth-child(2) { inset: 9%; border-color: var(--silver); opacity: 0.35; }
.diamonds i:nth-child(3) { inset: 18%; opacity: 0.3; }
.diamonds i:nth-child(4) { inset: 27%; border-color: var(--silver); opacity: 0.2; background: color-mix(in srgb, var(--gold) 5%, transparent); }
@media (max-width: 760px) { .diamonds { opacity: 0.45; } }

/* ---------- Services page ---------- */
.svc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-index { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 32px); }
.svc-index p { color: var(--muted); font-size: var(--fs-small); margin-bottom: 12px; }
.svc-index ul { list-style: none; display: grid; border-inline-start: 1px solid var(--line); }
.svc-index a { display: block; padding: 8px 16px; color: var(--muted); text-decoration: none; position: relative; font-size: 0.95rem; line-height: 1.4; }
.svc-index a:hover { color: var(--text); }
.svc-index a[aria-current] { color: var(--text); }
.svc-index a[aria-current]::before { content: ""; position: absolute; inset-inline-start: -1px; top: 6px; bottom: 6px; width: 2px; background: var(--gold); }
.svc { padding-block: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.svc:first-child { padding-top: 0; }
.svc:last-child { border-bottom: 0; }
.svc-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.svc-body:not(:has(> figure:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }
.svc-gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.svc-gallery figure { margin: 0; display: grid; gap: 8px; }
.svc .svc-gallery img { aspect-ratio: 4 / 3; }
.svc-gallery figcaption { color: var(--muted); font-size: var(--fs-small); display: flex; align-items: center; gap: 8px; }
.svc-gallery figcaption::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.svc-copy { display: grid; gap: 16px; min-width: 0; }
.svc h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.3rem); }
.svc figure { margin: 0; }
.svc-points { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); padding-block-start: 24px; }
@media (max-width: 1180px) { .svc-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-points { grid-template-columns: minmax(0, 1fr); } }
.svc figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
@media (max-width: 960px) {
  .svc-layout { grid-template-columns: minmax(0, 1fr); }
  .svc-index { display: none; }
  .svc-body { grid-template-columns: minmax(0, 1fr); }
  .svc figure { order: -1; }
  .svc figure img { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) { .ticks.cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- About page ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
[dir="rtl"] .steps li { padding: 28px 0 32px 28px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-stretch: 120%; font-weight: 600; font-size: 0.95rem; color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--muted); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 540px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps li, [dir="rtl"] .steps li { padding-inline: 0; } }

.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.person { display: grid; gap: 12px; align-content: start; padding: 28px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); }
.person h3 { font-size: 1.25rem; margin-top: 6px; }
.person .role { color: var(--gold-hi); font-weight: 600; font-size: 0.92rem; }
.person p:last-child { color: var(--muted); }
@media (max-width: 860px) { .team { grid-template-columns: minmax(0, 1fr); } }

.countries { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.countries li { padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.95rem; }

.film { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.film-shot { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.film-shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; transition: transform 0.8s ease; }
.film-shot:hover img { transform: scale(1.03); }
.film-shot .play {
  position: absolute; inset-inline-start: 20px; bottom: 20px; width: 60px; height: 60px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); color: var(--on-gold); transform: rotate(45deg); border-radius: 6px;
}
.film-shot .play svg { width: 24px; height: 24px; transform: rotate(-45deg); }
[dir="rtl"] .film-shot .play svg { transform: rotate(-45deg) scaleX(-1); }
@media (max-width: 760px) { .film { grid-template-columns: minmax(0, 1fr); } .film-shot img { aspect-ratio: 4 / 3; } }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.form-card { padding: clamp(22px, 3vw, 36px); background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 20px; }
.form-card h2 { font-size: 1.5rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: var(--fs-small); }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); }
.form-status.is-ok { border-color: var(--ok); }
.form-status.is-error { border-color: var(--danger); }
.form-status a { color: var(--gold-hi); }
@media (max-width: 560px) { .fields { grid-template-columns: minmax(0, 1fr); } }

.info { display: grid; gap: 0; }
.info-block { display: grid; gap: 8px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.info-block:first-child { padding-top: 0; }
.info-block:last-child { border-bottom: 0; }
.info-block h3 { font-family: var(--font-body); font-stretch: normal; font-size: 0.9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.info-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.info-row .copy-value { font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; text-decoration: none; }
.info-row .copy-value:hover { text-decoration: underline; text-underline-offset: 4px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-size: 0.82rem; cursor: pointer;
}
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { color: var(--text); border-color: var(--gold); }
.info .text-link { font-size: 0.95rem; }
.people { list-style: none; display: grid; gap: 12px; }
.people b { display: block; font-weight: 600; }
.people span { color: var(--muted); font-size: var(--fs-small); }
.people a { color: var(--gold-hi); text-decoration: none; font-size: 0.95rem; }
.office-list { list-style: none; display: grid; gap: 6px; }
.office-list span { color: var(--muted); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
#site-footer { display: contents; }
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.f-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.f-brand { display: grid; gap: 16px; align-content: start; max-width: 22rem; }
.f-brand p { color: var(--muted); font-size: 0.95rem; }
.f-brand .brand img { width: 44px; }
.f-col h2 { font-family: var(--font-body); font-stretch: normal; letter-spacing: 0; font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.f-col ul { list-style: none; display: grid; gap: 9px; }
.f-col a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.f-col a:hover, .f-col a[aria-current="page"] { color: var(--text); }
.f-offices li { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.f-offices b { color: var(--text); font-weight: 500; }
.f-offices span { display: block; font-size: 0.85rem; }
.f-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 48px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-small);
}
.lang-quiet { height: 40px; font-size: 0.88rem; }
.socials { display: flex; gap: 8px; }
.social {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted);
}
.social:hover { color: var(--gold-hi); border-color: var(--gold); }
.social svg { width: 17px; height: 17px; }
@media (max-width: 860px) { .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .f-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .f-grid { grid-template-columns: minmax(0, 1fr); } }

.wa-float {
  position: fixed; z-index: 40; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}
[dir="ltr"] .wa-float { right: calc(20px + env(safe-area-inset-right, 0px)); }
[dir="rtl"] .wa-float { left: calc(20px + env(safe-area-inset-left, 0px)); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }
html.menu-open .wa-float { display: none; }

/* ---------- 404 ---------- */
.notfound .wrap { min-height: 50vh; align-content: center; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
  html.is-loading body > * { opacity: 1; }
}

/* ---------- Small helpers used by the pages ---------- */
.stack { display: grid; gap: 18px; align-content: start; min-width: 0; }
.h3-size { font-size: var(--fs-h3) !important; margin-top: 8px; }
.reach-title { font-size: 1.05rem; margin-top: 18px; color: var(--muted); font-family: var(--font-body); font-stretch: normal; font-weight: 500; letter-spacing: 0; }
.section.flush-top { padding-top: 0; }
.section-head.split > div { display: grid; gap: 14px; max-width: 44rem; }
@media (max-width: 640px) { .section-head.split { grid-template-columns: minmax(0, 1fr); align-items: start; } .section-head.split .btn { justify-self: start; } }

/* ---------- About page: partners, achievements, awards, expo history ---------- */
.split.top { align-items: start; }
.sub-title { font-size: 1.2rem; margin: clamp(40px, 5vw, 56px) 0 8px; }
.partner-list { list-style: none; display: grid; border-top: 1px solid var(--line); }
.partner-list li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 8px 32px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.partner-list b { display: block; font-weight: 600; }
.partner-list span { color: var(--gold-hi); font-size: 0.92rem; font-weight: 500; }
.partner-list p { color: var(--muted); }
@media (max-width: 700px) { .partner-list li { grid-template-columns: minmax(0, 1fr); } }

.creds.one-col { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.award-shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.award-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.timeline { list-style: none; display: grid; border-top: 1px solid var(--line); }
.tl-year { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 12px 32px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.tl-year h3 {
  font-family: var(--font-display); font-stretch: 115%; font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  line-height: 1; font-variant-numeric: tabular-nums; direction: ltr; justify-self: start;
  background: linear-gradient(100deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tl-year ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.tl-year li { display: grid; gap: 2px; padding-inline-start: 18px; position: relative; }
.tl-year li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.tl-year li b { font-weight: 500; }
.tl-year li span { color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 760px) {
  .tl-year { grid-template-columns: minmax(0, 1fr); }
  .tl-year ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .partners { gap: 10px; }
  .partners .plate { width: calc((100% - 20px) / 3); height: 70px; }
}

/* =====================================================================
   PHONES AND TOUCH SCREENS
   ===================================================================== */
html { -webkit-tap-highlight-color: color-mix(in srgb, var(--gold) 22%, transparent); }
.ln-short { display: none; }
@media (max-width: 600px) { :root { --header-h: 64px; } .brand img { width: 32px; } }
@media (max-width: 400px) {
  .ln-full { display: none; }
  .ln-short { display: inline; }
  .tools { gap: 6px; }
  .lang-toggle { padding: 0 11px; gap: 6px; }
  .bar { gap: 8px; }
}

/* Comfortable finger-sized targets on touch screens */
@media (pointer: coarse) {
  .text-link { min-height: 44px; }
  .brand-body .text-link { padding-top: 0; }
  .social { width: 44px; height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .lang-toggle, .lang-select { height: 44px; }
  .copy-btn { min-height: 40px; padding: 6px 14px; }
  .chip { min-height: 44px; padding: 8px 16px; }
  .ex-tabs [role="tab"] { min-height: 44px; }
  .cta-direct a { min-height: 44px; }
  .f-col ul { gap: 0; }
  .f-col a { display: inline-flex; align-items: center; min-height: 40px; }
  .people a { display: inline-flex; align-items: center; min-height: 40px; }
  .faq summary { min-height: 56px; }
  .brand { min-height: 44px; }
  .btn-sm { min-height: 44px; }
  .info-row .copy-value { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Horizontally scrolling rows fade at the edge so people know there is more */
@media (max-width: 900px) {
  .chips, .ex-tabs {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    padding-inline-end: 24px; scroll-padding-inline: 16px;
  }
  [dir="rtl"] .chips, [dir="rtl"] .ex-tabs {
    -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(270deg, #000 calc(100% - 32px), transparent);
  }
}

/* The franchise search bar only sticks to the top where there is room for it */
@media (max-width: 760px), (max-height: 520px) {
  .dir-tools { position: static; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Bottom contact bar on phones */
.m-bar { display: none; }
@media (max-width: 760px) {
  html.has-m-bar .wa-float { display: none; }
  html.has-m-bar body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  html.has-m-bar .m-bar {
    position: fixed; z-index: 44; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 6px; align-items: center;
    padding-top: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
    border-top: 1px solid var(--line);
  }
  .m-bar a {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 0 8px;
    border-radius: 12px; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none;
    font-weight: 600; font-size: 0.92rem; line-height: 1.15; text-align: center;
  }
  .m-bar a svg { width: 19px; height: 19px; flex: none; color: var(--gold-hi); }
  .m-bar a.m-tab {
    flex-direction: column; gap: 3px; min-width: 66px; min-height: 52px; padding: 4px 6px;
    border-color: transparent; font-size: 0.8rem; font-weight: 500; color: var(--muted);
  }
  .m-bar a.m-tab svg { width: 21px; height: 21px; }
  .m-bar a.m-cta { min-height: 48px; white-space: nowrap; font-size: 0.95rem; }
  .m-bar a.m-cta { background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); color: var(--on-gold); border-color: transparent; }
  .m-bar a.m-cta svg { color: var(--on-gold); }
  html.menu-open .m-bar { display: none; }
}
@media (max-width: 340px) { .m-bar a.m-cta { font-size: 0.86rem; padding: 0 6px; } .m-bar a.m-tab { min-width: 58px; } }
