/*
  Main CSS — Edit brand colors in :root. Contact info in index.html.
  BEM naming; RTL layout. Minimal, performant styles.
*/

:root {
  /* Provided palette */
  --sea-buckthorn: #fea627;
  --denim: #1274b9;
  --nevada: #636465;
  --thunder: #211e1f;
  --matisse: #1e79b0;
  --my-sin: #fdae1f;

  /* Mapped usage */
  --c-primary: var(--matisse);
  --c-secondary: var(--denim);
  --c-accent: var(--sea-buckthorn);
  --c-accent-2: var(--my-sin);
  --c-dark: var(--thunder);
  --c-deep: var(--denim);
  --c-deeper: var(--matisse);
  --c-bg: #f5f6f7;

  /* Motion tokens */
  --ease-out-2: cubic-bezier(.22, .61, .36, 1);
  --ease-out-3: cubic-bezier(.25, .8, .25, 1);
  --dur-quick: 160ms;
  --dur-medium: 280ms;
  --dur-slow: 480ms;
  /* Elevation tokens */
  --shadow-1: 0 6px 16px rgba(0,0,0,.12);
  --shadow-2: 0 10px 24px rgba(0,0,0,.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body.site {
  margin: 0;
  font-family: 'Tajawal', 'Noto Sans Arabic', system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
  /* Offset content for fixed header; updated dynamically via JS */
  padding-top: var(--header-h, 80px);
  font-size: 18.8px;
  background-color: var(--c-bg);
  color: var(--c-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Cross-browser media defaults */
img, svg { max-width: 100%; height: auto; }
svg { display: inline-block; }
img { image-rendering: auto; }


/* Prevent horizontal overflow causing side gutters on some mobiles */
html, body { overflow-x: hidden; }
/* RTL page scrollbar clean-up: remove arrow buttons and slim appearance */
@supports (scrollbar-width: thin) {
  html { scrollbar-width: thin; }
}
html::-webkit-scrollbar { width: 8px; height: 8px; }
html::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background-color: rgba(255,255,255,.35); border-radius: 8px; border: 2px solid transparent; }
/* Lock background scroll when mobile menu overlay is open */
body.menu-open { overflow: hidden; }

.container { width: min(1280px, 92%); margin-inline: auto; }

/* Base typography: improve paragraph readability */
.section p { font-size: clamp(18px, 2.4vw, 20px); line-height: 1.9; }
.about__text p, .brand-end__text p { font-size: clamp(18px, 2.4vw, 20px); }
.carrier__desc { font-size: clamp(20px, 3.2vw, 26px); line-height: 1.8; text-shadow: 0 2px 6px rgba(0,0,0,.45); }

/* Accessibility & motion preferences */
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; background: linear-gradient(90deg, var(--denim), var(--matisse)); color: #fff; box-shadow: none; z-index: 1000; border-bottom: 0 !important; transition: box-shadow var(--dur-quick) var(--ease-out-3), transform var(--dur-quick) var(--ease-out-3); }
/* Elevated state when page is scrolled */
.header--scrolled { box-shadow: 0 8px 24px -8px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.12); }
/* Gentle gradient overlay for richness (disabled to avoid any seam) */
.header::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; flex-direction: row; }
.header__spacer { flex: 0 1 clamp(60px, 10vw, 160px); }
.header__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.header__logo { height: 64px; width: auto; object-fit: contain; background: #fff; padding: 6px 10px; border-radius: 12px; border: 1px solid rgba(99,100,101,.22); box-shadow: 0 4px 12px rgba(0,0,0,.12); transition: box-shadow var(--dur-quick) var(--ease-out-3), transform var(--dur-quick) var(--ease-out-3), border-color var(--dur-quick) var(--ease-out-3); }
.header__title { display: flex; flex-direction: column; line-height: 1.1; gap: 2px; }
.header__title-cap { font-size: 12px; opacity: .85; color: #eaf2ff; }
.header__title-ar { font-size: 18px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25); white-space: nowrap; }
.header__title-en { font-size: 15px; font-weight: 800; color: var(--c-accent); text-align: center; letter-spacing: .3px; white-space: nowrap; }
.header__menu-toggle { margin-inline-start: auto; padding: 8px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: rgba(255,255,255,.15); color: #fff; display: none; transition: border-color var(--dur-quick) var(--ease-out-3), box-shadow var(--dur-quick) var(--ease-out-3), transform var(--dur-quick) var(--ease-out-3); }
.header__menu-toggle::before { content: "☰"; display: inline-block; font-size: 16px; opacity: .9; margin-inline-start: 8px; transform: translateY(1px); }
.header__menu-toggle[aria-expanded="true"]::before { content: "✕"; }
.nav { display: flex; gap: 10px; align-items: center; }
.nav__link { color: #fff; text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.14); font-weight: 600; font-size: 15.5px; line-height: 1; letter-spacing: 0; transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .15s ease, border-color .25s ease; }
/* Ensure pills scale from center for clean growth */
.nav__link { transform-origin: center; will-change: transform; }

/* Desktop/tablet: keep brand + nav on one line; compress spacing */
@media (min-width: 921px) {
  .header__inner { flex-wrap: nowrap; padding: 18px 0; }
  .header__spacer { flex: 0 1 clamp(80px, 12vw, 200px); }
  /* Give nav extra vertical breathing room so pills can scale without clipping */
  .nav { flex: 1 1 auto; flex-wrap: wrap; gap: 8px; justify-content: flex-start; overflow-x: hidden; overflow-y: visible; padding-block: 6px; }
  .nav__link { white-space: nowrap; line-height: 1; padding: 9px 16px; font-size: clamp(14px, 1.5vw, 15px); }
}
/* Hover animations only on devices that actually support hover (desktop, some tablets) */
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { background: rgba(255,255,255,.24); border-color: #ffa829; box-shadow: 0 0 0 2px rgba(255,168,41,.28), 0 12px 24px -8px rgba(0,0,0,.22); transform: scale(1.03); position: relative; z-index: 1; }
}
/* Active nav state */
 .nav__link--active { background: rgba(255,255,255,.92); color: var(--denim); box-shadow: 0 10px 20px -6px rgba(0,0,0,.18); border-color: rgba(255,255,255,.8); }
/* Active (white) pill: turn yellow on hover/focus to match other buttons */
 .nav__link--active:hover,
 .nav__link--active:focus-visible { background: var(--c-accent); color: #fff; border-color: var(--c-accent); box-shadow: 0 14px 28px -8px rgba(255,168,41,.32); }
 .nav__link:focus-visible { border-color: #ffa829; box-shadow: 0 0 0 2px rgba(255,168,41,.35), 0 12px 24px -8px rgba(0,0,0,.22); transform: scale(1.03); position: relative; z-index: 1; }

/* Hero */
.hero { position: relative; height: 95vh; display: block; margin-top: 0; }
.hero__bg { position: absolute; inset: 0; top: calc(-1 * var(--header-h, 80px)); z-index: 0; background-image: linear-gradient(to bottom, rgba(22,38,62,var(--hero-overlay-top, .48)), rgba(22,38,62,var(--hero-overlay-bottom, .24))), url('../img/backbone2.png?v=4'); background-position: 50% var(--hero-bg-y, 0%); transform: translateY(var(--hero-parallax, 0px)); transition: transform var(--dur-slow) var(--ease-out-3); }
.hero__bg::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(var(--hero-light-r, 520px) circle at var(--hx, 50%) var(--hy, 50%), rgba(255,168,41,.18), rgba(255,168,41,0) 60%); mix-blend-mode: screen; opacity: var(--hero-light-op, 0); transition: opacity var(--dur-quick) var(--ease-out-3); }
/* Ambient depth layer for large screens */
.hero__bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(var(--hero-ambient-r, 900px) circle at var(--hx2, 50%) var(--hy2, 50%), rgba(255,255,255,.12), rgba(255,255,255,0) 64%); mix-blend-mode: soft-light; opacity: var(--hero-ambient-op, 0); transition: opacity var(--dur-quick) var(--ease-out-3); }
@media (prefers-reduced-motion: reduce) {
  .hero__bg::before, .hero__bg::after { opacity: 0 !important; }
}
.hero__content { position: sticky; top: var(--header-h, 80px); min-height: 100vh; display: grid; align-items: center; color: #fff; padding: 40px 0; z-index: 1; }
.hero__title { font-size: clamp(30px, 5.4vw, 52px); margin: 12px 0 10px; color: #ffffff; text-shadow: 0 4px 12px rgba(0,0,0,.75), 0 0 32px rgba(0,0,0,.55), 0 0 64px rgba(0,0,0,.35); }
.hero__tagline { font-size: clamp(22px, 4.4vw, 34px); margin: 0 0 16px; color: #ffffff; text-shadow: 0 4px 14px rgba(0,0,0,.8), 0 0 32px rgba(0,0,0,.6), 0 0 64px rgba(0,0,0,.4); }

/* Large screens: reduce hero footprint and lift content upward */
@media (min-width: 920px) and (max-width: 1199px) {
  .hero { height: 72vh; }
  .hero__content { min-height: 72vh; align-items: start; padding-top: 88px; }
  .hero__title { font-size: clamp(30px, 4.9vw, 46px); margin-top: 10px; }
.hero__tagline { font-size: clamp(17px, 2.9vw, 21px); }
}

/* Mid-width header titles: keep on one line to align with nav */
@media (min-width: 921px) and (max-width: 1199px) {
  .header__title-ar, .header__title-en { white-space: nowrap; }
}
@media (min-width: 1200px) {
  .hero { height: 78vh; }
  .hero__content { min-height: 78vh; align-items: start; padding-top: 96px; }
  .hero__title { font-size: clamp(30px, 4.6vw, 48px); margin-top: 10px; }
  .hero__tagline { font-size: clamp(17px, 2.8vw, 22px); }
}

/* Ultra-wide screens: further compact to avoid oversized background area */
@media (min-width: 1600px) {
  .hero { height: 64vh; }
  .hero__content { min-height: 64vh; padding-top: 96px; }
}
.hero__actions { display: flex; gap: 12px; }
/* CTA icon and hover elevation */
.btn__icon { width: 18px; height: 18px; margin-inline-start: 8px; flex: 0 0 auto; transition: transform var(--dur-quick) var(--ease-out-3), color var(--dur-quick) var(--ease-out-3); }
.btn:hover .btn__icon { transform: scale(1.05); color: var(--c-accent); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #ffa829; color: #fff; transform: translateY(-1px) scale(1.02); box-shadow: 0 10px 22px rgba(255,168,41,.35); }
}
/* One-time micro pulse on page load */
@keyframes pulse-once {
  0% { transform: scale(1); box-shadow: 0 6px 16px rgba(18,116,185,.25); }
  50% { transform: scale(1.05); box-shadow: 0 10px 22px rgba(18,116,185,.32); }
  100% { transform: scale(1); box-shadow: 0 6px 16px rgba(18,116,185,.25); }
}
.btn--primary.pulse-once { animation: pulse-once var(--dur-quick) var(--ease-out-3) 1; }

@keyframes floaty {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-6px) scale(1.02); opacity: .98; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 10px; text-decoration: none; transition: transform .2s ease, box-shadow .3s ease; cursor: pointer; border: 0; font-weight: 600; font-family: inherit; letter-spacing: .2px; }
.btn--lg { padding: 14px 20px; font-size: 1.05rem; border-radius: 12px; }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 6px 16px rgba(18,116,185,.25); }
/* Ensure primary button icon stays visible on yellow hover */
.btn--primary:hover .btn__icon,
.btn--primary:focus-visible .btn__icon { color: #fff; }
.btn--ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn--ghost:hover { background: #ffa829; color: #fff; border-color: #ffa829; box-shadow: 0 8px 20px rgba(255,168,41,.32); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
 .btn:active { transform: translateY(0); box-shadow: var(--shadow-1); }
 .btn:focus-visible { box-shadow: 0 0 0 3px rgba(18,116,185,.22), 0 8px 18px rgba(0,0,0,.16); }
/* Icon inside buttons */
.btn__icon { width: 22px; height: 22px; flex: 0 0 auto; }
.btn__icon--rtl { transform: scaleX(-1); }

/* Tech sticky section */
.tech { position: relative; height: 120vh; display: block; }
.tech__card { margin: 0 auto; max-width: 860px; background: rgba(18,116,185,.26); border: 1px solid rgba(18,116,185,.35); border-radius: 16px; padding: 24px; box-shadow: 0 12px 28px rgba(0,0,0,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tech__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(to bottom, rgba(22,38,62,.32), rgba(22,38,62,.18)), url('../img/backbone4.png?v=2'); background-size: cover; background-position: 50% var(--tech-bg-y, 0%); }
.tech__content { position: sticky; top: 0; min-height: 100vh; display: grid; align-items: center; color: #fff; padding: 40px 0; z-index: 1; text-align: center; }
.tech__card { margin: 0 auto; max-width: 860px; background: rgba(18,116,185,.26); border: 1px solid rgba(18,116,185,.35); border-radius: 16px; padding: 24px; box-shadow: 0 12px 28px rgba(0,0,0,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
 .tech__card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.2); transition: transform var(--dur-medium) var(--ease-out-2), box-shadow var(--dur-medium) var(--ease-out-2); }
.tech__title { font-size: clamp(28px, 5vw, 48px); font-weight: 800; margin: 0 0 8px; color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,.35); }
.tech__intro { font-size: clamp(18px, 3.4vw, 22px); margin: 0 0 12px; color: #fff; font-weight: 600; text-shadow: 0 4px 10px rgba(0,0,0,.55), 0 0 10px rgba(255,255,255,.26), 0 0 18px rgba(18,116,185,.22); letter-spacing: .2px; }
.tech__label { display: inline-block; margin: 6px 0 8px; font-weight: 700; font-size: clamp(17px, 2.8vw, 22px); color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.28); }
.tech__list { list-style: none; margin: 0 0 16px; padding: 0; text-align: right; }
.tech__list li { margin: 8px 0; padding-inline-start: 28px; position: relative; font-size: clamp(15px, 2.6vw, 18px); color: #fff; font-weight: 600; text-shadow: 0 2px 3px rgba(0,0,0,.32); transition: transform var(--dur-medium) var(--ease-out-2), color var(--dur-medium) var(--ease-out-2); transform-origin: right center; }
.tech__list li:hover { transform: scale(1.08); }
 .tech__list li:focus-visible { transform: scale(1.08); }
.tech__list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); color: #fff; background: var(--c-primary); border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; box-shadow: 0 3px 8px rgba(18,116,185,.35); }
/* Hover/Focus: brand yellow check chip */
.tech__list li:hover::before, .tech__list li:focus-visible::before { background: #ffa829; box-shadow: 0 3px 8px rgba(255,168,41,.35); color: #fff; }
.tech__tagline { font-size: clamp(16px, 3.2vw, 22px); margin: 0 0 16px; text-shadow: 0 1px 2px rgba(0,0,0,.22); }
.tech__actions { margin-top: 8px; }
.btn--xl { padding: 16px 24px; font-size: 1.12rem; border-radius: 14px; }

/* Large screens adjustments */
@media (min-width: 1200px) {
  .tech { height: 100vh; }
  .tech__card { max-width: 760px; padding: 22px; }
  .btn--xl { padding: 18px 28px; font-size: 1.15rem; }
}

/* Sections */
.section { padding: 56px 0; }
.section__title { font-size: 32px; font-weight: 800; color: var(--c-deep); margin: 0 0 18px; text-shadow: 0 1px 1px rgba(0,0,0,.06); position: relative; transition: transform var(--dur-quick) var(--ease-out-2); will-change: transform; }
.section__title::after { content: ""; position: absolute; inset-inline: 0; bottom: -8px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); opacity: .75; }
/* Active section: intensify title underline for dynamic scroll cue */
.section.section--active .section__title::after { opacity: 1; height: 4px; box-shadow: 0 0 12px rgba(255,168,41,.24); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in-view { opacity: 1; transform: none; transition: opacity var(--dur-slow) var(--ease-out-2), transform var(--dur-slow) var(--ease-out-2); transition-delay: var(--reveal-delay, 0s); }
/* Staggered reveal: apply to containers with 'stagger' for sequenced children */
.reveal.stagger { opacity: 1; transform: none; }
.reveal.stagger > * { opacity: 0; transform: translateY(10px); }
.reveal.stagger.in-view > * { opacity: 1; transform: none; transition: opacity var(--dur-quick) var(--ease-out-2), transform var(--dur-quick) var(--ease-out-2); }
/* 70ms step delays for first 10 children */
.reveal.stagger.in-view > *:nth-child(1) { transition-delay: 0ms; }
.reveal.stagger.in-view > *:nth-child(2) { transition-delay: 70ms; }
.reveal.stagger.in-view > *:nth-child(3) { transition-delay: 140ms; }
.reveal.stagger.in-view > *:nth-child(4) { transition-delay: 210ms; }
.reveal.stagger.in-view > *:nth-child(5) { transition-delay: 280ms; }
.reveal.stagger.in-view > *:nth-child(6) { transition-delay: 350ms; }
.reveal.stagger.in-view > *:nth-child(7) { transition-delay: 420ms; }
.reveal.stagger.in-view > *:nth-child(8) { transition-delay: 490ms; }
.reveal.stagger.in-view > *:nth-child(9) { transition-delay: 560ms; }
.reveal.stagger.in-view > *:nth-child(10) { transition-delay: 630ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal.stagger > * { opacity: 1; transform: none; }
}

/* About */
.about__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; }
.about__figure img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.08); transition: transform .25s ease; }
.about__figure img:hover { transform: scale(1.02); }
/* Enable 3D tilt */
.about__figure { perspective: 800px; transform-style: preserve-3d; will-change: transform; }
.about__text { background: rgba(18,116,185,.06); border: 1px solid rgba(18,116,185,.12); border-radius: 12px; padding: 16px; }

/* Carrier */
.carrier__content { text-align: center; }
.carrier__logo-chip { display: inline-flex; align-items: center; justify-content: center; background: #fff; padding: 28px 32px; border-radius: 20px; box-shadow: 0 6px 20px rgba(0,0,0,.15); margin: 12px 0 16px; transition: box-shadow var(--dur-quick) var(--ease-out-3), transform var(--dur-quick) var(--ease-out-3); perspective: 900px; transform-style: preserve-3d; will-change: transform; }
.carrier__logo-chip img { max-width: 100%; height: auto; width: 560px; }
/* Neon glow on carrier logo chip */
.carrier__logo-chip:hover,
.carrier__logo-chip:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 3px rgba(255,168,41,.30),
    0 0 12px rgba(255,168,41,.34),
    0 0 26px rgba(255,168,41,.26),
    0 0 52px rgba(255,168,41,.20);
  animation: neon-fade 5s var(--ease-out-3) infinite alternate;
}
.carrier__desc { color: var(--c-deeper); }

/* Brand end */
.brand-end__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.brand-end__figure img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.08); transition: transform .25s ease; }
.brand-end__figure img:hover { transform: scale(1.02); }
/* Enable 3D tilt */
.brand-end__figure { perspective: 800px; transform-style: preserve-3d; will-change: transform; }
.brand-end__text { background: rgba(18,116,185,.06); border: 1px solid rgba(18,116,185,.12); border-radius: 12px; padding: 16px; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact__list { list-style: none; padding: 0; margin: 0 0 16px; }
.contact__item { margin: 6px 0; display: inline-flex; align-items: center; gap: 10px; }
.contact__icon { width: 22px; height: 22px; flex: 0 0 auto; }
.contact__label { font-weight: 800; display: inline-block; transition: transform var(--dur-medium) var(--ease-out-2); transform-origin: right center; }
.contact__text { font-weight: 400; color: var(--c-deep); display: inline-block; transition: transform var(--dur-medium) var(--ease-out-2); transform-origin: right center; }
.contact__link { color: var(--c-primary); text-decoration: none; font-weight: 500; display: inline-block; transition: transform var(--dur-medium) var(--ease-out-2); transform-origin: right center; }
.contact__link:hover { text-decoration: underline; }
/* Grow text on hover/focus within contact items */
.contact__item:hover .contact__label,
.contact__item:hover .contact__text,
.contact__item:hover .contact__link,
.contact__item:focus-within .contact__label,
.contact__item:focus-within .contact__text,
.contact__item:focus-within .contact__link { transform: scale(1.06); }
/* Copy email chip */
.contact__copy { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(18,116,185,.18); background: rgba(18,116,185,.08); color: var(--c-primary); cursor: pointer; }
.contact__copy:hover { background: rgba(18,116,185,.12); }
.social__btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; transition: transform .2s ease, box-shadow .3s ease; transform-origin: center; will-change: transform; }
.social__btn--facebook { background: #1877F2; color: #fff; border-radius: 12px; padding: 8px 12px; box-shadow: 0 6px 16px rgba(24,119,242,.25); }
.social__btn--facebook:hover,
.social__btn--facebook:focus-visible { transform: translateY(-1px) scale(1.02); box-shadow: 0 10px 22px rgba(24,119,242,.35); }
.social__icon { width: 26px; height: 26px; }
.social__label { font-weight: 700; }
.form__row { margin-bottom: 12px; }
.form__label { display: block; margin-bottom: 6px; color: var(--c-deeper); font-weight: 700; }
.form__input { width: 100%; padding: 10px 12px; border: 1px solid rgba(0,0,0,.12); border-radius: 8px; background: #fff; }
.form__input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(18,116,185,.18); }
.form__honeypot { display: none !important; }
.form__note { font-size: 13px; color: #555; }
.contact__info, .contact__form { background: rgba(18,116,185,.06); border: 1px solid rgba(18,116,185,.12); border-radius: 12px; padding: 16px; }

/* Map */
.map__embed iframe { width: 100%; height: 340px; border: 0; border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.08); }

/* Footer */
.footer { background: linear-gradient(90deg, #ffa829, var(--sea-buckthorn)); border-top: 0; padding: 24px 0; color: #fff; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; }
.footer__brand { color: #fff; font-weight: 700; display: inline-flex; align-items: center; }
.footer__copy { color: rgba(255,255,255,.92); }
.footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Minor branding hover + neon glow */
.header__brand:hover .header__logo,
.header__brand:focus-visible .header__logo,
.header__logo:hover {
  transform: translateY(-1px);
  border-color: #ffa829;
  box-shadow:
    0 0 0 3px rgba(255,168,41,.30),
    0 0 12px rgba(255,168,41,.34),
    0 0 26px rgba(255,168,41,.26),
    0 0 52px rgba(255,168,41,.20);
  transition: box-shadow var(--dur-quick) var(--ease-out-3), transform var(--dur-quick) var(--ease-out-3), border-color var(--dur-quick) var(--ease-out-3);
  animation: neon-fade 5s var(--ease-out-3) infinite alternate;
}

/* Company title neon on hover/focus */
.header__brand:hover .header__title-ar,
.header__brand:hover .header__title-en,
.header__brand:hover .header__title-cap,
.header__title-ar:hover,
.header__title-en:hover,
.header__title-cap:hover,
.header__title-ar:focus-visible,
.header__title-en:focus-visible,
.header__title-cap:focus-visible {
  text-shadow:
    0 0 4px rgba(255,168,41,.30),
    0 0 10px rgba(255,168,41,.28),
    0 0 16px rgba(255,168,41,.22);
  animation: text-neon-fade 5s var(--ease-out-3) infinite alternate;
}

/* Menu toggle glow (mobile) */
.header__menu-toggle:hover,
.header__menu-toggle:focus-visible {
  border-color: #ffa829;
  box-shadow:
    0 0 0 3px rgba(255,168,41,.30),
    0 0 12px rgba(255,168,41,.34),
    0 0 26px rgba(255,168,41,.26),
    0 0 52px rgba(255,168,41,.20);
  transform: translateY(-1px);
  animation: neon-fade 5s var(--ease-out-3) infinite alternate;
}

/* Responsive */
@media (max-width: 920px) {
  .header__spacer { display: none; }
  /* Header should be edge-to-edge; menu pills take full width */
  .header .container { padding-inline: 0; }
  /* Make container edge-to-edge on mobile to avoid side gutter */
  .container { width: 100%; padding-inline: 4%; }
  /* Keep a visible Close control when the menu is expanded */
  .header__menu-toggle[aria-expanded="true"] {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    inset-inline-end: 12px; /* keep away from brand in RTL */
    z-index: 110;
    background: rgba(255, 255, 255, 0.92);
    color: var(--c-primary);
    border-color: rgba(18, 116, 185, 0.35);
    box-shadow: var(--shadow-1);
  }
  .header__logo { height: 58px; padding: 6px 10px; }
  .about__grid, .brand-end__grid, .contact__grid { grid-template-columns: 1fr; }
  .header__menu-toggle { display: inline-flex !important; }
  .nav { display: none !important; }
  /* Full-screen overlay menu for consistent mobile look across devices */
  .nav.nav--open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
    left: 0; right: 0;
    width: min(720px, 96vw);
    margin-inline: auto;                    /* anchor to header container width */
    max-height: 60vh;                       /* dropdown panel, not full screen */
    box-sizing: border-box;
    padding: 12px 16px 16px;
    background: linear-gradient(180deg, var(--matisse), var(--denim));
    border-top: 1px solid rgba(255,255,255,.25);
    border-radius: 0 0 12px 12px;
    z-index: 1100;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-backdrop-filter: saturate(120%) blur(6px);
    backdrop-filter: saturate(120%) blur(6px);
    scroll-padding-top: 0;
    scroll-snap-type: none;
    box-shadow: 0 10px 22px rgba(0,0,0,.16);
    animation: dropdown-enter .18s var(--ease-out-3);
  }
  /* Fallback when backdrop-filter isn't supported */
  @supports not ((-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px))) {
    .nav.nav--open {
      /* Solid gradient fallback with high opacity to mimic frosted effect */
      background: linear-gradient(180deg, rgba(30,121,176,0.96), rgba(18,116,185,0.96));
      border-top-color: rgba(255,255,255,.25);
    }
  }
  @keyframes dropdown-enter { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
  .nav.nav--open .nav__link {
    display: block;                 /* apply width correctly for anchors */
    width: 100%;                    /* fill dropdown panel width */
    margin-inline: 0;               /* follow panel padding */
    padding: 16px 18px;
    text-align: center;
    color: #fff;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.16);
    box-shadow: var(--shadow-1);
    white-space: normal;           /* allow wrapping for long Arabic labels */
    overflow-wrap: anywhere;       /* prevent clipping on narrow phones */
    line-height: 1.35;
    box-sizing: border-box;        /* include padding+border inside width */
    font-size: clamp(16px, 4.2vw, 19px);
    scroll-snap-align: start;
  }
  .nav.nav--open .nav__link:hover, .nav.nav--open .nav__link:focus-visible { transform: scale(1.02); background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.40); box-shadow: 0 12px 24px -8px rgba(0,0,0,.22); position: relative; z-index: 1; }
  .nav.nav--open .nav__link.nav__link--active { background: #fff; color: var(--c-primary); border-color: #fff; box-shadow: 0 10px 20px -6px rgba(0,0,0,.18); }
  .nav.nav--open .nav__link.nav__link--active:hover,
  .nav.nav--open .nav__link.nav__link--active:focus-visible { background: var(--c-accent); color: #fff; border-color: var(--c-accent); box-shadow: 0 14px 28px -8px rgba(255,168,41,.32); }
  /* Mobile header separation via slightly stronger shadow */
  .header:not(.header--scrolled) { box-shadow: none; }
  /* Mobile hero: non-sticky content and tighter spacing; ensure no seam under header */
  .hero { height: auto; min-height: 78vh; margin-top: -3px; }
  .hero__content { position: relative; min-height: 0; padding: 24px 0 32px; }
  .hero__actions { flex-wrap: wrap; justify-content: flex-start; }
  /* Mobile tech: non-sticky flow and full-width card */
  .tech { height: auto; }
  .tech__content { position: relative; min-height: 0; padding: 28px 0; }
  .tech__card { max-width: 100%; }
  /* Header brand tightening (override inline sizes) */
  .header__brand { flex-wrap: wrap; gap: 10px; }
  .header__title-ar { font-size: 18px !important; }
  .header__title-en { font-size: 14px !important; }
  /* Section spacing and typography */
  .section { padding: 40px 0; }
  .section__title { font-size: 26px; }
  /* Map height and footer stacking */
  .map__embed iframe { height: 280px; }
  .footer__inner { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
  /* Mobile nav layout already above */
}
/* Very small screens: slightly larger hero CTA */
@media (max-width: 480px) {
  .btn--lg { font-size: 1.12rem; padding: 15px 20px; }
}
/* Removed phone-only hides to ensure menu works on all devices */
/* Showcase */
.showcase__wrap { display: grid; }
.showcase__video { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; border: 1px solid rgba(99,100,101,.24); box-shadow: 0 10px 24px rgba(0,0,0,.14); cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; transition: box-shadow .2s ease, transform .2s ease; }
.showcase__video:hover { box-shadow: 0 12px 28px rgba(0,0,0,.18); transform: translateY(-1px); }
 .showcase__video:focus-visible { box-shadow: 0 0 0 3px rgba(18,116,185,.22), 0 12px 28px rgba(0,0,0,.18); }

/* Neon glow for specific images */
img[src*="Front-face.png"],
img[src*="Second-face.png"] {
  border-radius: 12px;
  border: 1px solid rgba(255,168,41,.85);
  box-shadow:
    0 0 0 3px rgba(255,168,41,.22),
    0 0 10px rgba(255,168,41,.26),
    0 0 22px rgba(255,168,41,.20),
    0 0 40px rgba(255,168,41,.16);
  transition: box-shadow var(--dur-quick) var(--ease-out-3), transform var(--dur-quick) var(--ease-out-3);
  animation: neon-fade 5s var(--ease-out-3) infinite alternate;
}
img[src*="Front-face.png"]:hover,
img[src*="Second-face.png"]:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px rgba(255,168,41,.30),
    0 0 12px rgba(255,168,41,.34),
    0 0 26px rgba(255,168,41,.26),
    0 0 52px rgba(255,168,41,.20);
}

/* Form notice */
.form__notice { margin-top: 12px; font-size: 15px; line-height: 1.4; color: var(--c-deep); }
.form__notice--success { color: #127c3e; }
.form__notice--error { color: #b00020; }

/* Form banner (top of form) */
.form__banner { margin-bottom: 12px; padding: 10px 12px; border-radius: 8px; font-size: 15px; line-height: 1.5; background: #f4f8f5; color: #0f5132; border: 1px solid #b7dfc1; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: opacity 200ms ease; }
.form__banner--success { background: #f0fff4; color: #127c3e; border-color: #b7dfc1; }
.form__banner--error { background: #fff5f5; color: #b00020; border-color: #f3c2c6; }

/* Field errors (inline) */
.field__error { margin-top: 6px; font-size: 13px; color: #b00020; min-height: 18px; }
@keyframes neon-fade {
  0% {
    box-shadow:
      0 0 0 3px rgba(255,168,41,.18),
      0 0 8px rgba(255,168,41,.22),
      0 0 18px rgba(255,168,41,.18),
      0 0 34px rgba(255,168,41,.14);
  }
  100% {
    box-shadow:
      0 0 0 3px rgba(255,168,41,.26),
      0 0 12px rgba(255,168,41,.30),
      0 0 24px rgba(255,168,41,.24),
      0 0 44px rgba(255,168,41,.18);
  }
}

@keyframes text-neon-fade {
  0% {
    text-shadow:
      0 0 3px rgba(255,168,41,.24),
      0 0 8px rgba(255,168,41,.18);
  }
  100% {
    text-shadow:
      0 0 4px rgba(255,168,41,.36),
      0 0 12px rgba(255,168,41,.28);
  }
}
/* Hover grow effects */
.btn.btn--ghost {
  transition: transform 200ms ease;
}
.btn.btn--ghost:hover,
.btn.btn--ghost:focus-visible {
  transform: scale(1.03);
}

.grow-hover {
  transition: transform 200ms ease;
}
.grow-hover:hover {
  transform: scale(1.03);
}
/* Title hover grow effect */
.tech__title {
  transition: transform 200ms ease;
  will-change: transform;
}
.tech__title:hover,
.tech__title:focus-visible {
  transform: scale(1.02);
}
