/* ==========================================================================
   Code Billion Services — Main website
   ========================================================================== */

:root {
  /* dark halo around light text over the video: keeps it readable without any shading layer on the footage */
  --halo: 0 0 3px rgba(2, 12, 32, 0.95), 0 0 10px rgba(2, 12, 32, 0.85), 0 0 24px rgba(2, 12, 32, 0.75), 0 0 52px rgba(2, 12, 32, 0.5);
  --halo-icon: drop-shadow(0 0 4px rgba(2, 12, 32, 0.95)) drop-shadow(0 0 12px rgba(2, 12, 32, 0.8)) drop-shadow(0 0 28px rgba(2, 12, 32, 0.55));
  /* Brand colors — sampled from the official logo, shared with the admin dashboard */
  --navy: #021D49;
  --navy-2: #0a2f6b;
  --navy-tint: #eef1f7;
  --magenta: #771A60;
  --magenta-tint: #f7ecf3;
  --teal: #007F66;
  --teal-tint: #e6f5f1;
  --amber: #c98500;
  --amber-tint: #fbf0dc;

  /* Neutral surface tokens — redefined under [data-theme="dark"] below */
  --page-bg: #fefefe;
  --surface: #ffffff;
  --surface-2: #f6f7fa;
  --border: #e4e7ee;
  --heading: var(--navy);
  --ink-1: #16213e;
  --ink-2: #4c5670;
  --ink-3: #8891a7;

  --shadow-sm: 0 1px 2px rgba(2, 29, 73, 0.06), 0 1px 1px rgba(2, 29, 73, 0.04);
  --shadow-md: 0 8px 24px rgba(2, 29, 73, 0.08);
  --shadow-lg: 0 20px 45px rgba(2, 29, 73, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font: "Cairo", "Tahoma", sans-serif;
  --header-h: 76px;
}

:root[data-theme="dark"] {
  --page-bg: #0a1226;
  --surface: #101a34;
  --surface-2: #0d1730;
  --border: #223055;
  --heading: #eef2ff;
  --ink-1: #eef2ff;
  --ink-2: #b7c0dc;
  --ink-3: #7c86a8;
  --navy-tint: rgba(255, 255, 255, 0.06);
  --teal-tint: rgba(0, 127, 102, 0.18);
  --magenta-tint: rgba(119, 26, 96, 0.22);
  --amber-tint: rgba(201, 133, 0, 0.16);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

/* Slim, see-through scrollbars (page, modals, dropdowns): transparent track, thin faint thumb that firms up on hover.
   The standard properties cover Firefox / Chrome 121+ / Safari 18.2+; the -webkit rules cover older Safari/Chrome. */
:root { scrollbar-color: rgba(128, 140, 165, 0.4) transparent; }
* { scrollbar-width: thin; }
::-webkit-scrollbar { width: 6px; height: 6px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(128, 140, 165, 0.4); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(128, 140, 165, 0.75); }
::-webkit-scrollbar-corner { background: transparent; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--ink-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5 { color: var(--heading); margin: 0; line-height: 1.25; font-weight: 800; }
p { margin: 0; color: var(--ink-2); line-height: 1.8; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* Full-viewport layout: no hard max-width "boxing" the page on large
   screens — gutters scale fluidly with viewport width instead of a fixed
   centered column, so content always fills the available width edge-to-edge
   with breathing room rather than leaving big side margins on wide monitors. */
.container { width: 100%; max-width: 100%; margin-inline: auto; padding-inline: clamp(20px, 5vw, 96px); }

.skip-link {
  position: absolute; inset-inline-start: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 12px 20px; z-index: 999; border-radius: 0 0 8px 8px;
}
.skip-link:focus { inset-inline-start: 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 0.96rem;
  border: 2px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--navy); color: var(--heading); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: var(--header-h);
  display: flex; align-items: center;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header-brand-group { display: flex; align-items: center; gap: 18px; flex: none; }
.brand { flex: none; }
/* transparent, tight-cropped logo (assets/new-logo.png, 640x335): ~80px wide */
.brand-logo { height: 42px; width: auto; }
/* original colours always; on dark backgrounds (dark theme, or over the video) a thin white outline + soft glow keeps
   the navy / magenta letters legible */
:root[data-theme="dark"] .brand-logo { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 9px rgba(255, 255, 255, 0.5)); }
.nav-location {
  display: flex; align-items: center; gap: 6px; font-size: 0.84rem; font-weight: 700; color: var(--ink-3);
  white-space: nowrap; padding-inline-start: 18px; border-inline-start: 1px solid var(--border);
}
.is-hidden { display: none !important; }

@media (max-width: 420px) {
  .brand-logo { height: 32px; }
  .header-actions { gap: 6px; }
  .lang-btn span { display: none; }
  .lang-btn { padding: 0 10px; }
}

.main-nav { display: flex; align-items: center; gap: 28px; }
/* small laptops (1081–1239px): the full desktop row (logo + location + 5 links + sign-in + contact + 3 icons) overflowed by ~110px
   at 1081px, so the location label hides and the links sit a little closer */
@media (min-width: 1081px) and (max-width: 1239px) {
  .header-brand-group .nav-location { display: none; }
  .main-nav { gap: 18px; }
}
.main-nav a {
  font-size: 0.93rem; font-weight: 600; color: var(--ink-2); position: relative; padding: 6px 0;
  transition: color 0.15s ease;
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--teal); transition: width 0.2s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--heading); }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink-2); display: flex; align-items: center; justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--heading); }
.notif-badge {
  position: absolute; top: -2px; inset-inline-end: -2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #e0392c; color: #fff; font-size: 0.62rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; line-height: 1; border: 2px solid var(--page-bg);
}
.notif-badge[hidden] { display: none; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }

.lang-btn {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); font-weight: 700; font-size: 0.85rem;
}
.lang-btn:hover { background: var(--surface-2); color: var(--heading); }

.nav-pill {
  border-radius: 999px; padding: 9px 18px; font-size: 0.86rem; font-weight: 700;
  border: 1.5px solid transparent; transition: all 0.15s ease; white-space: nowrap;
}
.nav-pill-outline { border-color: var(--border); color: var(--ink-2); background: transparent; }
.nav-pill-outline:hover { border-color: var(--navy); color: var(--heading); }
.nav-pill-solid { background: var(--teal); color: #fff; }
.nav-pill-solid:hover { background: #00664f; transform: translateY(-1px); }

.services-nav-item { display: flex; align-items: center; gap: 2px; }
.services-nav-link { display: flex; align-items: center; }
.dropdown-caret {
  background: transparent; border: none; color: var(--ink-3); padding: 4px; display: flex;
  align-items: center; justify-content: center; transition: transform 0.15s ease, color 0.15s ease;
}
.dropdown-caret:hover { color: var(--heading); }
.dropdown-caret.is-open { transform: rotate(180deg); }
.services-dropdown { width: 280px; padding: 8px; display: flex; flex-direction: column; gap: 2px; inset-inline-end: auto; inset-inline-start: 0; }
.services-dropdown a {
  padding: 11px 14px; border-radius: 10px; font-size: 0.88rem; font-weight: 600; color: var(--ink-2);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.services-dropdown a:hover { background: var(--teal-tint); color: var(--teal); }

/* ---------------- Dropdowns (notifications / language) ---------------- */
.dropdown-wrap { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 120;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.dropdown-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.notif-dropdown { width: 320px; padding: 0; text-align: start; max-height: 380px; overflow-y: auto; }
.notif-dropdown strong { display: block; color: var(--heading); font-size: 0.95rem; padding: 16px 18px 10px; }
.notif-list { display: flex; flex-direction: column; }
.notif-item {
  padding: 12px 18px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--ink-2); line-height: 1.6;
}
.notif-item:first-child { border-top: none; }
.notif-empty { padding: 8px 18px 20px; text-align: center; font-size: 0.86rem; color: var(--ink-3); }

.lang-dropdown { width: 160px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.lang-option {
  text-align: start; padding: 10px 12px; border-radius: 10px; font-size: 0.9rem; font-weight: 600;
  color: var(--ink-2); background: transparent; border: none; transition: background-color 0.15s ease, color 0.15s ease;
}
.lang-option:hover { background: var(--surface-2); }
.lang-option.is-active { background: var(--teal-tint); color: var(--teal); font-weight: 800; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; background: transparent; border: none; padding: 0;
}
.hamburger span { width: 100%; height: 2px; background: var(--heading); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Header over the hero video ----------------
   main.js sets .is-over-hero while the home hero is still under the header (top of the page). The header
   becomes fully transparent: white logo, white nav text, glass-outlined text buttons and bare floating icons
   (no filled circles). Once the hero scrolls away, another view is shown, or the mobile menu is open, it
   falls back to the normal solid style above. */
.site-header.is-over-hero:not(:has(.main-nav.is-open)) {
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; box-shadow: none;
}
/* Logo over the video: original colours on a transparent background, no outline, no glow, no box (Owner's explicit request). */
.site-header.is-over-hero:not(:has(.main-nav.is-open)) .brand-logo { filter: none; }
.site-header.is-over-hero:not(:has(.main-nav.is-open)) .nav-location { color: rgba(255, 255, 255, 0.9); border-inline-start-color: rgba(255, 255, 255, 0.35); text-shadow: var(--halo); }
/* bell / theme / language: no circle, no border, no fill — just the icon floating on the video */
.site-header.is-over-hero:not(:has(.main-nav.is-open)) .icon-btn, .site-header.is-over-hero:not(:has(.main-nav.is-open)) .lang-btn {
  background: transparent; border-color: transparent; color: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none; filter: var(--halo-icon);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.site-header.is-over-hero:not(:has(.main-nav.is-open)) .icon-btn:hover, .site-header.is-over-hero:not(:has(.main-nav.is-open)) .lang-btn:hover { background: transparent; color: #fff; transform: scale(1.1); }
.site-header.is-over-hero:not(:has(.main-nav.is-open)) .notif-badge { border-color: rgba(2, 12, 32, 0.55); }
/* text buttons: fully transparent, soft glass outline, bold white label */
.site-header.is-over-hero:not(:has(.main-nav.is-open)) .nav-pill-outline, .site-header.is-over-hero:not(:has(.main-nav.is-open)) .nav-pill-solid, .site-header.is-over-hero:not(:has(.main-nav.is-open)) .header-cta, .site-header.is-over-hero:not(:has(.main-nav.is-open)) .header-cta:hover {
  background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.55); color: #fff; font-weight: 800; box-shadow: none;
  text-shadow: var(--halo);
}
.site-header.is-over-hero:not(:has(.main-nav.is-open)) .nav-pill-outline:hover, .site-header.is-over-hero:not(:has(.main-nav.is-open)) .nav-pill-solid:hover, .site-header.is-over-hero:not(:has(.main-nav.is-open)) .header-cta:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }
.site-header.is-over-hero:not(:has(.main-nav.is-open)) .hamburger span { background: #fff; }
@media (min-width: 1081px) {
  .site-header.is-over-hero:not(:has(.main-nav.is-open)) .main-nav > a:not(.nav-pill), .site-header.is-over-hero:not(:has(.main-nav.is-open)) .services-nav-link { color: #fff; text-shadow: var(--halo); }
  .site-header.is-over-hero:not(:has(.main-nav.is-open)) .main-nav > a:not(.nav-pill):hover, .site-header.is-over-hero:not(:has(.main-nav.is-open)) .main-nav > a.is-active, .site-header.is-over-hero:not(:has(.main-nav.is-open)) .services-nav-link:hover, .site-header.is-over-hero:not(:has(.main-nav.is-open)) .services-nav-link.is-active { color: #fff; }
  .site-header.is-over-hero:not(:has(.main-nav.is-open)) .main-nav > a::after, .site-header.is-over-hero:not(:has(.main-nav.is-open)) .services-nav-link::after { background: #fff; }
  .site-header.is-over-hero:not(:has(.main-nav.is-open)) .dropdown-caret { color: rgba(255, 255, 255, 0.88); }
  .site-header.is-over-hero:not(:has(.main-nav.is-open)) .dropdown-caret:hover { color: #fff; }
}

/* ---------------- Header buttons: light emerald glass (2026-10-11) ----------------
   "تسجيل دخول المستثمر" (#signinBtn) and "تواصل معنا" (.header-cta) — both emerald glass (2026-10-17: the sign-in pill joined the contact button). Over the hero video they use the Owner's emerald glass
   values as written; on the solid header (other views / scrolled / mobile menu) the fill is a pale emerald with a
   deep-emerald label so it stays readable on white; in the dark theme the Owner's values apply again. */
.site-header #signinBtn, .site-header .header-cta {
  border-radius: 25px;
  background: rgba(16, 185, 129, 0.16); border: 1.5px solid rgba(5, 150, 105, 0.5); color: #046c4e;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.site-header #signinBtn:hover, .site-header .header-cta:hover {
  background: rgba(16, 185, 129, 0.28); border-color: rgba(5, 150, 105, 0.8); color: #035a41;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.45);
}
:root[data-theme="dark"] .site-header #signinBtn, :root[data-theme="dark"] .site-header .header-cta {
  background: rgba(16, 185, 129, 0.25); border: 1px solid rgba(52, 211, 153, 0.5); color: #ffffff;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}
:root[data-theme="dark"] .site-header #signinBtn:hover, :root[data-theme="dark"] .site-header .header-cta:hover {
  background: rgba(16, 185, 129, 0.38); border-color: rgba(110, 231, 183, 0.85); color: #ffffff; box-shadow: 0 0 24px rgba(16, 185, 129, 0.5);
}
.site-header.is-over-hero:not(:has(.main-nav.is-open)) #signinBtn, .site-header.is-over-hero:not(:has(.main-nav.is-open)) .header-cta,
.site-header.is-over-hero:not(:has(.main-nav.is-open)) .header-cta:hover {
  background: rgba(16, 185, 129, 0.25); border: 1px solid rgba(52, 211, 153, 0.5); color: #ffffff;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-shadow: var(--halo);
}
.site-header.is-over-hero:not(:has(.main-nav.is-open)) #signinBtn:hover, .site-header.is-over-hero:not(:has(.main-nav.is-open)) .header-cta:hover {
  background: rgba(16, 185, 129, 0.38); border-color: rgba(110, 231, 183, 0.85); color: #ffffff; box-shadow: 0 0 24px rgba(16, 185, 129, 0.5);
}

/* ---------------- SPA view switching ---------------- */
/* Each top-level nav destination (Home/Services/Journey/Sectors) is a
   .view-section; exactly one is ever visible. "About" is deliberately NOT
   one of these — it's a section living inside #view-home that the header
   link smooth-scrolls to instead of switching screens (see main.js
   goToAbout()). Cards inside no longer use a scroll-triggered
   IntersectionObserver reveal (that doesn't interact well with display:none
   views) — the whole view just fades in on activation. */
.view-section { display: none; }
.view-section.is-active { display: block; animation: viewFadeIn 0.3s ease; }
@keyframes viewFadeIn { from { opacity: 0; } to { opacity: 1; } }
/* Each sub-page fills at least the full viewport height (minus the sticky
   header) so short-content views never look cramped in the middle of a big
   empty browser window — part of the "100% full viewport" requirement.
   IMPORTANT: these ID selectors must stay scoped to `.is-active` — an
   earlier version applied `display:flex` unconditionally, which (being
   higher specificity than the base `.view-section{display:none}` class
   rule) made every view render simultaneously, stacked on top of each
   other, regardless of which one was actually active. */
#view-services.is-active, #view-journey.is-active, #view-sectors.is-active, #view-calculator.is-active {
  min-height: calc(100vh - var(--header-h)); display: flex; align-items: center;
}
#view-services > section, #view-journey > section, #view-sectors > section, #view-calculator > section { width: 100%; }

/* ---------------- Section shell ---------------- */
main section { padding-block: 96px; position: relative; }
.section-head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: 52px; }
.section-kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.03em;
  color: var(--teal); background: var(--teal-tint); padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
}
.section-kicker-light { color: #7fd8c4; background: rgba(255, 255, 255, 0.1); }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.section-head p { font-size: 1.02rem; }
.on-dark { color: #fff; }
.on-dark-sub { color: rgba(255, 255, 255, 0.72); }

/* ---------------- Hero ---------------- */
.hero {
  /* starts at the very top of the screen: the sticky header floats over the video (see "Header over the hero video") */
  min-height: 100vh; display: flex; align-items: center;
  margin-top: calc(-1 * var(--header-h));
  padding-block: calc(var(--header-h) + 40px) 48px; overflow: hidden; position: relative;
}

/* Hero background: a looping video (assets/hero-bg.mp4) covering the whole section,
   with NO shading layer over it - the text stays legible through dark halos (text-shadow, see --halo) instead. The
   poster frame is also the CSS background, so the hero never flashes empty and
   reduced-motion visitors (video hidden below) still get the picture. */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: #0a1830;
}
/* poster behind the videos (also what reduced-motion visitors see): frosted exactly like the video so nothing is ever sharp */
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/hero-poster.jpg") 70% center / cover no-repeat;
  filter: blur(8px) contrast(105%) brightness(100%); transform: scale(1.03);
}
.hero-video {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% center;
  /* frosted-glass background: soft blur, the slight scale hides the transparent edge a blur leaves (the wrapper clips it) */
  filter: blur(8px) contrast(105%) brightness(100%); transform: scale(1.03);
  transition: opacity 1s linear;   /* the cross-dissolve between the two stacked copies */
}
/* the second copy waits invisibly until main.js dissolves it in over the first near the end of the clip */
.hero-video + .hero-video { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700;
  color: #fff; background: rgba(6, 20, 46, 0.42); border: 1px solid rgba(255, 255, 255, 0.34);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero-copy h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 20px; color: #fff; text-shadow: var(--halo); }
.hero-sub { font-size: 1.08rem; max-width: 540px; margin-bottom: 32px; color: #fff; font-weight: 600; text-shadow: var(--halo), 0 0 38px rgba(2, 12, 32, 0.6); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-stats { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat strong { font-size: 1.7rem; font-weight: 900; color: #fff; text-shadow: var(--halo); }
.hero-stat span { font-size: 0.82rem; color: #fff; font-weight: 700; text-shadow: var(--halo), 0 0 38px rgba(2, 12, 32, 0.6); }
.hero-stat-sep { width: 1px; height: 34px; background: rgba(255, 255, 255, 0.32); }

.hero-visual { position: relative; height: 420px; }
.floating-card {
  --accent: #fff;
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 16px 18px; width: 220px;
  /* tablet / phone: white text, so the glass keeps a light navy tint */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), rgba(6, 20, 46, 0.42);
  border-radius: var(--radius-md); border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 36px rgba(2, 12, 32, 0.22), 0 0 26px -8px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  animation: float 6s ease-in-out infinite;
}
.floating-card strong { display: block; font-size: 0.92rem; color: #fff; text-shadow: var(--halo); }
.floating-card span { display: block; font-size: 0.76rem; color: #fff; margin-top: 2px; text-shadow: var(--halo); }
/* brighter tints of the brand navy / teal / magenta so the accents glow on the video */
.card-navy { --accent: #9fc4ff; top: 4%; inset-inline-start: 2%; color: var(--accent); border-inline-start: 4px solid var(--accent); animation-delay: 0s; }
.card-teal { --accent: #2de6c0; top: 42%; inset-inline-end: 0; color: var(--accent); border-inline-start: 4px solid var(--accent); animation-delay: 1.4s; }
.card-magenta { --accent: #f19be0; bottom: 6%; inset-inline-start: 10%; color: var(--accent); border-inline-start: 4px solid var(--accent); animation-delay: 2.8s; }
/* Desktop: the cards sit over the bright side of the footage, so they are plain clear glass (no tint at all) with
   brand-navy text - measured 4.9-6.3:1 on every frame - and the brand colours as accents. */
@media (min-width: 1081px) {
  .floating-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(2, 12, 32, 0.14), 0 0 22px -8px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  }
  .floating-card strong, .floating-card span { color: var(--navy); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); }
  .card-navy { --accent: var(--navy-2); }
  .card-teal { --accent: var(--teal); }
  .card-magenta { --accent: var(--magenta); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------------- Need router ---------------- */
.need-section { background: var(--surface-2); }
.need-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.need-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px 16px; color: var(--ink-1); font-weight: 700; font-size: 0.94rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.need-card svg { color: var(--teal); transition: color 0.18s ease; }
.need-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal); color: var(--teal); }
.need-card:hover svg { color: var(--teal); }

/* ---------------- About ---------------- */
.vision-banner {
  position: relative; max-width: 820px; margin: 0 auto 56px; text-align: center;
  background: var(--glass-vision-bg, var(--surface)); border: 1px solid transparent; border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px) clamp(28px, 6vw, 64px);
  background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(120deg, var(--teal) 0%, var(--magenta) 100%);
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: var(--shadow-lg);
}
.vision-icon {
  width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: var(--teal-tint); color: var(--teal); margin: 0 auto 22px;
}
.vision-banner h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: 16px; }
.vision-banner p { font-size: clamp(0.98rem, 1.6vw, 1.08rem); line-height: 1.9; max-width: 680px; margin-inline: auto; }

.why-grid { margin-bottom: 48px; }
.why-title { text-align: center; font-size: 1.3rem; margin-bottom: 28px; }
.why-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; max-width: 920px; margin-inline: auto; }
.why-item { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-1); font-weight: 600; font-size: 0.94rem; }
.why-item svg { flex: none; color: var(--teal); margin-top: 2px; }

/* ---------------- Sectors (interactive, hover-reveal description) ---------------- */
.sectors-section { background: var(--surface-2); }
.sectors-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sector-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px 16px; min-height: 168px; justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.35s cubic-bezier(0.16, 0.84, 0.44, 1), opacity 0.5s ease;
}
.sector-card svg { color: var(--magenta); margin-bottom: 12px; transition: transform 0.2s ease; }
.sector-title { color: var(--ink-1); font-weight: 700; font-size: 0.92rem; transition: opacity 0.15s ease; }
.sector-desc {
  color: var(--ink-2); font-weight: 500; font-size: 0.83rem; line-height: 1.6;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease;
}
.sector-card:hover, .sector-card:focus-visible, .sector-card.is-open {
  border-color: var(--magenta); box-shadow: 0 16px 32px rgba(119, 26, 96, 0.14), var(--shadow-md);
  transform: translateY(-3px); outline: none;
}
.sector-card:hover svg, .sector-card.is-open svg { transform: scale(1.1); }
.sector-card:hover .sector-desc, .sector-card:focus-visible .sector-desc, .sector-card.is-open .sector-desc {
  max-height: 120px; opacity: 1; margin-top: 10px;
}

/* ---------------- Services ---------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.service-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 38px) clamp(22px, 3vw, 30px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.35s cubic-bezier(0.16, 0.84, 0.44, 1), opacity 0.5s ease;
}
.service-card:hover {
  box-shadow: 0 18px 36px rgba(0, 127, 102, 0.14), var(--shadow-md); border-color: var(--teal); transform: translateY(-4px);
}
.service-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.icon-navy { background: var(--navy-tint); color: var(--navy); }
.icon-teal { background: var(--teal-tint); color: var(--teal); }
.icon-magenta { background: var(--magenta-tint); color: var(--magenta); }
.service-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; }

/* ---------------- Service detail ---------------- */
.back-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem;
  color: var(--ink-3); margin-bottom: 28px; transition: color 0.15s ease;
}
.back-link:hover { color: var(--teal); }
.service-detail-head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: 40px; }
.service-icon-lg {
  width: 64px; height: 64px; margin-inline: auto; margin-bottom: 20px; border-radius: 18px;
}
.service-detail-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.service-detail-head p { font-size: 1.02rem; margin-bottom: 16px; }
.service-detail-features { max-width: 560px; margin-inline: auto; text-align: center; margin-bottom: 36px; }
.service-detail-features h3 { font-size: 1.1rem; margin-bottom: 18px; }
.service-detail-features ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; text-align: start; }
.service-detail-features li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-1); font-weight: 600; font-size: 0.96rem; }
.service-detail-features li svg { flex: none; color: var(--teal); margin-top: 2px; }
.service-detail { text-align: center; }

/* ---------------- Execution journey — connected process-flow timeline ---------------- */
.journey-section {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #0c3a72 100%);
  color: #fff;
}
.flow-timeline { position: relative; max-width: 760px; margin-inline: auto; }
.flow-timeline::before {
  content: ""; position: absolute; inset-inline-start: 23px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), rgba(255,255,255,0.08));
}
.flow-step { display: flex; gap: 24px; position: relative; padding-bottom: 36px; }
.flow-step:last-child { padding-bottom: 0; }
.flow-num {
  flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.1); position: relative; z-index: 1;
  transition: transform 0.5s ease, background-color 0.3s ease, color 0.3s ease;
}
.flow-step:hover .flow-num { transform: rotate(360deg); background: var(--teal); color: #fff; }
.flow-body { padding-top: 6px; }
.flow-body h4 { color: #fff; font-size: 1.08rem; margin-bottom: 8px; }
.flow-body p { color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; max-width: 540px; }

/* ---------------- Investment cost calculator ---------------- */
.calc-disclaimer {
  display: flex; gap: 14px; align-items: flex-start; max-width: 720px; margin: 0 auto 36px;
  background: var(--amber-tint); border: 1px solid rgba(201, 133, 0, 0.35); border-radius: var(--radius-md);
  padding: 18px 20px;
}
.calc-disclaimer svg { flex: none; color: var(--amber); margin-top: 2px; }
.calc-disclaimer strong { display: block; color: var(--heading); font-size: 0.95rem; margin-bottom: 4px; }
.calc-disclaimer p { font-size: 0.88rem; line-height: 1.7; }

/* Single vertical stack: one box for the fields, one independent box below
   it for the total — replaced the earlier two-column layout on an explicit
   request calling that "complex side-by-side" and asking for something
   calmer and simpler to read top-to-bottom. */
.calc-layout { display: flex; flex-direction: column; gap: 28px; max-width: 720px; margin-inline: auto; }

.calc-items-box {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-md);
}
.calc-items-col { display: flex; flex-direction: column; }

.calc-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.calc-items-col .calc-item:first-child { padding-top: 4px; }
.calc-items-col .calc-item:last-child { border-bottom: none; padding-bottom: 4px; }
.calc-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.calc-item label { display: block; font-size: 0.92rem; font-weight: 700; color: var(--ink-2); margin: 0; }
.calc-optional {
  display: inline-block; margin-inline-start: 8px; padding: 2px 9px; border-radius: 999px; vertical-align: middle;
  font-size: 0.7rem; font-weight: 700; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--border);
}
.calc-optional-note {
  margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px dashed var(--border);
  font-size: 0.86rem; line-height: 1.7; color: var(--ink-3); text-align: start;
}
.calc-input-row { display: flex; align-items: center; gap: 10px; }
.calc-input-row input {
  flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 1rem; font-weight: 700; background: var(--page-bg); color: var(--ink-1);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.calc-input-row input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 127, 102, 0.12); }
.calc-unit { flex: none; font-size: 0.82rem; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.calc-item-result {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px;
  padding-top: 12px; border-top: 1px dashed var(--border); font-size: 0.85rem; color: var(--ink-3);
}
/* Results: bright glowing emerald (Owner request 2026-10-11). Light theme uses the deeper #059669 so figures keep ~3.8:1 on white. */
.calc-item-result strong { color: #059669; font-size: 1.05rem; font-weight: 800; text-shadow: 0 0 14px rgba(16, 185, 129, 0.45); }
:root[data-theme="dark"] .calc-item-result strong { color: #34d399; text-shadow: 0 0 16px rgba(52, 211, 153, 0.55); }
.calc-range-note {
  display: flex; flex-direction: column; gap: 2px; margin-top: 12px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.3); font-size: 0.82rem; line-height: 1.7; color: var(--ink-2);
}
.calc-range-note[hidden] { display: none; }
.calc-range-note strong { color: #059669; font-weight: 800; text-shadow: 0 0 12px rgba(16, 185, 129, 0.4); }
:root[data-theme="dark"] .calc-range-note strong { color: #34d399; text-shadow: 0 0 14px rgba(52, 211, 153, 0.5); }
.calc-autofill-btn {
  display: inline-block; margin-top: 10px; background: transparent; border: none; color: var(--teal);
  font-size: 0.82rem; font-weight: 700; padding: 0; text-decoration: underline; text-underline-offset: 3px;
}
.calc-autofill-btn:hover { color: #00664f; }
.calc-autofill-btn[hidden] { display: none; }

.calc-item-custom .calc-custom-name {
  flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px;
  font-size: 0.95rem; font-weight: 700; background: var(--page-bg); color: var(--ink-1);
}
.calc-item-custom .calc-custom-name:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 127, 102, 0.12); }
.calc-input-row-custom { gap: 8px; }

.calc-remove-btn {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(211, 59, 59, 0.28);
  background: rgba(211, 59, 59, 0.08); color: #c23b3b; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
:root[data-theme="dark"] .calc-remove-btn { background: rgba(255, 100, 100, 0.12); border-color: rgba(255, 100, 100, 0.32); color: #ff8f8f; }
.calc-remove-btn:hover { background: #c23b3b; border-color: #c23b3b; color: #fff; transform: scale(1.08); box-shadow: 0 6px 16px rgba(194, 59, 59, 0.3); }

/* "+ إضافة بند تكلفة جديد": emerald glowing glass (Owner request 2026-10-11). Dark theme = the Owner's values exactly; on the
   white card a 25% emerald fill would make the white label unreadable, so the light theme keeps the same glass edge, glow and
   blur over a stronger emerald fill. */
.calc-add-btn {
  margin-top: 24px; align-self: center;
  background: rgba(5, 150, 105, 0.94); border: 1px solid rgba(52, 211, 153, 0.55); color: #ffffff; font-weight: 800;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  text-shadow: 0 1px 6px rgba(2, 12, 32, 0.35);
}
.calc-add-btn:hover { background: rgba(4, 120, 87, 0.96); border-color: rgba(110, 231, 183, 0.9); color: #ffffff; box-shadow: 0 0 26px rgba(16, 185, 129, 0.55); }
:root[data-theme="dark"] .calc-add-btn { background: rgba(16, 185, 129, 0.25); border-color: rgba(52, 211, 153, 0.5); box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
:root[data-theme="dark"] .calc-add-btn:hover { background: rgba(16, 185, 129, 0.38); border-color: rgba(110, 231, 183, 0.85); box-shadow: 0 0 24px rgba(16, 185, 129, 0.5); }

.calc-summary-card {
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.09), rgba(16, 185, 129, 0.02)), var(--surface);
  border: 1px solid rgba(16, 185, 129, 0.38); border-radius: var(--radius-lg);
  padding: 36px 28px; text-align: center; box-shadow: var(--shadow-md), 0 0 28px rgba(16, 185, 129, 0.14);
}
.calc-summary-card > span:first-child { display: block; font-size: 0.92rem; font-weight: 700; color: var(--ink-2); margin-bottom: 14px; }
.calc-summary-card strong {
  display: block; overflow-wrap: anywhere; font-size: clamp(1.9rem, 9.5vw, 2.6rem); font-weight: 900; line-height: 1.1; color: #059669;
  text-shadow: 0 0 18px rgba(16, 185, 129, 0.5), 0 0 2px rgba(16, 185, 129, 0.25);
}
:root[data-theme="dark"] .calc-summary-card strong { color: #34d399; text-shadow: 0 0 22px rgba(52, 211, 153, 0.6), 0 0 3px rgba(52, 211, 153, 0.35); }
.calc-summary-range { display: block; margin-top: 14px; font-size: 0.9rem; font-weight: 800; line-height: 1.7; color: #059669; text-shadow: 0 0 12px rgba(16, 185, 129, 0.4); }
.calc-summary-range[hidden] { display: none; }
:root[data-theme="dark"] .calc-summary-range { color: #34d399; text-shadow: 0 0 14px rgba(52, 211, 153, 0.5); }
.calc-summary-unit { display: block; font-size: 0.88rem; font-weight: 700; color: var(--ink-3); margin-top: 10px; }

/* Scroll/enter reveal: fade in + slide up (calculator-specific + sitewide).
   Only the hidden/visible state lives here — the transition itself is
   declared on each component's own rule (folded in alongside its hover
   transition) so the two don't fight over the `transition` property; a
   component with no hover transition of its own gets one here via a
   combined `<component>.reveal` selector. */
.calc-reveal, .reveal { opacity: 0; transform: translateY(24px); }
.calc-reveal.is-visible, .reveal.is-visible { opacity: 1; transform: none; }
.calc-reveal { transition: opacity 0.6s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.6s cubic-bezier(0.16, 0.84, 0.44, 1); }
.vision-banner.reveal, .flow-step.reveal {
  transition: opacity 0.6s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.6s cubic-bezier(0.16, 0.84, 0.44, 1);
}
@media (prefers-reduced-motion: reduce) {
  .calc-reveal, .reveal { transition: none; }
}

/* ---------------- Forms ---------------- */
.contact-item {
  display: flex; align-items: center; gap: 14px; color: var(--ink-1); font-weight: 600; font-size: 0.96rem;
}
.contact-item svg { flex: none; color: var(--teal); }
a.contact-item:hover { color: var(--teal); }

.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; text-align: start; }
.form-row-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.form-row[hidden] { display: none; }
.form-row label { font-size: 0.86rem; font-weight: 700; color: var(--ink-2); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.95rem;
  background: var(--page-bg); color: var(--ink-1); transition: border-color 0.15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--teal);
}
.form-row textarea { resize: vertical; }
.form-error { color: #b23434; font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; }

/* ---------------- Modals (ticket + sign-in gate) ---------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(2, 12, 30, 0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
body.modal-open { overflow: hidden; }
.modal-panel {
  position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 36px; transform: translateY(16px) scale(0.98); transition: transform 0.2s ease;
}
.modal-overlay.is-open .modal-panel { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 18px; inset-inline-end: 18px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--heading); }

.ticket-modal-wide { max-width: 1040px; padding: 0; }
.ticket-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.ticket-grid[hidden] { display: none; }
/* Dark "industrial accent" info panel — first in DOM so it lands on the
   visual right in RTL (the default), matching "right column = company info"
   from the spec with no extra logical-property trickery needed. Each column
   rounds only its own outer corners (rather than `overflow:hidden` on the
   panel) so the modal can still scroll internally on short viewports. */
.ticket-info-col {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #0c3a72 100%);
  color: #fff; padding: 52px 44px; display: flex; flex-direction: column; justify-content: center;
  border-start-start-radius: var(--radius-lg); border-end-start-radius: var(--radius-lg);
}
.ticket-info-col h3 { color: #fff; font-size: 1.45rem; margin-bottom: 12px; }
.ticket-info-col .modal-desc { color: rgba(255, 255, 255, 0.72); margin-bottom: 0; }
.ticket-form-col { padding: 52px 44px; border-start-end-radius: var(--radius-lg); border-end-end-radius: var(--radius-lg); }
.ticket-form-col form { padding-top: 4px; }
.modal-desc { margin-bottom: 22px; font-size: 0.94rem; }
.ticket-contact-block {
  display: flex; flex-direction: column; gap: 16px; margin-top: 30px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.ticket-contact-block .contact-item { font-size: 0.88rem; color: #fff; }
.ticket-contact-block .contact-item svg { color: #7fe0c9; }
.ticket-modal-wide .modal-close { z-index: 2; }
.ticket-modal-wide .ticket-success { padding: 44px 36px; border-radius: var(--radius-lg); }

.ticket-success { text-align: center; padding-block: 12px; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--teal-tint); color: var(--teal);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.success-icon svg path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.ticket-success.is-animating .success-icon { animation: successPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ticket-success.is-animating .success-icon svg path { animation: checkDraw 0.45s ease 0.15s forwards; }
@keyframes successPop { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
.ticket-success h3 { font-size: 1.15rem; margin-bottom: 18px; }
.ticket-id-chip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 20px; font-size: 0.9rem; color: var(--ink-2); margin-bottom: 26px;
}
.ticket-id-chip strong { color: var(--heading); font-size: 0.95rem; letter-spacing: 0.02em; }
.ticket-success-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.signin-modal { max-width: 440px; text-align: center; }
.signin-icon {
  width: 60px; height: 60px; border-radius: 16px; background: var(--navy-tint); color: var(--navy);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.signin-modal h3 { font-size: 1.2rem; margin-bottom: 10px; }
.signin-modal p { margin-bottom: 26px; font-size: 0.92rem; }
.signin-modal form { text-align: start; }
.signin-request-btn { margin-top: 16px; }
.signin-demo {
  margin-top: -6px; padding: 16px 16px 18px; border-radius: var(--radius-md); text-align: center;
  background: linear-gradient(135deg, rgba(232, 169, 31, 0.2), rgba(232, 169, 31, 0.06));
  border: 2px dashed rgba(232, 169, 31, 0.7);
}
.signin-demo-title { display: block; font-size: 0.95rem; color: var(--heading); margin-bottom: 12px; }
.signin-demo-creds { margin: 0 0 14px; display: grid; gap: 8px; }
.signin-demo-creds > div {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.signin-demo-creds dt { font-size: 0.78rem; font-weight: 700; color: var(--ink-3); }
.signin-demo-creds dd { margin: 0; max-width: 100%; }
.signin-demo-creds code {
  font-size: 1rem; font-weight: 800; color: var(--heading); user-select: all; overflow-wrap: anywhere;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.signin-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--ink-3); font-size: 0.8rem; font-weight: 700; }
.signin-divider::before, .signin-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-gold { background: linear-gradient(135deg, #f5c75a, #e8a91f); color: #3a2600; box-shadow: 0 8px 22px rgba(232, 169, 31, 0.35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(232, 169, 31, 0.55); }

/* ---------------- Glass modals (investor login + contact), 2026-10-06 ----------------
   Transparent frosted-glass panels, fields and buttons - no navy side panel, no gold box, no solid fills. The page
   behind is dimmed by .modal-overlay and blurred by the glass itself, so the text stays legible whichever view
   (light page or the hero video) the modal opens over: worst cases measured below. */
.modal-overlay { background: rgba(2, 12, 30, 0.55); }
.modal-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)), rgba(8, 22, 50, 0.38);
  -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 30px 80px rgba(2, 12, 32, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #fff;
}
.modal-panel h3, .modal-panel strong { color: #fff; }
.modal-panel p, .modal-desc { color: rgba(255, 255, 255, 0.92); }
.modal-close { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.modal-close:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }

/* contact modal: the info column loses its solid navy gradient - it is just a column of the same glass */
.ticket-info-col { background: transparent; border-inline-end: 1px solid rgba(255, 255, 255, 0.2); }
.ticket-info-col h3 { color: #fff; }
.ticket-info-col .modal-desc { color: rgba(255, 255, 255, 0.92); }
.ticket-contact-block { border-top-color: rgba(255, 255, 255, 0.24); }
.ticket-contact-block .contact-item svg { color: #8ff0d8; }
.ticket-form-col { background: transparent; }

/* fields: transparent glass */
.modal-panel .form-row label { color: rgba(255, 255, 255, 0.96); }
.modal-panel .form-row input, .modal-panel .form-row select, .modal-panel .form-row textarea {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.38); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.modal-panel .form-row input::placeholder, .modal-panel .form-row textarea::placeholder { color: rgba(255, 255, 255, 0.75); }
.modal-panel .form-row input:focus, .modal-panel .form-row select:focus, .modal-panel .form-row textarea:focus {
  background: rgba(255, 255, 255, 0.14); border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}
.modal-panel .form-row select option { color: #021D49; background: #fff; }   /* the OS draws the option list itself */
.modal-panel input:-webkit-autofill, .modal-panel input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff; caret-color: #fff; transition: background-color 9999s ease-out 0s;
}
.modal-panel .form-error { color: #ffb4ae; }

/* buttons: transparent glass with a soft outline and bold white label (also replaces the gold demo button) */
.modal-panel .btn-primary, .modal-panel .btn-outline, .modal-panel .btn-gold {
  background: rgba(255, 255, 255, 0.1); border: 1.5px solid rgba(255, 255, 255, 0.6); color: #fff; font-weight: 800; box-shadow: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-shadow: 0 1px 8px rgba(2, 12, 32, 0.45);
}
.modal-panel .btn-primary:hover, .modal-panel .btn-outline:hover, .modal-panel .btn-gold:hover {
  background: rgba(255, 255, 255, 0.22); border-color: #fff; color: #fff; box-shadow: 0 8px 26px rgba(2, 12, 32, 0.25);
}

/* investor login: the gold dashed box becomes a quiet glass box */
.signin-icon { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.signin-demo { background: rgba(255, 255, 255, 0.07); border: 1.5px dashed rgba(255, 255, 255, 0.5); }
.signin-demo-title { color: #fff; }
.signin-demo-creds > div { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); }
.signin-demo-creds dt { color: rgba(255, 255, 255, 0.92); }
.signin-demo-creds code { color: #fff; }
.signin-divider { color: rgba(255, 255, 255, 0.92); }
.signin-divider::before, .signin-divider::after { background: rgba(255, 255, 255, 0.3); }

/* stacked layout (<=980px): the divider goes under the info column instead of beside it */
@media (max-width: 980px) { .ticket-info-col { border-inline-end: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); } }

/* contact modal success screen */
.success-icon { background: rgba(255, 255, 255, 0.14); color: #8ff0d8; border: 1px solid rgba(255, 255, 255, 0.3); }
.ticket-id-chip { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.34); color: rgba(255, 255, 255, 0.95); }
.ticket-id-chip strong { color: #fff; }

/* ---------------- Glass dropdowns: language, notifications, services (2026-10-06) ----------------
   Same dark frosted glass as the modals instead of the dense white panels: they open over the video on the home page
   and over plain light pages elsewhere, so the tint is deep enough (worst case = pure white behind: ~5:1) while the
   blur still shows the page through. Inside the mobile menu the services list stays a plain accordion. */
.dropdown-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)), rgba(8, 22, 50, 0.66);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 22px 60px rgba(2, 12, 32, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.notif-dropdown strong { color: #fff; }
.notif-item { color: rgba(255, 255, 255, 0.95); border-top-color: rgba(255, 255, 255, 0.16); }
.notif-empty { color: rgba(255, 255, 255, 0.88); }
.lang-option { color: rgba(255, 255, 255, 0.96); }
.lang-option:hover { background: rgba(255, 255, 255, 0.14); }
.lang-option.is-active { background: rgba(255, 255, 255, 0.2); color: #fff; font-weight: 800; }
@media (min-width: 1081px) {
  .services-dropdown a { color: rgba(255, 255, 255, 0.96); }
  .services-dropdown a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
}

/* ---------------- Investor login: roomier window, softer lines and boxes (2026-10-06) ----------------
   Wider (440 -> 540px) with more padding and larger fields/buttons, but kept compact vertically so it still fits a
   1080p screen without scrolling (it scrolls inside on shorter ones, as before). */
.signin-modal { max-width: 540px; }
@media (min-width: 641px) { .signin-modal.modal-panel { padding: 42px 50px 38px; } }
.signin-modal h3 { font-size: 1.4rem; margin-bottom: 8px; }
.signin-modal p { font-size: 0.98rem; margin-bottom: 20px; line-height: 1.65; }
.signin-demo { padding: 18px 20px 20px; margin-top: 0; background: rgba(255, 255, 255, 0.04); border: 1.5px dashed rgba(255, 255, 255, 0.4); }
.signin-demo-title { margin-bottom: 10px; }
.signin-demo-creds { gap: 8px; margin-bottom: 14px; }
.signin-demo-creds > div { padding: 9px 16px; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2); }
.signin-demo-creds code { font-size: 1.05rem; }
.signin-divider { margin: 20px 0 16px; }
.signin-divider::before, .signin-divider::after { height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38) 50%, transparent); }
.signin-modal .form-row { margin-bottom: 14px; gap: 6px; }
.signin-modal .form-row input { padding: 13px 16px; font-size: 1rem; line-height: 1.4; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.3); }
.signin-modal .btn-lg { padding: 13px 28px; font-size: 1.02rem; line-height: 1.4; }
.signin-request-btn { margin-top: 14px; }

/* Investor login: the two main buttons are emerald glowing glass ("تسجيل الدخول" / "طلب حساب مستثمر"). The demo button
   stays neutral glass. IDs keep this above the generic .modal-panel button rules. */
#signinForm .btn-primary, #signinRequestAccount {
  background: rgba(16, 185, 129, 0.25); border: 1px solid rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #ffffff; text-shadow: 0 1px 8px rgba(2, 12, 32, 0.4);
}
#signinForm .btn-primary:hover, #signinRequestAccount:hover {
  background: rgba(16, 185, 129, 0.38); border-color: rgba(110, 231, 183, 0.85);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.5); color: #ffffff;
}

/* Contact modal: "إرسال الطلب" is glowing emerald glass (values as specified by the Owner). */
#ticketForm button[type="submit"] {
  background: rgba(16, 185, 129, 0.85); border: 1px solid rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); color: #ffffff; text-shadow: 0 1px 6px rgba(2, 12, 32, 0.35);
}
#ticketForm button[type="submit"]:hover {
  background: rgba(16, 185, 129, 0.95); border-color: rgba(110, 231, 183, 0.9);
  box-shadow: 0 0 26px rgba(16, 185, 129, 0.6); color: #ffffff;
}

/* ---------------- Partners ("شركائنا") ----------------
   Home page, directly above the blue footer, a FULL-SCREEN section (min-height 100vh, content centred below the sticky header).
   ONE endless strip of frosted-glass cards that never stops (main.js clones the list once; the belt slides by exactly one list-width per
   cycle, so the loop is seamless). EVERY card has the same size and every logo sits in the same box (same width, height and ratio,
   object-fit: contain), so a big logo and a small one look equally weighted. The dark theme switches the cards to a light frosted glass so
   dark logos stay legible. prefers-reduced-motion: no animation, the strip is a plain horizontally scrollable row. */
.partners-section {
  --card-w: 230px; --card-h: 150px; --card-pad: 18px;      /* the card */
  --logo-w: 176px; --logo-h: 98px;                         /* the box every logo is fitted into (aspect ratio fixed) */
  --partners-gap: 18px;
  --marquee-speed: 46px;                                   /* px per second (main.js turns it into the animation duration) */
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(var(--header-h) + 28px) 72px; overflow: hidden;
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(16, 185, 129, 0.24), transparent 70%),
    radial-gradient(960px 560px at 90% 86%, rgba(2, 29, 73, 0.18), transparent 70%),
    radial-gradient(640px 360px at 54% 50%, rgba(0, 127, 102, 0.1), transparent 70%),
    var(--surface-2);
}
:root[data-theme="dark"] .partners-section {
  background:
    radial-gradient(900px 520px at 12% 18%, rgba(16, 185, 129, 0.26), transparent 70%),
    radial-gradient(960px 560px at 90% 86%, rgba(59, 130, 246, 0.22), transparent 70%),
    var(--surface-2);
}
.partners-section > .container { width: 100%; }
.partners-section .section-head { margin-bottom: clamp(26px, 5vh, 56px); }
.partners-section .section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 0; }

.partners-marquee {
  position: relative; width: 100%; overflow: hidden; direction: ltr;
  padding-block: 40px; margin-block: -40px;                 /* room for the cards' lift / shadow inside the clipping box (net layout unchanged) */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);     /* soft fade at both ends */
}
.partners-belt { display: flex; width: max-content; will-change: transform; animation: partnersSlide var(--marquee-dur, 70s) linear infinite; }
html[dir="rtl"] .partners-belt { animation-direction: reverse; }     /* Arabic: the strip drifts the other way (towards the reading start) */
.partners-list { display: flex; flex: none; gap: var(--partners-gap); list-style: none; margin: 0; padding: 0 var(--partners-gap) 0 0; -webkit-user-select: none; user-select: none; }
@keyframes partnersSlide { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

.partner-card {
  flex: none; width: var(--card-w); height: var(--card-h); padding: var(--card-pad);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 22px;
  box-shadow: 0 22px 26px -18px rgba(2, 29, 73, 0.34), 0 2px 6px rgba(2, 29, 73, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.partner-card:hover { transform: translateY(-4px); border-color: rgba(16, 185, 129, 0.45); box-shadow: 0 26px 30px -18px rgba(2, 29, 73, 0.38), 0 0 12px -2px rgba(16, 185, 129, 0.35); }
/* the same box for every logo: identical width / height / ratio, the artwork is contained inside it (never stretched or cropped) */
.partner-card img { display: block; width: var(--logo-w); height: var(--logo-h); max-width: 100%; max-height: 100%; aspect-ratio: 25 / 14; object-fit: contain; pointer-events: none; }
.partner-card img.is-tile { border-radius: 14px; }           /* logos that sit on their own solid tile (SHOF, Syntech) */
:root[data-theme="dark"] .partner-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(232, 240, 250, 0.84));
  border-color: rgba(255, 255, 255, 0.55); box-shadow: 0 22px 26px -18px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 #fff;
}
:root[data-theme="dark"] .partner-card:hover { border-color: rgba(52, 211, 153, 0.7); box-shadow: 0 26px 30px -18px rgba(0, 0, 0, 0.75), 0 0 12px -2px rgba(16, 185, 129, 0.45); }

@media (max-width: 640px) {
  .partners-section { --card-w: 168px; --card-h: 118px; --card-pad: 12px; --logo-w: 132px; --logo-h: 74px; --partners-gap: 12px; --marquee-speed: 38px; padding-block: calc(var(--header-h) + 12px) 48px; }
  .partner-card { border-radius: var(--radius-lg); }
  .partner-card img.is-tile { border-radius: 10px; }
}
/* v23: the strip ALWAYS moves (before, a device with "reduce motion" on — common on iPhones and Windows laptops — got a frozen row).
   For those visitors main.js just makes it slower. It pauses while the mouse is over it (real mouse only, so a tap on a phone
   never leaves it stuck) or while a finger holds it (.is-held), so a logo can be read. */
@media (hover: hover) { .partners-marquee:hover .partners-belt { animation-play-state: paused; } }
.partners-marquee:focus-within .partners-belt, .partners-marquee.is-held .partners-belt { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .partner-card { transition: none; }
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); padding-block: 60px 24px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-text-logo {
  display: inline-block; font-size: 1.3rem; font-weight: 900; color: #fff; margin-bottom: 14px; letter-spacing: 0.01em;
}
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; max-width: 260px; }
.footer-col h5 { color: #fff; font-size: 0.92rem; margin-bottom: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 22px; text-align: center; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }

/* ---------------- Social media menu (footer + contact window) ----------------
   2026-10-25: the trigger is plain text (handle + small caret, no box/border/background), the whole menu sits at the LEFT edge directly under
   the address line ("The Shop Floor"), and the list with Instagram / X / Facebook / LinkedIn is compact and opens IN the flow right under the handle
   (never over the address / phone / e-mail lines). Placed after the footer rules so it beats .footer-col a / span. */
.social-menu { position: relative; display: flex; flex-direction: column; align-items: flex-start; align-self: flex-start; margin-block-start: -6px; margin-left: 0; margin-right: auto; direction: ltr; }   /* left edge, tucked under the address line (auto margin wins over align-self in these column flex parents); LTR inside: Latin handle, caret after it, icons before labels */
.social-trigger {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; border: 0; border-radius: 4px; background: none; cursor: pointer;
  font: inherit; font-size: 0.9rem; font-weight: 700; color: #fff; transition: color 0.2s ease;
}
.social-trigger:hover, .social-menu.is-open .social-trigger { color: #6ee7b7; }
.social-trigger:focus-visible { outline: 2px solid #6ee7b7; outline-offset: 3px; }
.social-trigger .social-handle { color: inherit; font-size: 0.9rem; letter-spacing: 0.01em; }
.social-caret { flex: none; color: #7fe0c9; transition: transform 0.2s ease; }
.social-menu.is-open .social-caret { transform: rotate(180deg); }
.social-popover {
  margin-top: 4px; padding: 3px; width: max-content; max-width: min(170px, calc(100vw - 72px));   /* compact: as wide as its four short rows */
  display: none; flex-direction: column; gap: 0;   /* in the flow, directly under the handle: it never covers the address / phone / e-mail lines */
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)), rgba(8, 22, 50, 0.88);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 10px;
  box-shadow: 0 10px 26px rgba(2, 12, 32, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.social-menu.is-open .social-popover { display: flex; animation: socialDrop 0.15s ease; }
@keyframes socialDrop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.social-popover a {
  display: flex; align-items: center; gap: 8px; padding: 5px 9px; border-radius: 7px;
  color: rgba(255, 255, 255, 0.96); font-size: 0.78rem; font-weight: 600; line-height: 1.3; transition: background-color 0.15s ease;
}
.social-popover a:hover, .social-popover a:focus-visible { background: rgba(255, 255, 255, 0.16); color: #fff; outline: none; }
.social-popover a svg { flex: none; width: 14px; height: 14px; color: #7fe0c9; }
.social-popover a span { color: inherit; font-size: inherit; }
@media (prefers-reduced-motion: reduce) { .social-trigger, .social-caret { transition: none; } .social-menu.is-open .social-popover { animation: none; } }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; bottom: 28px; inset-inline: 0; margin-inline: auto; width: fit-content; max-width: 90vw;
  background: var(--navy); color: #fff; padding: 14px 26px; border-radius: 999px; box-shadow: var(--shadow-lg);
  font-weight: 700; font-size: 0.9rem; z-index: 999; opacity: 0; pointer-events: none;
  transform: translateY(16px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.toast-error { background: #a33636; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; margin-top: 20px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .need-grid, .sectors-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ticket-grid { grid-template-columns: 1fr; }
  .ticket-info-col { padding: 36px 32px; }
}

/* ---------------- Header "تواصل معنا" on phones: compact emerald-glass button next to the icons (2026-10-18) ---------------- */
@media (max-width: 1080px) {
  .site-header .header-cta { padding: 0 15px; height: 36px; min-height: 0; font-size: 0.8rem; font-weight: 800; line-height: 1; white-space: nowrap; flex: none; border-radius: 25px; }
}
@media (max-width: 480px) {
  .header-actions { gap: 5px; }
  .icon-btn, .hamburger { width: 34px; height: 34px; }
  .icon-btn svg { width: 17px; height: 17px; }
  .site-header .header-cta { padding: 0 12px; height: 34px; font-size: 0.76rem; }
  .brand-logo { height: 30px; }
}
@media (max-width: 340px) {
  .container { padding-inline: 12px; }
  .header-actions { gap: 4px; }
  .icon-btn, .hamburger { width: 32px; height: 32px; }
  .site-header .header-cta { padding: 0 10px; height: 32px; font-size: 0.72rem; }
}

/* ---------------- Mobile menu: glass side drawer (<=1080px) ----------------
   Header/nav needs its own (wider) breakpoint: with 4 scroll-links + 2 pill buttons + logo + action icons the row
   genuinely doesn't fit until well past typical "tablet" widths (it overflowed at ~770px). Below it the nav becomes a dark
   frosted-glass drawer sliding in from the hamburger's side, over a dimmed + blurred scrim, holding the links, the services
   accordion, the investor sign-in, "Contact us" and the language buttons (so those leave the crowded header row).
   Open/close logic: setMenu() in main.js. */
.nav-drawer-head, .nav-extra, .nav-scrim { display: none; }
.nav-actions { display: contents; }               /* desktop: the wrapper adds no box, the sign-in button stays a normal nav item */
@media (max-width: 1080px) {
  .hamburger { display: flex; }
  /* v23: the language button stays in the header on phones and tablets too (one tap away; the drawer keeps its buttons as well) */
  .lang-btn { padding: 0 9px; gap: 4px; height: 34px; }
  .lang-btn > svg:last-child { display: none; }
  .header-brand-group .nav-location { display: none; }
  body.menu-open { overflow: hidden; }
  /* While the drawer is open the header must not keep its own backdrop-filter: a backdrop-filter element is a backdrop root,
     so the drawer's blur would only see the header's insides instead of the page. */
  .site-header:has(.main-nav.is-open) { -webkit-backdrop-filter: none; backdrop-filter: none; }

  .nav-scrim {
    display: block; position: fixed; top: 0; inset-inline: 0; height: 100vh; height: 100dvh; z-index: 120;
    background: rgba(2, 12, 30, 0.52); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: opacity 0.28s ease, visibility 0.28s;
  }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }

  .main-nav {
    position: fixed; top: 0; bottom: auto; inset-inline-end: 0; inset-inline-start: auto; z-index: 130;
    width: min(88vw, 390px); height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px;
    padding: 16px 18px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; text-align: start; color: #fff;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04) 42%), rgba(6, 20, 48, 0.76);
    -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
    border-inline-start: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: -26px 0 70px rgba(2, 12, 32, 0.5), inset 1px 0 0 rgba(255, 255, 255, 0.3);
    transform: translateX(105%); visibility: hidden; pointer-events: none;
    transition: transform 0.34s cubic-bezier(0.16, 0.84, 0.44, 1), visibility 0.34s;
  }
  /* closed = not rendered at all (main.js adds .is-rendered for the open/close animation): an off-screen translated drawer would still
     widen the page and create a sideways scroll (right-to-left pages scroll to the left). */
  .main-nav:not(.is-rendered) { display: none; }
  :root[dir="rtl"] .main-nav { transform: translateX(-105%); box-shadow: 26px 0 70px rgba(2, 12, 32, 0.5), inset -1px 0 0 rgba(255, 255, 255, 0.3); }
  .main-nav.is-open, :root[dir="rtl"] .main-nav.is-open { transform: none; visibility: visible; pointer-events: auto; }

  .nav-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 14px; margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
  .nav-drawer-title { font-size: 1.05rem; font-weight: 900; color: #fff; letter-spacing: 0.02em; }
  .nav-drawer-close {
    width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff;
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.4); transition: background-color 0.2s ease;
  }
  .nav-drawer-close:hover { background: rgba(255, 255, 255, 0.26); }

  .main-nav a:not(.nav-pill) {
    width: 100%; padding: 14px 12px; border-radius: 12px; border-bottom: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.13)) bottom / 100% 1px no-repeat;   /* straight divider (a border/shadow would follow the rounded corners) */
    font-size: 1.04rem; font-weight: 700; color: #fff; text-shadow: none; transition: background-color 0.2s ease;
  }
  .main-nav a:not(.nav-pill)::after { display: none; }
  .main-nav a:not(.nav-pill):hover, .main-nav a.is-active { background-color: rgba(16, 185, 129, 0.2); color: #fff; }
  .main-nav .services-nav-item { flex-wrap: wrap; border-bottom: 0; border-radius: 12px; background: linear-gradient(rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.13)) bottom / 100% 1px no-repeat; }
  .main-nav .services-nav-item .services-nav-link { background-image: none; flex: 1; }
  .main-nav .services-nav-item .dropdown-caret { padding: 14px 12px; color: #fff; }
  /* inside the drawer the services dropdown is an inline accordion (no room to float a panel) */
  .main-nav .dropdown-panel {
    position: static; width: 100%; max-height: 0; overflow: hidden; padding: 0; margin: 0; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transition: max-height 0.28s ease;
  }
  .main-nav .dropdown-panel.is-open { max-height: 560px; padding: 4px 0 10px; }
  .main-nav .dropdown-panel a { margin-bottom: 4px; padding: 11px 14px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.95rem; font-weight: 600; }
  .main-nav { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.3) transparent; }

  /* sign-in + contact: emerald glowing glass, full width, exactly the Owner's values (2026-10-17). IDs/:root raise the specificity above
     the header-bar rules (pale-emerald-on-white) that would otherwise also apply to #signinBtn inside the drawer. */
  .main-nav .nav-pill, :root .site-header .main-nav #signinBtn, :root[data-theme="dark"] .site-header .main-nav #signinBtn {
    width: 100%; margin: 0; padding: 14px; border-radius: 25px; text-align: center; font-size: 1rem; font-weight: 800; color: #ffffff;
    background: rgba(16, 185, 129, 0.25); border: 1px solid rgba(52, 211, 153, 0.5); box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-shadow: 0 1px 8px rgba(2, 12, 32, 0.4);
  }
  .main-nav .nav-pill:hover, :root .site-header .main-nav #signinBtn:hover, :root[data-theme="dark"] .site-header .main-nav #signinBtn:hover {
    background: rgba(16, 185, 129, 0.38); border-color: rgba(110, 231, 183, 0.85); box-shadow: 0 0 24px rgba(16, 185, 129, 0.5); color: #ffffff; transform: none;
  }
  /* the action buttons stay pinned at the bottom of the drawer (always visible, never below the fold); the links scroll above them */
  .nav-actions {
    display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 18px; position: sticky; bottom: 0; z-index: 2;
  }
  .nav-extra { display: flex; flex-direction: column; gap: 12px; }
  /* when the list is long (services accordion open) or the screen is short, the actions simply follow the links instead of covering them */
  .main-nav:has(.dropdown-panel.is-open) .nav-actions { position: static; margin-top: 18px; }
  @media (max-height: 640px) { .nav-actions { position: static; margin-top: 18px; } }
  .nav-lang-title { font-size: 0.8rem; font-weight: 800; color: rgba(255, 255, 255, 0.78); letter-spacing: 0.04em; }
  .nav-lang { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  @media (min-width: 360px) { .nav-lang { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .nav-lang .lang-option { font-size: 0.84rem; padding-inline: 4px; } }
  .nav-lang .lang-option {
    text-align: center; padding: 11px 8px; border-radius: 999px; font-size: 0.92rem; font-weight: 700; color: #fff;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.3);
  }
  .nav-lang .lang-option:hover { background: rgba(255, 255, 255, 0.18); }
  .nav-lang .lang-option.is-active { background: rgba(16, 185, 129, 0.3); border-color: rgba(52, 211, 153, 0.7); box-shadow: 0 0 12px rgba(16, 185, 129, 0.35); }
}
@media (prefers-reduced-motion: reduce) { .main-nav, .nav-scrim { transition: none; } }

@media (max-width: 640px) {
  main section { padding-block: 56px; }
  .btn { min-height: 44px; }                                        /* comfortable tap targets */
  .section-head { margin-bottom: 34px; }
  .section-head h2 { font-size: clamp(1.5rem, 7vw, 1.9rem); line-height: 1.45; }
  .section-head p { font-size: 0.98rem; }
  /* hero: fits the real visible screen (svh ignores the collapsing browser bars), text scales with the screen, the three
     floating cards become a tidy vertical stack of glass cards instead of overlapping absolutely-positioned ones */
  .hero { min-height: 100vh; min-height: 100svh; padding-block: calc(var(--header-h) + 22px) 36px; }
  .hero-inner { gap: 26px; }
  .hero-copy h1 { font-size: clamp(1.75rem, 8.4vw, 2.35rem); line-height: 1.35; margin-bottom: 16px; }
  .hero-sub { font-size: 1rem; line-height: 1.85; margin-bottom: 24px; }
  .eyebrow { font-size: 0.8rem; padding: 7px 14px; margin-bottom: 16px; max-width: 100%; }
  .hero-stat strong { font-size: 1.5rem; }
  .hero-stats { gap: 12px; }
  .hero-visual { height: auto; margin-top: 0; display: grid; gap: 12px; }
  .floating-card { position: static; width: 100%; animation: none; }
  /* services: one slim horizontal card per service (icon beside the text) instead of a tall centred block */
  .service-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; align-items: start; text-align: start; padding: 18px 16px; }
  .service-card .service-icon { grid-row: 1 / span 2; width: 52px; height: 52px; margin-bottom: 0; border-radius: 14px; }
  .service-card h3 { grid-column: 2; font-size: 1.04rem; margin-bottom: 4px; }
  .service-card p { grid-column: 2; font-size: 0.9rem; line-height: 1.75; }
  .services-grid { gap: 12px; }
  .need-card { padding: 16px 10px; }
  .need-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sectors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 14px; }
  .floating-card { padding: 14px 16px; }
  .modal-panel { padding: 26px 20px; }
  .ticket-modal-wide { max-width: 520px; }
  .ticket-info-col, .ticket-form-col, .ticket-modal-wide .ticket-success { padding: 30px 24px; }
  .form-row-pair { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 480px) {
  .need-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sectors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .container { padding-inline: 18px; }
}

/* Mobile number with a country-code picker (js/country-codes.js — every country, Saudi Arabia +966 by default) */
.cb-phone { position: relative; display: block; width: 100%; }
.cb-phone .cb-phone-num { display: block; width: 100% !important; padding-left: 104px !important; text-align: left; }
.cb-phone .cb-phone-cc-box { position: absolute; left: 6px; top: 6px; bottom: 6px; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 88px; padding: 0 22px 0 10px; border-radius: 8px; background: rgba(127, 127, 127, .14); font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; direction: ltr; pointer-events: none; }
.cb-phone .cb-phone-cc-box::after { content: ""; position: absolute; right: 9px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); opacity: .6; }
.cb-phone .cb-phone-cc { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; cursor: pointer; pointer-events: auto; -webkit-appearance: none; appearance: none; background: none !important; box-shadow: none !important; }
.cb-phone .cb-phone-cc option { color: #111; background: #fff; }
.cb-phone:focus-within .cb-phone-cc-box { background: rgba(127, 127, 127, .22); }

/* v7 — one eye only in password fields: hide the browser's own reveal / clear buttons (Microsoft Edge / IE) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear { display: none !important; }

/* v21 — footer policy links + policy modal ("سياسة الاستخدام" / "سياسة الخصوصية") */
.footer-policies { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: 0.86rem; }
.footer-policies a { color: rgba(255, 255, 255, 0.78); text-decoration: none; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.footer-policies a:hover, .footer-policies a:focus-visible { color: #fff; border-bottom-color: var(--teal); outline: none; }
.footer-policies-sep { color: rgba(255, 255, 255, 0.3); }
.policy-modal { max-width: 720px; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
/* long legal text: a solid page under the navy header (not the see-through glass of the short forms), so it reads easily */
.modal-panel.policy-modal { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid var(--border); color: var(--ink-1); }
.policy-modal .modal-close { z-index: 2; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.policy-modal .modal-close:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.policy-head { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 28px 32px 22px; padding-inline-end: 64px; flex-shrink: 0; }
.policy-brand { display: block; font-size: 0.8rem; font-weight: 700; color: rgba(255, 255, 255, 0.65); letter-spacing: .02em; }
.policy-head h3 { color: #fff; font-size: 1.4rem; margin: 4px 0 6px; }
.policy-updated { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }
.policy-body { padding: 24px 32px 30px; overflow-y: auto; max-height: calc(92vh - 120px); line-height: 1.9; color: var(--ink-1); }
.policy-modal p.policy-intro { color: var(--ink-1); margin-bottom: 18px; }
.policy-section + .policy-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.policy-modal .policy-section h4 { color: var(--heading); font-size: 1rem; margin-bottom: 6px; }
.policy-modal .policy-section p { font-size: 0.92rem; color: var(--ink-2); margin: 0 0 6px; }
.policy-modal .policy-section p.policy-highlight { background: var(--teal-tint); color: var(--ink-1); font-weight: 700; border-inline-start: 4px solid var(--teal); border-radius: 8px; padding: 10px 14px; }
@media (max-width: 560px) {
  .policy-head { padding: 22px 20px 18px; padding-inline-end: 56px; }
  .policy-body { padding: 18px 20px 24px; }
}

/* v23: very narrow phones (320px): the header language button joins the row, so tighten it a little */
@media (max-width: 340px) {
  .lang-btn { padding: 0 6px; }
  .site-header .header-cta { padding: 0 8px; }
  .icon-btn, .hamburger { width: 30px; height: 30px; }
}
