/* =========================================================
   Fast Valet — Design System
   Primary  : #060658  (light) / adjusted for dark
   Secondary: #DADAFA  (light) / adjusted for dark
   Fonts    : Outfit (EN) / Cairo (AR)
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Color tokens ---------- */
:root {
  color-scheme: light;
  --c-primary: #060658;
  --c-primary-strong: #030330;
  --c-primary-soft: #33338a;
  --c-secondary: #DADAFA;
  --c-secondary-strong: #b9baf0;
  --c-on-primary: #ffffff;
  --c-bg: #ffffff;
  --c-bg-alt: #f6f6fd;
  --c-surface: #ffffff;
  --c-surface-tint: #eeeefb;
  --c-text: #0a0a20;
  --c-text-muted: #4c4c6e;
  --c-border: rgba(6, 6, 88, 0.13);
  --c-shadow: rgba(10, 10, 40, 0.12);
  --c-success-bg: #dff5e4;
  --c-success-text: #1c6b34;
  --c-warn-bg: #ffe9d6;
  --c-warn-text: #8a4a12;

  --font-en: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-ar: 'Cairo', 'Segoe UI', system-ui, sans-serif;
  --font-body: var(--font-en);

  /* spacing — mobile default (15px rule) */
  --gap: 15px;
  --pad-inline: 15px;
  --pad-section: 56px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* type scale — mobile portrait default */
  --fs-min: 14px;
  --fs-body: 16px;
  --fs-h1: 32px;
  --fs-h2: 25px;
  --fs-h3: 21px;
  --fs-h4: 17px;
  --lh-tight: 1.15;
  --lh-normal: 1.6;

  --container-max: 100%;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark mode is opt-in. It never follows the device color preference. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --c-primary: #a7acf6;
  --c-primary-strong: #ffffff;
  --c-primary-soft: #7d82e0;
  --c-secondary: #23244f;
  --c-secondary-strong: #34366e;
  --c-on-primary: #06061a;
  --c-bg: #06061a;
  --c-bg-alt: #0b0c2a;
  --c-surface: #101234;
  --c-surface-tint: #191b45;
  --c-text: #eef0fb;
  --c-text-muted: #aeb2de;
  --c-border: rgba(255, 255, 255, 0.13);
  --c-shadow: rgba(0, 0, 0, 0.45);
  --c-success-bg: #123322;
  --c-success-text: #7be6a0;
  --c-warn-bg: #3a2712;
  --c-warn-text: #f3b47c;
}

html[lang="ar"] { --font-body: var(--font-ar); }

/* mobile landscape */
@media (min-width: 481px) {
  :root { --fs-h1: 34px; --fs-h2: 26px; }
}
/* tablet portrait */
@media (min-width: 768px) {
  :root {
    --gap: 24px; --pad-inline: 24px; --pad-section: 72px;
    --fs-h1: 38px; --fs-h2: 28px; --fs-h3: 22px; --fs-h4: 18px;
    --container-max: 720px;
  }
}
/* tablet landscape */
@media (min-width: 1024px) {
  :root { --fs-h1: 42px; --fs-h2: 30px; --container-max: 960px; --pad-section: 84px; }
}
/* laptop */
@media (min-width: 1280px) {
  :root {
    --fs-h1: 48px; --fs-h2: 36px; --fs-h3: 26px; --fs-h4: 20px;
    --container-max: 1140px; --pad-section: 96px;
  }
}
/* screen (desktop monitor) */
@media (min-width: 1600px) {
  :root { --container-max: 1360px; --pad-section: 112px; }
}
/* TV */
@media (min-width: 2560px) {
  :root { --container-max: 1800px; --pad-section: 140px; --fs-body: 18px; --gap: 32px; --pad-inline: 32px; }
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

h1, h2, h3, h4 { line-height: var(--lh-tight); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
small, .fs-min { font-size: var(--fs-min); }
p { color: var(--c-text-muted); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.section { padding-block: var(--pad-section); }
.section-alt { background: var(--c-bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-min);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 12px;
}

.stack { display: flex; flex-direction: column; gap: var(--gap); }

.text-center { text-align: center; }
.section-head { max-width: 62ch; margin-inline: auto; margin-bottom: calc(var(--gap) * 1.6); }
.section-head p { margin-top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--c-primary);
  color: var(--c-on-primary);
  box-shadow: 0 10px 24px -8px var(--c-shadow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px var(--c-shadow); }
.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
}
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
:root[data-theme="dark"] .brand img { filter: brightness(0) invert(1); }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; align-items: center; gap: 30px; }
.nav-desktop a {
  font-size: 15px; font-weight: 500; color: var(--c-text-muted);
  position: relative; padding-block: 4px; transition: color 0.2s var(--ease);
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--c-primary); transition: right 0.25s var(--ease);
}
.nav-desktop a:hover, .nav-desktop a.is-active { color: var(--c-text); }
.nav-desktop a:hover::after, .nav-desktop a.is-active::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.actions-inline { display: none; align-items: center; gap: 10px; }
.lang-switch {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--c-text-muted);
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--c-border);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-switch:hover { border-color: var(--c-primary); color: var(--c-primary); }
.lang-switch img { width: 16px; height: 12px; border-radius: 2px; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border-radius: 10px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--c-text); margin-inline: auto; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: var(--mobile-header-height, 63px) 0 0;
  width: 100%;
  height: auto;
  background: var(--c-bg);
  padding: 24px max(var(--pad-inline), env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom)) max(var(--pad-inline), env(safe-area-inset-right));
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  z-index: 59;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
.nav-mobile a {
  padding: 14px 6px; font-size: 19px; font-weight: 600;
  border-bottom: 1px solid var(--c-border);
}
.nav-mobile .header-actions { margin-top: 18px; flex-wrap: wrap; }

@media (min-width: 1024px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .nav-desktop { display: block; }
  .nav-desktop { grid-column: 2; }
  .brand { grid-column: 1; justify-self: start; }
  .header-actions { grid-column: 3; justify-self: end; }
  .nav-toggle, .nav-mobile { display: none; }
  .actions-inline { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: calc(var(--pad-section) * 0.9) var(--pad-section);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--gap) * 1.6);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.hero-copy h1 { margin-bottom: 18px; }
.hero-copy p.lead { font-size: 17px; max-width: 46ch; margin-bottom: calc(var(--gap) * 1.3); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; aspect-ratio: 4/3; }
.orbit-scene {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--c-primary) 0%, var(--c-primary-strong) 100%);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px var(--c-shadow);
}
.orbit-scene::before {
  content: "";
  position: absolute; inset: -20%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c-secondary) 60%, transparent), transparent 60%);
  animation: driftGlow 9s ease-in-out infinite alternate;
}
@keyframes driftGlow {
  from { transform: translate(-4%, -4%) scale(1); }
  to   { transform: translate(4%, 4%) scale(1.12); }
}
.orbit-ring {
  position: absolute; border: 1.5px dashed color-mix(in srgb, var(--c-secondary) 55%, transparent);
  border-radius: 50%; top: 50%; left: 50%;
}
.orbit-ring.r1 { width: 62%; height: 62%; margin: -31% 0 0 -31%; animation: spin 16s linear infinite; }
.orbit-ring.r2 { width: 88%; height: 88%; margin: -44% 0 0 -44%; animation: spin 24s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-node {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-secondary); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-secondary) 25%, transparent);
}
.orbit-node.n1 { top: 15%; left: 22%; animation: floatY 4.5s ease-in-out infinite; }
.orbit-node.n2 { top: 66%; left: 74%; animation: floatY 5.5s ease-in-out infinite 0.6s; }
.orbit-node.n3 { top: 40%; left: 84%; width: 9px; height: 9px; animation: floatY 4s ease-in-out infinite 1.1s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.orbit-card {
  position: absolute; left: 50%; top: 50%; width: 58%;
  transform: translate(-50%, -50%);
  background: color-mix(in srgb, white 96%, transparent);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.4);
  animation: cardPulse 5s ease-in-out infinite;
}
@keyframes cardPulse { 0%,100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -52%) scale(1.02); } }
.orbit-card .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf6b; display: inline-block; margin-inline-end: 8px; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
/* This card is always rendered on a near-white surface (both themes), so its
   text/bar colors are fixed literals rather than theme tokens. */
.orbit-card .label { font-size: 13px; font-weight: 600; color: #14143d; }
.orbit-card .sub { font-size: 12px; color: #63637f; margin-top: 6px; }
.orbit-card .bar { height: 6px; border-radius: 4px; background: #eceafc; margin-top: 10px; overflow: hidden; }
.orbit-card .bar span { display: block; height: 100%; background: #4b4fd1; border-radius: 4px; animation: fillBar 3.2s var(--ease) infinite; }
@keyframes fillBar { 0% { width: 10%; } 50% { width: 85%; } 100% { width: 10%; } }

/* ---------- Stats ---------- */
.stats {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(3, 1fr);
  padding-block: calc(var(--gap) * 1.4);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.stat-item { text-align: center; }
.stat-num { font-size: clamp(28px, 5vw, var(--fs-h2)); font-weight: 700; color: var(--c-primary); }
.stat-label { font-size: 14px; color: var(--c-text-muted); margin-top: 4px; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: calc(var(--gap) * 1.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 34px -18px var(--c-shadow); border-color: var(--c-primary); }
.card .icon-wrap {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--c-secondary); color: var(--c-primary);
  margin-bottom: 16px;
}
.card h4 { margin-bottom: 8px; }
.card p { font-size: 15px; }

/* animated micro-icons (css/svg motion, used where source has no icon) */
.icon-pulse { position: relative; width: 22px; height: 22px; }
.icon-pulse::before, .icon-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor;
}
.icon-pulse::after { animation: pulseRing 2.2s ease-out infinite; }
.icon-pulse .core { position: absolute; inset: 6px; border-radius: 50%; background: currentColor; }
@keyframes pulseRing { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.icon-link { position: relative; width: 22px; height: 22px; }
.icon-link svg { width: 100%; height: 100%; }
.icon-link .dash { stroke-dasharray: 4 3; animation: dashMove 3s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -14; } }

.icon-chat svg { width: 22px; height: 22px; }
.icon-chat .typing circle { animation: typingDot 1.2s ease-in-out infinite; }
.icon-chat .typing circle:nth-child(2) { animation-delay: 0.15s; }
.icon-chat .typing circle:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot { 0%,60%,100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

.icon-bolt svg { width: 22px; height: 22px; }
.icon-bolt path { animation: boltFlicker 2.6s ease-in-out infinite; }
@keyframes boltFlicker { 0%,100% { opacity: 1; } 45% { opacity: 1; } 50% { opacity: 0.4; } 55% { opacity: 1; } }

/* ---------- Steps (how it works, with real screenshots) ---------- */
.steps { display: flex; flex-direction: column; gap: calc(var(--gap) * 2.2); }
.step-row { display: grid; grid-template-columns: 1fr; gap: calc(var(--gap) * 1.4); align-items: center; }
@media (min-width: 1024px) { .step-row { grid-template-columns: 1fr 1fr; } }
.step-row.reverse .step-media { order: -1; }
@media (min-width: 1024px) { .step-row.reverse .step-media { order: 2; } }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-primary); color: var(--c-on-primary);
  font-weight: 700; margin-bottom: 14px;
}
.step-media {
  position: relative; display: flex; justify-content: center;
  padding: calc(var(--gap) * 1.2) 0;
}
.step-media img {
  max-height: 420px; width: auto; border-radius: var(--radius-md);
  transition: transform 0.5s var(--ease);
}
.step-row:hover .step-media img { transform: translateY(-6px) scale(1.015); }
.step-media::before {
  content: ""; position: absolute; width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle, var(--c-secondary), transparent 70%);
  opacity: 0.6; filter: blur(6px); z-index: -1;
  animation: floatY 6s ease-in-out infinite;
}

/* feature illustration cards (real svg illustrations) */
.feature-illustration { display: flex; flex-direction: column; gap: var(--gap); }
.feature-illustration-row { display: grid; grid-template-columns: 1fr; gap: calc(var(--gap) * 1.4); }
@media (min-width: 768px) { .feature-illustration-row { grid-template-columns: repeat(2, 1fr); } }
.illustration-card img {
  border-radius: var(--radius-md);
  width: min(100%, 420px);
  height: auto;
  margin-inline: auto;
}
.illustration-card { text-align: center; }
.illustration-card h4 { margin-top: 16px; }
.illustration-card p { margin-top: 6px; max-width: 40ch; margin-inline: auto; }

/* pillars (clarity/experience/accountability — no source imagery, motion glyphs) */
.pillar-glyph {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-secondary); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.pillar-glyph svg { width: 26px; height: 26px; }
.pillar-glyph.spin svg { animation: spin 6s linear infinite; }
.pillar-glyph.pulse { animation: glyphPulse 2.4s ease-in-out infinite; }
@keyframes glyphPulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-primary) 30%, transparent); } 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--c-primary) 0%, transparent); } }
.pillar-glyph.check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: drawCheck 1.6s var(--ease) infinite; }
@keyframes drawCheck { 0% { stroke-dashoffset: 30; } 40%,100% { stroke-dashoffset: 0; } }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 700px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }
.price-card {
  display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); padding: calc(var(--gap) * 1.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -18px var(--c-shadow); }
.price-amount { font-size: var(--fs-h3); font-weight: 700; color: var(--c-primary); margin-block: 10px 18px; }
.price-divider { height: 1px; background: var(--c-border); margin-block: 4px 18px; }
.price-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; flex: 1; }
.price-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--c-text-muted); }
.price-features li svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--c-primary); }

/* ---------- Contact methods ---------- */
.contact-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { text-align: center; }
.contact-card .icon-wrap { margin-inline: auto; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--c-text-muted); }
.field input, .field textarea {
  background: var(--c-bg-alt);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 15px;
  color: var(--c-text);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); background: var(--c-surface); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--c-text-muted); margin-top: 10px; }
.form-success {
  display: none; align-items: center; gap: 10px;
  background: var(--c-success-bg); color: var(--c-success-text);
  padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  margin-top: 16px;
}
.form-success.is-visible { display: flex; animation: fadeSlideUp 0.4s var(--ease); }

.inline-form { display: flex; flex-wrap: wrap; gap: 12px; }
.inline-form input { flex: 1 1 220px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-strong));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: calc(var(--pad-section) * 0.6) var(--pad-inline);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--c-secondary) 35%, transparent), transparent 55%),
              radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--c-secondary) 25%, transparent), transparent 50%);
  animation: driftGlow 10s ease-in-out infinite alternate;
}
.cta-banner h2 { color: #fff; position: relative; }
.cta-banner p { color: color-mix(in srgb, #fff 78%, transparent); max-width: 50ch; margin-inline: auto; position: relative; margin-top: 10px; margin-bottom: calc(var(--gap) * 1.3); }
.cta-banner .btn-primary { background: #fff; color: var(--c-primary-strong); position: relative; }

/* ---------- Consultation quick links ---------- */
.quick-links { display: grid; gap: var(--gap); grid-template-columns: 1fr; margin-top: calc(var(--gap) * 1.2); }
@media (min-width: 640px) { .quick-links { grid-template-columns: repeat(2, 1fr); } }
.quick-link {
  display: flex; align-items: center; gap: 14px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); padding: 16px 18px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.quick-link:hover { transform: translateY(-3px); border-color: var(--c-primary); }
.quick-link .icon-wrap { margin-bottom: 0; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #060658; color: #DADAFA; padding-block: var(--pad-section) calc(var(--gap) * 1.4); }
.site-footer h4 { color: #fff; margin-bottom: 16px; }
.footer-grid { display: grid; gap: calc(var(--gap) * 1.6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; min-height: 46px; margin-bottom: 14px; }
.footer-brand img {
  display: block;
  width: clamp(112px, 10vw, 142px);
  height: auto;
  max-height: 74px;
  object-fit: contain;
  object-position: center left;
  filter: brightness(0) invert(1);
}
[dir="rtl"] .footer-brand img { object-position: center right; }
.footer-about { max-width: 40ch; color: color-mix(in srgb, #DADAFA 85%, transparent); font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-links li { font-size: 14px; color: color-mix(in srgb, #DADAFA 90%, transparent); }
.footer-links a:hover { color: #fff; }
.footer-newsletter .inline-form input {
  background: color-mix(in srgb, #fff 12%, transparent);
  border: 1px solid color-mix(in srgb, #fff 25%, transparent);
  color: #fff;
}
.footer-newsletter .inline-form input::placeholder { color: color-mix(in srgb, #fff 60%, transparent); }
.footer-bottom {
  margin-top: calc(var(--gap) * 2);
  padding-top: calc(var(--gap) * 1.2);
  border-top: 1px solid color-mix(in srgb, #fff 15%, transparent);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 13px; color: color-mix(in srgb, #DADAFA 80%, transparent);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, #fff 28%, transparent);
  border-radius: 999px;
  color: #fff;
  background: color-mix(in srgb, #fff 9%, transparent);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover { background: color-mix(in srgb, #fff 16%, transparent); transform: translateY(-1px); }
.theme-toggle svg { width: 16px; height: 16px; }

/* ---------- Page transition overlay (centered logo) ---------- */
.page-transition {
  position: fixed; inset: 0; z-index: 999;
  background: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.page-transition img { width: 96px; height: auto; animation: logoBreathe 1.4s ease-in-out infinite; }
:root[data-theme="dark"] .page-transition img { filter: brightness(0) invert(1); }
:root[data-theme="dark"] .cta-banner,
:root[data-theme="dark"] .orbit-scene {
  background: linear-gradient(145deg, #151767, #06061a);
}
@keyframes logoBreathe { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.9); opacity: 0.6; } }
.page-transition.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- RTL ---------- */
[dir="rtl"] .nav-desktop a::after { left: auto; right: 0; left: 100%; }
[dir="rtl"] .nav-desktop a:hover::after, [dir="rtl"] .nav-desktop a.is-active::after { left: 0; }
[dir="rtl"] .step-row.reverse .step-media { order: -1; }
@media (min-width: 1024px) {
  [dir="rtl"] .step-row.reverse .step-media { order: 2; }
}

/* ---------- Misc animations ---------- */
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeSlideUp 0.8s var(--ease) both; }

/* mobile landscape height compaction */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding-block: 28px 32px; }
  .site-header .header-inner { padding-block: 8px; }
}
