/* ==========================================================
   Livreson — front office (based on the landing-page template)
   ========================================================== */
:root {
  --bg: #FDF7F0;
  --bg-alt: #F9EEE2;
  --card: #FFFBF6;
  --orange: #F07C1E;
  --orange-dark: #D9650C;
  --orange-soft: #FDE6CF;
  --orange-softer: #FEF1E3;
  --ink: #1D1A17;
  --ink-2: #3A342E;
  --muted: #6E655C;
  --line: #EFE2D3;
  --footer: #1E1C1A;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(120, 70, 20, .06);
  --shadow: 0 18px 40px -12px rgba(140, 80, 20, .22);
  --ease: cubic-bezier(.22, .9, .3, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

main { overflow-x: clip; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.ic {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--orange), #FFB066);
  transform: scaleX(0); transform-origin: left;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
}
.btn .ic { transition: transform .35s var(--ease); }
.btn:hover .ic { transform: translateX(5px); }
.btn::after { /* shine sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 22px -8px rgba(240,124,30,.6); }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(240,124,30,.7); }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--orange-dark); transform: translateY(-3px); }
.btn--sm { padding: 10px 22px; font-size: .92rem; }

.round-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--orange); color: #fff;
  transition: transform .35s var(--ease), background .3s;
}
.round-btn:hover { background: var(--orange-dark); transform: scale(1.08) rotate(-8deg); }
.round-btn:hover .ic { animation: nudge .6s var(--ease) infinite alternate; }
@keyframes nudge { to { transform: translateX(3px); } }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--ink-2); cursor: pointer;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.icon-btn:hover { background: var(--orange-soft); color: var(--orange-dark); transform: translateY(-2px); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.link-arrow .ic { color: var(--orange); transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--orange-dark); }
.link-arrow:hover .ic { transform: translateX(6px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; transition: height .4s var(--ease); }
.header.scrolled { background: rgba(253,247,240,.86); backdrop-filter: blur(14px); box-shadow: 0 6px 24px -12px rgba(120,70,20,.25); }
.header.scrolled .header__inner { height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { width: 42px; height: 42px; transition: transform .6s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-12deg) scale(1.08); }
.brand__text strong { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.brand__text small { display: block; font-size: .72rem; color: var(--muted); margin-top: 3px; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: #a9a098; }

.nav { display: flex; gap: 34px; margin-inline: auto; }
.nav__link { position: relative; font-weight: 500; font-size: .95rem; padding: 6px 0; color: var(--ink-2); transition: color .3s; }
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 22px; height: 3px; border-radius: 3px;
  background: var(--orange); transform: translateX(-50%) scaleX(0); transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: translateX(-50%) scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 6px; }
.header__actions .btn { margin-inline-start: 10px; }
.menu-toggle { display: none; }
.menu-toggle .ic--close { display: none; }

/* ---------- Language switch (FR / EN / ع links, sliding thumb) ---------- */
.lang-switch {
  --n: 3; --i: 0; --w: 36px;
  position: relative; direction: ltr; display: inline-flex; flex-shrink: 0; padding: 4px; margin-inline-end: 6px;
  border-radius: 999px; background: var(--orange-softer); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s;
}
.lang-switch:hover { box-shadow: inset 0 0 0 1px var(--orange), 0 6px 16px -8px rgba(240,124,30,.5); }
.lang-switch a {
  position: relative; z-index: 1; display: grid; place-items: center; width: var(--w); height: 30px; border-radius: 999px;
  color: var(--muted); font-weight: 700; font-size: .78rem; letter-spacing: .02em; text-decoration: none;
  transition: color .3s, transform .3s var(--ease);
}
.lang-switch a[lang="ar"] { font-family: "Cairo", sans-serif; font-size: 1rem; line-height: 1; }
.lang-switch a:hover { color: var(--ink); transform: scale(1.08); }
.lang-switch a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.lang-switch a[aria-current="true"] { color: #fff; }
.lang-switch a[aria-current="true"]:hover { transform: none; }
.lang-switch__thumb {
  position: absolute; top: 4px; left: 4px; width: var(--w); height: 30px; border-radius: 999px;
  background: var(--orange); box-shadow: 0 6px 14px -6px rgba(240,124,30,.8);
  transform: translateX(calc(var(--i) * 100%)); transition: transform .45s var(--ease);
}
.lang-switch.is-leaving a[aria-current="true"] { color: var(--muted); }
.lang-switch.is-leaving a.is-target { color: #fff; }

/* Fade out while leaving for another language */
main, .footer { transition: opacity .22s ease; }
.is-switching main, .is-switching .footer { opacity: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + 30px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 20px; min-height: 560px; }

.badge {
  display: inline-block; padding: 7px 14px; border-radius: 8px;
  background: var(--orange-soft); color: var(--orange-dark);
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.hero__title { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; margin: 22px 0 22px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--orange); position: relative; }
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; z-index: -1;
  background: var(--orange-soft); border-radius: 4px;
  transform: scaleX(0); transform-origin: left; animation: grow 1s 1.2s var(--ease) forwards;
}
@keyframes grow { to { transform: scaleX(1); } }
.hero__text { font-size: 1.12rem; color: var(--ink-2); max-width: 470px; }

.track-pill {
  margin-top: 34px; display: flex; align-items: center; gap: 12px;
  width: min(100%, 470px); padding: 8px; padding-inline-start: 22px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow);
  transition: box-shadow .35s, transform .35s var(--ease);
}
.track-pill:focus-within { transform: translateY(-2px); box-shadow: 0 0 0 4px var(--orange-soft), var(--shadow); }
.track-pill__pin { color: var(--ink-2); }
.track-pill input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.track-pill input::placeholder { color: #a39a91; }

.hero__trust { margin-top: 28px; display: flex; align-items: center; gap: 14px; font-size: .92rem; color: var(--muted); }
.hero__trust strong { color: var(--ink); }
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px; border-radius: 50%; margin-inline-start: -10px; border: 2px solid var(--bg);
  display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #F7A35C, var(--orange-dark));
  transition: transform .3s var(--ease);
}
.avatars span:first-child { margin-inline-start: 0; }
.avatars span:nth-child(2) { background: linear-gradient(135deg, #8BB174, #4F8A42); }
.avatars span:nth-child(3) { background: linear-gradient(135deg, #7DA2D6, #3F67A8); }
.avatars span:last-child { background: var(--ink); }
.avatars:hover span { transform: translateY(-4px); }
.avatars:hover span:nth-child(2) { transition-delay: .05s; }
.avatars:hover span:nth-child(3) { transition-delay: .1s; }
.avatars:hover span:nth-child(4) { transition-delay: .15s; }

/* Hero entrance */
.hero-anim { opacity: 0; transform: translateY(30px); animation: rise .9s var(--d, 0s) var(--ease) forwards; }
.hero__title .hero-anim { transform: translateY(105%); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Hero visual */
.hero__visual { position: relative; align-self: stretch; display: flex; align-items: flex-end; }
.hero__blob {
  position: absolute; inset-inline-end: -14%; top: -6%; width: 112%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 60% 40%, rgba(255,255,255,.6), transparent 55%),
    linear-gradient(160deg, #FCDDBC 0%, #F9C895 55%, #F6B676 100%);
  opacity: 0; transform: scale(.8);
  animation: blobIn 1.2s .1s var(--ease) forwards, blobMorph 14s 1.3s ease-in-out infinite;
}
@keyframes blobIn { to { opacity: 1; transform: none; } }
@keyframes blobMorph {
  0%, 100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
  33% { border-radius: 56% 44% 52% 48% / 46% 54% 46% 54%; }
  66% { border-radius: 46% 54% 44% 56% / 54% 46% 54% 46%; }
}
.hero-art { position: relative; width: 100%; height: auto; overflow: visible; }
.hero-art .layer { transition: transform .5s var(--ease); }
.skyline { opacity: .55; }

/* Van drives in, then idles */
.van { animation: driveIn 1.6s .3s var(--ease) both; }
.van > g { animation: idle 2.6s 1.9s ease-in-out infinite; }
@keyframes driveIn { from { transform: translateX(520px); opacity: 0; } 30% { opacity: 1; } to { transform: none; } }
@keyframes idle { 0%, 100% { transform: translate(36px,188px); } 50% { transform: translate(36px,186px); } }
.wheel { animation: spin .5s linear 4 .3s; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(-360deg); } }
.road path { animation: roadMove 1.6s .3s linear both; }
@keyframes roadMove { from { stroke-dashoffset: -160; } to { stroke-dashoffset: 0; } }

/* Boxes drop */
.box { opacity: 0; animation: drop .8s var(--ease) forwards; }
.box--1 { animation-delay: 1.2s; } .box--2 { animation-delay: 1.35s; }
.box--3 { animation-delay: 1.5s; } .box--4 { animation-delay: 1.65s; }
@keyframes drop {
  0% { opacity: 0; transform: translateY(-80px); }
  60% { opacity: 1; transform: translateY(6px); }
  80% { transform: translateY(-3px); }
  100% { opacity: 1; transform: none; }
}
.hand-truck { opacity: 0; animation: fadeIn .6s 1.1s forwards; }
.plant { transform-origin: 640px 470px; transform-box: view-box; animation: sway 5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-4deg); } }
@keyframes fadeIn { to { opacity: 1; } }

/* Hand-written note */
.hand-note { position: absolute; top: 4%; right: 6%; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; color: var(--ink-2); transform: rotate(-8deg); }
.hand-note__text {
  font-family: "Caveat", cursive; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.05; text-align: right;
  clip-path: inset(0 100% 0 0); animation: write 1.4s 1.6s steps(24) forwards;
}
@keyframes write { to { clip-path: inset(0 0 0 0); } }
.hand-note__arrow { width: 58px; margin-right: 30px; }
.hand-note__arrow path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw .9s 2.8s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Features strip ---------- */
.features {
  position: relative; z-index: 2; margin-top: 10px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 30px 10px; background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.feature { display: flex; gap: 16px; align-items: center; padding: 6px 24px; position: relative; cursor: default; }
.feature + .feature::before { content: ""; position: absolute; inset-inline-start: 0; top: 10%; bottom: 10%; width: 1px; background: var(--line); }
.feature h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.feature p { font-size: .84rem; color: var(--muted); line-height: 1.45; }

.icon-circle {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange-dark);
  transition: background .35s, color .35s, transform .5s var(--ease), box-shadow .35s;
}
.icon-circle .ic { width: 26px; height: 26px; }
.feature:hover .icon-circle {
  background: var(--orange); color: #fff; transform: rotate(-10deg) scale(1.08);
  box-shadow: 0 10px 20px -8px rgba(240,124,30,.7);
}
.feature:hover .icon-circle .ic { animation: wiggle .6s ease; }
@keyframes wiggle { 25% { transform: rotate(12deg); } 50% { transform: rotate(-10deg); } 75% { transform: rotate(6deg); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 30px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.kicker-line { display: block; width: 34px; height: 3px; border-radius: 3px; background: var(--orange); margin-bottom: 18px; }
.section__title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.025em; }
.section__sub { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }

/* ---------- Service cards ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  position: relative; overflow: hidden; padding: 30px 26px 26px; border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-sm); border: 1px solid transparent;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.glow-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), rgba(240,124,30,.14), transparent 60%);
}
.glow-card:hover::before { opacity: 1; }
.service-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--orange), #FFB066); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: var(--orange-soft); }
.service-card:hover::after { transform: scaleX(1); }
.service-card__icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 26px;
  background: linear-gradient(145deg, var(--orange-soft), #FAD0A6); color: var(--orange-dark);
  transition: transform .6s var(--ease), background .4s, color .4s;
}
.service-card__icon .ic { width: 30px; height: 30px; }
.service-card:hover .service-card__icon { transform: translateY(-4px) rotate(360deg); background: var(--orange); color: #fff; }
.service-card h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 10px; }
.service-card p { font-size: .9rem; color: var(--muted); min-height: 3.9em; }
.more { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--orange-dark); }
.more .ic { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.service-card:hover .more .ic { transform: translateX(6px); }

/* ---------- Marquee ---------- */
.marquee { direction: ltr; overflow: hidden; padding: 22px 0; background: var(--ink); color: #fff; transform: rotate(-1.5deg); margin: 10px -20px 70px; }
.marquee__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: 1.35rem; font-weight: 600; white-space: nowrap; transition: color .3s; }
.marquee span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.marquee span:hover { color: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Promo ---------- */
.promo {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  padding: 44px 0 0; padding-inline-start: 56px; border-radius: var(--radius-lg);
  background: linear-gradient(110deg, #FDE7CF 0%, #FBD3A7 55%, #F8BD7F 100%);
}
.promo__content { padding-bottom: 44px; }
.promo__kicker { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.promo h2 { margin: 14px 0 16px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.025em; }
.promo p { color: var(--ink-2); margin-bottom: 28px; }
.promo__art svg { width: 100%; height: auto; overflow: visible; }
.promo-phone { animation: float 5s ease-in-out infinite; }
.promo-box--b { animation: float 6s 1s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.phone-toggle { transition: transform .5s var(--ease); }
.promo:hover .phone-toggle { transform: translateX(-14px); }
.promo__shine {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%);
  transform: translateX(-100%);
}
.promo:hover .promo__shine { transform: translateX(100%); transition: transform 1.2s var(--ease); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column; padding: 34px 30px; border-radius: var(--radius-lg);
  background: var(--card); border: 1.5px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .4s;
}
.price-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: var(--orange); }
.price-card--featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.price-card--featured .price-card__delay, .price-card--featured li { color: #cfc6bd; }
.price-card__tag {
  position: absolute; top: 18px; inset-inline-end: 18px; padding: 5px 12px; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: .74rem; font-weight: 600;
  animation: pop 2.4s ease-in-out infinite;
}
@keyframes pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.price-card__icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--orange-soft); color: var(--orange-dark); transition: transform .5s var(--ease);
}
.price-card:hover .price-card__icon { transform: rotate(-12deg) scale(1.1); }
.price-card h3 { font-size: 1.35rem; font-weight: 700; }
.price-card__delay { margin-top: 6px; color: var(--muted); font-size: .92rem; }
.price-card__price { margin: 22px 0; display: flex; align-items: baseline; gap: 6px; }
.price-card__price strong { font-size: 3.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price-card__price span { font-weight: 600; color: var(--orange); }
.price-card ul { display: grid; gap: 12px; margin-bottom: 30px; flex: 1; }
.price-card li { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--ink-2); }
.price-card li .ic { width: 18px; height: 18px; color: var(--orange); }
.price-card .btn { justify-content: center; }
.price-card--featured .btn--primary { width: 100%; }

/* ---------- Tracking ---------- */
.track { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.track > *, .hero__grid > * { min-width: 0; }
.track-search {
  margin-top: 30px; display: flex; align-items: center; gap: 12px; padding: 7px; padding-inline-start: 20px;
  border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); border: 1.5px solid var(--line);
  transition: border-color .3s, box-shadow .3s;
}
.track-search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.track-search > .ic { color: var(--muted); }
.track-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; }
.track__error { min-height: 1.4em; margin-top: 10px; font-size: .88rem; color: #C2410C; }
.track__details { margin: 10px 0 0; display: grid; gap: 0; border-radius: var(--radius); background: var(--card); overflow: hidden; }
.track__details div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.track__details div:last-child { border-bottom: 0; }
.track__details dt { color: var(--muted); font-size: .9rem; }
.track__details dd { margin: 0; font-weight: 600; font-size: .92rem; }

.track__card { padding: 18px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.track__map { position: relative; border-radius: var(--radius); overflow: hidden; }
.track__map svg { width: 100%; height: auto; }
#route { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }
.map-pin { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translate(490px, 70px); } 50% { transform: translate(490px, 62px); } }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .6; } to { transform: scale(1.8); opacity: 0; } }

.status-chip {
  position: absolute; top: 16px; left: 16px; display: flex; align-items: center; gap: 12px;
  padding: 10px; padding-inline-end: 16px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease);
}
.status-chip.bump { animation: chipBump .6s var(--ease); }
@keyframes chipBump { 40% { transform: scale(1.08); } }
.status-chip__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-dark); }
.status-chip strong { display: block; font-size: .95rem; }
.status-chip small { color: var(--muted); font-size: .78rem; }

.stepper { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 22px; position: relative; }
.stepper::before, .stepper::after {
  content: ""; position: absolute; top: 19px; left: 12.5%; right: 12.5%; height: 3px; border-radius: 3px; background: var(--line);
}
.stepper::after { background: var(--orange); transform: scaleX(var(--progress, 0)); transform-origin: left; transition: transform .8s var(--ease); }
.stepper li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.stepper .dot {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px;
  background: #fff; border: 2px solid var(--line); color: #b9aea3;
  transition: background .4s, border-color .4s, color .4s, transform .4s var(--ease);
}
.stepper .dot .ic { width: 18px; height: 18px; }
.stepper strong { font-size: .85rem; font-weight: 600; }
.stepper small { font-size: .74rem; color: var(--muted); }
.stepper li.done .dot { background: var(--orange); border-color: var(--orange); color: #fff; }
.stepper li.current .dot { background: #fff; border-color: var(--orange); color: var(--orange); transform: scale(1.12); box-shadow: 0 0 0 6px var(--orange-soft); }

/* ---------- Why / stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 56px;
  padding: 30px; border-radius: var(--radius-lg); background: var(--ink); color: #fff;
}
.stats div { text-align: center; }
.stats strong { display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; color: var(--orange); letter-spacing: -.02em; }
.stats span { color: #cfc6bd; font-size: .92rem; }

.why { display: grid; grid-template-columns: repeat(4, 1fr); }
.why__item { position: relative; padding: 10px 30px; }
.why__item + .why__item::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.why__icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--orange-soft); color: var(--orange-dark);
  transition: transform .7s var(--ease), background .4s, color .4s;
}
.why__icon .ic { width: 28px; height: 28px; }
.why__item:hover .why__icon { transform: rotateY(180deg); background: var(--orange); color: #fff; }
.why__item h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; transition: color .3s; }
.why__item:hover h3 { color: var(--orange-dark); }
.why__item p { font-size: .9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--footer); color: #d8d0c8; padding: 70px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.footer h4 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 18px; }
.footer__contact { margin: 22px 0; display: grid; gap: 10px; font-size: .9rem; }
.footer__contact li { display: flex; align-items: center; gap: 10px; }
.footer__contact .ic { width: 16px; height: 16px; color: var(--orange); }
.footer__contact a:hover { color: var(--orange); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.06); color: #fff;
  transition: background .3s, transform .4s var(--ease);
}
.socials .ic { width: 17px; height: 17px; }
.socials a:hover { background: var(--orange); transform: translateY(-4px) rotate(8deg); }
.footer__links { display: grid; gap: 10px; font-size: .92rem; }
.footer__links a { position: relative; display: inline-block; transition: color .3s, transform .3s var(--ease); }
.footer__links a::before {
  content: ""; position: absolute; left: -14px; top: 50%; width: 8px; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.footer__links a:hover { color: #fff; transform: translateX(14px); }
.footer__links a:hover::before { transform: scaleX(1); }
.footer__muted { font-size: .9rem; color: #a9a098; margin-bottom: 18px; }
.newsletter {
  display: flex; align-items: center; padding: 5px; padding-inline-start: 20px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.18); transition: border-color .3s;
}
.newsletter:focus-within { border-color: var(--orange); }
.newsletter input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; }
.newsletter input::placeholder { color: #8f877f; }
.newsletter .round-btn { width: 40px; height: 40px; }
.newsletter__msg { min-height: 1.4em; margin-top: 10px; font-size: .88rem; color: #FFB066; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding: 24px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: #8f877f;
}
.footer__bottom div { display: flex; gap: 26px; margin-inline-end: 22%; }
.footer__bottom a:hover { color: #fff; }
.footer__swoosh { position: absolute; right: 0; bottom: 0; width: 300px; pointer-events: none; }
.footer__swoosh path { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 2s var(--ease); }
.footer.is-visible .footer__swoosh path { stroke-dashoffset: 0; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 90; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--orange-dark); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity .4s, transform .4s var(--ease), visibility .4s, background .3s, color .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); color: #fff; transform: translateY(-4px); }
.to-top > * { grid-area: 1 / 1; }
.to-top__ring { width: 52px; height: 52px; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--orange); stroke-width: 3; stroke-dasharray: 138.2; stroke-dashoffset: calc(138.2 * (1 - var(--p, 0))); }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0ms); }
.js [data-reveal="up"] { transform: translateY(50px); }
.js [data-reveal="left"] { transform: translateX(-60px); }
.js [data-reveal="right"] { transform: translateX(60px); }
.js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* once revealed, hover transforms take over with their own timing */
.js .service-card.is-visible, .js .price-card.is-visible { transition: opacity .9s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .feature:nth-child(3)::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom div { margin-inline-end: 0; }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .menu-toggle { display: grid; }
  .header__actions .icon-btn:not(.menu-toggle) { display: none; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(320px, 85vw);
    flex-direction: column; gap: 6px; padding: 100px 30px 30px; margin: 0;
    background: var(--bg); box-shadow: -20px 0 50px rgba(0,0,0,.12);
    transform: translateX(105%); transition: transform .5s var(--ease); z-index: -1;
  }
  .nav.open { transform: none; }
  .nav__link { font-size: 1.2rem; padding: 12px 0; }
  .nav__link::after { left: 0; transform: scaleX(0); transform-origin: left; }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
  .menu-open .menu-toggle .ic--open { display: none; }
  .menu-open .menu-toggle .ic--close { display: block; }

  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__content { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero__visual { margin-top: 10px; }
  .hero__blob { right: 0; left: 0; margin-inline: auto; top: 0; width: 100%; }
  .promo { grid-template-columns: 1fr; padding: 40px 30px 0; text-align: center; }
  .promo p br, .promo h2 br { display: none; }
  .promo__art { max-width: 380px; margin-inline: auto; }
  .pricing { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .track { grid-template-columns: 1fr; gap: 40px; }
  .why, .stats { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .why__item:nth-child(3)::before { display: none; }
  .section { padding: 80px 0; }
}

@media (max-width: 560px) {
  .header__actions .btn { display: none; }
  .features, .cards-4, .why { grid-template-columns: 1fr; }
  .feature::before, .why__item::before { display: none; }
  .feature { padding: 4px 14px; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .section__sub br { display: none; }
  .why__item { padding: 0 10px; }
  .stats { padding: 24px 14px; }
  .stepper strong { font-size: .72rem; }
  .stepper small { display: none; }
  .status-chip { top: 10px; left: 10px; padding: 6px; padding-inline-end: 12px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hand-note { right: 2%; }
  .hero__trust { flex-direction: column; }
}

/* ---------- Arabic / RTL ---------- */
html[lang="ar"] body { font-family: "Cairo", "Outfit", system-ui, sans-serif; }
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { line-height: 1.4; }
html[lang="ar"] .hero__title { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.35; }
html[lang="ar"] .hero__title .line { padding-bottom: .12em; }
html[lang="ar"] .hand-note__text { font-family: "Aref Ruqaa", serif; font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.35; }
html[lang="ar"] .badge, html[lang="ar"] .promo__kicker { font-size: .85rem; }

/* Numbers with a +, / or % sign keep their order */
.stats strong { direction: ltr; unicode-bidi: isolate; }

/* Illustrations keep their drawn (LTR) layout */
.hero-art, .promo__art svg, .track__map svg { direction: ltr; }

[dir="rtl"] .hero__title em::after,
[dir="rtl"] .service-card::after { transform-origin: right; }
[dir="rtl"] .stepper::after { transform-origin: right; }
[dir="rtl"] .hand-note__text { clip-path: inset(0 0 0 100%); }

/* Arrows point the other way and nudge to the left */
[dir="rtl"] use[href="#i-arrow"] { transform: scaleX(-1); transform-origin: center; transform-box: fill-box; }
[dir="rtl"] .btn:hover .ic { transform: translateX(-5px); }
[dir="rtl"] .link-arrow:hover .ic,
[dir="rtl"] .service-card:hover .more .ic { transform: translateX(-6px); }
[dir="rtl"] .round-btn:hover .ic { animation-name: nudgeRtl; }
@keyframes nudgeRtl { to { transform: translateX(-3px); } }

[dir="rtl"] .footer__links a::before { left: auto; right: -14px; transform-origin: right; }
[dir="rtl"] .footer__links a:hover { transform: translateX(-14px); }
[dir="rtl"] .footer__swoosh { right: auto; left: 0; transform: scaleX(-1); }

@media (max-width: 900px) {
  [dir="rtl"] .nav { right: auto; left: 0; transform: translateX(-105%); box-shadow: 20px 0 50px rgba(0,0,0,.12); }
  [dir="rtl"] .nav.open { transform: none; }
  [dir="rtl"] .nav__link::after { left: auto; right: 0; transform-origin: right; }
}
@media (max-width: 560px) {
  .lang-switch { --w: 32px; margin-inline-end: 0; }
  .lang-switch a { height: 28px; }
  .lang-switch__thumb { height: 28px; }
}
@media (max-width: 380px) {
  .header__inner { gap: 10px; }
  .brand__text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ---------- Announcement bar (site builder block common/announcement) ---------- */
.announce { position: relative; z-index: 60; padding: 9px 0; background: var(--ink); color: #fff; font-size: .9rem; text-align: center; }
.announce a { color: var(--orange); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.announce__empty { opacity: .7; font-style: italic; }
/* images chosen in the site builder instead of the illustrations */
.hero__photo { position: relative; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--radius-lg); }
.promo__photo { width: 100%; height: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); }
