/* ==========================================================================
   fasr.sa — design tokens
   Theme: dark is the base :root; light overrides via [data-theme="light"]
   (set synchronously by /js/theme-init.js before first paint, based on
   localStorage or prefers-color-scheme, so there is no flash).
   ========================================================================== */

:root {
  --bg: #030303;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.2);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --text-dim: #a3a3a3;
  --text-dimmer: #707070;

  --grid-line: rgba(255, 255, 255, 0.025);
  --glow: rgba(255, 255, 255, 0.035);
  --card-glow: rgba(255, 255, 255, 0.06);
  --gradient-from: #ffffff;
  --gradient-to: #666666;

  --nav-bg: rgba(3, 3, 3, 0.55);
  --nav-bg-scrolled: rgba(3, 3, 3, 0.85);

  --invert-bg: #ffffff;
  --invert-text: #000000;
  --invert-bg-hover: #e5e5e5;

  --cover-bg: #0a0a0a;
  --cover-text: rgba(255, 255, 255, 0.82);
  --cover-text-hover: #ffffff;

  --feature-badge-bg: rgba(255, 255, 255, 0.1);
  --feature-gradient: linear-gradient(to right, rgba(255, 255, 255, 0.03), transparent);
  --feature-glyph-color: rgba(255, 255, 255, 0.3);
  --contact-blur-bg: rgba(255, 255, 255, 0.02);

  --font-display: 'ThmanyahSerifDisplay', 'Segoe UI', sans-serif;
  --font-text: 'ThmanyahSerifText', 'Segoe UI', sans-serif;
  --font-ui: 'ThmanyahSans', 'Segoe UI', sans-serif;

  --container: 1280px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --brand: 34, 211, 238;
  --blob-opacity: 0.4;
  --grain-opacity: 0.035;

  color-scheme: dark;
}

:root[data-theme='light'] {
  --bg: #faf9f7;
  --surface: rgba(10, 10, 10, 0.03);
  --surface-strong: rgba(10, 10, 10, 0.055);
  --border: rgba(10, 10, 10, 0.09);
  --border-strong: rgba(10, 10, 10, 0.18);
  --border-hover: rgba(10, 10, 10, 0.22);
  --text: #0f0f0f;
  --text-dim: #55555c;
  --text-dimmer: #8b8b91;

  --grid-line: rgba(10, 10, 10, 0.035);
  --glow: rgba(10, 10, 10, 0.05);
  --card-glow: rgba(10, 10, 10, 0.06);
  --gradient-from: #0f0f0f;
  --gradient-to: #6d6d6d;

  --nav-bg: rgba(250, 249, 247, 0.65);
  --nav-bg-scrolled: rgba(250, 249, 247, 0.9);

  --invert-bg: #0f0f0f;
  --invert-text: #ffffff;
  --invert-bg-hover: #262626;

  --cover-bg: #eeece7;
  --cover-text: rgba(10, 10, 10, 0.72);
  --cover-text-hover: #0a0a0a;

  --feature-badge-bg: rgba(10, 10, 10, 0.08);
  --feature-gradient: linear-gradient(to right, rgba(10, 10, 10, 0.04), transparent);
  --feature-glyph-color: rgba(10, 10, 10, 0.28);
  --contact-blur-bg: rgba(10, 10, 10, 0.035);

  --blob-opacity: 0.16;
  --grain-opacity: 0.02;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Language switching — content is duplicated inline and toggled by [dir]
   ========================================================================== */

html[dir='rtl'] .lang-en {
  display: none !important;
}
html[dir='ltr'] .lang-ar {
  display: none !important;
}

/* Theme switching — two icons, toggled by [data-theme] */
html[data-theme='dark'] .icon-moon {
  display: none !important;
}
html[data-theme='light'] .icon-sun {
  display: none !important;
}

/* ==========================================================================
   Background effects
   ========================================================================== */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: -2;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 75%);
  transition: background-image 0.4s var(--ease);
}

.bg-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--glow) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  animation: pulse-glow 12s infinite alternate;
}

@keyframes pulse-glow {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--blob-opacity);
  will-change: transform;
}

.blob--a {
  width: 420px;
  height: 420px;
  top: -80px;
  inset-inline-end: 8%;
  background: radial-gradient(circle, rgba(var(--brand), 0.9), transparent 70%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.blob--b {
  width: 360px;
  height: 360px;
  top: 40%;
  inset-inline-end: 22%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.8), transparent 70%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-40px, 50px) scale(1.15);
  }
}

@keyframes drift-b {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(30px, -40px) scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
  }
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 1024px) {
  .wrap {
    padding-inline: 48px;
  }
}

.text-gradient {
  background: linear-gradient(135deg, var(--gradient-from) 0%, var(--gradient-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  padding-block: 19px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.is-scrolled {
  padding-block: 13px;
  background: var(--nav-bg-scrolled);
}

.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand {
  display: flex;
  align-items: center;
}

/* Logo swaps by theme — two <img> tags, only one ever visible, same
   mechanism as .icon-sun/.icon-moon above. logo-dark.png (dark ink) shows
   on the light theme; logo-light.png (light ink) shows on the dark theme —
   both files are transparent-background PNGs. */
.brand-logo {
  display: block;
  height: 42px;
  width: auto;
}

html[data-theme='dark'] .brand-logo--dark {
  display: none;
}
html[data-theme='light'] .brand-logo--light {
  display: none;
}

.brand-logo--lg {
  height: 42px;
}

.brand-logo--footer {
  height: 80px;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}

.icon-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.3s var(--ease);
}

.icon-toggle:hover,
.icon-toggle:focus-visible {
  background: var(--invert-bg);
  color: var(--invert-text);
  transform: rotate(-12deg);
}

.icon-toggle svg {
  width: 18px;
  height: 18px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: var(--invert-bg);
  color: var(--invert-text);
}

.lang-toggle svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 120px 64px;
  overflow: hidden;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 8fr 4fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  animation: float-chip 4.5s ease-in-out infinite;
}

@keyframes float-chip {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow {
    animation: none;
  }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-feature-settings: "ss01";
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}

.hero__lede {
  font-family: var(--font-text);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 0 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--invert-bg);
  color: var(--invert-text);
}

.btn--primary:hover {
  background: var(--invert-bg-hover);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.35);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--surface-strong);
  border-color: rgb(var(--brand));
  color: rgb(var(--brand));
}

/* Stat cards */

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.4s var(--ease);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(700px circle at var(--mx, 50%) var(--my, 50%), var(--card-glow), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.card:hover::before {
  opacity: 1;
}

.card__inner {
  position: relative;
  z-index: 1;
}

.stat-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 1;
}

.stat-card--wide {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  padding: 28px 24px;
}

.stat-card__num {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 6px;
}

.stat-card__label,
.stat-card__title {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-dim);
  margin: 0;
}

.stat-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  direction: ltr;
  padding-block: 36px;
  border-block: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee__track {
  direction: ltr;
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.5;
  animation: marquee-scroll 26s linear infinite;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

html[dir='rtl'] .marquee__track {
  animation-direction: reverse;
}

/* ==========================================================================
   Section headings
   ========================================================================== */

.section {
  padding-block: 120px;
}

.section__head {
  text-align: center;
  margin-bottom: 72px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(141, 141, 141);
  margin-bottom: 16px;
}

.kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(141, 141, 141);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-feature-settings: "ss01";
  line-height: 1.3;
  margin: 0 0 20px;
}

.section__lede {
  font-family: var(--font-text);
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 620px;
  margin-inline: auto;
  line-height: 1.75;
}

/* ==========================================================================
   Projects grid
   ========================================================================== */

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card--span2 {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .project-card--span2 {
    grid-column: span 2;
  }
}

.project-card--span3 {
  grid-column: 1 / -1;
}

.project-card {
  display: block;
  position: relative;
  --accent: 99, 102, 241;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 0px;
  background: rgb(var(--accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease);
  z-index: 2;
}

.project-card:hover::after {
  transform: scaleX(1);
}

.project-card:hover {
  box-shadow: 0 24px 48px -24px rgba(var(--accent), 0.35);
}

.project-grid > .project-card:nth-child(2) {
  --accent: 20, 184, 166;
}
.project-grid > .project-card:nth-child(3) {
  --accent: 244, 63, 94;
}
.project-grid > .project-card:nth-child(4) {
  --accent: 168, 85, 247;
}
.project-grid > .project-card:nth-child(5) {
  --accent: 245, 158, 11;
}
.project-grid > .project-card:nth-child(6) {
  --accent: 16, 185, 129;
}

.project-card__cover {
  height: 280px;
  background: radial-gradient(140% 160% at 20% 15%, rgba(var(--accent), 0.22), transparent 60%), var(--cover-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
  transition: background 0.4s var(--ease);
}

.project-card--span2 .project-card__cover {
  height: 320px;
}

.project-card__cover h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.35;
  font-weight: 700;
  color: var(--cover-text);
  text-align: center;
  transform: scale(0.97);
  transition: transform 0.5s var(--ease), color 0.5s var(--ease);
  margin: 0;
}

.project-card:hover .project-card__cover {
  background: radial-gradient(140% 160% at 20% 15%, rgba(var(--accent), 0.32), transparent 60%), var(--cover-bg);
}

.project-card:hover .project-card__cover h3 {
  transform: scale(1.04);
  color: var(--cover-text-hover);
}

.project-card__body {
  padding: 32px;
}

.project-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.project-card__name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 0 0 8px;
}

.project-card__desc {
  font-family: var(--font-text);
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0;
}

.project-card__arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--text-dimmer);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.project-card:hover .project-card__arrow {
  color: rgb(var(--accent));
  transform: translateX(-4px);
}

html[dir='rtl'] .project-card__arrow {
  transform: scaleX(-1);
}

html[dir='rtl'] .project-card:hover .project-card__arrow {
  transform: scaleX(-1) translateX(-4px);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-pill {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-dim);
  transition: all 0.3s var(--ease);
}

.project-card:hover .tag-pill {
  border-color: rgb(var(--accent));
  color: var(--text);
}

/* Feature (spotlight) card */

.feature-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: var(--feature-gradient);
}

@media (min-width: 768px) {
  .feature-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 48px;
  }
}

.feature-card__badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--feature-badge-bg);
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px;
}

.feature-card__desc {
  font-family: var(--font-text);
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 640px;
  margin: 0;
}

.feature-card__glyph {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-card__glyph::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(59, 130, 246, 0.18));
}

.feature-card__glyph svg {
  width: 64px;
  height: 64px;
  color: var(--feature-glyph-color);
  position: relative;
}

.section__footnote {
  text-align: center;
  margin-top: 64px;
  color: var(--text-dimmer);
  font-family: var(--font-text);
}

/* ==========================================================================
   Products & services
   ========================================================================== */

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 860px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card--featured {
  border-color: rgba(var(--brand), 0.35);
}

.service-card__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(var(--brand), 0.12);
  color: rgb(var(--brand));
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.service-card__name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 12px;
}

.service-card__desc {
  font-family: var(--font-text);
  color: var(--text-dim);
  line-height: 1.8;
  margin: 0 0 24px;
  flex: 1;
}

.service-card__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(var(--brand), 0.08);
  border: 1px solid rgba(var(--brand), 0.25);
  margin-bottom: 20px;
}

.service-card__price-amount {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.5rem;
  color: rgb(var(--brand));
}

.service-card__price-period {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.service-card__note {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-dimmer);
  margin-bottom: 20px;
}

.service-card .btn {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   Contact / footer
   ========================================================================== */

.contact {
  position: relative;
  border-top: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
}

.contact::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 500px;
  background: var(--contact-blur-bg);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
}

.contact__inner {
  position: relative;
  z-index: 1;
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-feature-settings: "ss01";
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}

.contact__lede {
  font-family: var(--font-text);
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 56px;
  line-height: 1.75;
}

.contact__email {
  position: relative;
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 3rem);
  line-height: 1.3;
  margin-bottom: 40px;
  transition: color 0.3s var(--ease);
}

.contact__email:hover {
  color: var(--text-dim);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease);
}

.btn-social:hover {
  background: var(--invert-bg);
  color: var(--invert-text);
  transform: scale(1.04);
}

.btn-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.badge {
  display: inline-block;
  background-color: #0088cc;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-right: 8px; 
  margin-left: 8px; 
  vertical-align: middle;
  animation: pulse 2s infinite; 
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(0, 136, 204, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0); }
}

[dir="rtl"] .badge {
  margin-left: 0;
  margin-right: 8px;
}
[dir="ltr"] .badge {
  margin-right: 0;
  margin-left: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-bottom: 40px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-dimmer);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: rgb(var(--brand));
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-dimmer);
  font-family: var(--font-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .footer-meta {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Legal pages (terms / privacy / refund)
   ========================================================================== */

.page-header {
  padding: 160px 0 40px;
  text-align: center;
}

.page-header .kicker {
  justify-content: center;
}

.page-updated {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-dimmer);
}

.legal-content {
  padding-bottom: 100px;
}

.legal-content .wrap {
  max-width: 760px;
}

.legal-content section {
  margin-bottom: 44px;
}

.legal-content section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.4;
  margin: 0 0 16px;
}

.legal-content p {
  font-family: var(--font-text);
  color: var(--text-dim);
  line-height: 1.9;
  margin: 0 0 16px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-inline-start: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-content li {
  font-family: var(--font-text);
  color: var(--text-dim);
  line-height: 1.8;
}

.legal-content strong {
  color: var(--text);
  font-weight: 700;
}

.legal-content a {
  color: rgb(var(--brand));
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-active {
  opacity: 1;
  transform: none;
}

.reveal--d1 {
  transition-delay: 0.1s;
}
.reveal--d2 {
  transition-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */

.consent-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: 16px;
  animation: consent-in 0.4s var(--ease);
}

@keyframes consent-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner {
    animation: none;
  }
}

.consent-banner__inner {
  max-width: 1340px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.4);
}

/* Wide screens: text and the button share one row, button at the end (left
   in RTL) — needs real width to keep the sentence on one line without
   colliding with the button, so this only kicks in on genuinely wide
   viewports (measured: the English copy — longer than the Arabic — needs
   ~1300px just for its own content at this font size). Anything narrower
   (including common 1366px laptops) stays stacked, text wrapping normally
   — that layout has no overlap risk at any width, so it's the safe
   fallback rather than a compromise. */
@media (min-width: 1400px) {
  .consent-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .consent-banner__text {
    /* flex-shrink: 0 is load-bearing here — without it, flex's default
       "shrink below content size" behavior combined with white-space:nowrap
       let the text silently overflow *underneath* the button instead of
       wrapping or visibly breaking, which read as "text running into the
       button" rather than an obvious layout bug. */
    flex: 0 1 auto;
    flex-shrink: 0;
    white-space: nowrap;
  }
}

.consent-banner__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--font-text);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.consent-banner__text a {
  color: rgb(var(--brand));
  text-decoration: underline;
}

/* Styled to read as part of the sentence, not a competing button — so the
   "موافق" button below is the one thing that visually stands out. */
.consent-banner__decline {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--text-dimmer);
  text-decoration: underline;
  cursor: pointer;
}

.consent-banner__decline:hover,
.consent-banner__decline:focus-visible {
  color: var(--text);
}

.consent-banner__actions .btn {
  padding: 10px 44px;
  font-size: 0.9rem;
}
