/* ============================================================
   MAQAYES ALOLA CONTRACTING — مقاييس الأولى للمقاولات
   Stylesheet — Swiss Modernist grid, bilingual AR/EN (RTL/LTR)

   Brand palette
     Structure Gray — الرمادي الفحمي   #434243
     Finish Orange  — البرتقالي الترابي #BA583E
     Neutral Base   — الكريمي المحايد   #F4F2ED

   Written with CSS logical properties so a single sheet serves
   both directions. No framework, no CSS build step.
   ============================================================ */

/* ---------------------------------------------------------
   1. TOKENS
--------------------------------------------------------- */
:root {
  /* Brand */
  --gray:        #434243;
  --orange:      #BA583E;
  --base:        #F4F2ED;

  /* Derived */
  --ink:         #2A292A;
  --gray-2:      #5B595B;
  --orange-dk:   #97442E;
  /* Used only on the dark surfaces (gray/ink). Lightened from #D2795E so
     small text such as the stat superscripts clears 4.5:1 on --gray. */
  --orange-lt:   #E8A078;
  --orange-tint: #F7EDE9;
  --base-2:      #EAE6DE;
  --white:       #FFFFFF;

  /* Text */
  --text:        #434243;
  --text-mute:   #6B696C;
  --text-invert: #FFFFFF;
  --text-invert-mute: rgba(255,255,255,.72);

  /* Lines & surfaces */
  --border:      #DEDAD2;
  --border-str:  #C9C3B8;
  --surface:     #FFFFFF;
  --surface-alt: var(--base);

  /* Type */
  --font: 'Cairo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --fs-xs:   .8125rem;   /* 13 */
  --fs-sm:   .9375rem;   /* 15 */
  --fs-base: 1rem;       /* 16 */
  --fs-lg:   1.125rem;   /* 18 */
  --fs-xl:   1.3125rem;  /* 21 */
  --fs-h3:   clamp(1.15rem, 1.6vw, 1.4rem);
  --fs-h2:   clamp(1.7rem, 3.2vw, 2.55rem);
  --fs-h1:   clamp(2.1rem, 5.4vw, 4rem);

  /* Spacing — 8px modular scale */
  --s-1: 8px;   --s-2: 16px;  --s-3: 24px;  --s-4: 32px;
  --s-5: 40px;  --s-6: 56px;  --s-7: 72px;  --s-8: 96px;  --s-9: 128px;

  /* Radius, shadow, motion */
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(42,41,42,.06), 0 2px 8px rgba(42,41,42,.05);
  --shadow:    0 4px 12px rgba(42,41,42,.07), 0 12px 32px rgba(42,41,42,.08);
  --shadow-lg: 0 8px 24px rgba(42,41,42,.10), 0 24px 64px rgba(42,41,42,.12);
  --ease: cubic-bezier(.22,.61,.36,1);
  --t-fast: .16s var(--ease);
  --t:      .26s var(--ease);
  --t-slow: .5s  var(--ease);

  --nav-h: 78px;
  --maxw: 1240px;
}

/* ---------------------------------------------------------
   2. RESET & BASE
--------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; color: var(--ink); text-wrap: balance; }

/* Arabic set in Cairo needs more leading than Latin at the same size —
   at display sizes 1.25 lets the lines collide. */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 { line-height: 1.45; }
p { text-wrap: pretty; }
strong, b { font-weight: 700; color: var(--ink); }

/* Numerals stay Latin in Arabic mode — clearer for phones, dates, stats */
.num, time, tel, [dir="rtl"] .num { font-variant-numeric: lining-nums; unicode-bidi: plaintext; }

::selection { background: var(--orange); color: #fff; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: var(--s-2);
  z-index: 2000;
  background: var(--orange);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r) var(--r);
  font-weight: 700;
  transition: inset-block-start var(--t);
}
.skip-link:focus { inset-block-start: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------------------------------------------------------
   3. LAYOUT PRIMITIVES
--------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-3);
}

.section { padding-block: clamp(56px, 9vw, 112px); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }
.section--alt  { background: var(--base); }
.section--ink  { background: var(--gray); color: var(--text-invert); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

.section-head { margin-block-end: var(--s-6); max-width: 720px; }
/* When a heading block is the whole section, its trailing margin just doubles
   the section padding — drop it. */
.section-head:last-child { margin-block-end: 0; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-block-end: var(--s-2);
}
.eyebrow::before {
  content: "";
  inline-size: 28px;
  block-size: 2px;
  background: var(--orange);
  flex: none;
}
.section-head--center .eyebrow::after {
  content: "";
  inline-size: 28px;
  block-size: 2px;
  background: var(--orange);
  flex: none;
}
.section--ink .eyebrow { color: var(--orange-lt); }
.section--ink .eyebrow::before, .section--ink .eyebrow::after { background: var(--orange-lt); }

.section-title { font-size: var(--fs-h2); letter-spacing: -.01em; }
.section-title em { font-style: normal; color: var(--orange); }

.lede {
  font-size: var(--fs-lg);
  color: var(--text-mute);
  line-height: 1.85;
  margin-block-start: var(--s-2);
  max-width: 68ch;
}
.section-head--center .lede { margin-inline: auto; }
.section--ink .lede { color: var(--text-invert-mute); }

.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
/* Hold three per row on desktop. Without this, auto-fit fits a fourth card at
   wide widths and the 5 services + CTA break as 4 + 2 instead of 3 + 3. */
@media (min-width: 901px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
/* Four-up blocks stay on a single line on desktop rather than falling to 2×2 */
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------------
   4. BUTTONS
--------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-block-size: 48px;
  padding: 13px 28px;
  border-radius: var(--r);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  border: 2px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t),
              transform var(--t-fast), box-shadow var(--t);
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { inline-size: 18px; block-size: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dk); box-shadow: 0 10px 26px rgba(186,88,62,.34); }

.btn--dark { background: var(--gray); color: #fff; }
.btn--dark:hover { background: var(--ink); box-shadow: var(--shadow); }

.btn--ghost { border-color: var(--border-str); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-tint); }

.btn--onDark { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn--onDark:hover { background: #fff; color: var(--gray); border-color: #fff; }

/* زر الحاسبة في الهيرو — ثالث إجراء، متميّز عن الزرّين الآخرين:
   ليس برتقالياً صلباً كالأساسي، ولا أبيض الحدّ كالثانوي. */
.btn--calc {
  border-color: var(--orange-lt);
  color: #fff;
  background: rgba(186,88,62,.20);
  backdrop-filter: blur(6px);
}
.btn--calc svg { color: var(--orange-lt); transition: color var(--t); }
.btn--calc:hover {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 10px 26px rgba(186,88,62,.34);
}
.btn--calc:hover svg { color: #fff; }

.btn--sm { min-block-size: 40px; padding: 9px 18px; font-size: var(--fs-xs); }
.btn--block { inline-size: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* Directional arrow: flips automatically with document direction */
.i-arrow { transition: transform var(--t); }
[dir="rtl"] .i-arrow { transform: scaleX(-1); }
.btn:hover .i-arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .i-arrow { transform: scaleX(-1) translateX(4px); }

/* ---------------------------------------------------------
   5. NAVBAR
--------------------------------------------------------- */
#navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--t), box-shadow var(--t), padding var(--t);
  padding-block: 14px;
}
#navbar.is-solid {
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--border), 0 6px 24px rgba(42,41,42,.07);
  padding-block: 8px;
}
/* Inner pages: the bar is always solid and sticks under the scroll */
body.page--inner #navbar {
  position: sticky;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--border), 0 6px 24px rgba(42,41,42,.07);
  padding-block: 8px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.nav-logo { flex: none; display: block; }
.nav-logo img {
  block-size: 58px;
  inline-size: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--t);
}
#navbar.is-solid .nav-logo img,
body.page--inner .nav-logo img { filter: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255,255,255,.92);
  border-radius: var(--r-sm);
  transition: color var(--t-fast);
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset-block-end: 2px;
  inset-inline-start: 14px;
  inline-size: 0;
  block-size: 2px;
  background: var(--orange);
  transition: inline-size var(--t);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { inline-size: calc(100% - 28px); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }

#navbar.is-solid .nav-links a,
body.page--inner .nav-links a { color: var(--gray-2); }
#navbar.is-solid .nav-links a:hover,
#navbar.is-solid .nav-links a[aria-current="page"],
body.page--inner .nav-links a:hover,
body.page--inner .nav-links a[aria-current="page"] { color: var(--orange); }

/* رابط الحاسبة في القائمة — أيقونة + نص ليكون ملحوظاً بين الروابط */
.nav-links .nav-calc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-calc svg {
  inline-size: 17px;
  block-size: 17px;
  flex: none;
  color: var(--orange-lt);
  transition: color var(--t-fast);
}
#navbar.is-solid .nav-calc svg,
body.page--inner .nav-calc svg { color: var(--orange); }

.nav-links .nav-cta {
  background: var(--orange);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: var(--r);
  margin-inline-start: var(--s-1);
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--orange-dk); }

.nav-right { display: flex; align-items: center; gap: var(--s-1); }

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 999px;
  overflow: hidden;
  flex: none;
}
#navbar.is-solid .lang-switch,
body.page--inner .lang-switch { border-color: var(--border-str); }

.lang-switch button {
  min-inline-size: 42px;
  min-block-size: 34px;
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .04em;
  color: rgba(255,255,255,.85);
  transition: background var(--t-fast), color var(--t-fast);
}
#navbar.is-solid .lang-switch button,
body.page--inner .lang-switch button { color: var(--text-mute); }

.lang-switch button.is-active { background: var(--orange); color: #fff !important; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  inline-size: 46px;
  block-size: 46px;
  border-radius: var(--r-sm);
  position: relative;
}
.nav-toggle span {
  position: absolute;
  inset-inline: 11px;
  block-size: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast), background var(--t);
}
.nav-toggle span:nth-child(1) { inset-block-start: 16px; }
.nav-toggle span:nth-child(2) { inset-block-start: 22px; }
.nav-toggle span:nth-child(3) { inset-block-start: 28px; }
#navbar.is-solid .nav-toggle span,
body.page--inner .nav-toggle span { background: var(--gray); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------
   6. HERO — animated Riyadh skyline
--------------------------------------------------------- */
.hero {
  position: relative;
  min-block-size: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0E1B2A;
  isolation: isolate;
}

.hero .container { position: relative; z-index: 5; padding-block: calc(var(--nav-h) + 40px) 140px; }

/* --- Sky --- */
.sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 78% 88%, #E8A56B 0%, rgba(232,165,107,0) 55%),
    radial-gradient(90% 60% at 78% 92%, #D9714A 0%, rgba(217,113,74,0) 45%),
    linear-gradient(180deg, #101E31 0%, #22364F 34%, #4A5470 58%, #93697A 76%, #D08863 92%, #E9A972 100%);
}

/* Sun sinking behind the skyline */
.sun {
  position: absolute;
  inset-inline-end: 18%;
  inset-block-end: 20%;
  inline-size: clamp(120px, 16vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #FFD9A3 0%, #F5A863 42%, rgba(214,124,79,.55) 62%, rgba(214,124,79,0) 72%);
  filter: blur(2px);
  z-index: 1;
  animation: sunPulse 9s var(--ease) infinite alternate;
}
@keyframes sunPulse {
  from { opacity: .82; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.06); }
}

/* Stars — only in the upper band */
.stars {
  position: absolute;
  inset-block: 0 55%;
  inset-inline: 0;
  z-index: 1;
  opacity: .75;
}
.stars i {
  position: absolute;
  inline-size: 2px;
  block-size: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: .1;
  animation: twinkle 5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .12; }
  50%      { opacity: .85; }
}

/* Haze bands drifting across — the Riyadh evening dust layer */
.haze {
  position: absolute;
  inset-inline: -30%;
  block-size: 120px;
  z-index: 3;
  background: linear-gradient(90deg, rgba(255,214,170,0) 0%, rgba(255,206,158,.16) 35%, rgba(255,206,158,.2) 55%, rgba(255,214,170,0) 100%);
  filter: blur(22px);
  pointer-events: none;
}
.haze--1 { inset-block-end: 30%; animation: drift 46s linear infinite; }
.haze--2 { inset-block-end: 19%; block-size: 90px; opacity: .7; animation: drift 68s linear infinite reverse; }
@keyframes drift {
  from { transform: translateX(-12%); }
  to   { transform: translateX(12%); }
}

/* Skyline SVG layers */
/* Heights track each layer's own viewBox ratio, so at desktop widths the
   art fits exactly; below that `slice` crops the edges instead of shrinking
   the towers into invisibility. */
.skyline {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 2;
  inline-size: 100%;
  display: block;
  will-change: transform;
}
.skyline--far  { opacity: .45; z-index: 2; block-size: clamp(110px, 20.8vw, 380px); }
.skyline--mid  { opacity: .78; z-index: 3; block-size: clamp(130px, 23.6vw, 430px); }
.skyline--near { opacity: 1;   z-index: 4; block-size: clamp(165px, 32vw, 560px); }

/* Lit windows */
.win { fill: #FFC98A; opacity: 0; animation: winOn 1s ease forwards; }
@keyframes winOn { to { opacity: .85; } }
.win--flicker { animation: winOn 1s ease forwards, winFlicker 7s 2s ease-in-out infinite; }
@keyframes winFlicker {
  0%, 44%, 100% { opacity: .85; }
  46%, 52%      { opacity: .25; }
  58%           { opacity: .8; }
}

/* Aircraft warning lights on the tall towers */
.beacon { fill: #FF5B4A; animation: beacon 2.6s ease-in-out infinite; }
@keyframes beacon {
  0%, 100% { opacity: .15; }
  50%      { opacity: 1; }
}

/* Ground glow where the city meets the horizon */
.ground-glow {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  block-size: 26%;
  z-index: 4;
  background: linear-gradient(0deg, rgba(186,88,62,.28) 0%, rgba(186,88,62,0) 100%);
  pointer-events: none;
}

/* Scrim so headline text always clears 4.5:1 over the sky */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(
    to bottom,
    rgba(14,22,34,.72) 0%,
    rgba(14,22,34,.52) 38%,
    rgba(14,22,34,.28) 66%,
    rgba(14,22,34,.42) 100%);
  pointer-events: none;
}
[dir="rtl"] .hero-scrim {
  background: linear-gradient(
      to left, rgba(14,22,34,.68) 0%, rgba(14,22,34,.18) 62%, rgba(14,22,34,0) 100%),
    linear-gradient(to bottom, rgba(14,22,34,.55) 0%, rgba(14,22,34,.28) 45%, rgba(14,22,34,.45) 100%);
}
[dir="ltr"] .hero-scrim {
  background: linear-gradient(
      to right, rgba(14,22,34,.68) 0%, rgba(14,22,34,.18) 62%, rgba(14,22,34,0) 100%),
    linear-gradient(to bottom, rgba(14,22,34,.55) 0%, rgba(14,22,34,.28) 45%, rgba(14,22,34,.45) 100%);
}

/* --- Hero content --- */
.hero-content { max-width: 780px; color: #fff; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  margin-block-end: var(--s-3);
}
.hero-tag .dot {
  inline-size: 8px; block-size: 8px; border-radius: 50%;
  background: var(--orange-lt);
  box-shadow: 0 0 0 0 rgba(210,121,94,.7);
  animation: ping 2.4s ease-out infinite;
  flex: none;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(210,121,94,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(210,121,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(210,121,94,0); }
}

.hero-title {
  font-size: var(--fs-h1);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.015em;
  line-height: 1.12;
  text-shadow: 0 2px 24px rgba(10,16,26,.5);
  margin-block-end: var(--s-3);
}
.hero-title em { font-style: normal; color: #F0A184; display: block; }

.hero-sub {
  font-size: clamp(1rem, 1.6vw, var(--fs-lg));
  color: rgba(255,255,255,.9);
  line-height: 1.85;
  max-width: 60ch;
  margin-block-end: var(--s-4);
  text-shadow: 0 1px 12px rgba(10,16,26,.45);
}

/* Hero facts strip */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  margin-block-start: var(--s-6);
  padding-block-start: var(--s-4);
  border-block-start: 1px solid rgba(255,255,255,.2);
}
.hero-fact .n {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
.hero-fact .n sup { color: var(--orange-lt); font-size: .55em; inset-block-start: -.6em; }
.hero-fact .l { font-size: var(--fs-xs); color: rgba(255,255,255,.75); letter-spacing: .04em; }

/* Scroll hint */
.hero-scroll {
  position: absolute;
  inset-block-end: 28px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.hero-scroll .line {
  inline-size: 1px;
  block-size: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.7), rgba(255,255,255,0));
  animation: scrollLine 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Entrance choreography */
.hero-anim { opacity: 0; transform: translateY(22px); animation: heroIn .9s var(--ease) forwards; }
.hero-anim--1 { animation-delay: .1s; }
.hero-anim--2 { animation-delay: .24s; }
.hero-anim--3 { animation-delay: .38s; }
.hero-anim--4 { animation-delay: .52s; }
.hero-anim--5 { animation-delay: .66s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------
   7. PAGE HERO (inner pages)
--------------------------------------------------------- */
.page-hero {
  position: relative;
  background: var(--gray);
  color: #fff;
  padding-block: clamp(56px, 8vw, 92px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 120% at 85% 110%, rgba(186,88,62,.42) 0%, rgba(186,88,62,0) 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 72px);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  color: #fff;
  letter-spacing: -.01em;
  margin-block-end: 10px;
}
.page-hero p { color: rgba(255,255,255,.8); max-width: 62ch; font-size: var(--fs-lg); }

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.65);
  margin-block-end: var(--s-2);
}
.crumbs a:hover { color: var(--orange-lt); }
.crumbs svg { inline-size: 14px; block-size: 14px; flex: none; }
.crumbs .sep { opacity: .5; }
[dir="rtl"] .crumbs .sep { transform: scaleX(-1); }

/* ---------------------------------------------------------
   8. CARDS
--------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  block-size: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-str); }
.section--alt .card { background: #fff; }

.card-icon {
  inline-size: 54px;
  block-size: 54px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  background: var(--orange-tint);
  color: var(--orange);
  margin-block-end: var(--s-3);
  transition: background var(--t), color var(--t);
}
.card-icon svg { inline-size: 26px; block-size: 26px; }
.card:hover .card-icon { background: var(--orange); color: #fff; }

.card h3 { font-size: var(--fs-h3); margin-block-end: 10px; }
.card p { color: var(--text-mute); font-size: var(--fs-sm); line-height: 1.85; }

/* Service card with number */
.svc-card { padding-block-start: var(--s-5); }
.svc-num {
  position: absolute;
  inset-block-start: var(--s-3);
  inset-inline-end: var(--s-4);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--base-2);
  transition: color var(--t);
  pointer-events: none;
}
.card:hover .svc-num { color: var(--orange-tint); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--orange);
}
.card-link svg { inline-size: 16px; block-size: 16px; }
.card-link:hover { color: var(--orange-dk); }

/* Value card — flat, bordered, Swiss */
.value-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  background: #fff;
  border-top: 3px solid var(--orange);
  transition: transform var(--t), box-shadow var(--t);
  block-size: 100%;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card h3 { font-size: var(--fs-xl); margin-block-end: 8px; }
.value-card p { color: var(--text-mute); font-size: var(--fs-sm); }

/* ---------------------------------------------------------
   9. STATS
--------------------------------------------------------- */
.stats {
  background: var(--gray);
  color: #fff;
  padding-block: var(--s-6);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s-4);
  text-align: center;
}
.stat { padding-inline: var(--s-2); }
.stat .n {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  display: block;
}
.stat .n sup { color: var(--orange-lt); font-size: .5em; inset-block-start: -.7em; }
.stat .l {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.72);
  margin-block-start: 4px;
}

/* ---------------------------------------------------------
   10. SPLIT / MEDIA SECTIONS
--------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--base-2);
  box-shadow: var(--shadow);
}
.split-media img { inline-size: 100%; block-size: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.media-badge {
  position: absolute;
  inset-block-end: var(--s-3);
  inset-inline-start: var(--s-3);
  background: var(--orange);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.media-badge .n { font-size: 1.7rem; font-weight: 900; line-height: 1; display: block; }
.media-badge .l { font-size: var(--fs-xs); font-weight: 600; }

/* Feature list */
.feat-list { display: grid; gap: var(--s-3); margin-block: var(--s-4); }
.feat {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
}
.feat-icon {
  inline-size: 44px;
  block-size: 44px;
  border-radius: var(--r);
  background: var(--orange-tint);
  color: var(--orange);
  display: grid;
  place-items: center;
  flex: none;
}
.feat-icon svg { inline-size: 22px; block-size: 22px; }
.feat h4 { font-size: var(--fs-base); margin-block-end: 2px; }
.feat p { font-size: var(--fs-sm); color: var(--text-mute); line-height: 1.7; }

/* Checklist */
.checks { display: grid; gap: 12px; margin-block: var(--s-3); }
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-mute);
}
.checks svg { inline-size: 20px; block-size: 20px; color: var(--orange); flex: none; margin-block-start: 3px; }

/* ---------------------------------------------------------
   11. PROCESS / TIMELINE
--------------------------------------------------------- */
.process { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--s-3);
  padding-block: var(--s-4);
  border-block-end: 1px solid var(--border);
  align-items: start;
}
.step:last-child { border-block-end: none; }
.step-n {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--orange);
  opacity: .32;
  transition: opacity var(--t);
}
.step:hover .step-n { opacity: 1; }
.step h3 { font-size: var(--fs-xl); margin-block-end: 6px; }
.step p { color: var(--text-mute); font-size: var(--fs-sm); max-width: 78ch; }
.section--ink .step { border-color: rgba(255,255,255,.14); }
.section--ink .step p { color: var(--text-invert-mute); }
.section--ink .step-n { color: var(--orange-lt); }

/* ---------------------------------------------------------
   12. CEO MESSAGE
--------------------------------------------------------- */
.ceo-split {
  display: grid;
  grid-template-columns: minmax(230px, 330px) 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.ceo-portrait { position: relative; }
.ceo-portrait img {
  inline-size: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--r-lg);
  background: var(--base-2);
  box-shadow: var(--shadow);
}
.ceo-portrait figcaption {
  margin-block-start: var(--s-2);
  padding-inline-start: 14px;
  border-inline-start: 3px solid var(--orange);
}
.ceo-portrait figcaption strong { display: block; font-size: var(--fs-lg); color: var(--ink); line-height: 1.4; }
.ceo-portrait figcaption span { font-size: var(--fs-sm); color: var(--orange); font-weight: 600; }

.ceo {
  background: var(--base);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px);
  border-inline-start: 4px solid var(--orange);
  margin: 0;
}
.ceo-quote {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.95;
  color: var(--ink);
  font-weight: 500;
}
.ceo-quote p + p { margin-block-start: var(--s-2); }
.ceo-mark {
  inline-size: 46px; block-size: 46px;
  color: var(--orange);
  opacity: .5;
  margin-block-end: var(--s-2);
}
[dir="ltr"] .ceo-mark { transform: none; }
[dir="rtl"] .ceo-mark { transform: scaleX(-1); }
@media (max-width: 860px) {
  .ceo-split { grid-template-columns: 1fr; }
  .ceo-portrait { max-width: 320px; margin-inline: auto; }
}

/* ---------------------------------------------------------
   13. BLOG
--------------------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  block-size: 100%;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-str); }

.post-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.post-thumb svg { inline-size: 100%; block-size: 100%; }
.post-tag {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: 999px;
}
.post-body { padding: var(--s-3); display: flex; flex-direction: column; flex: 1; }
.post-meta {
  display: flex;
  gap: 14px;
  font-size: var(--fs-xs);
  color: var(--text-mute);
  margin-block-end: 10px;
}
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta svg { inline-size: 14px; block-size: 14px; }
.post-card h3 { font-size: var(--fs-xl); margin-block-end: 8px; }
.post-card h3 a:hover { color: var(--orange); }
.post-card p { font-size: var(--fs-sm); color: var(--text-mute); flex: 1; }
.post-card .card-link { margin-block-start: var(--s-2); }

/* Article body */
.article { max-width: 780px; margin-inline: auto; }
.article > * { margin-block-end: var(--s-3); }
.article h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-block-start: var(--s-6);
  padding-block-start: var(--s-1);
  border-block-start: 3px solid var(--orange);
  display: inline-block;
}
.article h3 { font-size: var(--fs-xl); margin-block-start: var(--s-4); }
.article p { font-size: var(--fs-lg); line-height: 1.95; color: var(--gray-2); }
.article ul, .article ol { margin-inline-start: var(--s-3); display: grid; gap: 10px; }
.article ul li { position: relative; padding-inline-start: 22px; color: var(--gray-2); }
.article ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .72em;
  inline-size: 7px; block-size: 7px;
  border-radius: 2px;
  background: var(--orange);
}
.article ol { list-style: decimal; }
.article ol li { color: var(--gray-2); padding-inline-start: 6px; }
.article ol li::marker { color: var(--orange); font-weight: 800; }
.article blockquote {
  border-inline-start: 4px solid var(--orange);
  background: var(--base);
  padding: var(--s-3);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: var(--fs-lg);
  color: var(--ink);
  font-weight: 500;
}
[dir="ltr"] .article blockquote { border-radius: 0 var(--r) var(--r) 0; }
[dir="rtl"] .article blockquote { border-radius: var(--r) 0 0 var(--r); }
.article table {
  inline-size: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.article th, .article td { padding: 12px 16px; text-align: start; border-block-end: 1px solid var(--border); }
.article th { background: var(--base); font-weight: 800; color: var(--ink); }
.article .table-wrap { overflow-x: auto; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  padding-block-end: var(--s-3);
  margin-block-end: var(--s-4);
  border-block-end: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-mute);
}
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta svg { inline-size: 16px; block-size: 16px; color: var(--orange); }

.toc {
  background: var(--base);
  border-radius: var(--r-lg);
  padding: var(--s-3);
  border: 1px solid var(--border);
}
.toc h2 {
  font-size: var(--fs-base) !important;
  border: none !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.toc ol { margin: 0; display: grid; gap: 8px; padding-inline-start: var(--s-2); }
.toc a { font-size: var(--fs-sm); color: var(--gray-2); font-weight: 600; }
.toc a:hover { color: var(--orange); }

/* ---------------------------------------------------------
   14. FAQ (accordion — SEO rich result)
--------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: #fff;
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.faq details[open] { border-color: var(--orange); box-shadow: var(--shadow-sm); }
.faq summary {
  padding: 18px var(--s-3);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-block-size: 56px;
  font-size: var(--fs-base);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  inline-size: 12px; block-size: 12px;
  border-inline-end: 2px solid var(--orange);
  border-block-end: 2px solid var(--orange);
  transform: rotate(45deg);
  flex: none;
  transition: transform var(--t);
  margin-block-start: -5px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-block-start: 4px; }
.faq .faq-a { padding: 0 var(--s-3) 20px; color: var(--text-mute); font-size: var(--fs-sm); line-height: 1.85; }

/* ---------------------------------------------------------
   15. CTA BANNER
--------------------------------------------------------- */
.cta {
  position: relative;
  background: var(--gray);
  color: #fff;
  text-align: center;
  padding-block: clamp(56px, 8vw, 92px);
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 100% at 50% 130%, rgba(186,88,62,.55) 0%, rgba(186,88,62,0) 65%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 22px);
}
.cta h2 { font-size: var(--fs-h2); color: #fff; margin-block-end: 12px; }
.cta p { color: rgba(255,255,255,.8); max-width: 60ch; margin: 0 auto var(--s-4); font-size: var(--fs-lg); }
.cta .btn-row { justify-content: center; }

/* ---------------------------------------------------------
   16. CONTACT
--------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-item {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  padding-block: var(--s-2);
  border-block-end: 1px solid var(--border);
}
.contact-item:last-of-type { border-block-end: none; }
.contact-ico {
  inline-size: 46px; block-size: 46px;
  border-radius: var(--r);
  background: var(--orange-tint);
  color: var(--orange);
  display: grid; place-items: center; flex: none;
  transition: background var(--t), color var(--t);
}
.contact-ico svg { inline-size: 22px; block-size: 22px; }
.contact-item:hover .contact-ico { background: var(--orange); color: #fff; }
.contact-item h3 { font-size: var(--fs-sm); color: var(--text-mute); font-weight: 700; margin-block-end: 2px; }
.contact-item a, .contact-item p { color: var(--ink); font-weight: 600; font-size: var(--fs-base); }
.contact-item a:hover { color: var(--orange); }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.field { margin-block-end: var(--s-2); }
.field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
  margin-block-end: 6px;
}
.field .req { color: var(--orange); }
.field input, .field select, .field textarea {
  inline-size: 100%;
  min-block-size: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--base);
  font-size: var(--fs-sm);
  color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-block-size: 130px; resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #A5A2A0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(186,88,62,.14);
}
.field .hint { font-size: var(--fs-xs); color: var(--text-mute); margin-block-start: 5px; }
.field .err { font-size: var(--fs-xs); color: #C0392B; margin-block-start: 5px; display: none; font-weight: 600; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #C0392B; background: #FDF3F2; }
.field.is-invalid .err { display: block; }

.form-status {
  margin-block-start: var(--s-2);
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: var(--fs-sm);
  font-weight: 600;
  display: none;
}
.form-status.is-ok   { display: block; background: #E9F5EE; color: #1E7A45; border: 1px solid #B9E0C8; }
.form-status.is-err  { display: block; background: #FDF0EE; color: #B03A28; border: 1px solid #F0CCC5; }

.map-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  block-size: 420px;
  background: var(--base-2);
}
.map-frame iframe { inline-size: 100%; block-size: 100%; border: 0; display: block; }

/* ---------------------------------------------------------
   17. FOOTER
--------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding-block: var(--s-7) var(--s-3);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: var(--s-5) var(--s-4);
  padding-block-end: var(--s-5);
  border-block-end: 1px solid rgba(255,255,255,.12);
}
.footer-brand img {
  block-size: 62px;
  inline-size: auto;
  filter: brightness(0) invert(1);
  margin-block-end: var(--s-2);
}
.footer-brand p { line-height: 1.85; max-width: 44ch; }
.footer h2 {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: #fff;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-block-end: var(--s-2);
}
.footer ul { display: grid; gap: 10px; }
.footer ul a:hover { color: var(--orange-lt); }
.footer-contact { display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { inline-size: 17px; block-size: 17px; color: var(--orange-lt); flex: none; margin-block-start: 5px; }
.footer-contact a:hover { color: var(--orange-lt); }

.socials { display: flex; gap: 10px; margin-block-start: var(--s-3); }
.socials a {
  inline-size: 40px; block-size: 40px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center;
  color: rgba(255,255,255,.8);
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t-fast);
}
.socials svg { inline-size: 18px; block-size: 18px; }
.socials a:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-2px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding-block-start: var(--s-3);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.5);
}
.footer-bottom a:hover { color: var(--orange-lt); }

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  z-index: 900;
  inline-size: 56px;
  block-size: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 26px rgba(37,211,102,.42);
  transition: transform var(--t);
}
.wa-float svg { inline-size: 28px; block-size: 28px; }
.wa-float:hover { transform: scale(1.08); }

/* ---------------------------------------------------------
   18. SCROLL REVEAL
--------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-1 { transition-delay: .08s; }
.reveal-2 { transition-delay: .16s; }
.reveal-3 { transition-delay: .24s; }
.reveal-4 { transition-delay: .32s; }

/* ---------------------------------------------------------
   19. RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }

  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset-block-start: 0;
    inset-inline-end: 0;
    inline-size: min(84vw, 340px);
    block-size: 100dvh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 96px var(--s-3) var(--s-4);
    box-shadow: -8px 0 40px rgba(42,41,42,.18);
    transform: translateX(105%);
    transition: transform .34s var(--ease);
    overflow-y: auto;
  }
  [dir="rtl"] .nav-links { transform: translateX(-105%); }
  .nav-links.is-open { transform: translateX(0) !important; }

  .nav-links a,
  #navbar.is-solid .nav-links a,
  body.page--inner .nav-links a {
    color: var(--ink);
    font-size: var(--fs-lg);
    padding: 14px 12px;
    border-block-end: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-links a::after { display: none; }
  /* الحاسبة inline-flex في سطح المكتب — تُملأ عرض الدرج ليتساوى الفاصل */
  .nav-links .nav-calc { display: flex; justify-content: flex-start; }
  .nav-links .nav-cta {
    margin-block-start: var(--s-2);
    margin-inline-start: 0;
    border-radius: var(--r);
    text-align: center;
    border: none;
    justify-content: center;
  }

  /* Toggle + language switch stay above the drawer panel */
  .nav-right { position: relative; z-index: 2; }
  .nav-logo  { position: relative; z-index: 2; }
  .nav-links { z-index: 1; }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20,19,20,.5);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t), visibility var(--t);
  }
  .nav-backdrop.is-on { opacity: 1; visibility: visible; }

  .hero { min-block-size: 92svh; }
  .hero-facts { gap: var(--s-3) var(--s-4); }
  .step { grid-template-columns: 60px 1fr; gap: var(--s-2); }
  .step-n { font-size: 1.8rem; }
}

@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
  .hero .container { padding-block: calc(var(--nav-h) + 28px) 120px; }
  .hero-scroll { display: none; }
  .map-frame { block-size: 320px; }
  .article p { font-size: var(--fs-base); }
  .wa-float { inline-size: 50px; block-size: 50px; inset-block-end: 16px; inset-inline-end: 16px; }
  .wa-float svg { inline-size: 25px; block-size: 25px; }
}

/* ---------------------------------------------------------
   20. MOTION / PRINT PREFERENCES
--------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-anim { opacity: 1 !important; transform: none !important; }
  .skyline { transform: none !important; }
}

@media print {
  #navbar, .hero-scroll, .wa-float, .cta, .nav-backdrop { display: none !important; }
  body { color: #000; }
  .hero { min-block-size: auto; background: #fff; }
  .sky, .skyline, .hero-scrim, .stars, .sun, .haze { display: none !important; }
  .hero-content, .hero-title, .hero-sub { color: #000 !important; text-shadow: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; }
}
