
/* =============================================================================
 * LINE PRO — Design System
 * -----------------------------------------------------------------------------
 * Brand colours are taken from the Line Pro identity (signature red #CC0A14).
 * Dark mode is the default (cinematic feel); light mode is available via toggle.
 * Arabic (RTL) and English (LTR) are switched via html[lang] / html[dir].
 * Sections:
 *   1. Theme tokens   2. Base   3. Language switch   4. Layout helpers
 *   5. Buttons        6. Header & mobile menu   7. Logo   8. Hero
 *   9. Cards & grids 10. Stats 11. Portfolio & lightbox 12. Testimonials
 *  13. Forms & wizard 14. Packages & tables 15. Footer 16. Chrome (loader,
 *      cursor, progress, back-to-top)  17. Animations  18. Responsive
 * ========================================================================== */

/* ---------------------------- 1. Theme tokens ----------------------------- */
:root {
  --brand: #cc0a14;
  --brand-2: #ff2a36;
  --brand-dark: #7a060d;
  --ink: #0a0a0c;
  --ink-2: #111116;
  --navy: #1a1a2e;

  --bg: #0a0a0c;
  --bg-2: #111116;
  --surface: #16161d;
  --surface-2: #1e1e27;
  --fg: #f5f5f7;
  --muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --header-bg: rgba(10, 10, 12, 0.72);
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  --grid-line: rgba(204, 10, 20, 0.18);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f1f1f4;
  --fg: #0b0b0f;
  --muted: #5b5b66;
  --border: rgba(10, 10, 15, 0.08);
  --border-strong: rgba(10, 10, 15, 0.18);
  --header-bg: rgba(255, 255, 255, 0.78);
  --shadow: 0 25px 50px rgba(20, 20, 30, 0.12);
  --grid-line: rgba(204, 10, 20, 0.12);
  color-scheme: light;
}

/* ------------------------------- 2. Base ---------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

html[lang="ar"] body {
  font-family: "Cairo", "Inter", system-ui, sans-serif;
}

html[lang="en"] body {
  font-family: "Inter", "Cairo", system-ui, sans-serif;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 800;
  color: var(--fg);
}

h1 { font-size: clamp(2.5rem, 6vw, 5.2rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { color: var(--muted); }

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; }
::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.gradient-text {
  background: linear-gradient(120deg, var(--fg) 10%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute;
  top: -60px;
  inset-inline-start: 16px;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 999;
}
.skip-link:focus { top: 16px; }

/* ----------------------- 3. Language (AR / EN) switch --------------------- */
/* Both language versions are rendered in the HTML; CSS shows the active one. */
html[lang="ar"] .lang-en { display: none !important; }
html[lang="en"] .lang-ar { display: none !important; }

html[dir="rtl"] .rtl-flip { transform: scaleX(-1); }
html[dir="rtl"] .ltr-only { direction: ltr; }
html[lang="en"] .eyebrow { letter-spacing: 0.2em; }

/* ----------------------------- 4. Layout helpers -------------------------- */
.container {
  width: min(1240px, 92%);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-alt { background: var(--bg-2); }

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.1rem; margin-top: 16px; }
.section-head.row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-2);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-main { min-height: 60vh; }

.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--fg); opacity: 0.9; }
.check-list li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'><path d='M5 12l5 5 9-10'/></svg>") center/12px no-repeat;
}

/* --------------------------------- 5. Buttons ----------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 30px rgba(204, 10, 20, 0.35);
}
.btn-primary:hover { background: var(--brand-2); box-shadow: 0 16px 40px rgba(204, 10, 20, 0.5); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--fg);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-2); }

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

.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-2);
  font-weight: 700;
  margin-top: 18px;
  transition: gap 0.3s var(--ease);
}
.btn-link:hover { gap: 14px; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ----------------------- 6. Header & mobile menu -------------------------- */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding: 22px 0;
  transition: transform 0.5s var(--ease), background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.site-header.is-hidden { transform: translateY(-110%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--fg);
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
}
.nav-link:hover,
.nav-link.active { opacity: 1; color: var(--brand-2); }
.nav-link.active::after {
  content: "";
  position: absolute;
  inset-inline: 13px;
  bottom: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
  flex: none;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-2); transform: rotate(-8deg); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.lang { width: auto; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; }

.menu-toggle { display: none; }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px auto;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  padding: 120px 7% 40px;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 0.7s cubic-bezier(0.7, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { transform: none; }
.mobile-menu a.mm-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}
.mobile-menu a.mm-link:hover { color: var(--brand-2); }
.mobile-menu .mm-cta { margin-top: 28px; }
.mobile-menu .mm-footer { margin-top: auto; padding-top: 30px; color: var(--muted); font-size: 0.95rem; }

/* ------------------------------- 7. Logo ----------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  direction: ltr;
}
.logo-mark { width: 44px; height: 44px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; text-align: start; }
.logo-ar { font-family: "Cairo", sans-serif; font-weight: 800; font-size: 1.35rem; direction: rtl; }
.logo-en { font-family: "Inter", sans-serif; font-weight: 800; font-size: 1.02rem; letter-spacing: 0.02em; margin-top: 4px; }
.logo-lg .logo-mark { width: 84px; height: 84px; }
.logo-lg .logo-ar { font-size: 2.6rem; }
.logo-lg .logo-en { font-size: 1.9rem; }
.logo-lg { gap: 18px; }

/* -------------------------------- 8. Hero ---------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
  color: #fff;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(10, 10, 12, 0.94) 0%, rgba(10, 10, 12, 0.6) 55%, rgba(204, 10, 20, 0.22) 100%),
    linear-gradient(to top, #0a0a0c 0%, transparent 38%);
}
html[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(to left, rgba(10, 10, 12, 0.94) 0%, rgba(10, 10, 12, 0.6) 55%, rgba(204, 10, 20, 0.22) 100%),
    linear-gradient(to top, #0a0a0c 0%, transparent 38%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(58deg) translateY(-20%);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 60%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 60%);
  opacity: 0.7;
}
.hero-mark {
  position: absolute;
  z-index: 1;
  inset-inline-end: 4%;
  top: 50%;
  width: min(36vw, 520px);
  color: var(--brand);
  transform: translateY(-50%);
  filter: drop-shadow(0 30px 60px rgba(204, 10, 20, 0.45));
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}
.hero-particles span {
  position: absolute;
  z-index: 1;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
  opacity: 0.7;
  animation: twinkle 4s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 150px 0 140px;
  max-width: 800px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 26px;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 0 rgba(255, 42, 54, 0.7);
  animation: pulseDot 1.8s infinite;
}
.hero h1 { color: #fff; margin-bottom: 26px; }
.hero h1 .accent { color: var(--brand-2); }
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin-bottom: 40px;
}
.hero .btn-ghost { color: #fff; }

.hero-scroll {
  position: absolute;
  bottom: 28px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
html[lang="ar"] .hero-scroll { letter-spacing: 0; }
.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  position: relative;
}
.mouse::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-inline-start: -2px;
  border-radius: 2px;
  background: var(--brand-2);
  animation: wheel 1.8s infinite;
}

.hero-glass {
  position: absolute;
  z-index: 2;
  inset-inline-end: 6%;
  bottom: 120px;
  display: grid;
  gap: 10px;
  padding: 18px 22px;
  min-width: 220px;
  border-radius: 20px;
  background: rgba(10, 10, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  color: #fff;
}
.hero-glass .eq { display: flex; gap: 4px; align-items: flex-end; height: 26px; }
.hero-glass .eq span {
  width: 5px;
  background: var(--brand-2);
  border-radius: 3px;
  animation: eq 1s ease-in-out infinite;
}
.hero-glass .eq span:nth-child(2) { animation-delay: 0.15s; }
.hero-glass .eq span:nth-child(3) { animation-delay: 0.3s; }
.hero-glass .eq span:nth-child(4) { animation-delay: 0.45s; }
.hero-glass .eq span:nth-child(5) { animation-delay: 0.6s; }
.hero-glass strong { font-size: 1.1rem; }
.hero-glass small { color: rgba(255, 255, 255, 0.7); }

/* ----------------------------- Page hero (inner) -------------------------- */
.page-hero {
  position: relative;
  padding: 170px 0 100px;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.page-hero .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  z-index: 0;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(204, 10, 20, 0.22), transparent 60%);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 18px; max-width: 900px; }
.page-hero p.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 720px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.crumbs a:hover { color: var(--brand-2); }
.crumbs .sep { opacity: 0.5; }

/* ------------------------------ 9. Cards & grids -------------------------- */
.card {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.5s var(--ease), border-color 0.35s, box-shadow 0.5s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 0.6s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(204, 10, 20, 0.45);
  box-shadow: var(--shadow);
}
.card:hover::before { width: 100%; }
.card p { margin-top: 10px; }

.icon-box {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(204, 10, 20, 0.12);
  color: var(--brand-2);
  margin-bottom: 22px;
  transition: background 0.4s, color 0.4s, transform 0.5s var(--ease);
}
.icon-box svg { width: 28px; height: 28px; }
.card:hover .icon-box { background: var(--brand); color: #fff; transform: rotate(-6deg) scale(1.06); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Service tiles (homepage & services index) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.services-grid > :nth-child(-n + 2) { grid-column: span 3; }
.services-grid > :nth-child(n + 3) { grid-column: span 2; }
/* Reveal wrappers inside the grid must stretch so cards share the same height */
.services-grid > .reveal { display: flex; }
.services-grid > .reveal > .service-card { flex: 1; }

.service-card {
  position: relative;
  isolation: isolate;
  min-height: 460px;
  padding: 30px;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: #000;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card .service-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.2s var(--ease);
}
.service-card:hover .service-bg { transform: scale(1.08); }
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.96) 15%, rgba(10, 10, 12, 0.25) 75%);
}
.service-card .icon-box { background: rgba(255, 255, 255, 0.12); color: #fff; margin-bottom: auto; }
.service-card:hover .icon-box { background: var(--brand); }
.service-card h3 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.service-card p { color: rgba(255, 255, 255, 0.82); }
.service-card .card-link { color: #fff; display: inline-flex; gap: 8px; margin-top: 18px; font-weight: 700; }
.service-card .card-link span { color: var(--brand-2); }

/* Process */
.process-step { position: relative; }
.process-num {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand);
  margin-bottom: 14px;
}

/* About split: story image */
.story-img {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.floating-badge {
  position: absolute;
  bottom: 24px;
  inset-inline-start: 24px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 20px 40px rgba(204, 10, 20, 0.4);
  animation: float 6s ease-in-out infinite;
}
.floating-badge strong { display: block; font-size: 2.2rem; line-height: 1; }

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 38px;
  padding-inline-start: 42px;
  border-inline-start: 2px solid var(--border-strong);
  margin-inline-start: 8px;
}
.tl-item { position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  inset-inline-start: -51px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(204, 10, 20, 0.2);
}
.tl-year { font-size: 1.7rem; font-weight: 900; color: var(--brand-2); line-height: 1.1; }
.tl-item h3 { margin: 6px 0 6px; }

/* Team */
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 0 0 6px rgba(204, 10, 20, 0.12);
  transition: transform 0.5s var(--ease);
}
.card:hover .avatar { transform: scale(1.06); }
.avatar.sm { width: 64px; height: 64px; font-size: 1.1rem; margin: 0 auto 14px; }

/* Blog */
.post-card { padding: 22px; }
.post-card .thumb {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 22px;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card h3 { font-size: 1.2rem; margin: 12px 0 10px; line-height: 1.4; }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 0.88rem; }
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(204, 10, 20, 0.12);
  color: var(--brand-2);
  font-size: 0.8rem;
  font-weight: 700;
}

.article { max-width: 780px; margin-inline: auto; }
.article p { font-size: 1.12rem; color: var(--fg); opacity: 0.88; margin-bottom: 1.4em; }
.article .lead-img { border-radius: 26px; overflow: hidden; margin-bottom: 40px; aspect-ratio: 16 / 9; }
.article .lead-img img { width: 100%; height: 100%; object-fit: cover; }

/* Careers */
.job {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 30px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.job:hover { border-color: var(--brand); transform: translateY(-3px); }
.job h3 { margin-bottom: 6px; }
.job-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.job-meta span {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.85rem;
}

/* FAQ */
.faq-item {
  margin-bottom: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: rgba(204, 10, 20, 0.5); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.8rem;
  line-height: 1;
  color: var(--brand-2);
  transition: transform 0.35s var(--ease);
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 26px 24px; color: var(--muted); }

/* Legal */
.legal h2 { font-size: 1.6rem; margin: 40px 0 14px; }
.legal p { margin-bottom: 14px; }
.legal ul { padding-inline-start: 22px; color: var(--muted); display: grid; gap: 8px; }

/* Sitemap */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.sitemap-node { position: relative; }
.sitemap-node h3 { color: var(--brand-2); margin-bottom: 14px; font-size: 1.15rem; }
.sitemap-node ul { list-style: none; display: grid; gap: 10px; }
.sitemap-node a { color: var(--fg); opacity: 0.85; transition: color 0.3s, padding 0.3s; display: inline-flex; gap: 8px; }
.sitemap-node a:hover { color: var(--brand-2); opacity: 1; }
.sitemap-node a::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

/* ------------------------------ 10. Stats --------------------------------- */
.stats-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #cc0a14 0%, #5a060c 55%, #0a0a0c 100%);
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.6;
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-num {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label { color: rgba(255, 255, 255, 0.85); margin-top: 12px; font-weight: 600; }
.stat-item { padding: 10px; border-inline-start: 1px solid rgba(255, 255, 255, 0.15); }
.stat-item:first-child { border-inline-start: 0; }

/* Marquee (clients) */
.marquee {
  overflow: hidden;
  padding: 30px 0;
  border-block: 1px solid var(--border);
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 70px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--muted);
  opacity: 0.65;
  white-space: nowrap;
  transition: opacity 0.3s, color 0.3s;
}
.marquee-item::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--brand);
  border-radius: 3px;
  transform: rotate(45deg);
}
.marquee-item:hover { opacity: 1; color: var(--fg); }

/* CTA banner */
.cta-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: clamp(40px, 6vw, 84px);
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(135deg, #cc0a14 0%, #3a0408 60%, #0a0a0c 100%);
  box-shadow: 0 30px 80px rgba(204, 10, 20, 0.25);
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  top: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.06);
}
.cta-banner h2 { color: #fff; max-width: 640px; position: relative; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); margin-top: 14px; max-width: 560px; position: relative; }
.cta-banner .btn-row { position: relative; }
.cta-banner .btn-ghost { color: #fff; }

/* ---------------------- 11. Portfolio & lightbox -------------------------- */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--fg);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand-2); }
.filter-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: start;
  display: block;
  width: 100%;
  animation: fadeUp 0.6s var(--ease) both;
}
.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.5s;
}
.work-item:hover img { transform: scale(1.08); filter: brightness(0.55); }
.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 60%);
}
.work-cat { font-size: 0.8rem; color: var(--brand-2); font-weight: 700; }
.work-title { font-size: 1.25rem; font-weight: 800; color: #fff; margin-top: 6px; line-height: 1.35; }
.work-meta { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; margin-top: 6px; opacity: 0; transform: translateY(10px); transition: 0.5s var(--ease); }
.work-item:hover .work-meta { opacity: 1; transform: none; }
.work-play {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  color: #fff;
}
.work-play svg { width: 18px; height: 18px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.94);
  display: grid;
  place-items: center;
  padding: 40px 6%;
  animation: fadeIn 0.35s ease both;
}
.lightbox figure { max-width: 1100px; width: 100%; text-align: center; }
.lightbox img { max-height: 76vh; width: auto; margin-inline: auto; border-radius: 18px; }
.lightbox figcaption { color: #fff; margin-top: 18px; }
.lightbox figcaption small { color: rgba(255, 255, 255, 0.6); display: block; margin-top: 4px; }
.lb-close,
.lb-nav {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.lb-close:hover,
.lb-nav:hover { background: var(--brand); border-color: var(--brand); }
.lb-close { top: 22px; inset-inline-end: 22px; }
.lb-nav.prev { top: 50%; inset-inline-start: 22px; transform: translateY(-50%); }
.lb-nav.next { top: 50%; inset-inline-end: 22px; transform: translateY(-50%); }
.lb-close svg, .lb-nav svg { width: 22px; height: 22px; }
html[dir="rtl"] .lb-nav svg { transform: scaleX(-1); }

/* Case study */
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.case-meta div {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.case-meta span { display: block; color: var(--muted); font-size: 0.85rem; }
.case-meta strong { font-size: 1.05rem; }
.case-block { margin-bottom: 44px; }
.case-block h2 { font-size: 1.8rem; margin-bottom: 12px; }
.case-block p { font-size: 1.08rem; }
.result-num { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 900; color: var(--brand-2); line-height: 1; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery-grid img { border-radius: 22px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-grid img:hover { transform: scale(1.02); }

/* ------------------------ 12. Testimonials ---------------------------------- */
.testi-wrap { position: relative; max-width: 900px; margin-inline: auto; text-align: center; }
.testi-slide { display: none; }
.testi-slide.active { display: block; animation: fadeUp 0.9s var(--ease) both; }
.quote-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7rem;
  line-height: 0.6;
  color: var(--brand);
  height: 60px;
}
.testi-quote {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.8;
  color: var(--fg);
  margin: 18px 0 30px;
}
.testi-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 38px; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: var(--border-strong);
  cursor: pointer;
  transition: width 0.4s var(--ease), background 0.3s;
  padding: 0;
}
.dot.active { width: 34px; background: var(--brand); }

/* ------------------------ 13. Forms & wizard -------------------------------- */
.form-card {
  padding: clamp(24px, 4vw, 46px);
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--fg); }
.field .req { color: var(--brand-2); }
.input,
.select,
.textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--fg);
  font: inherit;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.input::placeholder,
.textarea::placeholder { color: var(--muted); opacity: 0.7; }
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(204, 10, 20, 0.15);
}
.textarea { min-height: 140px; resize: vertical; }
.select option { background: var(--surface); color: var(--fg); }
.field-error { color: var(--brand-2); font-size: 0.85rem; }

.alert {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 16px;
  font-weight: 600;
}
.alert-success { background: rgba(34, 197, 94, 0.12); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.35); }
.alert-error { background: rgba(204, 10, 20, 0.12); color: var(--brand-2); border: 1px solid rgba(204, 10, 20, 0.4); }

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 34px;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.3s, color 0.3s;
}
.wizard-step.active { border-color: var(--brand); color: var(--fg); }
.wizard-step.done { color: var(--fg); }
.wizard-step .num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  font-weight: 800;
  flex: none;
  transition: background 0.3s;
}
.wizard-step.active .num,
.wizard-step.done .num { background: var(--brand); color: #fff; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-weight: 700;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.choice:hover span { transform: translateY(-3px); }
.choice input:checked + span {
  border-color: var(--brand);
  background: rgba(204, 10, 20, 0.1);
  box-shadow: 0 0 0 3px rgba(204, 10, 20, 0.18);
}
.choice input:focus-visible + span { outline: 2px solid var(--brand-2); }
.choice small { font-weight: 400; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.review-list { display: grid; }
.review-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.review-list span { color: var(--muted); }
.review-list strong { text-align: end; }
.fade-step { animation: fadeUp 0.5s var(--ease) both; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: start;
}
.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.info-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.info-card .icon-box { margin: 0; width: 52px; height: 52px; border-radius: 14px; }
.info-card .icon-box svg { width: 24px; height: 24px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.info-card p, .info-card a { color: var(--muted); direction: ltr; text-align: start; }
html[dir="rtl"] .info-card p { direction: rtl; }
.info-card a:hover { color: var(--brand-2); }

.map-wrap {
  margin-top: 30px;
  height: 420px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
[data-theme="dark"] .map-wrap iframe,
:root:not([data-theme="light"]) .map-wrap iframe {
  filter: invert(0.92) hue-rotate(180deg) grayscale(0.25) contrast(0.95);
}

.social-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.social-link {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.social-link:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* -------------------- 14. Packages & comparison tables ---------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
.price-card { display: flex; flex-direction: column; }
.price-card.featured {
  border-color: var(--brand);
  transform: translateY(-14px);
  background: linear-gradient(180deg, rgba(204, 10, 20, 0.16), var(--surface) 45%);
  box-shadow: 0 30px 70px rgba(204, 10, 20, 0.2);
}
.price-card.featured:hover { transform: translateY(-22px); }
.badge {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}
.price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--fg);
  margin: 14px 0 4px;
  line-height: 1.1;
}
.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 24px 0 30px;
  flex: 1;
}
.feature-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--fg); opacity: 0.9; }
.feature-list li::before { content: "✓"; color: var(--brand-2); font-weight: 900; flex: none; }

.table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare-table th,
.compare-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--fg);
}
.compare-table th:first-child,
.compare-table td:first-child { text-align: start; color: var(--muted); font-weight: 600; }
.compare-table thead th { background: var(--surface-2); font-weight: 800; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover td { background: rgba(204, 10, 20, 0.05); }
.compare-table .yes { color: var(--brand-2); font-weight: 900; font-size: 1.1rem; }

/* Services detail */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.sub-card { display: flex; gap: 18px; align-items: flex-start; }
.sub-card .icon-box { margin: 0; flex: none; width: 52px; height: 52px; border-radius: 14px; font-weight: 900; font-size: 1.1rem; }
.sub-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.sub-card p { font-size: 0.97rem; }
.sub-index { font-variant-numeric: tabular-nums; }

.highlight-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.highlight {
  padding: 26px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.highlight strong { display: block; font-size: 2.2rem; font-weight: 900; color: var(--brand-2); line-height: 1.1; }
.highlight span { color: var(--muted); font-size: 0.95rem; }

.equip-list { display: grid; gap: 14px; }
.equip-list li {
  list-style: none;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--fg);
  font-weight: 600;
}
.equip-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--brand);
  border-radius: 2px;
  transform: rotate(45deg);
}

.service-list-mini { display: grid; gap: 10px; }
.service-list-mini a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  transition: border-color 0.3s, color 0.3s;
}
.service-list-mini a:hover,
.service-list-mini a.current { border-color: var(--brand); color: var(--brand-2); }

/* ------------------------- 15. Footer -------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 90px;
  background: #060607;
  color: #d4d4d8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 15% 0%, rgba(204, 10, 20, 0.18), transparent 50%);
  pointer-events: none;
}
.site-footer p, .site-footer li { color: #a1a1aa; }
.footer-top {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-title { color: #fff; font-weight: 800; margin-bottom: 18px; font-size: 1rem; }
.footer-links { list-style: none; display: grid; gap: 4px; }
.footer-links a {
  display: inline-block;
  padding: 5px 0;
  color: #a1a1aa;
  transition: color 0.3s, transform 0.3s var(--ease);
}
.footer-links a:hover { color: var(--brand-2); transform: translateX(-4px); }
html[dir="rtl"] .footer-links a:hover { transform: translateX(4px); }
.footer-about p { margin-top: 18px; max-width: 360px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--brand-2); flex: none; }
.footer-contact a:hover { color: var(--brand-2); }
.footer-newsletter p { margin-bottom: 14px; }
.newsletter { display: flex; gap: 8px; }
.newsletter .input { border-radius: 999px; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); color: #fff; }
.newsletter .btn { padding: 0 22px; }
.footer-socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.footer-socials a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: #e4e4e7;
  transition: background 0.3s, border-color 0.3s;
}
.footer-socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.footer-bottom {
  position: relative;
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #71717a;
  font-size: 0.9rem;
}
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--brand-2); }
.footer-big {
  position: relative;
  font-size: clamp(3rem, 13vw, 10rem);
  font-weight: 900;
  line-height: 0.9;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  user-select: none;
  margin-top: 40px;
  padding-bottom: 10px;
}

/* ----------------------- 16. Chrome (loader, cursor, progress) ------------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: #0a0a0c;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.page-loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader-mark {
  width: 96px;
  height: 96px;
  color: var(--brand);
  animation: pulse 1.4s ease-in-out infinite;
}
.loader-bar {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--brand);
  transform-origin: left;
  animation: load 1.1s var(--ease) forwards;
}
html[dir="rtl"] .loader-bar span { transform-origin: right; }

.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 150;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform-origin: left;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(255, 42, 54, 0.6);
}
html[dir="rtl"] .scroll-progress { transform-origin: right; }

.to-top {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 120;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(204, 10, 20, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s var(--ease), background 0.3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-2); }
.to-top svg { width: 22px; height: 22px; }

.cursor-dot,
.cursor-ring { display: none; pointer-events: none; position: fixed; top: 0; left: 0; z-index: 600; border-radius: 50%; }
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-2);
  margin: -4px 0 0 -4px;
}
.cursor-ring {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1.5px solid var(--brand);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s, border-color 0.35s;
  display: none;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cursor-ring.is-hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(204, 10, 20, 0.14); }
.cursor-ring.is-view {
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  background: var(--brand);
  border-color: var(--brand);
}
.cursor-enabled .cursor-dot { display: block; }
.cursor-enabled .cursor-ring { display: grid; }
.cursor-enabled,
.cursor-enabled *:not(input):not(textarea):not(select) { cursor: none !important; }

/* ------------------------------ 17. Animations ----------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.scale { transform: scale(0.94); }
.reveal.scale.in { transform: none; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 16px)); } }
@keyframes heroZoom { to { transform: scale(1.12); } }
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 42, 54, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(255, 42, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 42, 54, 0); }
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@keyframes twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.8); } 50% { opacity: 0.9; transform: scale(1.2); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: 0.75; } }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------ 18. Responsive ----------------------------- */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .header-actions .btn-desktop { display: none; }
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .stat-item:nth-child(4) { border-inline-start: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-8px); }
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .wizard-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid > * { grid-column: auto !important; }
  .split-2, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .highlight-row { grid-template-columns: 1fr; }
  .sub-grid { grid-template-columns: 1fr; }
  .hero-mark { opacity: 0.35; width: 60vw; inset-inline-end: -10%; }
  .hero-glass { display: none; }
  .section-head.row { align-items: flex-start; }
  .parallax { background-attachment: scroll; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-inline-start: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr; }
  .wizard-steps { grid-template-columns: 1fr 1fr; }
  .case-meta { grid-template-columns: 1fr; }
  .hero-content { padding-top: 130px; }
  .hero-scroll { display: none; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-ar { font-size: 1.15rem; }
  .logo-en { font-size: 0.92rem; }
  .cta-banner { border-radius: 24px; }
  .newsletter { flex-direction: column; }
  .newsletter .btn { padding: 14px 22px; }
  .job { padding: 22px; }
  .choice-grid { grid-template-columns: 1fr; }
  .timeline { padding-inline-start: 30px; }
  .tl-item::before { inset-inline-start: -37px; }
  .to-top { bottom: 18px; inset-inline-end: 18px; }
}

@media (hover: none) and (pointer: coarse) {
  .parallax { background-attachment: scroll; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
