/* ==========================================================================
   الموجة العالية: الطبقة البريميوم
   Direction: calm deep-navy canvas, one action color (logo orange) with a soft
   glow, chrome headline, centered section heads, hairline cards with large
   radii, glass header. Loads after style.css and only restyles; no markup
   changes. Remove its enqueue in inc/setup.php to return to the original look.
   ========================================================================== */

:root {
  --canvas: #F4F7FB;
  --surface: #FFFFFF;
  --surface-2: #EEF3F8;
  --text: #0B1530;
  --muted: #56647F;
  --line: rgba(11, 21, 48, 0.09);
  --line-strong: rgba(11, 21, 48, 0.18);

  --font-display: var(--font-body);

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --header-bg: rgba(244, 247, 251, 0.82);
  --chrome: linear-gradient(180deg, #13244F 0%, #0B1530 55%, #3A5486 100%);
  --hero-glow-1: rgba(31, 127, 208, 0.22);
  --hero-glow-2: rgba(242, 138, 26, 0.10);
  --glow-accent: 0 16px 40px -18px rgba(242, 138, 26, 0.75);
  --card-shadow: 0 1px 2px rgba(11, 21, 48, 0.04), 0 10px 30px -18px rgba(11, 21, 48, 0.22);
  --shadow: var(--card-shadow);
  --shadow-pop: 0 2px 6px rgba(11, 21, 48, 0.05), 0 36px 80px -40px rgba(11, 21, 48, 0.45);

  --text-h1: clamp(2.25rem, 3.6vw + 1.2rem, 4rem);
  --text-h2: clamp(1.75rem, 1.6vw + 1.2rem, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #060A1A;
    --surface: #0B1226;
    --surface-2: #111A34;
    --text: #EEF2FA;
    --muted: #8E9BB8;
    --line: rgba(150, 170, 220, 0.13);
    --line-strong: rgba(150, 170, 220, 0.24);
    --band: #060A1A;
    --band-2: #0B1226;
    --band-line: rgba(150, 170, 220, 0.14);
    --header-bg: rgba(6, 10, 26, 0.8);
    --chrome: linear-gradient(180deg, #FFFFFF 0%, #DCE4F2 42%, #8E9EBC 54%, #EEF2FA 100%);
    --hero-glow-1: rgba(36, 64, 184, 0.45);
    --hero-glow-2: rgba(242, 138, 26, 0.08);
    --card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    --shadow: var(--card-shadow);
    --shadow-pop: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 40px 90px -45px rgba(0, 0, 0, 0.9);
  }
}
:root[data-theme="dark"] {
  --canvas: #060A1A;
  --surface: #0B1226;
  --surface-2: #111A34;
  --text: #EEF2FA;
  --muted: #8E9BB8;
  --line: rgba(150, 170, 220, 0.13);
  --line-strong: rgba(150, 170, 220, 0.24);
  --band: #060A1A;
  --band-2: #0B1226;
  --band-line: rgba(150, 170, 220, 0.14);
  --header-bg: rgba(6, 10, 26, 0.8);
  --chrome: linear-gradient(180deg, #FFFFFF 0%, #DCE4F2 42%, #8E9EBC 54%, #EEF2FA 100%);
  --hero-glow-1: rgba(36, 64, 184, 0.45);
  --hero-glow-2: rgba(242, 138, 26, 0.08);
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --shadow: var(--card-shadow);
  --shadow-pop: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 40px 90px -45px rgba(0, 0, 0, 0.9);
}

body {
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
h1, h2, h3 { font-weight: 700; }
h1 { line-height: 1.15; }

/* --------------------------------------------------------------------------
   Buttons: solid, soft glow, rounded (not pill)
   -------------------------------------------------------------------------- */
.btn {
  min-height: 52px;
  padding: 0 var(--s6);
  border-radius: var(--radius);
  font-weight: 700;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 200ms var(--ease-out),
    background-color 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    color 200ms var(--ease-out);
}
.btn--primary { box-shadow: var(--glow-accent); }
.btn--outline { background: transparent; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost:hover { border-color: var(--accent); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
}
.btn:active { transform: none; }

.icon-btn,
.menu-btn { border-radius: 12px; background: transparent; }
.icon-btn:hover,
.menu-btn:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------------------
   Header: glass
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--header-bg);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.brand__name { font-weight: 700; }
@media (min-width: 1024px) {
  .nav__link,
  .nav__trigger { color: var(--muted); border-radius: 10px; transition: color 150ms var(--ease-out), background-color 150ms var(--ease-out); }
  .nav__link:hover,
  .nav__trigger:hover,
  .nav__item.is-open .nav__trigger { background: none; color: var(--text); }
  .nav__link[aria-current="page"] { box-shadow: none; border-radius: 10px; color: var(--accent); }
  .submenu { border-radius: var(--radius-lg); }
}
.action-bar {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.drawer { background: var(--canvas); }

/* --------------------------------------------------------------------------
   Hero: blends into the page with a soft top glow, chrome headline
   -------------------------------------------------------------------------- */
.hero.on-band {
  --band-text: var(--text);
  --band-muted: var(--muted);
  --band-line: var(--line-strong);
  --link: var(--text);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(70% 60% at 50% -10%, var(--hero-glow-1), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, var(--hero-glow-2), transparent 70%),
    var(--canvas);
}
.hero h1 {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { color: var(--muted); }
.hero__areas .icon { color: var(--water); }

/* Feature strip, like a trust bar */
.hero__facts {
  margin-top: var(--s10);
  padding: var(--s4) var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--card-shadow);
  color: var(--text);
}
.hero__facts li { align-items: center; font-weight: 500; }
.hero__facts .icon {
  width: 30px;
  height: 30px;
  margin-top: 0;
  padding: 7px;
  border-radius: 10px;
  background: rgba(242, 138, 26, 0.12);
}

.scanner__frame {
  padding: var(--s3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: #050818;
  box-shadow: var(--shadow-pop), 0 30px 80px -40px rgba(31, 127, 208, 0.6);
}
.scanner__screen { border-radius: calc(var(--radius-xl) - 10px); }
.scanner__caption { color: var(--muted); }

/* --------------------------------------------------------------------------
   Section heads: centered, accent eyebrow line
   -------------------------------------------------------------------------- */
.section-head { justify-content: center; text-align: center; }
.section-head__text { justify-items: center; margin-inline: auto; }
.section-head h2::before,
.signs__intro h2::before,
.about__text h2::before,
.faq__intro h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: var(--s4);
  border-radius: 3px;
  background: var(--accent);
}
.section-head h2::before { margin-inline: auto; }

.section--surface { background: var(--surface); border-block-color: var(--line); }

/* --------------------------------------------------------------------------
   Cards: hairline border, large radius, accent border + glow on hover
   -------------------------------------------------------------------------- */
.svc,
.project,
.signs,
.areas,
.faq__list,
.panel,
.toc,
.tool,
.facts,
.reason {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}
.svc,
.project,
.reason {
  transition:
    transform 300ms var(--ease-out),
    border-color 300ms var(--ease-out),
    box-shadow 300ms var(--ease-out);
}
.svc__media img,
.project__media img { transition: transform 700ms var(--ease-out); }
@media (hover: hover) {
  .svc:hover,
  .project:hover,
  .reason:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    box-shadow: var(--shadow-pop);
  }
  .svc:hover .svc__media img,
  .project:hover .project__media img { transform: scale(1.05); }
}
.svc__more { color: var(--accent); }
.svc__more .icon { transition: transform 200ms var(--ease-out); }
.svc:hover .svc__more .icon { transform: translateX(-4px); }
[dir="ltr"] .svc:hover .svc__more .icon { transform: translateX(4px); }

.svc--featured {
  border: 1px solid var(--band-line);
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(36, 64, 184, 0.45), transparent 70%),
    #070B1E;
}
.svc-icon,
.reason__icon,
.tool .reason__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--water-soft);
  color: var(--water);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--water) 25%, transparent);
}
.svc-icon { color: #7CC0F5; }

.link-chip { border-color: var(--line-strong); }
.link-chip:hover { border-color: var(--accent); color: var(--accent); }
.on-band .link-chip:hover { color: var(--band-text); }

.reason {
  padding: var(--s6);
  border: 1px solid var(--line);
  background: var(--surface);
}

/* Process: big numbers like 01 / 02 / 03 */
.step__num {
  display: block;
  direction: ltr;
  white-space: nowrap;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--accent);
  font: 700 2.5rem / 1 var(--font-body);
}
.step__num::before { content: "0"; }
.step { padding-inline-start: 64px; }
.step:not(:last-child)::before { display: none; }
@media (min-width: 1024px) {
  .step {
    padding: var(--s6);
    padding-top: 88px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--canvas);
  }
  .step__num { top: var(--s6); inset-inline-start: var(--s6); }
}

/* Signs checker */
.signs__list { border-radius: var(--radius); }
.check:has(input:checked) { background: var(--water-soft); }
.signs__result { border-radius: var(--radius); }

/* Areas */
.area { transition: background-color 150ms var(--ease-out); }
.area:hover { background: var(--surface-2); }

/* FAQ */
.faq__item summary { font-weight: 600; }
.faq__item summary .icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.faq__item[open] summary .icon { border-color: var(--accent); color: var(--accent); }

/* Form */
.field input,
.field select,
.field textarea { border-radius: var(--radius-sm); background: var(--canvas); border-color: var(--line-strong); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(242, 138, 26, 0.15);
  outline: none;
}

/* Contact card + CTA band */
.contact-card,
.cta-band {
  border: 1px solid var(--band-line);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(36, 64, 184, 0.45), transparent 70%),
    #070B1E;
}
.contact-list .icon { color: var(--accent); }
.icon-link { border-radius: 12px; }

/* Footer: darker than the page, like a base plate */
.site-footer { background: #040714; border-top: 1px solid var(--band-line); }

.page-hero__media { border-radius: var(--radius-xl); box-shadow: var(--shadow-pop); }

/* --------------------------------------------------------------------------
   Scroll reveal (CSS only, where scroll-driven animations exist)
   -------------------------------------------------------------------------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head,
    .svc,
    .signs,
    .step,
    .reason,
    .projects > li,
    .faq__list,
    .panel,
    .contact-card {
      animation: hw-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}
@keyframes hw-reveal {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .svc:hover, .project:hover, .reason:hover { transform: none; }
}
