/* ============================================================
   DTC corporate site — shared stylesheet (multipage).
   "Fiber" light base + dark network theme via html[data-theme].
   Every rule scoped under #site.
   ============================================================ */

/* reset */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; } button { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; } img { display: block; max-width: 100%; }

:root {
  --void: #f3f5f9; --surface: #fff; --surface-2: #f8fafc;
  --panel: #ffffff; --edge: #e2e7ee; --edge-2: #cbd5e1;
  --red: #ed1c24; --red-fill: #c8101a; --red-text: #b00e14; --amber: #6d5620; --cyan: #0b7fa8;
  --ink: #0b0f14; --text: #0b0f14; --ink-2: #37414f; --muted: #5c6a7e;
  --disp: "Space Grotesk", system-ui, sans-serif; --body: Inter, system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2,.7,.3,1); --max: 1160px;
  --shadow: 0 1px 2px rgba(11,15,20,.04), 0 14px 34px -14px rgba(11,15,20,.16);
}
html[data-theme="dark"] {
  --void: #070b12; --surface: #101827; --surface-2: #0d1420;
  --panel: #101827; --edge: #23303f; --edge-2: #33414f;
  --red: #ff5259; --red-fill: #ed1c24; --red-text: #ff6b70; --amber: #d8b76a; --cyan: #35d0e6;
  --ink: #eef3fb; --text: #eef3fb; --ink-2: #c2ccd8; --muted: #93a3b8;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 18px 40px -14px rgba(0,0,0,.7);
}
body { margin: 0; background: var(--void); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; transition: background .3s var(--ease); }

#site :focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
#site .skip { position: absolute; left: -9999px; top: 8px; z-index: 99; padding: 12px 16px; background: var(--surface); color: var(--ink); border: 2px solid var(--red); border-radius: 8px; } #site .skip:focus { left: 12px; }
#site h1, #site h2, #site h3 { font-family: var(--disp); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
#site .wrap { width: min(var(--max), 100% - 36px); margin: 0 auto; }
#site .label { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); }
#site .shell { position: relative; z-index: 1; }

/* nav — sticky lives on the full-page wrapper (.nav-sticky), not on .nav,
   so the bar stays pinned for the whole scroll instead of un-sticking once
   its short parent wrap scrolls past. */
#site .nav-sticky { position: sticky; top: 0; z-index: 30; }
#site .nav { position: static; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
#site .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 8px 10px 8px 14px; border: 1px solid var(--edge); border-radius: 12px; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }
/* thicker, higher-contrast border — used on home-photo.html so the nav
   card reads clearly against a busy photo instead of the usual faint edge */
#site .nav-bordered .nav-inner { border-width: 2px; border-color: var(--edge-2); }
#site .nav .brand { display: inline-flex; align-items: center; }
#site .nav img { width: 150px; }
#site .nav-links { display: flex; align-items: center; gap: 2px; }
#site .nav-links > a, #site .nav-links > .drop > a { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 8px; font-family: var(--disp); font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background .16s, color .16s; }
#site .nav-links > a:hover, #site .nav-links > .drop > a:hover { background: var(--surface-2); color: var(--ink); }
#site .nav-links a[aria-current="page"] { color: var(--red-text); }
/* services dropdown */
#site .drop { position: relative; }
#site .drop > a svg { width: 12px; height: 12px; transition: transform .18s; }
#site .drop:hover > a svg, #site .drop:focus-within > a svg { transform: rotate(180deg); }
#site .drop-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 460px; max-width: 92vw; max-height: 74vh; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px; border: 1px solid var(--edge); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
#site .drop-menu.wide { grid-template-columns: repeat(3,1fr); min-width: 640px; }
#site .drop:hover .drop-menu, #site .drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
#site .drop-menu a { display: block; padding: 9px 11px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
#site .drop-menu a:hover { background: var(--surface-2); color: var(--ink); }
#site .drop-menu .col-h { grid-column: 1 / -1; padding: 6px 11px 2px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
/* narrow variant — single column, for short 2-3 item dropdowns (e.g. Cards) */
#site .drop-menu.narrow { min-width: 190px; grid-template-columns: 1fr; }
#site .nav a.cta { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 9px; border: 1px solid var(--red-fill); background: var(--red-fill); color: #fff; font-family: var(--disp); font-weight: 600; font-size: 14px; white-space: nowrap; }
#site .lang-switch { display: flex; flex: none; align-items: center; height: 40px; padding: 3px; border: 1px solid var(--edge); border-radius: 9px; background: var(--surface); gap: 2px; }
#site .lang-switch button { min-width: 32px; height: 32px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font-family: var(--disp); font-weight: 600; font-size: 12.5px; letter-spacing: .02em; cursor: pointer; transition: background .16s, color .16s; }
#site .lang-switch button:hover { color: var(--ink); }
#site .lang-switch button[aria-current="true"] { background: var(--red-fill); color: #fff; }
#site .theme-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--edge); border-radius: 9px; background: var(--surface); color: var(--ink-2); cursor: pointer; transition: background .16s, color .16s, border-color .16s; }
#site .theme-btn:hover { color: var(--ink); border-color: var(--muted); }
#site .theme-btn .moon { display: none; }
html[data-theme="dark"] #site .theme-btn .sun { display: none; }
html[data-theme="dark"] #site .theme-btn .moon { display: block; }
#site .burger { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--edge); border-radius: 9px; background: var(--surface); color: var(--ink-2); cursor: pointer; }
@media (max-width: 940px) { #site .nav-links { display: none; } #site .burger { display: grid; } #site .nav-links.open { display: flex; position: absolute; top: 70px; right: 18px; left: 18px; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px; border: 1px solid var(--edge); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); z-index: 40; } #site .nav-links.open .drop-menu { position: static; min-width: 0; grid-template-columns: 1fr; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px; } }

/* home hero (fibre) */
#site .hero { position: relative; min-height: 82vh; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px,6vw,72px) 0; overflow: hidden; }
#site #s-fiber { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#site .hero > *:not(#s-fiber) { position: relative; z-index: 1; }
#site .hero h1 { font-size: clamp(40px, 8vw, 92px); letter-spacing: -.03em; max-width: 15ch; }
#site .hero h1 .glow { color: var(--red-text); }
#site .hero .lede { max-width: 52ch; margin: 26px 0 0; color: var(--ink-2); font-size: clamp(17px, 2vw, 21px); }

/* home hero — photo variation (home-photo.html), a real Riyadh skyline shot
   instead of the animated fibre canvas. Painted as a background-image on
   .hero itself rather than an absolutely-positioned child, so there's no
   z-index/specificity fight with the ":not(#s-fiber)" child rule above. */
#site .hero.hero-photo { background: linear-gradient(100deg, rgba(7,11,18,.82), rgba(7,11,18,.4) 48%, rgba(7,11,18,.18) 68%), linear-gradient(0deg, rgba(7,11,18,.55), rgba(7,11,18,.15) 45%), url("images/home-hero.jpg") center / cover no-repeat; border-bottom: 1px solid transparent; }
#site .hero.hero-photo .label { color: rgba(255,255,255,.75); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
#site .hero.hero-photo h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.55); }
#site .hero.hero-photo .lede { color: rgba(255,255,255,.88); text-shadow: 0 1px 14px rgba(0,0,0,.5); }
#site .hero.hero-photo .btn:not(.go) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); }
#site .hero.hero-photo .btn:not(.go):hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }

/* compact page hero (interior pages) */
#site .page-hero { position: relative; padding: clamp(48px,7vw,90px) 0 clamp(30px,4vw,44px); overflow: hidden; border-bottom: 1px solid var(--edge); }
#site .page-hero canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#site .page-hero > *:not(canvas) { position: relative; z-index: 1; }
#site .page-hero h1 { font-size: clamp(34px, 6vw, 60px); max-width: 18ch; }
#site .page-hero .lede { max-width: 60ch; margin: 18px 0 0; color: var(--ink-2); font-size: clamp(16px, 2vw, 20px); }
#site .crumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#site .crumbs a:hover { color: var(--red-text); }

/* real photography swapped in for the fibre canvas — see pages.js IMAGES */
#site .page-hero.has-photo { padding-top: clamp(90px,14vw,160px); padding-bottom: clamp(60px,8vw,90px); border-bottom-color: transparent; }
#site .page-hero .hero-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
#site .page-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(7,11,18,.62), rgba(7,11,18,.68) 45%, rgba(7,11,18,.94)); }
#site .page-hero.has-photo .crumbs, #site .page-hero.has-photo .crumbs a, #site .page-hero.has-photo .label { color: rgba(255,255,255,.75); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
#site .page-hero.has-photo .crumbs a:hover { color: #fff; }
#site .page-hero.has-photo h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.55); }
#site .page-hero.has-photo .lede { color: rgba(255,255,255,.88); text-shadow: 0 1px 14px rgba(0,0,0,.5); }
#site .page-hero.has-photo .cta-row .btn:not(.go) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); }
#site .page-hero.has-photo .cta-row .btn:not(.go):hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }

#site .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
#site .btn { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border: 1px solid var(--edge-2); border-radius: 10px; background: var(--surface); color: var(--ink); font-family: var(--disp); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .18s, border-color .18s, transform .18s; }
#site .btn:hover { background: var(--surface-2); border-color: var(--muted); transform: translateY(-1px); }
#site .btn.go { border-color: var(--red-fill); background: var(--red-fill); color: #fff; }
#site .btn.go:hover { background: var(--red-text); border-color: var(--red-text); }

/* stat strip */
#site .strip { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
#site .strip div { padding: 26px 20px; border-right: 1px solid var(--edge); }
#site .strip div:last-child { border-right: 0; }
#site .strip b { display: block; font-family: var(--mono); font-size: clamp(26px,4vw,38px); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
#site .strip b i { font-style: normal; color: var(--red); } #site .strip > div > span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }

#site section { padding: 84px 0; }
#site .head h2 { font-size: clamp(30px, 5vw, 52px); margin-top: 12px; } #site .head p { max-width: 56ch; margin: 16px 0 0; color: var(--muted); font-size: 18px; }

/* prose (about story, privacy, service detail body) */
#site .prose { max-width: 68ch; } #site .prose p { color: var(--ink-2); font-size: 17px; margin: 0 0 18px; } #site .prose h2 { font-size: clamp(24px,3.4vw,34px); margin: 40px 0 14px; } #site .prose h3 { font-size: 20px; margin: 28px 0 10px; } #site .prose ul { margin: 0 0 18px; padding-left: 0; list-style: none; } #site .prose li { padding: 7px 0 7px 22px; position: relative; color: var(--ink-2); } #site .prose li::before { content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }

/* services as editorial rows */
#site .svc-list { margin-top: 44px; border-top: 1px solid var(--edge); }
#site .svc-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 30px 0; border-bottom: 1px solid var(--edge); transition: padding-left .2s var(--ease); }
@media (min-width: 820px) { #site .svc-row { grid-template-columns: 42px .8fr 1.2fr; gap: 28px; align-items: start; } }
#site .svc-row:hover { padding-left: 6px; }
#site .svc-row .ic { width: 34px; height: 34px; color: var(--red-text); }
#site .svc-row h3 { font-size: 24px; } #site .svc-row .sub { color: var(--amber); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; }
#site .svc-row ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 26px; }
@media (max-width: 560px) { #site .svc-row ul { columns: 1; } }
#site .svc-row li { break-inside: avoid; padding: 7px 0; color: var(--ink-2); font-size: 14.5px; border-bottom: 1px solid var(--edge); display: flex; gap: 9px; }
#site .svc-row li a { display: flex; gap: 9px; width: 100%; }
#site .svc-row li:hover { color: var(--red-text); }
#site .svc-row li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 8px; background: var(--red); transform: rotate(45deg); }

/* service cards grid (services hub + related) */
#site .cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 40px; } @media (min-width: 680px) { #site .cards { grid-template-columns: 1fr 1fr; } } @media (min-width: 1000px) { #site .cards { grid-template-columns: 1fr 1fr 1fr; } }
#site .card-svc { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--edge); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); transition: border-color .2s, transform .2s; overflow: hidden; }
#site .card-svc:hover { border-color: var(--muted); transform: translateY(-3px); }
#site .card-svc .ic { width: 30px; height: 30px; color: var(--red-text); }
#site .card-svc .card-thumb { margin: -24px -24px 4px; aspect-ratio: 16 / 9; overflow: hidden; }
#site .card-svc .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
#site .card-svc:hover .card-thumb img { transform: scale(1.06); }
#site .card-svc h3 { font-size: 19px; } #site .card-svc p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; flex: 1; }
#site .card-svc .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--red-text); font-family: var(--disp); font-size: 14px; font-weight: 600; } #site .card-svc .go svg { width: 13px; height: 13px; }

/* about split */
#site .about { display: grid; gap: 30px; } @media (min-width: 860px) { #site .about { grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; } }
#site .about p.story { font-size: 20px; line-height: 1.7; color: var(--ink-2); }
#site .mv { display: grid; gap: 1px; border: 1px solid var(--edge); border-radius: 14px; overflow: hidden; background: var(--edge); box-shadow: var(--shadow); }
#site .mv div { padding: 24px; background: var(--surface); } #site .mv .label { color: var(--red-text); } #site .mv p { margin: 10px 0 0; color: var(--ink-2); font-size: 15.5px; }

/* offices */
#site .two { display: grid; gap: 14px; } @media (min-width: 700px) { #site .two { grid-template-columns: 1fr 1fr; } }
#site .two:has(> .office:only-of-type) { grid-template-columns: 1fr; }
#site .office { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 28px; border: 1px solid var(--edge); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); transition: border-color .2s; }
@media (min-width: 560px) { #site .office { grid-template-columns: 1fr 1fr; align-items: stretch; } }
#site .office:hover { border-color: var(--muted); }
#site .office-info { display: flex; flex-direction: column; }
#site .office h3 { margin: 10px 0 8px; font-size: 24px; } #site .office p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
#site .office .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--red-text); font-family: var(--disp); font-size: 14px; font-weight: 600; } #site .office .go svg { width: 13px; height: 13px; }
#site .map-embed { border: 1px solid var(--edge); border-radius: 12px; overflow: hidden; min-height: 340px; }
#site .map-embed iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(.15); }
html[data-theme="dark"] #site .map-embed iframe { filter: grayscale(.3) invert(.9) hue-rotate(180deg); }

/* contact grid */
#site .contact-grid { display: grid; gap: 14px; grid-template-columns: 1fr; } @media (min-width: 760px) { #site .contact-grid { grid-template-columns: 1fr 1fr; } }
#site .cx { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border: 1px solid var(--edge); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
#site .cx svg { width: 22px; height: 22px; flex: none; color: var(--red-text); margin-top: 2px; }
#site .cx .k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); } #site .cx .v { display: block; margin-top: 3px; font-size: 15.5px; color: var(--ink); overflow-wrap: anywhere; }

/* enquiry form */
#site .enquiry { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 36px; } @media (min-width: 700px) { #site .enquiry { grid-template-columns: 1fr 1fr; } }
#site .enquiry .field { display: flex; flex-direction: column; gap: 7px; }
#site .enquiry .field.full { grid-column: 1 / -1; }
#site .enquiry label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
#site .enquiry input, #site .enquiry textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--edge-2); border-radius: 10px; background: var(--surface); color: var(--ink); font-family: var(--body); font-size: 15px; resize: vertical; }
#site .enquiry input:focus, #site .enquiry textarea:focus { outline: 3px solid var(--cyan); outline-offset: 1px; }
#site .enquiry-submit { display: flex; align-items: center; gap: 16px; }
#site .enquiry-note { font-size: 13.5px; color: var(--muted); }
#site .enquiry-note.ok { color: var(--red-text); }

/* CTA */
#site .cta { text-align: center; padding: 90px 0; }
#site .cta h2 { font-size: clamp(34px, 6vw, 66px); } #site .cta p { max-width: 48ch; margin: 18px auto 0; color: var(--muted); font-size: 18px; } #site .cta .cta-row { justify-content: center; }

/* footer */
#site footer { padding: 40px 0; border-top: 1px solid var(--edge); color: var(--muted); font-size: 13px; }
#site .foot-cols { display: grid; gap: 26px; grid-template-columns: 1fr; margin-bottom: 30px; } @media (min-width: 720px) { #site .foot-cols { grid-template-columns: 1.4fr 1fr 1fr; } }
#site .foot-cols h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
#site .foot-logo { display: block; width: 240px; height: auto; margin: 0 0 14px; }
#site .foot-cols a { display: block; padding: 4px 0; color: var(--ink-2); font-size: 14px; } #site .foot-cols a:hover { color: var(--red-text); }
#site .foot-cols .blurb { color: var(--muted); font-size: 14px; max-width: 34ch; margin: 12px 0 0; }
#site .foot-top { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
#site .social { display: flex; gap: 8px; } #site .social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--edge); border-radius: 10px; background: var(--surface); color: var(--ink-2); transition: border-color .18s, color .18s; } #site .social a:hover { border-color: var(--red); color: var(--red-text); } #site .social svg { width: 17px; height: 17px; }
#site .legal { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; } #site .legal a { min-height: 24px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
#site .dev-credit { margin: 0; text-align: center; font-size: 12px; color: var(--muted); } #site .dev-credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; } #site .dev-credit a:hover { color: var(--ink-2); }

#site .rise { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); } #site .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { #site .rise { opacity: 1; transform: none; } }
