/* ---- Intro splash (first-visit "trick") ---- */
.fx-ribbon {
  position: relative;
  height: 64px;
  overflow: hidden;
  perspective: 800px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,.06), transparent);
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.fx-ribbon-track {
  display: flex; gap: 56px; align-items: center;
  height: 100%; width: max-content;
  animation: fx-marquee 42s linear infinite;
  transform-style: preserve-3d;
  white-space: nowrap;
  padding-inline: 32px;
}
html[dir="rtl"] .fx-ribbon-track { animation-direction: reverse; }
@keyframes fx-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.fx-ribbon-track .chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-2);
  transform: rotateY(-10deg) translateZ(0);
  transition: transform .4s, color .4s;
}
.fx-ribbon-track .chip:nth-child(even) { transform: rotateY(10deg); }
.fx-ribbon-track .chip:hover { color: var(--accent); transform: rotateY(0) scale(1.05); }
.fx-ribbon-track .chip svg { color: var(--accent); }
.fx-ribbon-track .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: .55;
}

.fx-intro {
  position: fixed; inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at center, #0d3b32 0%, #052017 80%);
  display: grid; place-items: center;
  overflow: hidden;
  pointer-events: all;
  opacity: 1;
  transition: opacity .7s ease;
}
.fx-intro.done { opacity: 0; pointer-events: none; }
.fx-intro-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, #fff 50%);
  transform: translateY(0);
  transition: transform 1.1s cubic-bezier(.7,.05,.2,1);
}
.fx-intro.play .fx-intro-veil { transform: translateY(-100%); }
.fx-intro-bubbles {
  position: absolute; inset: 0;
  pointer-events: none;
}
.fx-intro-bubbles span {
  position: absolute;
  bottom: -30px;
  left: var(--x, 50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(16,185,129,.4));
  box-shadow: 0 0 14px rgba(16,185,129,.5);
  transform: scale(var(--s,1));
  animation: fx-bubble 1.6s ease-out var(--d, 0s) forwards;
  opacity: 0;
}
@keyframes fx-bubble {
  0%   { transform: translateY(0)     scale(var(--s,1)); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(-110vh) scale(calc(var(--s,1) * 1.4)); opacity: 0; }
}
.fx-intro-mark {
  position: relative; z-index: 2;
  display: grid; place-items: center; gap: 14px;
  transform: scale(.85);
  animation: fx-mark-in 1s cubic-bezier(.2,.7,.2,1.1) .15s forwards;
  opacity: 0;
}
@keyframes fx-mark-in {
  to { transform: scale(1); opacity: 1; }
}
.fx-intro-mark svg {
  filter: drop-shadow(0 14px 32px rgba(16,185,129,.45));
  animation: fx-mark-pulse 1.4s ease-in-out infinite;
}
@keyframes fx-mark-pulse {
  50% { transform: translateY(-4px) rotate(-3deg); }
}
.fx-intro-label {
  font-size: 16px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.92);
  font-weight: 600;
  animation: fx-label 2s ease-in-out infinite;
}
@keyframes fx-label {
  0%,100% { opacity: .55; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-intro, .fx-ribbon-track { display: none !important; }
}

/* =========================================================
   Future Clean Service — shared styles
   ========================================================= */
:root {
  /* New brand: deep ocean navy + electric cyan */
  --bg: #f6f9fc;
  --bg-elev: #ffffff;
  --bg-soft: #eaf1f8;
  --ink: #0A2540;            /* deep ocean — primary brand dark */
  --ink-2: #1e3a5f;
  --ink-3: #5b7088;
  --ink-4: #92a3b6;
  --line: #dbe5ee;
  --line-2: #c2d1de;
  --accent: #00D4FF;         /* electric cyan — primary brand accent */
  --accent-2: #0099CC;
  --accent-3: #5BB8FF;
  --accent-soft: #d6f6ff;
  --accent-ink: #003b52;
  --gold: #F0B400;           /* premium accent for stars / awards */
  --warn: #F59E0B;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(10,37,64,.05), 0 1px 1px rgba(10,37,64,.03);
  --shadow: 0 1px 2px rgba(10,37,64,.04), 0 12px 28px -10px rgba(10,37,64,.12);
  --shadow-lg: 0 24px 70px -22px rgba(10,37,64,.28);
  --shadow-cyan: 0 16px 40px -14px rgba(0,212,255,.55);
  --container: 1240px;
  --font-en: "Manrope", "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-display: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Cairo", system-ui, sans-serif;
  --font-ar-display: "Tajawal", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Display font for headings */
h1, h2, h3 { font-family: var(--font-display); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--font-ar-display); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } .section-tight { padding: 48px 0; } }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 13px; }
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
}

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.25; }
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
p { margin: 0; color: var(--ink-2); text-wrap: pretty; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(11,20,16,.4);
}
.btn-primary:hover { background: #000; }
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(16,185,129,.6);
}
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-link {
  padding: 0;
  color: var(--accent-2);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}

.btn .arrow { transition: transform .2s; }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,251,250,.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  position: relative;
  filter: drop-shadow(0 8px 18px rgba(0,212,255,.35));
  transform: translateZ(0);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.brand:hover .brand-mark { transform: rotateY(20deg) rotateX(-8deg) scale(1.04); }
.brand-mark img, .brand-mark svg { width: 100%; height: 100%; object-fit: contain; }
.brand-text { font-size: 22px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.brand-text small {
  display: block;
  font-size: 10px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-en);
}
html[lang="ar"] .brand-text small { letter-spacing: 0.04em; text-transform: none; font-family: var(--font-ar); }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a.active { color: var(--ink); background: var(--bg-soft); }

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

.lang-toggle {
  display: inline-flex;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  padding: 4px;
  font-size: 13px;
}
.lang-toggle button {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.lang-toggle button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.menu-toggle { display: none; }
@media (max-width: 940px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; padding: 10px; border-radius: 10px; background: var(--bg-soft); }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open a { width: 100%; padding: 14px 16px; }
}

/* ---------- footer ---------- */
.site-footer {
  background: #0b1410;
  color: #d8e0dc;
  padding: 72px 0 32px;
}
.site-footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 600;
}
html[lang="ar"] .site-footer h4 { letter-spacing: 0; text-transform: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #aab5b0; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .quote {
  color: #6e7e78; font-style: italic; font-size: 14px; margin-top: 16px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #1a2520;
  padding-top: 24px;
  margin-top: 56px;
  font-size: 13px;
  color: #6e7e78;
  flex-wrap: wrap;
  gap: 12px;
}
.socials { display: flex; gap: 8px; }
.socials a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%;
  background: #14201b;
  border: 1px solid #1a2520;
  color: #aab5b0;
  transition: background .2s, color .2s;
}
.socials a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- floating CTA ---------- */
.floating-cta {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 40;
  display: flex; gap: 10px; flex-direction: column;
  align-items: flex-end;
}
.fab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  transition: transform .2s, background .2s;
}
.fab:hover { transform: translateY(-2px); }
.fab.whatsapp { background: #25d366; }
.fab.whatsapp:hover { background: #20b855; }
.fab svg { width: 18px; height: 18px; }

/* ---------- cards & utility ---------- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
}
.tag.dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,.2);
}

.divider {
  height: 1px; background: var(--line);
}

.kicker-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}

/* ---------- placeholder image ---------- */
.ph {
  background: repeating-linear-gradient(135deg, #eef3f0 0 12px, #e4ebe7 12px 24px);
  display: grid; place-items: center;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- accordion (FAQ) ---------- */
.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0;
  text-align: start;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  gap: 16px;
}
.accordion-trigger .plus {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background .2s, transform .3s;
  position: relative;
}
.accordion-trigger .plus::before,
.accordion-trigger .plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform .3s;
}
.accordion-trigger .plus::before { width: 12px; height: 1.5px; }
.accordion-trigger .plus::after { width: 1.5px; height: 12px; }
.accordion-item.open .accordion-trigger .plus { background: var(--accent); }
.accordion-item.open .accordion-trigger .plus::before,
.accordion-item.open .accordion-trigger .plus::after { background: #fff; }
.accordion-item.open .accordion-trigger .plus::after { transform: scaleY(0); }
.accordion-content {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.accordion-content > div {
  padding: 0 0 24px;
  color: var(--ink-2);
  max-width: 70ch;
}

/* ---------- focus ring ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* RTL helpers */
html[dir="rtl"] .nav-links { direction: rtl; }
