/* Sawaed — tokens, base type, header + dropdown, shared sections, component theming.
   Palette is sampled from the logo: the wordmark's deep green and the emblem's gold.
   Light surfaces are concrete, not cream: this is a tyre yard, not a stationer's. */
:root {
  --green-950: #061a0e;
  --green-900: #0c2a17;          /* the wordmark */
  --green-700: #1f4a2f;
  --gold-500: #c58a3b;           /* the emblem, mid-tone */
  --gold-300: #f0c46a;           /* the emblem, highlight */
  --stone-100: #dddbd4;          /* yard concrete */
  --stone-50: #eeede8;
  --white: #ffffff;
  --ink: var(--green-900);
  --ink-70: rgb(12 42 23 / .72);
  --ink-50: rgb(12 42 23 / .52);
  --line: rgb(12 42 23 / .14);
  --on-dark-70: rgb(255 255 255 / .74);
  --on-dark-50: rgb(255 255 255 / .52);
  --line-dark: rgb(255 255 255 / .14);

  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-text: "Barlow", system-ui, sans-serif;
  --gut: clamp(16px, 3vw, 48px);
  --max: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
html[lang="ar"] {
  --f-display: "Cairo", "Barlow Condensed", sans-serif;
  --f-text: "IBM Plex Sans Arabic", "Barlow", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--stone-50); color: var(--ink);
  font: 400 17px/1.55 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
/* Latin-only pieces (split-flap, per-letter animations) and their Arabic stand-ins */
html[lang="ar"] .en-only, html:not([lang="ar"]) .ar-only { display: none !important; }

/* ── header ─────────────────────────────────────────── */
.sw-head {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 24px;
  height: 76px; padding: 0 var(--gut); color: var(--white); background: var(--green-900);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
/* over a hero film the bar starts clear and fills in once the page scrolls */
.has-hero .sw-head:not(.is-solid) { background: transparent; }
.has-hero .sw-head.is-solid { background: rgb(6 26 14 / .94); box-shadow: 0 1px 0 var(--line-dark); }
.sw-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.sw-brand svg { width: 34px; height: auto; }
.sw-brand b { display: block; font: 700 21px/1 var(--f-display); letter-spacing: .01em; }
.sw-brand small { display: block; margin-top: 3px; font-size: 12px; line-height: 1; color: var(--on-dark-70); }
.sw-nav { position: relative; display: flex; align-items: center; gap: 4px; margin-inline-start: 24px; }
.sw-nav > a, .sw-nav > button {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 999px;
  background: none; color: inherit; font-size: 15.5px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .2s;
}
.sw-nav > a:hover, .sw-nav > button:hover, .sw-nav > button[aria-expanded="true"] { background: rgb(255 255 255 / .1); }
.sw-nav > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold-300); border-radius: 0; }
.sw-nav svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.sw-nav [aria-expanded="true"] svg { transform: rotate(180deg); }
/* one floating panel that springs between triggers (after the 21st.dev Navbar Menu) */
.sw-drop {
  position: absolute; top: calc(100% + 14px); left: 0; z-index: 2; overflow: hidden; border-radius: 18px;
  background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px rgb(12 42 23 / .1), 0 24px 60px -20px rgb(6 26 14 / .55);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.96); transform-origin: 30% 0;
  transition: opacity .2s, transform .45s cubic-bezier(.3, 1.4, .5, 1), visibility 0s .2s,
              left .45s cubic-bezier(.3, 1.25, .5, 1), width .45s cubic-bezier(.3, 1.25, .5, 1), height .45s cubic-bezier(.3, 1.25, .5, 1);
}
.sw-drop.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sw-drop-page { position: absolute; top: 0; left: 0; padding: 14px; display: grid; gap: 4px; width: max-content; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sw-drop-page.is-on { opacity: 1; pointer-events: auto; }
.sw-drop-page a { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none; max-width: 360px; }
.sw-drop-page a:hover, .sw-drop-page a:focus-visible { background: var(--stone-50); }
.sw-drop-page b { display: block; font-weight: 600; }
.sw-drop-page span { display: block; font-size: 14px; color: var(--ink-70); line-height: 1.35; }
.sw-drop-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-900); color: var(--gold-300); }
.sw-drop-ico svg { width: 24px; height: 24px; }
.sw-head-end { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.sw-lang { height: 40px; padding: 0 14px; border: 1px solid var(--line-dark); border-radius: 999px; background: none; color: inherit; cursor: pointer; font-size: 15px; }
.sw-lang:hover { border-color: var(--on-dark-50); }
.sw-cta {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; text-decoration: none;
  background: var(--gold-300); color: var(--green-950); font-weight: 600; font-size: 15.5px; transition: background-color .2s, transform .2s;
}
.sw-cta:hover { background: #ffd789; transform: translateY(-1px); }
.sw-head .vs-mobile-sheet-trigger { display: none; }
@media (max-width: 960px) {
  .sw-nav, .sw-head-end .sw-cta { display: none; }
  .sw-head .vs-mobile-sheet-trigger { display: inline-grid; }
  .sw-head { height: 68px; gap: 12px; }
}
@media (max-width: 420px) {
  .sw-brand small { display: none; }
  .sw-lang { padding: 0 10px; }
}

/* ── sections ───────────────────────────────────────── */
.sw-sec { padding: clamp(72px, 10vw, 140px) var(--gut); }
.sw-sec > .sw-in { max-width: var(--max); margin: 0 auto; }
.sw-sec.is-dark { background: var(--green-900); color: var(--white); }
.sw-sec.is-stone { background: var(--stone-100); }
.sw-lede { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sw-h2 { font: 800 clamp(40px, 6vw, 84px)/.92 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
html[lang="ar"] .sw-h2 { line-height: 1.15; letter-spacing: 0; }
.sw-lede p { max-width: 46ch; color: var(--ink-70); font-size: 18px; }
.is-dark .sw-lede p { color: var(--on-dark-70); }
@media (max-width: 820px) { .sw-lede { grid-template-columns: 1fr; align-items: start; } }

.sw-figs { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.is-dark .sw-figs { border-color: var(--line-dark); }
.sw-figs > div { padding: 22px 16px 0 0; }
.sw-figs b { display: block; font: 800 clamp(64px, 8vw, 112px)/.85 var(--f-display); color: var(--gold-500); font-variant-numeric: lining-nums tabular-nums; }
.sw-figs span { display: block; margin-top: 12px; max-width: 18ch; color: var(--ink-70); }
.is-dark .sw-figs span { color: var(--on-dark-70); }
@media (max-width: 720px) { .sw-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }

.sw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--green-900); color: var(--white); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .2s, background-color .2s;
}
.sw-btn:hover { transform: translateY(-2px); background: var(--green-700); }
.sw-btn.is-gold { background: var(--gold-300); color: var(--green-950); }
.sw-btn.is-gold:hover { background: #ffd789; }

/* media slots: show the frame's own fill until the Higgsfield / real photo lands */
.sw-slot { position: relative; background: radial-gradient(120% 90% at 30% 20%, var(--green-700), var(--green-950)); overflow: hidden; }
.sw-slot::after { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-radial-gradient(circle at 70% 120%, transparent 0 22px, rgb(240 196 106 / .14) 22px 23px); }
.sw-slot > img, .sw-slot > video { z-index: 1; width: 100%; height: 100%; object-fit: cover; } /* positioned by their component */

/* ── component theming (variables only; their rules are untouched) ── */
.vs-announcement-bar { --vs-announcement-bar-bg: var(--green-950); --vs-announcement-bar-ink: #f3efe4; --vs-announcement-bar-accent: var(--gold-300); --vs-announcement-bar-line: rgb(255 255 255 / .08); --vs-announcement-bar-size: .84rem; }
.vs-mobile-sheet, .vs-mobile-sheet-trigger { --vs-mobile-sheet-accent: var(--green-900); --vs-mobile-sheet-bg: var(--stone-50); --vs-mobile-sheet-ink: var(--green-900); --vs-mobile-sheet-font: var(--f-text); }
.sw-head .vs-mobile-sheet-trigger { --vs-mobile-sheet-bg: rgb(255 255 255 / .12); --vs-mobile-sheet-ink: #fff; box-shadow: inset 0 0 0 1px var(--line-dark); }
html[lang="ar"] .vs-mobile-sheet-link { font-size: 28px; letter-spacing: 0; }
.vs-wordmark-footer {
  --vs-wordmark-footer-bg: var(--green-950); --vs-wordmark-footer-ink: #f3efe4; --vs-wordmark-footer-mark: var(--gold-300);
  --vs-wordmark-footer-display: "Barlow Condensed", "Arial Narrow", sans-serif; --vs-wordmark-footer-text: var(--f-text); --vs-wordmark-footer-min-h: 92vh;
}

.sw-lang.is-sheet { color: var(--green-900); border-color: var(--line); }
html[dir="rtl"] .vs-mobile-sheet-cta i svg { transform: scaleX(-1); }
html[dir="rtl"] .vs-announcement-bar-tag { margin-right: 0; margin-left: .8em; }   /* the component spaces its tag for LTR only */
.vs-wordmark-footer-mark { direction: ltr; }   /* a Latin wordmark: in RTL pages the per-letter spans would otherwise run backwards */
