/* =====================================================================
   ARAQA – Construction & Contracting
   Colours are taken from the logo: charcoal #2D353E and amber #E0960E.
   Layout uses logical properties (inline-start / inline-end) so the same
   CSS works for English (LTR) and Arabic (RTL).
   ===================================================================== */

:root {
  --dark: #2D353E;
  --dark-2: #222930;
  --dark-3: #161B20;
  --amber: #E0960E;
  --amber-2: #F2A920;
  --amber-soft: rgba(224, 150, 14, .12);
  --light: #F4F5F7;
  --white: #FFFFFF;
  --text: #2D353E;
  --muted: #69727D;
  --line: #E3E6EA;

  --font-en: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(22, 27, 32, .35);
  --shadow-lg: 0 30px 80px -30px rgba(22, 27, 32, .5);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="ar"] body { font-family: var(--font-ar); font-size: 17px; }
/* Letter-spacing breaks the joining of Arabic letters */
html[lang="ar"] * { letter-spacing: 0 !important; }


/* Off-screen start positions of reveal animations must never widen the page */
main { overflow-x: hidden; overflow-x: clip; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 800; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.35; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }

.icon {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
html[dir="rtl"] .icon-dir { transform: scaleX(-1); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.skip-link {
  position: fixed; top: 12px; inset-inline-start: 12px; z-index: 1000;
  padding: 10px 18px; border-radius: 10px; background: var(--amber); color: var(--dark-3); font-weight: 700;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }
.icon-fill { fill: currentColor; stroke: none; }
address { font-style: normal; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--white); opacity: .18;
  transform: translateX(-101%) skewX(-20deg);
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateX(101%) skewX(-20deg); }
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .icon-dir { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .icon-dir { transform: scaleX(-1) translateX(4px); }

.btn-primary { background: var(--amber); color: var(--dark-3); box-shadow: 0 12px 30px -12px rgba(224, 150, 14, .8); }
.btn-primary:hover { background: var(--amber-2); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-3); box-shadow: var(--shadow); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before { content: ''; width: 34px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow-light { color: var(--amber-2); }
html[lang="ar"] .eyebrow { font-size: 15px; }

.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-title { font-size: clamp(30px, 4.2vw, 50px); letter-spacing: -.02em; color: var(--dark); margin-bottom: 18px; }
.section-title.light { color: var(--white); }
.section-sub { font-size: 18px; color: var(--muted); margin: 0; }
.section-sub.light { color: rgba(255, 255, 255, .7); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background-color .4s, box-shadow .4s, height .4s var(--ease);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.header.scrolled {
  --header-h: 70px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 10px 30px -20px rgba(22, 27, 32, .45);
}

.brand { display: flex; align-items: center; flex-shrink: 0; direction: ltr; }
.brand-light, .brand-dark { display: flex; align-items: center; gap: 10px; }
.brand-mark { height: 44px; width: auto; transition: height .4s var(--ease); }
.brand-word { height: 19px; width: auto; }
.brand-dark { display: none; }
.header.scrolled .brand-light { display: none; }
.header.scrolled .brand-dark { display: flex; }
.header.scrolled .brand-mark { height: 38px; }

.nav { display: flex; align-items: center; gap: 28px; margin-inline-start: auto; }
.nav ul { display: flex; gap: 6px; }
.nav-link {
  position: relative; display: block; padding: 8px 12px;
  font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .85);
  transition: color .3s;
}
html[lang="ar"] .nav-link { font-size: 16px; }
.nav-link::after {
  content: ''; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px;
  background: var(--amber); border-radius: 2px;
  transform: scaleX(0); transition: transform .35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.header.scrolled .nav-link { color: var(--dark); }
.header.scrolled .nav-link.active { color: var(--amber); }
.nav-cta { padding: 11px 22px; font-size: 14px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .35); background: transparent;
  color: var(--white); font-weight: 700; font-size: 14px; cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s;
}
.lang-toggle .icon { width: 18px; height: 18px; }
.lang-toggle[lang="ar"] span { font-family: var(--font-ar); font-size: 15px; }
.lang-toggle[lang="en"] span { font-family: var(--font-en); font-size: 14px; }
.lang-toggle:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.header.scrolled .lang-toggle { color: var(--dark); border-color: var(--line); }
.header.scrolled .lang-toggle:hover { border-color: var(--amber); color: var(--amber); background: transparent; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .12); color: var(--white); cursor: pointer;
  place-items: center;
}
.header.scrolled .menu-toggle { background: var(--light); color: var(--dark); }
.menu-toggle .icon-close { display: none; }
body.menu-open .menu-toggle .icon-open { display: none; }
body.menu-open .menu-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 120px;
  color: var(--white); overflow: hidden; isolation: isolate;
  background: var(--dark-3);
}
.hero-scene { position: absolute; inset: 0; z-index: -1; }
html[dir="rtl"] .hero-scene { transform: scaleX(-1); }
.hero-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 45% at 74% 66%, rgba(224, 150, 14, .38), transparent 70%),
    linear-gradient(180deg, #0F1317 0%, #1A2027 40%, #2C3138 62%, #4A3B22 78%, #1A1E22 100%);
}
.hero-stars {
  position: absolute; inset: -10% 0 40%;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 28% 12%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 44% 30%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 58% 8%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 70% 24%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 86% 14%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 92% 34%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 6% 42%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 36% 48%, rgba(255,255,255,.35), transparent);
  transform: translate3d(0, var(--sy, 0), 0);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .55; } }

.hero-layer {
  position: absolute; inset: 0 -40px -60px; width: calc(100% + 80px); height: calc(100% + 60px); max-width: none;
  transform: translate3d(var(--mx, 0px), calc(var(--sy, 0px) + var(--my, 0px)), 0);
  transition: transform .25s linear;
  will-change: transform;
}
.road-dash { animation: roadDash 1.1s linear infinite; }
@keyframes roadDash { to { stroke-dashoffset: -56; } }

.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 19, 23, .92) 0%, rgba(15, 19, 23, .65) 38%, rgba(15, 19, 23, 0) 70%),
    linear-gradient(0deg, rgba(15, 19, 23, .55), transparent 30%);
}

.hero-content { position: relative; will-change: transform, opacity; }
.hero-content > * { max-width: 640px; }
.hero-content > .hero-title { max-width: 860px; }
.hero-kicker {
  align-items: flex-start; max-width: 620px;
  font-size: 14px; line-height: 1.55; letter-spacing: .06em; text-transform: none; font-weight: 700;
}
.hero-kicker::before { margin-top: .75em; flex-shrink: 0; }
html[lang="ar"] .hero-kicker { font-size: 16px; }
html.js .hero-kicker, html.js .hero-title, html.js .hero-text, html.js .hero-actions, html.js .hero-badges {
  animation: heroIn 1s var(--ease) both;
}
html.js .hero-title { animation-delay: .08s; }
html.js .hero-text { animation-delay: .16s; }
html.js .hero-actions { animation-delay: .24s; }
html.js .hero-badges { animation-delay: .32s; }
@keyframes heroIn { from { transform: translateY(28px); } to { transform: none; } }
.hero-title {
  font-size: clamp(38px, 5.6vw, 76px); font-weight: 900;
  letter-spacing: -.03em; line-height: 1.04; margin-bottom: 24px;
}
html[lang="ar"] .hero-title { line-height: 1.25; font-size: clamp(40px, 6vw, 76px); }
.accent { color: var(--amber); position: relative; white-space: nowrap; }
.hero-text { font-size: clamp(16px, 1.5vw, 19px); color: rgba(255, 255, 255, .78); margin-bottom: 36px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.hero-badges li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.hero-badges .icon { width: 20px; height: 20px; color: var(--amber); }

.scroll-cue {
  position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.scroll-mouse { width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 14px; position: relative; }
.scroll-mouse::after {
  content: ''; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--amber); animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -64px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat { padding: 34px 28px; text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; inset-block: 28px; inset-inline-start: 0; width: 1px; background: var(--line); }
.stat strong { display: block; font-size: clamp(32px, 3.6vw, 46px); font-weight: 900; color: var(--dark); line-height: 1.1; direction: ltr; }
.stat > span { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
html[lang="ar"] .stat > span { font-size: 16px; }
.stat strong em { font-style: normal; color: var(--amber); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 100px); align-items: center; }
.about-visual { position: relative; padding: 40px 30px; }
.about-panel {
  position: relative; aspect-ratio: 4 / 4.4; border-radius: 28px; overflow: hidden;
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-3) 100%);
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
}
.about-grid-bg {
  position: absolute; inset: -20%;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.about-mark { position: relative; width: 58%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .4)); }
.about-stripe {
  position: absolute; inset-inline-end: -12%; bottom: -16%; width: 70%; height: 46%;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 22px, transparent 22px 44px);
  opacity: .14; transform: rotate(-8deg);
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 14px;
  padding: 16px 22px 16px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .96); box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
html[dir="rtl"] .float-card { padding: 16px 16px 16px 22px; }
.float-card strong { display: block; font-size: 16px; color: var(--dark); line-height: 1.3; }
.float-card span { font-size: 13px; color: var(--muted); line-height: 1.4; }
html[lang="ar"] .float-card span { font-size: 14px; }
.float-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--amber); color: var(--dark-3); flex-shrink: 0; }
.float-card-1 { top: 12%; inset-inline-start: 0; }
.float-card-2 { bottom: 10%; inset-inline-end: 0; }
.float-card-2 .float-icon { background: var(--dark); color: var(--amber); }

.about-content p { color: var(--muted); font-size: 17px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 30px 0 38px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; font-size: 15px; color: var(--dark); line-height: 1.5; }
.check-list .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--amber-soft); color: var(--amber); stroke-width: 3; }

/* ---------- Services ---------- */
.services { background: var(--light); }
.services::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(45, 53, 62, .08) 1px, transparent 1px);
  background-size: 26px 26px; pointer-events: none;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.services-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%;
  position: relative; padding: 34px 28px 30px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .25s ease-out, box-shadow .4s var(--ease), border-color .4s, opacity .9s var(--ease), translate .9s var(--ease);
  overflow: hidden; isolation: isolate;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(380px circle at var(--gx) var(--gy), rgba(224, 150, 14, .14), transparent 60%);
  transition: opacity .4s;
}
.service-card::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 4px;
  background: var(--amber); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
html[dir="rtl"] .service-card::after { transform-origin: right; }
.service-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { transform: scaleX(1); }
.service-num { position: absolute; top: 22px; inset-inline-end: 24px; font-size: 44px; font-weight: 900; color: rgba(45, 53, 62, .06); line-height: 1; font-family: var(--font-en); }
.service-icon {
  display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 24px;
  border-radius: 16px; background: var(--dark); color: var(--amber);
  transition: transform .5s var(--ease), background-color .4s, color .4s;
}
.service-icon .icon { width: 30px; height: 30px; }
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.06); background: var(--amber); color: var(--dark-3); }
.service-card h3 { font-size: 19px; color: var(--dark); margin-bottom: 12px; }
.service-card p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.65; }

.service-card-featured { grid-column: span 2; background: linear-gradient(140deg, var(--dark) 0%, var(--dark-3) 100%); border-color: transparent; color: var(--white); }
.service-card-featured h3 { color: var(--white); font-size: 24px; }
.service-card-featured p { color: rgba(255, 255, 255, .72); font-size: 16px; max-width: 460px; }
.service-card-featured .service-icon { background: var(--amber); color: var(--dark-3); }
.service-card-featured .service-num { color: rgba(255, 255, 255, .07); font-size: 80px; }
.service-card-featured::before { background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(224, 150, 14, .22), transparent 60%); }

/* ---------- Parallax band ---------- */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(110px, 14vw, 180px) 0;
  background: var(--dark-3); color: var(--white);
}
.band-bg {
  position: absolute; inset: -40% 0; z-index: -2;
  background:
    radial-gradient(50% 60% at 80% 40%, rgba(224, 150, 14, .22), transparent 70%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, var(--dark-2), var(--dark-3));
}
.band-marquee {
  position: absolute; inset: 0; z-index: -1; direction: ltr;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  pointer-events: none;
}
.marquee-row {
  margin-left: -45vw; white-space: nowrap;
  font-size: clamp(56px, 9vw, 132px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em;
  color: rgba(255, 255, 255, .05);
  will-change: transform;
}
.marquee-row-outline { color: transparent; -webkit-text-stroke: 1.5px rgba(224, 150, 14, .2); margin-left: -110vw; }
html[lang="ar"] .marquee-row { font-family: var(--font-ar); }
.band-content { text-align: center; }
.band blockquote {
  margin: 0 auto; max-width: 900px;
  font-size: clamp(24px, 3.2vw, 40px); font-weight: 700; line-height: 1.35;
}
.band blockquote::before {
  content: ''; display: block; width: 64px; height: 6px; margin: 0 auto 30px; border-radius: 6px;
  background: linear-gradient(90deg, var(--amber) 0 40%, transparent 40% 60%, var(--amber) 60%);
}

/* ---------- Process ---------- */
.process-track { position: relative; }
.process-road { position: absolute; top: 14px; inset-inline: 6%; width: 88%; height: 90px; overflow: visible; }
html[dir="rtl"] .process-road { transform: scaleX(-1); }
.process-road path { fill: none; vector-effect: non-scaling-stroke; }
.process-road-base { stroke: var(--line); stroke-width: 14; stroke-linecap: round; }
.process-road-line { stroke: var(--amber); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.process-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: step; }
.step { text-align: center; padding: 0 8px; }
.step-icon {
  position: relative; display: grid; place-items: center;
  width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 50%;
  background: var(--white); color: var(--dark);
  box-shadow: 0 0 0 8px var(--white), var(--shadow);
  transition: transform .5s var(--ease), background-color .4s, color .4s;
}
.step-icon .icon { width: 34px; height: 34px; }
.step-icon b {
  position: absolute; top: -4px; inset-inline-end: -4px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--amber); color: var(--dark-3); font-size: 14px; font-family: var(--font-en);
}
.step:hover .step-icon { transform: translateY(-6px); background: var(--dark); color: var(--amber); }
.step h3 { font-size: 20px; color: var(--dark); margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Why ---------- */
.why { background: var(--dark); color: var(--white); overflow: hidden; isolation: isolate; }
.why-deco {
  position: absolute; z-index: -1; inset-inline-end: -10%; top: -20%;
  width: 60%; height: 140%;
  background: url('../img/logo-mark-white.webp') center / contain no-repeat;
  opacity: .04;
}
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-card {
  padding: 30px 26px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .4s, transform .4s var(--ease), border-color .4s;
}
.why-card:nth-child(even) { margin-top: 36px; }
.why-card:hover { background: rgba(255, 255, 255, .08); border-color: rgba(224, 150, 14, .5); transform: translateY(-6px); }
.why-card .icon { width: 36px; height: 36px; color: var(--amber); margin-bottom: 20px; }
.why-card h3 { font-size: 19px; margin-bottom: 10px; }
.why-card p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .65); }

/* ---------- Sectors ---------- */
.sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.sector-card {
  position: relative; min-height: 340px; padding: 34px 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--radius); overflow: hidden; isolation: isolate;
  color: var(--white); background: var(--dark-3);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.sector-bg {
  position: absolute; inset: -30% 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(22, 27, 32, .1) 0%, rgba(22, 27, 32, .92) 75%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 18px),
    radial-gradient(70% 50% at 30% 20%, rgba(224, 150, 14, .45), transparent 70%),
    linear-gradient(160deg, #3A444F, #1A1F25);
}
.sector-card:nth-child(2) .sector-bg { filter: hue-rotate(-12deg); }
.sector-card:nth-child(3) .sector-bg { filter: saturate(.7); }
.sector-card:nth-child(4) .sector-bg { filter: hue-rotate(10deg) brightness(1.05); }
.sector-card .icon {
  width: 56px; height: 56px; padding: 13px; margin-bottom: auto;
  border-radius: 14px; background: rgba(255, 255, 255, .1); color: var(--amber);
  backdrop-filter: blur(6px); transition: background-color .4s, color .4s;
}
.sector-card h3 { font-size: 21px; margin: 90px 0 10px; }
.sector-card p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 15px; }
.sector-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.sector-card:hover .icon { background: var(--amber); color: var(--dark-3); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(80px, 10vw, 120px); }
.cta-inner {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: clamp(40px, 5vw, 64px) clamp(28px, 5vw, 70px);
  border-radius: 28px; background: var(--amber); color: var(--dark-3);
}
.cta-inner h2 { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 8px; }
.cta-inner p { margin: 0; font-size: 17px; opacity: .85; }
.cta-road { position: absolute; inset-inline-end: 0; top: 0; z-index: -1; width: 420px; height: 100%; opacity: .25; }
html[dir="rtl"] .cta-road { transform: scaleX(-1); }
.cta-road path { fill: none; stroke: var(--dark); stroke-width: 26; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1EBE5A; box-shadow: 0 12px 30px -12px rgba(37, 211, 102, .8); }
.btn-whatsapp .icon { width: 20px; height: 20px; }

/* ---------- Contact ---------- */
.contact { background: var(--light); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.info-list { display: grid; gap: 14px; margin-top: 38px; }
.info-list li {
  display: flex; align-items: center; gap: 18px; padding: 18px 20px;
  border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease);
}
.info-list li:hover { border-color: var(--amber); transform: translateX(6px); }
html[dir="rtl"] .info-list li:hover { transform: translateX(-6px); }
.info-icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--dark); color: var(--amber); flex-shrink: 0; }
.info-list small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .info-list small { font-size: 14px; }
.info-list div > a, .info-list div > span { font-weight: 700; color: var(--dark); word-break: break-word; }
.info-list a:hover { color: var(--amber); }
.info-icon-wa { background: #25D366; color: #fff; }
.info-icon-wa .icon { width: 24px; height: 24px; }
html[dir="rtl"] .info-list a[dir="ltr"] { text-align: right; display: block; }

.contact-form {
  padding: clamp(28px, 4vw, 48px); border-radius: 24px;
  background: var(--white); box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--dark); }
html[lang="ar"] .field label { font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--light);
  font-size: 15px; transition: border-color .3s, background-color .3s, box-shadow .3s;
}
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D353E' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: right 16px center;
  padding-inline-end: 44px;
}
html[dir="rtl"] .field select { background-position: left 16px center; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); background: var(--white);
  box-shadow: 0 0 0 4px var(--amber-soft);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #D64545; background: #FFF6F6; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.form-status { margin: 16px 0 0; font-weight: 600; font-size: 15px; min-height: 1.6em; }
.form-status.is-success { color: #1F8A4C; }
.form-status.is-error { color: #C93636; }
.form-status:not(:empty) { padding: 12px 16px; border-radius: 10px; }
.form-status.is-success:not(:empty) { background: #EAF7EF; }
.form-status.is-error:not(:empty) { background: #FDEDED; }

/* ---------- Footer ---------- */
.footer { background: var(--dark-3); color: rgba(255, 255, 255, .7); padding-top: 80px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { width: 150px; height: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 320px; }
.footer-title { color: var(--white); font-size: 16px; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 30px; height: 3px; border-radius: 3px; background: var(--amber); }
.footer ul { display: grid; gap: 10px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--amber); }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--amber); }
.lang-toggle-footer { margin-top: 22px; }
.footer-social { display: flex !important; flex-wrap: wrap; gap: 8px 18px !important; margin-top: 18px; }
.footer-social a { font-weight: 600; color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; text-align: center; font-size: 14px; }
.footer-bottom p { margin: 0; }

.to-top {
  position: fixed; bottom: 98px; inset-inline-end: 29px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--amber); color: var(--dark-3); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity .4s, visibility .4s, transform .4s var(--ease), background-color .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--dark); color: var(--amber); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 95;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .65);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: waPulse 2.4s ease-out infinite;
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 16px 36px -8px rgba(37, 211, 102, .8); }
.wa-tip {
  position: absolute; inset-inline-end: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  padding: 8px 14px; border-radius: 10px; white-space: nowrap;
  background: var(--white); color: var(--dark); font-size: 14px; font-weight: 700; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; visibility: visible; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq-list { display: grid; gap: 14px; }
.faq-item {
  border-radius: var(--radius-sm); background: var(--light); border: 1px solid transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.faq-item[open] { background: var(--white); border-color: var(--line); box-shadow: var(--shadow); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: 17px; font-weight: 700; color: var(--dark); line-height: 1.45; }
.faq-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--white); color: var(--amber); transition: transform .35s var(--ease), background-color .3s, color .3s;
}
.faq-icon .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--amber); color: var(--dark-3); }
.faq-answer { padding: 0 24px 22px; }
.faq-answer p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Reveal animations ---------- */
html.js [data-reveal] {
  opacity: 0; translate: 0 40px;
  transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease);
}
html.js [data-reveal="start"] { translate: -60px 0; }
html.js[dir="rtl"] [data-reveal="start"] { translate: 60px 0; }
html.js [data-reveal="end"] { translate: 60px 0; }
html.js[dir="rtl"] [data-reveal="end"] { translate: -60px 0; }
html.js [data-reveal="zoom"] { translate: none; scale: .92; }
html.js [data-reveal].is-visible { opacity: 1; translate: 0 0; scale: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .menu-toggle { display: grid; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 30px;
    background: var(--dark-3);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav ul { flex-direction: column; align-items: center; gap: 4px; }
  .nav-link, .header.scrolled .nav-link { font-size: 24px; color: var(--white); padding: 10px 20px; }
  html[lang="ar"] .nav-link { font-size: 26px; }
  .nav-link::after { bottom: 4px; inset-inline: 20px; }
  .nav-cta { font-size: 16px; padding: 14px 30px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  body.menu-open .header { background: transparent; box-shadow: none; backdrop-filter: none; }
  body.menu-open .header .brand-light { display: flex; }
  body.menu-open .header .brand-dark { display: none; }
  body.menu-open .lang-toggle, body.menu-open .menu-toggle { color: var(--white); border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); }
  .header-actions { margin-inline-start: auto; }

  .about-grid, .why-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .about-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .why-head { text-align: center; }
  .why-head .eyebrow { justify-content: center; }
  .process-road { display: none; }
  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .hero-shade { background: linear-gradient(90deg, rgba(15, 19, 23, .9), rgba(15, 19, 23, .5)), linear-gradient(0deg, rgba(15, 19, 23, .6), transparent 40%); }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .container { width: min(1240px, 100% - 36px); }
  .brand-mark { height: 38px; }
  .brand-word { height: 16px; }
  .lang-toggle { padding: 8px 12px; }
  .header-actions .lang-toggle .icon { display: none; }

  .hero { padding-bottom: 140px; }
  .scroll-cue { display: none; }
  .hero-badges { gap: 10px 18px; }

  .stats { margin-top: -50px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 14px; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat > span { font-size: 12px; }

  .services-grid, .sectors-grid, .why-cards, .check-list, .form-row { grid-template-columns: 1fr; }
  .service-card-featured { grid-column: auto; }
  .why-card:nth-child(even) { margin-top: 0; }
  .process-steps { grid-template-columns: 1fr; }
  .sector-card { min-height: 280px; }
  .sector-card h3 { margin-top: 60px; }
  .float-card { padding: 12px 16px 12px 12px; }
  .float-card-1 { top: 0; }
  .float-card-2 { bottom: 0; }
  .about-visual { padding: 30px 10px; }

  .cta-inner { flex-direction: column; align-items: flex-start; }
  .wa-float { width: 54px; height: 54px; bottom: 18px; inset-inline-end: 18px; }
  .to-top { bottom: 84px; inset-inline-end: 21px; width: 44px; height: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js [data-reveal] { opacity: 1; translate: none; scale: none; }
}
