/* =========================================================
   الهلال لجلب الأيدي العاملة — Al Hilal Manpower (Qatar)
   Brand: crescent holding a home, navy + gold
   ========================================================= */

:root {
  --night: #0a1733;
  --navy: #14285a;
  --navy-2: #1d3a7a;
  --gold: #c9a24b;
  --gold-2: #e6cf95;
  --gold-deep: #9e7a2c;
  --pearl: #f3f5fa;
  --paper: #ffffff;
  --ink: #13203f;
  --muted: #5a6580;
  --line: #dce2ee;
  --wa: #1faf5a;

  --ff-display: "Reem Kufi", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --ff-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  --fs-lg: 1.625rem;
  --fs-xl: clamp(1.875rem, 1.4rem + 1.8vw, 2.625rem);
  --fs-hero: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--pearl);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

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

/* ---------- Icon effects ---------- */
.fx-ring   { animation: fx-ring 3.6s ease-in-out infinite; animation-delay: var(--fd, 0s); }
.fx-spin   { animation: fx-spin 16s linear infinite; }
.fx-pulse  { animation: fx-pulse 2.6s ease-in-out infinite; animation-delay: var(--fd, 0s); }
.fx-bounce { animation: fx-bounce 2.4s cubic-bezier(.3,0,.3,1) infinite; animation-delay: var(--fd, 0s); }
.fx-twinkle{ animation: fx-twinkle 3s ease-in-out infinite; animation-delay: var(--fd, 0s); }
.fx-nudge  { animation: fx-nudge 2.8s ease-in-out infinite; animation-delay: var(--fd, 0s); }
.fx-swap   { transform-box: fill-box; transform-origin: center; animation: fx-swap 4.5s cubic-bezier(.6,0,.3,1) infinite; animation-delay: var(--fd, 0s); }

@keyframes fx-ring { 0%, 62%, 100% { rotate: 0deg; } 66% { rotate: -16deg; } 70% { rotate: 14deg; } 74% { rotate: -10deg; } 78% { rotate: 8deg; } 82% { rotate: -4deg; } 86% { rotate: 0deg; } }
@keyframes fx-spin { to { rotate: 360deg; } }
@keyframes fx-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.16; } }
@keyframes fx-bounce { 0%, 55%, 100% { translate: 0 0; } 25% { translate: 0 -5px; } 40% { translate: 0 0; } 47% { translate: 0 -2px; } }
@keyframes fx-twinkle { 0%, 100% { scale: 1; rotate: 0deg; opacity: 1; } 50% { scale: .78; rotate: 20deg; opacity: .7; } }
@keyframes fx-nudge { 0%, 70%, 100% { translate: 0 0; } 78% { translate: -4px 0; } 86% { translate: 0 0; } 92% { translate: -2px 0; } }
@keyframes fx-swap { 0%, 20% { rotate: 0deg; } 45%, 70% { rotate: 180deg; } 95%, 100% { rotate: 360deg; } }
@keyframes fx-tada { 0% { scale: 1; rotate: 0deg; } 20% { scale: .9; rotate: -8deg; } 40%, 60%, 80% { scale: 1.15; rotate: 8deg; } 50%, 70% { scale: 1.15; rotate: -8deg; } 100% { scale: 1; rotate: 0deg; } }
@keyframes fx-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.btn .icon, .ci .icon, .rate__cta .icon { transition: filter .3s, scale .3s; }
.btn:hover .icon, .contact__list a:hover .ci .icon, .footer__contact a:hover .icon { filter: drop-shadow(0 0 6px rgba(230,207,149,.85)); }
.rate:hover .rate__cta .icon, .btn--navy:hover .icon { animation: fx-tada .9s ease both; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.5em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s, box-shadow .25s;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: linear-gradient(180deg, #d8b562, var(--gold)); color: var(--night); box-shadow: 0 10px 30px -12px rgba(201,162,75,.8); }
.btn--wa { background: linear-gradient(180deg, #2bc46d, var(--wa)); color: #fff; box-shadow: 0 10px 30px -12px rgba(31,175,90,.85); }
.btn--wa:hover { background: linear-gradient(180deg, #34d27a, #1ca553); box-shadow: 0 14px 34px -12px rgba(31,175,90,.95); }
.btn--wa::after, .wa-bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: btn-shine 4.5s ease-in-out infinite; animation-delay: var(--fd, 1s); pointer-events: none; }
.btn--gold::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: btn-shine 5s ease-in-out infinite; animation-delay: var(--fd, 1.5s); pointer-events: none; }
@keyframes btn-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn--gold:hover { background: linear-gradient(180deg, #e3c372, #d0aa55); box-shadow: 0 14px 34px -12px rgba(201,162,75,.95); }
.btn--ghost { border-color: rgba(230,207,149,.45); color: #fff; }
.btn--ghost:hover { border-color: var(--gold-2); background: rgba(230,207,149,.08); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--block { width: 100%; }

/* ---------- Progress bar ---------- */
.progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2), var(--gold)); transform-origin: right center; transform: scaleX(0); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.is-scrolled { background: rgba(10,23,51,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(230,207,149,.15); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 48px; height: 48px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__line { display: flex; align-items: center; gap: 8px; }
.brand__name { font-family: var(--ff-display); font-weight: 700; font-size: 1.55rem; }
.brand__since { font-size: .68rem; font-weight: 600; color: var(--gold); border: 1px solid rgba(201,162,75,.6); border-radius: 99px; padding: 1px 7px 0; line-height: 1.5; white-space: nowrap; }
.brand__sub { font-size: .78rem; color: var(--gold-2); font-weight: 500; margin-top: 3px; }

.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: 2px; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: rgba(255,255,255,.86); transition: color .2s, background-color .2s; white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav a.is-active { color: var(--gold-2); }
.nav a.nav__hl { color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(230,207,149,.4); }

.header-call { min-height: 44px; padding: 0 1.1em; font-size: .95rem; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(230,207,149,.35); background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn .icon { width: 24px; height: 24px; }
.menu-btn .i-close { display: none; }
.nav-open .menu-btn .i-close { display: block; }
.nav-open .menu-btn .i-menu { display: none; }

/* ---------- Sky (stars + meteors) ---------- */
.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  padding: calc(var(--header-h) + clamp(28px, 6vw, 72px)) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(60% 70% at 18% 45%, rgba(29,58,122,.9), transparent 70%),
    radial-gradient(50% 60% at 85% 10%, rgba(29,58,122,.55), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, #0d1d42 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }

.hero__title {
  font-family: var(--ff-display); font-weight: 700;
  font-size: var(--fs-hero); line-height: 1.32;
  max-width: 14ch;
  text-wrap: balance;
}
.hero__lead { margin-top: 22px; max-width: 48ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: rgba(255,255,255,.8); }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { margin-top: 40px; display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 32px; color: var(--gold-2); font-weight: 500; font-size: .98rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: 10px; }
.hero__facts .icon { width: 22px; height: 22px; color: var(--gold); }

/* The crescent */
.moon { position: relative; width: min(540px, 100%); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; }
.moon__float { position: absolute; inset: 0; animation: moon-float 7s ease-in-out infinite; }
.moon__glow { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle at 32% 58%, rgba(201,162,75,.38), transparent 62%); filter: blur(30px); }
.moon__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.moon__ring { fill: none; stroke: rgba(230,207,149,.2); stroke-width: 1.2; stroke-dasharray: 2 9; transform-box: view-box; transform-origin: 260px 260px; animation: fx-spin 90s linear infinite; }
.moon__crescent { transform-box: view-box; transform-origin: 260px 260px; animation: moon-rock 9s ease-in-out infinite; }
.moon__shape { fill: url(#moonFill); stroke: url(#moonStroke); stroke-width: 2.4; }
.moon__house { fill: none; stroke: url(#houseStroke); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.moon__star { fill: url(#moonFill); transform-box: fill-box; transform-origin: center; animation: fx-twinkle 3.4s ease-in-out infinite; }
.moon__star--sm { animation-duration: 2.6s; animation-delay: .8s; }
.moon__star--xs { animation-duration: 3.8s; animation-delay: 1.6s; }

@keyframes moon-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes moon-rock { 0%, 100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }

.moon__face {
  --s: 19%;
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); aspect-ratio: 1;
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(140deg, var(--gold-2), var(--gold-deep));
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.6), 0 0 0 6px rgba(10,23,51,.55);
  transition: transform .5s var(--ease);
  animation: face-bob 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.8s);
}
.moon__face img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@keyframes face-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

.moon__badge { position: absolute; left: 61.9%; top: 55%; translate: -50% -50%; width: 34%; text-align: center; }
.moon__badge small { display: block; font-size: max(11px, 2.6cqw); line-height: 1.5; color: rgba(255,255,255,.8); }
.moon__badge strong {
  display: block; direction: ltr;
  font-family: var(--ff-display); font-weight: 700;
  font-size: 11.5cqw; line-height: 1.12;
  background: linear-gradient(180deg, #f4e3b5 10%, var(--gold) 70%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.moon__badge span { display: block; font-weight: 600; font-size: max(12px, 3cqw); color: var(--gold-2); }

/* Hero entrance */
.js .hero__copy > * { opacity: 0; transform: translateY(14px); }
.js .moon__shape, .js .moon__house { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .moon__shape { fill-opacity: 0; }
.js .moon__ring, .js .moon__glow, .js .moon__badge, .js .moon__stars, .js .moon__sheen { opacity: 0; }
.js .moon__face { opacity: 0; scale: .4; }

.is-ready .hero__copy > * { animation: rise .8s var(--ease) forwards; }
.is-ready .hero__copy > :nth-child(2) { animation-delay: .12s; }
.is-ready .hero__copy > :nth-child(3) { animation-delay: .24s; }
.is-ready .hero__copy > :nth-child(4) { animation-delay: .36s; }
.is-ready .moon__shape { animation: fx-draw 1.6s cubic-bezier(.6,.1,.2,1) .15s forwards, fillin 1s ease 1.2s forwards; }
.is-ready .moon__house { animation: fx-draw 1.2s cubic-bezier(.6,.1,.2,1) 1.1s forwards; }
.is-ready .moon__ring { animation: fade 1.2s ease .9s forwards, fx-spin 90s linear infinite; }
.is-ready .moon__glow { animation: fade 1.6s ease 1.1s forwards, glow 5s ease-in-out 2.7s infinite; }
.is-ready .moon__stars, .is-ready .moon__sheen { animation: fade 1s ease 2s forwards; }
.is-ready .moon__face { animation: pop .7s cubic-bezier(.3,1.5,.5,1) forwards, face-bob 5s ease-in-out infinite; animation-delay: calc(1s + var(--i) * .13s), calc(var(--i) * -.8s); }
.is-ready .moon__badge { animation: rise-c .9s var(--ease) 2s forwards; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rise-c { from { opacity: 0; translate: -50% -40%; } to { opacity: 1; translate: -50% -50%; } }
@keyframes fillin { to { fill-opacity: 1; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { to { opacity: 1; scale: 1; } }
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- Nationalities ticker ---------- */
.ticker { background: var(--navy); color: #fff; border-block: 1px solid rgba(230,207,149,.18); overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker ul { display: flex; align-items: center; gap: 44px; padding: 16px 22px; }
.ticker li { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; white-space: nowrap; }
.ticker img { width: 30px; height: 20px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.ticker b { font-family: var(--ff-display); color: var(--gold-2); font-weight: 600; direction: ltr; }
@keyframes ticker { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section--paper { background: var(--paper); }
.section--night { isolation: isolate; overflow: hidden; background: linear-gradient(180deg, var(--night), #0f2149); color: #fff; }

.head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.head h2 { font-family: var(--ff-display); font-weight: 700; font-size: var(--fs-xl); line-height: 1.35; text-wrap: balance; }
.head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.section--night .head p { color: rgba(255,255,255,.72); }

/* ---------- Rates: three price groups ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.tier { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 44px -34px rgba(10,23,51,.45); }
.tier__head { position: relative; overflow: hidden; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 22px 24px 20px; background: linear-gradient(150deg, var(--navy), var(--night)); color: #fff; }
.tier__head::after { content: ""; position: absolute; width: 150px; height: 150px; inset-inline-end: -64px; top: -64px; border-radius: 50%; box-shadow: inset 22px -6px 0 0 rgba(201,162,75,.22); }
.tier__price {
  font-family: var(--ff-display); font-weight: 700; font-size: 2.6rem; line-height: 1.1; direction: ltr;
  background: linear-gradient(180deg, #f4e3b5 10%, var(--gold) 75%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tier__unit { color: rgba(255,255,255,.75); font-size: .92rem; }
.tier__list { padding: 6px 10px 10px; }

.rate { position: relative; overflow: hidden; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 12px; transition: background-color .25s; }
.rate + .rate::before { content: ""; position: absolute; top: 0; inset-inline: 10px; height: 1px; background: var(--line); }
.rate::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(230,207,149,.5), transparent); transform: skewX(-18deg); pointer-events: none; }
.rate:hover { background: var(--pearl); }
.rate:hover::after { animation: shine .9s ease; }
@keyframes shine { from { left: -60%; } to { left: 120%; } }
.rate__flag { width: 44px; height: 31px; object-fit: cover; border-radius: 5px; box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--ease); }
.rate:hover .rate__flag { transform: perspective(200px) rotateY(-18deg) scale(1.06); }
.rate__name { font-family: var(--ff-display); font-weight: 600; font-size: 1.2rem; }
.rate__cta { min-height: 40px; padding: 0 1em; font-size: .9rem; }

.rates__foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.rates__note { color: var(--muted); font-size: .92rem; max-width: 60ch; }
.rates__more { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); }
.rates__more .icon { color: var(--gold-deep); }
.rates__more:hover { color: var(--navy-2); }

/* ---------- Choose your worker ---------- */
.picker { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.picker__fields { display: grid; gap: 30px; }
.pf { border: 0; margin: 0; padding: 0; min-width: 0; }
.pf legend { padding: 0; margin-bottom: 14px; font-family: var(--ff-display); font-weight: 600; font-size: 1.22rem; }
.pf legend small { font-family: var(--ff-body); font-weight: 400; font-size: .85rem; color: var(--muted); margin-inline-start: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 8px 18px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--pearl);
  font-weight: 500; cursor: pointer; user-select: none;
  transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s, transform .2s;
}
.chip input, .type input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip:hover { border-color: var(--gold-2); }
.chip:active { transform: scale(.97); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 10px 24px -14px rgba(20,40,90,.9); }
.chip:has(input:focus-visible), .type:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

.chips--nat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chip--nat { border-radius: 14px; padding: 10px 12px; flex-direction: column; align-items: flex-start; gap: 6px; line-height: 1.3; }
.chip--nat .chip__row { display: flex; align-items: center; gap: 10px; }
.chip--nat img, .chip__any { width: 30px; height: 21px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(20,40,90,.12); }
.chip__any { display: grid; place-items: center; box-shadow: none; color: var(--gold-deep); }
.chip__any .icon { width: 21px; height: 21px; }
.chip--nat small { color: var(--muted); font-size: .8rem; }
.chip--nat.is-on small, .chip--nat.is-on .chip__any { color: var(--gold-2); }
.chip--nat.is-on img { animation: flag-wave .9s ease; }
@keyframes flag-wave { 0% { transform: perspective(160px) rotateY(0); } 30% { transform: perspective(160px) rotateY(-35deg) skewY(-4deg); } 60% { transform: perspective(160px) rotateY(20deg) skewY(3deg); } 100% { transform: none; } }

.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.type {
  position: relative; display: grid; align-content: start; gap: 6px;
  padding: 18px 18px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--pearl);
  cursor: pointer; transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.type:hover { border-color: var(--gold-2); }
.type__icon { width: 42px; height: 42px; color: var(--gold-deep); margin-bottom: 4px; transition: color .25s; }
.type b { font-family: var(--ff-display); font-weight: 600; font-size: 1.12rem; }
.type small { color: var(--muted); font-size: .86rem; line-height: 1.6; }
.type::after { content: ""; position: absolute; top: 14px; inset-inline-end: 14px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; transition: all .25s; }
.type.is-on { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(201,162,75,.15), 0 18px 30px -22px rgba(20,40,90,.6); }
.type.is-on::after { border-color: var(--gold); background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1733' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.type.is-on .type__icon { color: var(--navy); }
.type.is-on .ti-plane { animation: ti-plane 2.6s ease-in-out infinite; }
.type.is-on .ti-cal { animation: ti-cal 2.8s ease-in-out infinite; }
.type.is-on .ti-home { animation: fx-bounce 2.2s cubic-bezier(.3,0,.3,1) infinite; }
.type:hover .type__icon { scale: 1.08; }
@keyframes ti-plane { 0%, 100% { translate: 0 0; rotate: 0deg; } 30% { translate: -6px -5px; rotate: -6deg; } 60% { translate: 3px 2px; rotate: 3deg; } }
@keyframes ti-cal { 0%, 60%, 100% { transform: perspective(120px) rotateX(0); } 75% { transform: perspective(120px) rotateX(-40deg); } 88% { transform: perspective(120px) rotateX(10deg); } }

.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary__card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 24px;
  background: linear-gradient(160deg, var(--navy), var(--night));
  color: #fff;
  box-shadow: 0 40px 60px -36px rgba(10,23,51,.7);
}
.summary__mark { position: absolute; width: 260px; height: 260px; inset-inline-end: -80px; bottom: -70px; opacity: .07; z-index: -1; }
.summary__top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.summary__avatar { width: 74px; height: 74px; flex: none; border-radius: 50%; padding: 3px; background: linear-gradient(140deg, var(--gold-2), var(--gold-deep)); perspective: 400px; }
.summary__avatar-in { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--night); display: grid; place-items: center; transition: transform .3s ease-in; }
.summary__avatar-in.is-flip { transform: rotateY(90deg); }
.summary__avatar img { width: 100%; height: 100%; object-fit: cover; }
.summary__avatar svg { width: 64%; height: 64%; }
.summary__top small { display: block; color: var(--gold-2); font-size: .85rem; }
.summary__title { display: block; font-family: var(--ff-display); font-weight: 600; font-size: 1.35rem; line-height: 1.4; }

.summary__list { display: grid; }
.summary__list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px dashed rgba(230,207,149,.2); }
.summary__list dt { color: rgba(255,255,255,.62); font-size: .92rem; white-space: nowrap; }
.summary__list dd { font-weight: 600; text-align: end; }
.summary__list dd.is-empty { color: rgba(255,255,255,.35); font-weight: 400; }
.summary__list dd.is-new { animation: dd-flash .7s ease; }
@keyframes dd-flash { 0% { color: var(--gold-2); translate: 0 6px; opacity: 0; } 100% { translate: 0 0; opacity: 1; } }

.summary__price { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(201,162,75,.14); color: var(--gold-2); font-size: .95rem; }
.summary__price b { font-family: var(--ff-display); font-size: 1.35rem; color: #fff; direction: ltr; display: inline-block; }
.summary__meter { margin-top: 18px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.summary__meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transition: width .5s var(--ease); }
.summary__count { display: block; margin-top: 8px; color: rgba(255,255,255,.6); font-size: .85rem; }
.summary__hint { margin-top: 12px; color: #ffcdc4; font-size: .9rem; }
.summary .btn { margin-top: 18px; }
.summary__reset { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 6px; background: none; border: 0; color: rgba(255,255,255,.65); cursor: pointer; font-size: .92rem; }
.summary__reset:hover { color: #fff; }
.summary__reset:hover .icon { animation: fx-spin .8s ease reverse; }
.summary__reset .icon { width: 18px; height: 18px; }

/* ---------- Guarantees ---------- */
.guarantees { display: grid; grid-template-columns: 1fr 1px 1fr; gap: clamp(24px, 5vw, 64px); }
.guarantees__rule { background: linear-gradient(180deg, transparent, rgba(230,207,149,.5), transparent); }
.guarantee { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.guarantee__shield { width: clamp(84px, 9vw, 112px); overflow: visible; animation: moon-float 5s ease-in-out infinite; filter: drop-shadow(0 14px 24px rgba(201,162,75,.25)); }
.guarantee + .guarantees__rule + .guarantee .guarantee__shield { animation-delay: -2.5s; }
.sh-sheen { animation: sh-sheen 4.5s ease-in-out infinite; }
@keyframes sh-sheen { 0%, 55% { transform: translateX(-140px); } 100% { transform: translateX(160px); } }
.sh-check { stroke-dasharray: 1; animation: sh-check 4s ease-in-out infinite; }
@keyframes sh-check { 0%, 10% { stroke-dashoffset: 1; } 35%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
.guarantee h3 { font-family: var(--ff-display); font-weight: 700; font-size: var(--fs-lg); line-height: 1.35; color: var(--gold-2); }
.guarantee p { margin-top: 10px; color: rgba(255,255,255,.78); max-width: 38ch; }

.trained {
  margin-top: clamp(40px, 6vw, 72px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px clamp(20px, 4vw, 40px);
  border: 1px solid rgba(230,207,149,.28); border-radius: 22px;
  background: linear-gradient(90deg, rgba(201,162,75,.12), rgba(201,162,75,.02));
}
.trained p { font-family: var(--ff-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 600; color: #fff; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; top: 30px; inset-inline: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); opacity: .55; background-size: 200% 100%; animation: dash-move 3s linear infinite; }
@keyframes dash-move { to { background-position: -32px 0; } }
.step { position: relative; text-align: center; padding-inline: 8px; }
.step__num {
  position: relative; z-index: 1;
  width: 62px; height: 62px; margin-inline: auto; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold);
  font-family: var(--ff-display); font-weight: 700; font-size: 1.5rem; color: var(--navy);
  box-shadow: 0 0 0 8px var(--pearl);
}
.step__num::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px dashed rgba(201,162,75,.7); animation: fx-spin 14s linear infinite; }
.step:nth-child(even) .step__num::after { animation-direction: reverse; }
.step h3 { font-family: var(--ff-display); font-weight: 600; font-size: 1.3rem; }
.step p { margin-top: 8px; color: var(--muted); font-size: .98rem; max-width: 26ch; margin-inline: auto; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.team__media { position: relative; max-width: 340px; margin-inline: auto; width: 100%; }
.team__media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: 200px 200px 24px 24px; z-index: 0; }
.team__media img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; object-position: top; border-radius: 200px 200px 24px 24px; box-shadow: 0 40px 60px -30px rgba(10,23,51,.5); }
.team__copy .head { margin-bottom: 28px; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-bottom: 36px; }
.skills li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.tick { position: relative; width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(201,162,75,.16); color: var(--gold-deep); }
.tick svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tick::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--gold); opacity: 0; animation: tick-ring 3.2s ease-out infinite; animation-delay: var(--fd, 0s); }
@keyframes tick-ring { 0% { scale: 1; opacity: .7; } 60%, 100% { scale: 1.6; opacity: 0; } }
.js .skills path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .skills.is-in path { animation: fx-draw .6s ease forwards; animation-delay: var(--fd, 0s); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 4px;
  font-family: var(--ff-display); font-weight: 600; font-size: 1.2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__chev { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(201,162,75,.14); color: var(--gold-deep); transition: transform .35s var(--ease), background-color .25s; }
.faq__chev .icon { width: 20px; height: 20px; }
.faq summary:hover .faq__chev { background: rgba(201,162,75,.26); }
.faq summary:hover .faq__chev .icon { animation: fx-bounce 1s ease; }
.faq details[open] .faq__chev { transform: rotate(180deg); background: var(--navy); color: var(--gold-2); }
.faq__body p { padding: 0 4px 24px; color: var(--muted); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.contact__info {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 24px;
  background: linear-gradient(160deg, var(--navy), var(--night));
  color: #fff;
}
.contact__mark { position: absolute; width: 300px; height: 300px; inset-inline-end: -90px; bottom: -90px; opacity: .08; z-index: -1; }
.contact__info h2 { font-family: var(--ff-display); font-size: var(--fs-xl); line-height: 1.35; }
.contact__info > p { margin-top: 12px; color: rgba(255,255,255,.75); }
.contact__list { margin-top: 32px; display: grid; gap: 14px; }
.contact__list a, .contact__list div {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(230,207,149,.16);
  transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.contact__list a:hover { background: rgba(255,255,255,.09); border-color: rgba(230,207,149,.4); transform: translateX(-4px); }
.ci { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(201,162,75,.16); color: var(--gold-2); }
.ci .icon { width: 22px; height: 22px; }
.contact__list small { display: block; color: rgba(255,255,255,.6); font-size: .82rem; line-height: 1.4; }
.contact__list strong { display: block; font-weight: 600; font-size: 1.05rem; line-height: 1.5; }

.form { padding: clamp(24px, 4vw, 44px); border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.form h3 { font-family: var(--ff-display); font-size: var(--fs-lg); }
.form > p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.form__grid { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--pearl);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(201,162,75,.18); }
.field input[type="tel"] { direction: ltr; text-align: right; }
.field .err { display: none; color: #b42318; font-size: .85rem; }
.field.is-invalid input { border-color: #d92d20; }
.field.is-invalid .err { display: block; }
.form .btn { margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: rgba(255,255,255,.72); padding-top: clamp(56px, 7vw, 80px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__about p { margin-top: 18px; max-width: 40ch; font-size: .95rem; }
.site-footer h4 { margin: 0 0 16px; font-family: var(--ff-display); font-weight: 600; font-size: 1.1rem; color: #fff; }
.site-footer li + li { margin-top: 10px; }
.site-footer a:hover { color: var(--gold-2); }
.footer__contact li { display: flex; align-items: center; gap: 10px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer__contact .icon { width: 18px; height: 18px; color: var(--gold); }
.footer__legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; padding-inline-end: 84px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .88rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 14px 30px -8px rgba(31,175,90,.6);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* Mobile WhatsApp bar */
.wa-bar { display: none; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Simple pages (privacy / 404) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + 56px) 0 56px; background: linear-gradient(180deg, var(--night), #0f2149); color: #fff; }
.page-hero h1 { font-family: var(--ff-display); font-size: var(--fs-xl); }
.page-hero p { margin-top: 10px; color: rgba(255,255,255,.72); }
.prose { max-width: 760px; }
.prose h2 { font-family: var(--ff-display); font-size: var(--fs-lg); margin-top: 40px; margin-bottom: 10px; }
.prose p, .prose li { color: #3b4663; }
.prose ul { list-style: disc; padding-inline-start: 22px; }
.prose li + li { margin-top: 6px; }
.notfound { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 80px; background: linear-gradient(180deg, var(--night), #0f2149); color: #fff; }
.notfound .brand__mark { width: 120px; height: 120px; margin: 0 auto 24px; animation: moon-float 6s ease-in-out infinite; }
.notfound h1 { font-family: var(--ff-display); font-size: var(--fs-xl); }
.notfound p { margin: 12px auto 28px; color: rgba(255,255,255,.72); max-width: 40ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .nav a { padding: 8px 9px; font-size: .92rem; }
  .header-call span { display: none; }
  .header-call { width: 44px; padding: 0; }
}

@media (max-width: 1000px) {
  :root { --header-h: 68px; }
  .menu-btn { display: inline-flex; }
  .header-call { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: rgba(10,23,51,.97); backdrop-filter: blur(14px);
    border-top: 1px solid rgba(230,207,149,.15);
    padding: 12px var(--gutter) 24px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .site-header { background: rgba(10,23,51,.97); }
  .nav ul { flex-direction: column; }
  .nav a { padding: 14px 8px; font-size: 1.05rem; border-radius: 10px; }
  .nav a.nav__hl { box-shadow: none; }
  .brand { margin-inline-end: auto; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { max-width: 18ch; }
  .moon { width: min(460px, 100%); }

  .tiers { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .rates__foot { max-width: 620px; margin-inline: auto; }

  .picker { grid-template-columns: 1fr; }
  .summary { position: static; }

  .guarantees { grid-template-columns: 1fr; }
  .guarantees__rule { height: 1px; background: linear-gradient(90deg, transparent, rgba(230,207,149,.5), transparent); }

  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }

  .team { grid-template-columns: 1fr; }
  .team__media { max-width: 300px; }

  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand__mark { width: 42px; height: 42px; }
  .brand__name { font-size: 1.4rem; }
  .hero__actions .btn { width: 100%; }
  .hero__facts { grid-template-columns: 1fr 1fr; gap: 12px 16px; font-size: .9rem; }
  .moon__face { --s: 21%; box-shadow: 0 10px 20px -8px rgba(0,0,0,.6), 0 0 0 4px rgba(10,23,51,.55); }

  .chips--nat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .types { grid-template-columns: 1fr; }
  .type { grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
  .type__icon { grid-row: span 2; margin: 0; width: 38px; height: 38px; }

  .guarantee { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; text-align: start; }
  .step__num { grid-row: span 2; margin: 6px; width: 52px; height: 52px; font-size: 1.3rem; }
  .step p { margin-inline: 0; max-width: none; }

  .skills { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { padding-inline-end: 0; }

  .wa-float { display: none; }
  body { padding-bottom: 84px; }
  .wa-bar {
    position: fixed; z-index: 45; overflow: hidden;
    inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 56px; border-radius: 16px;
    background: linear-gradient(180deg, #2bc46d, var(--wa)); color: #fff;
    font-weight: 700; font-size: 1.05rem;
    box-shadow: 0 16px 30px -10px rgba(31,175,90,.75), inset 0 0 0 1px rgba(255,255,255,.18);
  }
  .wa-bar .icon { width: 24px; height: 24px; }
  .wa-bar:active { transform: scale(.98); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .ticker__track { animation: none; }
  .wa-float::before, .btn--gold::after, .btn--wa::after, .wa-bar::after, .tick::after { display: none; }
}
