/* ==========================================================================
   Advirals Consulting Group — design system
   Tokens extracted from the AR/EN catalog. Layout uses CSS logical
   properties (inline-start/end) so the same rules mirror for dir="rtl"/"ltr".
   ========================================================================== */

:root {
  /* Brand palette (from catalog) */
  --crimson: #C4122F;        /* red icons, CTA fills, "01" page badges */
  --burgundy: #7A0C25;       /* header band gradient start */
  --wine: #4C0716;           /* header band vignette edge */
  --navy: #142244;           /* dark icons, footer bar, Pearl panels */
  --midnight: #0B1533;       /* Analytix card / back-cover background */
  --gold: #C9A24A;           /* map pins, Analytix accent, step rings */
  --gold-light: #E8CE86;
  --sky: #2E7CF6;            /* share-nodes mark in the logo, day-theme accent */
  --pearl: #8CB8F0;          /* Pearl icon glow */
  --mist: #F2F3F7;           /* page background */
  --paper: #FFFFFF;          /* cards */
  --ink: #1B2748;            /* headings */
  --ink-2: #4A5878;          /* body text */
  --ink-3: #7B869F;          /* captions */
  --line: #E1E4EC;

  /* Type */
  --font-ar: "Tajawal", "Readex Pro", system-ui, sans-serif;
  --font-en: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font: var(--font-ar);

  /* Type scale (1.25 major third, base 17px) */
  --fs-xs: .78rem;
  --fs-sm: .9rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5625rem;
  --fs-2xl: 1.95rem;
  --fs-3xl: 2.44rem;
  --fs-4xl: clamp(2.2rem, 4.6vw, 3.6rem);

  /* Shape — three radii, used by hierarchy (catalog: big cards ~24px, tiles ~16px, pills full) */
  --r-card: 14px;
  --r-tile: 10px;
  --r-pill: 999px;

  /* Elevation — the catalog's cards float on mist with a soft navy-tinted shadow */
  --sh-card: 0 1px 2px rgba(20, 34, 68, .06), 0 10px 24px -18px rgba(20, 34, 68, .35);
  --line-2: rgba(20, 34, 68, .14);
  --sh-float: 0 30px 60px -20px rgba(11, 21, 51, .55);

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(2.75rem, 5.5vw, 4.5rem);
}

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

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; overflow-x: clip;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { line-height: 1.8; font-size: 1.125rem; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.45; font-weight: 800; }
h1 { font-size: var(--fs-4xl); font-weight: 800; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.num { font-family: var(--font-en); font-variant-numeric: tabular-nums; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--r-pill); z-index: 100; }
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--fs-sm); line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--crimson); color: #fff; box-shadow: 0 10px 24px -10px rgba(196, 18, 47, .7); }
.btn-primary:hover { background: #A80E28; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--midnight); }
.btn-gold { background: var(--gold); color: var(--midnight); }
.btn-gold:hover { background: var(--gold-light); }
.btn-wa { background: #25D366; color: #06301b; }
.btn-wa:hover { background: #1fbd5a; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header — the catalog's crimson band: logo | divider | stacked brand block ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; color: #fff;
  background: linear-gradient(120deg, var(--burgundy) 0%, #9C0F2B 60%, var(--crimson) 100%);
  box-shadow: 0 8px 24px -12px rgba(76, 7, 22, .6);
}
.site-header::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background: url(/assets/world-dots.svg) center / 1400px auto no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent); mask-image: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent); }
.site-header .wrap { position: relative; display: flex; align-items: center; gap: 2rem; min-height: 80px; padding-inline: .5rem; }
.logo { display: flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none !important; flex: none; white-space: nowrap; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(160deg, #F0284A, #B30F2C); color: #fff;
  font-family: var(--font-en); font-weight: 800; font-size: 1.1rem; letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 14px -6px rgba(0, 0, 0, .5);
}
.logo-lockup { display: inline-flex; align-items: center; gap: .35rem; direction: ltr; }
.logo-nodes { width: 28px; height: 28px; color: var(--sky); flex: none; }
.logo-text { line-height: 1.2; padding-inline-start: .9rem; border-inline-start: 1px solid rgba(255, 255, 255, .35); }
.logo-text strong { display: block; font-size: .98rem; font-weight: 800; letter-spacing: 0; }
.logo-text em { display: block; font-style: normal; font-family: var(--font-en); font-weight: 600; font-size: .66rem; letter-spacing: .06em; color: rgba(255, 255, 255, .8); text-transform: uppercase; }
.logo-text span { display: flex; align-items: center; gap: .5rem; font-size: .72rem; color: var(--gold-light); font-weight: 500; margin-top: .15rem; }
.logo-text span::before, .logo-text span::after { content: ""; flex: 1; min-width: 14px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.logo-text span::after { background: linear-gradient(90deg, var(--gold), transparent); }
.nav { display: flex; gap: 1.6rem; margin-inline: auto; }
.nav a { color: rgba(255, 255, 255, .88); font-weight: 700; font-size: var(--fs-sm); padding: .35rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: #fff; text-decoration: none; border-bottom-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: .6rem; flex: none; white-space: nowrap; }
.header-actions .btn-primary { background: #fff; color: var(--crimson); box-shadow: none; }
.header-actions .btn-primary:hover { background: var(--gold-light); color: var(--burgundy); }
.lang-switch {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem; border-radius: var(--r-pill);
  border: 1.5px solid rgba(255, 255, 255, .5); background: transparent; color: #fff;
  font-weight: 700; font-size: var(--fs-sm); text-decoration: none !important;
}
.lang-switch:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.lang-switch svg { width: 16px; height: 16px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; }
.menu-btn svg { width: 22px; height: 22px; margin: auto; }
@media (max-width: 1100px) { .header-actions .btn { display: none; } }
@media (max-width: 960px) {
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; gap: 0; background: var(--burgundy); padding: .5rem var(--gutter) 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
  .menu-btn { display: inline-grid; }
  .header-actions .btn { display: none; }
  .logo-text em { display: none; }
}

/* ---------- Hero — the brand band with dotted world & signal ripple ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(255, 255, 255, .06), transparent 60%),
    radial-gradient(90% 80% at 10% 100%, var(--wine), transparent 70%),
    linear-gradient(120deg, var(--burgundy) 0%, #9C0F2B 55%, var(--crimson) 100%);
  border-end-start-radius: 44px; border-end-end-radius: 44px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
/* Gold dotted world map (src/assets/world-dots.svg) — the catalog's signature background */
.hero-dots {
  position: absolute; inset: 0; pointer-events: none;
  background: url(/assets/world-dots.svg) center / cover no-repeat;
  opacity: .28;
  -webkit-mask-image: radial-gradient(80% 90% at 50% 45%, #000 30%, transparent 100%);
          mask-image: radial-gradient(80% 90% at 50% 45%, #000 30%, transparent 100%);
}
.hero-pin { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px 2px rgba(201, 162, 74, .6); }
.hero-signal { position: absolute; inset-inline-end: 6%; top: 8%; width: 220px; height: 220px; pointer-events: none; }
.hero-signal span {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  animation: ripple 3.2s ease-out infinite;
}
.hero-signal span:nth-child(2) { animation-delay: 1.05s; }
.hero-signal span:nth-child(3) { animation-delay: 2.1s; }
.hero-signal i { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: #FF5B72; box-shadow: 0 0 0 6px rgba(255, 91, 114, .35), 0 0 24px 6px rgba(255, 91, 114, .5); }
@keyframes ripple { 0% { transform: scale(.25); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }

.hero .wrap {
  position: relative; display: grid; gap: 3rem; align-items: start;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  padding-block: clamp(1rem, 2.5vw, 2rem) clamp(4rem, 8vw, 6.5rem);
}
.hero h1 { color: #fff; margin: .5rem 0 1rem; }
.hero .kicker { color: var(--gold-light); font-weight: 600; font-size: var(--fs-sm); margin-bottom: 1.25rem; }
.hero .lead { color: rgba(255, 255, 255, .84); font-size: var(--fs-lg); margin-bottom: 2rem; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.25rem; }
.owner-badge {
  display: inline-flex; align-items: center; gap: 1rem; padding: .8rem 1.1rem;
  background: var(--midnight); border: 1px solid var(--gold); border-radius: var(--r-tile);
  color: #fff;
}
.owner-badge .ax { display: flex; align-items: center; gap: .5rem; color: var(--gold); font-family: var(--font-en); font-weight: 800; font-size: 1.15rem; padding-inline-end: 1rem; border-inline-end: 1px solid rgba(201, 162, 74, .35); }
.owner-badge .ax svg { width: 26px; height: 26px; }
.owner-badge strong { display: block; font-size: var(--fs-sm); color: var(--gold-light); }
.owner-badge span { display: block; font-size: var(--fs-xs); color: rgba(255, 255, 255, .7); }

/* Dashboard card (Analytix, night theme) */
.dash {
  margin-top: .5rem;
  background: var(--midnight); border: 1px solid rgba(201, 162, 74, .45); border-radius: var(--r-card);
  box-shadow: var(--sh-float); padding: 1.1rem; color: #fff; position: relative;
  transform: rotate(-1.5deg);
}
html[dir="rtl"] .dash { transform: rotate(1.5deg); }
.dash-bar { display: flex; align-items: center; gap: .6rem; font-family: var(--font-en); font-size: .72rem; color: rgba(255, 255, 255, .55); margin-bottom: .9rem; direction: ltr; }
.dash-bar i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dash-bar .url { margin-inline-start: auto; background: rgba(255, 255, 255, .08); padding: .2rem .7rem; border-radius: var(--r-pill); }
.dash-ticker { display: flex; gap: 1rem; flex-wrap: wrap; font-family: var(--font-en); font-size: .68rem; color: var(--gold-light); background: rgba(201, 162, 74, .12); padding: .35rem .7rem; border-radius: 8px; margin-bottom: .9rem; }
.dash h3 { color: #fff; font-size: var(--fs-sm); margin: 0 0 .7rem; }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: .8rem; }
.dash-grid div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: .55rem .75rem; }
.dash-grid small { display: block; font-size: .7rem; color: rgba(255, 255, 255, .6); }
.dash-grid b { font-family: var(--font-en); font-size: 1.05rem; font-weight: 800; color: #fff; }
.dash-trend { background: rgba(255, 255, 255, .05); border-radius: 12px; padding: .6rem .75rem; }
.dash-trend small { display: block; font-size: .7rem; color: rgba(255, 255, 255, .6); margin-bottom: .3rem; }
.dash-trend svg { width: 100%; height: 56px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-signal { width: 150px; height: 150px; top: 3%; }
  .dash { transform: none !important; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { max-width: 72ch; margin-bottom: 2.75rem; }
.section-head { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; margin-bottom: 2rem; }
.section-head .pg { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 .5rem; font-size: .85rem; border-radius: 12px; background: var(--crimson); color: #fff; font-weight: 800; font-size: 1.05rem; margin-top: .35rem; box-shadow: 0 8px 18px -8px rgba(196, 18, 47, .7); }
.section-head h2 { margin: 0 0 .4rem; }
.section-head p { grid-column: 2; }
#booking .section-head .pg { background: var(--gold); color: var(--midnight); box-shadow: none; }
.section-head p { font-size: var(--fs-lg); color: var(--ink-2); }
.section-alt { background: var(--paper); }

/* Trust strip */
.trust { margin-top: -3rem; position: relative; z-index: 2; }
.trust-card { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-card); box-shadow: var(--sh-card); padding: 1.5rem 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.trust-card > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 1.5rem; }
.trust-card div { display: flex; align-items: center; gap: .9rem; }
.trust-card b { flex: none; min-width: 64px; height: 64px; padding: 0 .5rem; border-radius: 999px; border: 2.5px solid var(--gold); display: grid; place-items: center; font-family: var(--font-en); font-size: 1.5rem; font-weight: 800; color: var(--crimson); line-height: 1; }
.trust-card span { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.4; }
.clients { margin-top: 2rem; display: flex; align-items: center; gap: 1.5rem 2.5rem; flex-wrap: wrap; justify-content: center; }
.clients p { margin: 0; color: var(--ink-3); font-size: var(--fs-sm); }
.clients li { font-family: var(--font-en); font-weight: 800; letter-spacing: .04em; color: var(--ink-3); opacity: .8; font-size: 1.05rem; }
@media (max-width: 900px) { .trust-card { grid-template-columns: repeat(2, 1fr); } }

/* Services */
.service-group { margin-bottom: 1.75rem; }
.service-group h3 { font-size: var(--fs-md); color: var(--ink-3); font-weight: 600; margin-bottom: 1rem; padding-inline-start: .1rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tile {
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-tile);
  padding: 1.5rem 1.4rem; display: flex; gap: 1.1rem; align-items: flex-start; position: relative; overflow: hidden;
  transition: border-color .2s, background .2s;
}
.tile:hover { border-color: var(--navy); background: #FBFBFD; }
.tile h4 { margin: .2rem 0 .35rem; font-size: var(--fs-md); }
.tile p { margin: 0; font-size: var(--fs-sm); }
.icon { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.icon svg { width: 24px; height: 24px; }
.icon-navy { background: var(--navy); }
.icon-red { background: var(--crimson); }
.icon-gold { background: var(--gold); color: var(--midnight); }
.icon-sky { background: var(--sky); }
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* Method — a genuine sequence, so numbered rings on a gold thread */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; inset-inline: 10%; top: 30px; border-top: 2px dashed rgba(201, 162, 74, .6); }
.step { position: relative; text-align: center; padding-top: .5rem; }
.step .ring {
  width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%; border: 2.5px solid var(--gold);
  display: grid; place-items: center; background: var(--paper); color: var(--navy);
  font-family: var(--font-en); font-weight: 800; font-size: 1.1rem; position: relative; z-index: 1;
}
.step:nth-child(even) .ring { color: var(--crimson); }
.step .icon { margin: 0 auto .9rem; width: 50px; height: 50px; }
.step h3 { font-size: var(--fs-md); }
.step p { font-size: var(--fs-sm); margin: 0 auto; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps::before { inset-inline: auto; inset-inline-start: 29px; top: 0; bottom: 0; border-top: 0; border-inline-start: 2px dashed rgba(201, 162, 74, .6); }
  .step { text-align: start; display: grid; grid-template-columns: 60px 1fr; column-gap: 1.25rem; align-items: start; }
  .step .ring { margin: 0; grid-row: 1 / span 3; }
  .step .icon { display: none; }
  .step p { margin: 0; }
}

/* Analytix day/night dashboards */
.dash-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; position: relative; }
.dash-pair .dash { transform: none !important; padding: .9rem; }
.dash-pair figcaption { text-align: center; color: rgba(255, 255, 255, .7); font-size: var(--fs-xs); margin-top: .6rem; }
.dash.day { background: #fff; border-color: #D5E2F5; color: var(--ink); box-shadow: 0 20px 40px -24px rgba(11, 21, 51, .6); }
.dash.day .dash-bar { color: var(--ink-3); } .dash.day .dash-bar .url { background: var(--mist); }
.dash.day .dash-ticker { background: var(--sky); color: #fff; }
.dash.day h3 { color: var(--ink); }
.dash.day .dash-grid div { background: #F6F9FF; border-color: #D5E2F5; } .dash.day .dash-grid small { color: var(--ink-3); } .dash.day .dash-grid b { color: var(--navy); }
.dash.day .dash-trend { background: #F6F9FF; } .dash.day .dash-trend small { color: var(--ink-3); }
@media (max-width: 800px) { .dash-pair { grid-template-columns: 1fr; } }

/* Platforms */
.platform { border-radius: var(--r-card); padding: clamp(1.5rem, 4vw, 3rem); color: #fff; position: relative; overflow: hidden; }
.platform + .platform { margin-top: 2rem; }
.platform-analytix { background: var(--midnight); border: 1px solid var(--gold); }
.platform-analytix::after { content: ""; position: absolute; inset-inline-start: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; border: 60px solid rgba(201, 162, 74, .08); pointer-events: none; }
.platform-pearl { background: linear-gradient(135deg, #16294F, var(--midnight)); border: 1px solid rgba(140, 184, 240, .35); }
.platform-pearl::after { content: ""; position: absolute; inset-inline-start: -140px; bottom: -140px; width: 360px; height: 360px; border-radius: 50%; border: 70px solid rgba(140, 184, 240, .07); pointer-events: none; }
.platform-head { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; margin-bottom: 2rem; position: relative; }
.platform-logo { display: flex; align-items: center; gap: .75rem; font-family: var(--font-en); font-weight: 800; font-size: 1.8rem; color: var(--gold); }
.platform-logo .mark { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(160deg, var(--gold-light), #A9822B); color: var(--midnight); }
.platform-logo .mark svg { width: 30px; height: 30px; }
.platform-logo small { display: block; font-size: .62rem; letter-spacing: .12em; color: rgba(255, 255, 255, .6); font-weight: 600; }
.platform-pearl .platform-logo { color: #fff; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 2rem; }
.platform-pearl .platform-logo .mark { background: radial-gradient(circle at 40% 35%, #fff 0, #cfe2ff 20%, #4d7fd1 45%, #16294F 70%); border-radius: 50%; box-shadow: 0 0 0 5px rgba(140, 184, 240, .25); }
.platform-pearl .platform-logo small { font-family: var(--font-ar); letter-spacing: 0; font-size: .9rem; }
.platform-head h3 { color: #fff; font-size: var(--fs-xl); margin: 0 0 .35rem; }
.platform-head .motto { color: var(--gold-light); font-size: var(--fs-sm); margin: 0; }
.platform-pearl .platform-head .motto { color: var(--pearl); }
.url-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: var(--r-pill); border: 1.5px solid var(--gold); color: var(--gold-light); font-family: var(--font-en); font-weight: 700; font-size: var(--fs-sm); text-decoration: none !important; direction: ltr; }
.url-chip:hover { background: rgba(201, 162, 74, .15); }
.platform-pearl .url-chip { border-color: var(--pearl); color: #dbe9ff; }
.platform-pearl .url-chip:hover { background: rgba(140, 184, 240, .15); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2rem; position: relative; }
.platform-pearl .feature-grid { grid-template-columns: repeat(4, 1fr); }
.feature { border-top: 1px solid rgba(201, 162, 74, .5); padding: 1rem .2rem .6rem; }
.platform-pearl .feature { border-top-color: rgba(140, 184, 240, .45); }
.feature h4 { color: #fff; font-size: var(--fs-sm); margin: 0 0 .25rem; }
.platform-analytix .feature h4 { color: var(--gold-light); }
.feature p { color: rgba(255, 255, 255, .72); font-size: var(--fs-xs); margin: 0; }
.platform-note { margin: 1.5rem 0 0; color: rgba(255, 255, 255, .6); font-size: var(--fs-sm); }
.ops { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.5rem; position: relative; }
.ops p { margin: 0; color: var(--gold-light); font-weight: 700; font-size: var(--fs-sm); }
.ops li { border: 1px solid rgba(140, 184, 240, .4); color: #dbe9ff; padding: .3rem .8rem; border-radius: var(--r-pill); font-size: var(--fs-xs); }
.pipeline { margin-top: 1.75rem; background: var(--paper); border-radius: var(--r-tile); padding: 1rem; color: var(--ink); position: relative; border: 1px solid rgba(140, 184, 240, .5); }
.pipeline-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; font-weight: 700; font-size: var(--fs-sm); }
.pipeline-head span { font-size: var(--fs-xs); background: var(--navy); color: #fff; padding: .25rem .7rem; border-radius: var(--r-pill); }
.pipeline-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.pipeline-col { background: var(--mist); border-radius: 12px; padding: .6rem; }
.pipeline-col h5 { margin: 0 0 .5rem; font-size: var(--fs-xs); display: flex; justify-content: space-between; color: var(--ink-2); }
.pipeline-col h5 i { font-style: normal; background: var(--navy); color: #fff; border-radius: var(--r-pill); padding: 0 .45rem; font-family: var(--font-en); }
.deal { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: .45rem .6rem; margin-bottom: .4rem; font-size: var(--fs-xs); display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.deal b { display: block; color: var(--ink); font-weight: 700; }
.deal span { font-family: var(--font-en); color: var(--ink-3); }
.pipeline-col:last-child .deal { border-color: #2FB36A; }
@media (max-width: 900px) {
  .platform-head { grid-template-columns: 1fr; gap: 1rem; }
  .feature-grid, .platform-pearl .feature-grid { grid-template-columns: 1fr 1fr; }
  .pipeline-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .feature-grid, .platform-pearl .feature-grid { grid-template-columns: 1fr; } }

/* Projects */
.project { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-tile); padding: 1.75rem; display: grid; grid-template-columns: 96px 1fr; gap: 1.5rem; align-items: start; }
.project + .project { margin-top: 1.25rem; }
.project .big-icon { width: 96px; height: 96px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.project .big-icon svg { width: 44px; height: 44px; }
.project h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font-size: var(--fs-xl); }
.badge { font-family: var(--font-en); font-size: .72rem; font-weight: 700; padding: .3rem .8rem; border-radius: var(--r-pill); color: #fff; background: var(--navy); direction: ltr; }
.badge-red { background: var(--crimson); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.tags li { font-size: var(--fs-xs); color: var(--navy); background: var(--mist); border: 1px solid var(--line); padding: .25rem .75rem; border-radius: var(--r-pill); }
.projects-closing { text-align: center; margin: 2.5rem auto 0; font-weight: 700; color: var(--ink); }
@media (max-width: 640px) { .project { grid-template-columns: 1fr; } .project .big-icon { width: 64px; height: 64px; border-radius: 16px; } }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-tile); padding: 1.75rem; margin: 0; position: relative; }
.quote::before { content: "”"; position: absolute; inset-inline-end: 1.25rem; top: .25rem; font-size: 5rem; line-height: 1; color: var(--gold); opacity: .5; font-family: Georgia, serif; }
html[dir="rtl"] .quote::before { content: "”"; }
.quote p { font-size: var(--fs-md); color: var(--ink); margin-bottom: 1.25rem; }
.quote footer { font-size: var(--fs-sm); color: var(--ink-3); }
.quote footer b { display: block; color: var(--navy); }
.note { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 1rem; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; }
.about-card { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 2rem; }
.about-card .lead { font-size: var(--fs-lg); color: var(--ink); font-weight: 600; }
.vm { display: grid; gap: 1.5rem; }
.vm div { display: flex; gap: 1rem; }
.vm h3 { margin-bottom: .3rem; }
.vm p { font-size: var(--fs-sm); margin: 0; }
.values { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; margin-top: 1.75rem; }
.values li { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-tile); text-align: center; padding: 1rem .5rem; font-size: var(--fs-sm); font-weight: 700; color: var(--navy); }
.values li .icon { width: 40px; height: 40px; margin: 0 auto .5rem; }
.values li .icon svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .values { grid-template-columns: repeat(3, 1fr); } }

/* Team */
.chief { background: linear-gradient(135deg, #16294F, var(--midnight)); color: #fff; border-radius: var(--r-card); padding: 2rem; display: grid; grid-template-columns: auto 1fr; gap: 1.75rem; align-items: center; margin-bottom: 1.5rem; }
.avatar { width: 110px; height: 110px; border-radius: 50%; background: #E3E7F2; border: 4px solid var(--gold); display: grid; place-items: center; color: var(--navy); }
.avatar svg { width: 54px; height: 54px; }
.chief small { color: var(--gold-light); font-weight: 700; font-size: var(--fs-sm); }
.chief h3 { color: #fff; font-size: var(--fs-2xl); margin: .2rem 0 .5rem; }
.chief p { color: rgba(255, 255, 255, .8); margin: 0; font-size: var(--fs-sm); }
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
/* Team flip cards: front = name card, back = photo */
.member-flip { perspective: 1400px; min-height: 330px; }
.flip-inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.4, 0, .2, 1); }
.member-flip:hover .flip-inner, .member-flip:focus-within .flip-inner { transform: rotateY(180deg); }
html[dir="rtl"] .member-flip:hover .flip-inner, html[dir="rtl"] .member-flip:focus-within .flip-inner { transform: rotateY(-180deg); }
.face-front, .face-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--r-tile); overflow: hidden; }
.member { background: var(--paper); border: 1px solid var(--line-2); padding: 2rem 1.5rem; text-align: center; }
.face-back { transform: rotateY(180deg); background: var(--navy); color: #fff; }
html[dir="rtl"] .face-back { transform: rotateY(-180deg); }
.face-back img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.face-back-fallback { display: none; position: absolute; inset: 0; place-items: center; color: var(--gold); background: radial-gradient(80% 80% at 50% 30%, #1C2F5E, var(--midnight)); }
.face-back-fallback svg { width: 90px; height: 90px; }
.face-back.no-photo img { display: none; } .face-back.no-photo .face-back-fallback { display: grid; }
.face-back-caption { position: absolute; inset-inline: 0; bottom: 0; padding: 2.5rem 1.25rem 1.25rem; background: linear-gradient(transparent, rgba(11, 21, 51, .92)); text-align: start; }
.face-back-caption h3 { color: #fff; font-size: var(--fs-lg); margin: 0 0 .15rem; }
.face-back-caption p { color: var(--gold-light); margin: 0; font-size: var(--fs-sm); font-weight: 600; }
.chief-photo { overflow: hidden; position: relative; }
.chief-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .member-flip { min-height: 0; } .flip-inner { transform: none !important; } .face-front { position: relative; } .face-back { display: none; } }
.member .avatar { width: 88px; height: 88px; border: 0; margin: 0 auto 1rem; }
.member h3 { color: var(--crimson); font-size: var(--fs-lg); margin-bottom: .2rem; }
.member p { margin: 0 auto; color: var(--navy); font-weight: 600; font-size: var(--fs-sm); }
@media (max-width: 800px) { .members { grid-template-columns: 1fr; } .chief { grid-template-columns: 1fr; text-align: center; } .chief .avatar { margin: 0 auto; } }

/* FAQ — native disclosure, styled */
.faq-list { max-width: 820px; }
.faq-list details { background: var(--paper); border: 1px solid var(--line-2); border-radius: 8px; margin-bottom: .6rem; }
.faq-list summary { cursor: pointer; padding: 1.1rem 1.35rem; font-weight: 700; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; margin-inline-start: auto; font-family: var(--font-en); font-size: 1.4rem; color: var(--crimson); line-height: 1; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 1.35rem 1.2rem; margin: 0; font-size: var(--fs-sm); }

/* Booking — closing band (back cover): midnight, gold ribbon, dotted map */
#booking { background: var(--midnight); color: rgba(255, 255, 255, .8); position: relative; overflow: hidden; margin-top: var(--section); border-start-start-radius: 44px; border-start-end-radius: 44px; }
#booking::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold)); }
#booking::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; background: url(/assets/world-dots.svg) center top / cover no-repeat; -webkit-mask-image: linear-gradient(#000, transparent 80%); mask-image: linear-gradient(#000, transparent 80%); }
#booking .wrap { position: relative; }
#booking .section-head h2 { color: #fff; } #booking .section-head p { color: rgba(255, 255, 255, .75); }
#booking .section-head h2::before { background: var(--gold); }
#booking .contact-card { background: transparent; border: 1px solid rgba(201, 162, 74, .5); }

.booking-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: start; }
.form-card { background: var(--paper); border-radius: var(--r-card); padding: 2rem; color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 8px; border: 1.5px solid var(--line); background: var(--mist);
  transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--paper); box-shadow: 0 0 0 4px rgba(20, 34, 68, .08); }
.field textarea { min-height: 120px; resize: vertical; }
.field input[type="tel"], .field input[type="email"], .field input[type="date"] { direction: ltr; text-align: start; }
.form-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; }
.form-foot small { color: var(--ink-3); font-size: var(--fs-xs); }
.form-status { margin-top: 1rem; padding: .8rem 1rem; border-radius: 12px; font-size: var(--fs-sm); display: none; }
.form-status.ok { display: block; background: #E7F7EE; color: #0F5B32; }
.form-status.err { display: block; background: #FDE8EB; color: #8A0F24; }
.contact-card { background: var(--navy); color: #fff; border-radius: var(--r-card); padding: 2rem; }
.contact-card h3 { color: #fff; }
.contact-list li { display: flex; align-items: center; gap: .9rem; padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { width: 42px; height: 42px; }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: rgba(255, 255, 255, .55); font-size: var(--fs-xs); }
.contact-list a { color: #fff; font-weight: 700; font-family: var(--font-en); direction: ltr; unicode-bidi: isolate; display: inline-block; }
.socials { display: flex; gap: .75rem; margin-top: 1.25rem; }
.socials a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: var(--fs-xs); font-weight: 600; }
.socials a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.socials svg { width: 16px; height: 16px; }
.contact-card .btn-wa { margin-top: 1.5rem; width: 100%; justify-content: center; }
@media (max-width: 900px) { .booking-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .75); padding: 3.5rem 0 2rem; position: relative; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer::before { content: ""; position: absolute; inset: 0; background: url(/assets/world-dots.svg) center / cover no-repeat; opacity: .12; pointer-events: none; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.site-footer .logo { color: #fff; }
.site-footer .logo-text span { color: rgba(255, 255, 255, .6); }
.site-footer h4 { color: #fff; font-size: var(--fs-sm); margin-bottom: 1rem; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: #fff; }
.footer-tag { color: var(--gold-light); font-weight: 700; margin-top: 1.25rem; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: var(--fs-xs); color: rgba(255, 255, 255, .6); }
.footer-bottom .pg { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--crimson); color: #fff; font-family: var(--font-en); font-weight: 800; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }
.pf-chip { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .9rem; border-radius: 12px; border: 1px solid; margin-bottom: .6rem; font-family: var(--font-en); font-weight: 700; text-decoration: none !important; }
.pf-chip.ax { border-color: var(--gold); color: var(--gold-light) !important; }
.pf-chip.pl { border-color: var(--pearl); color: #dbe9ff !important; }
.pf-chip span { font-weight: 400; font-size: var(--fs-xs); opacity: .8; direction: ltr; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.wa-float { position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .8); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { text-decoration: none; transform: scale(1.05); }

/* ---------- Colored flip cards: each card owns a brand color and swaps to its partner on hover ---------- */
.cards { display: grid; gap: 1rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  --bg: var(--navy); --bg-hover: var(--crimson); --fg: #fff; --fg-hover: #fff; --ic: var(--gold);
  background: var(--bg); color: var(--fg); border-radius: var(--r-tile); padding: 1.6rem 1.5rem; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card::before { content: ""; position: absolute; inset: 0; background: var(--bg-hover); transform: translateY(101%); transition: transform .35s cubic-bezier(.4, 0, .2, 1); }
.card > * { position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -18px rgba(11, 21, 51, .6); color: var(--fg-hover); }
.card:hover::before { transform: translateY(0); }
.card h4 { color: inherit; margin: .9rem 0 .35rem; font-size: var(--fs-md); }
.card p { color: inherit; opacity: .85; margin: 0; font-size: var(--fs-sm); max-width: none; }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(255, 255, 255, .12); color: var(--ic); transition: background .3s, color .3s; }
.card-icon svg { width: 24px; height: 24px; }
.card:hover .card-icon { background: rgba(255, 255, 255, .2); color: #fff; }
.card.c0 { --bg: var(--navy);    --bg-hover: var(--crimson); --ic: var(--gold-light); }
.card.c1 { --bg: var(--crimson); --bg-hover: var(--midnight); --ic: #fff; }
.card.c2 { --bg: var(--gold);    --bg-hover: var(--navy); --fg: var(--midnight); --fg-hover: #fff; --ic: var(--midnight); }
.card.c2 .card-icon { background: rgba(11, 21, 51, .12); }
.card-sm { padding: 1.1rem .75rem; text-align: center; font-weight: 700; font-size: var(--fs-sm); display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.card-sm .card-icon { width: 40px; height: 40px; } .card-sm .card-icon svg { width: 20px; height: 20px; }
.service-grid { gap: 1rem; }
.values { gap: .75rem; }

/* n8n flow strip */
.flow { display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr; align-items: stretch; gap: .5rem; margin-bottom: 1.75rem; }
.flow-node { border: 1px solid var(--line-2); border-radius: var(--r-tile); padding: 1rem 1.2rem; background: var(--mist); position: relative; }
.flow-node small { display: inline-block; font-family: var(--font-en); font-weight: 800; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--navy); padding: .15rem .6rem; border-radius: 4px; margin-bottom: .5rem; }
.flow-node.n2 { border-color: var(--crimson); background: #FFF5F6; } .flow-node.n2 small { background: var(--crimson); }
.flow-node.n3 small { background: var(--gold); color: var(--midnight); }
.flow-node p { margin: 0; font-size: var(--fs-sm); color: var(--ink); }
.flow-arrow { align-self: center; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 10px); position: relative; }
.flow-arrow::after { content: ""; position: absolute; inset-inline-end: -2px; top: -5px; border: 6px solid transparent; border-inline-start: 8px solid var(--gold); }
.auto-foot { margin-top: 1.75rem; display: grid; grid-template-columns: 1fr auto; gap: 1.25rem 2rem; align-items: center; }
.stack { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; grid-column: 1 / -1; }
.stack p { margin: 0; font-weight: 700; color: var(--ink); font-size: var(--fs-sm); }
.stack li { font-family: var(--font-en); font-size: var(--fs-xs); font-weight: 600; color: var(--navy); border: 1px solid var(--line-2); padding: .25rem .7rem; border-radius: var(--r-pill); }
.stack li:first-child { background: #EA4B71; border-color: #EA4B71; color: #fff; }
.auto-stats { display: flex; gap: 2rem; }
.auto-stats li { display: flex; align-items: center; gap: .6rem; }
.auto-stats b { font-size: 1.6rem; font-weight: 800; color: var(--crimson); }
.auto-stats span { font-size: var(--fs-xs); color: var(--ink-2); max-width: 12ch; line-height: 1.3; }
@media (max-width: 900px) {
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; } .flow-arrow { display: none; }
  .auto-foot { grid-template-columns: 1fr; } .auto-stats { flex-wrap: wrap; gap: 1rem; }
}
@media (max-width: 600px) { .cards-3 { grid-template-columns: 1fr; } }
