/* ============ Tokens ============
   Taken from the gym itself: dark exposed ceiling, white sculpted
   soffits with cyan LED coves, and the blue path running across the floor. */
:root {
  --ink: #0C1824;        /* exposed ceiling */
  --ink-2: #132433;      /* raised surfaces */
  --ink-3: #1B3144;
  --plaster: #EEF3F6;    /* soffit white */
  --steel: #93A4B1;      /* machine frames */
  --cove: #46D9F2;       /* LED edge light */
  --floor: #2F6FB8;      /* floor path blue */
  --line: rgba(238, 243, 246, 0.12);
  --glow: 0 0 18px rgba(70, 217, 242, 0.55), 0 0 2px rgba(70, 217, 242, 0.9);

  --font: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.12rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-2: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --step-3: clamp(2.4rem, 1.6rem + 3.2vw, 4.4rem);

  --pad: clamp(1.25rem, 4vw, 4rem);
  --max: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--plaster);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: clip;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
body.is-switching { opacity: 0; filter: blur(6px); }
html[lang="en"] body { line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid var(--cove); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ Scroll progress (a cove light along the top) ============ */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span {
  display: block; height: 100%; background: var(--cove); box-shadow: var(--glow);
  transform-origin: right; transform: scaleX(var(--p, 0));
}
html[dir="ltr"] .progress span { transform-origin: left; }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1rem var(--pad);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(12, 24, 36, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; line-height: 1; direction: ltr; }
.brand-word { font-weight: 300; letter-spacing: 0.32em; font-size: 1.05rem; }
.brand-sub { font-size: 0.55rem; letter-spacing: 0.5em; color: var(--steel); margin-top: 0.35rem; }
.nav-links { display: flex; gap: 2rem; font-size: var(--step--1); }
.nav-links a { position: relative; color: var(--steel); transition: color 0.25s; padding-block: 0.3rem; }
.nav-links a::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--cove);
  box-shadow: var(--glow); transform: scaleX(0); transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.is-current { color: var(--plaster); }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }

/* Nav social icon */
.nav-end { display: flex; align-items: center; gap: 1.1rem; }
.nav-social {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--steel); transition: color 0.3s ease, filter 0.3s ease, transform 0.25s var(--ease);
}
.nav-social svg {
  width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.nav-social:hover { color: var(--plaster); filter: drop-shadow(0 0 8px rgba(70, 217, 242, 0.65)); transform: translateY(-1px); }

/* Language toggle: عربي | English */
.lang {
  position: relative; display: flex; align-items: center; gap: 0.15rem;
  padding: 0.25rem; border: 1px solid var(--line); border-radius: 999px; direction: ltr;
}
.lang button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.85rem; color: var(--steel);
  transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.lang button[aria-pressed="true"] { color: var(--ink); background: var(--plaster); box-shadow: 0 0 0 1px var(--plaster), 0 0 22px rgba(70, 217, 242, 0.35); }
.lang button:not([aria-pressed="true"]):hover { color: var(--plaster); }
.lang-sep { color: rgba(147, 164, 177, 0.5); font-size: 0.8rem; }

/* ============ Buttons ============ */
.btn {
  --x: 50%; --y: 50%;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem; border-radius: 999px; font-weight: 400; font-size: var(--step-0);
  cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.35s ease, color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.btn span { position: relative; z-index: 2; }
.btn-primary { background: var(--plaster); color: var(--ink); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(160px circle at var(--x) var(--y), rgba(70, 217, 242, 0.85), transparent 70%);
  opacity: 0; transition: opacity 0.3s ease;
}
.btn-primary:hover { box-shadow: 0 0 0 1px var(--cove), 0 10px 40px -8px rgba(70, 217, 242, 0.55); }
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { border: 1px solid var(--line); color: var(--plaster); }
.btn-ghost::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1px;
  background: radial-gradient(120px circle at var(--x) var(--y), var(--cove), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s ease;
}
.btn-ghost:hover { border-color: transparent; }
.btn-ghost:hover::before { opacity: 1; }
.btn:active { transform: scale(0.97); }
.btn-wide { width: 100%; }
.btn-lg { padding: 1.2rem 2.6rem; font-size: var(--step-1); }

/* ============ Cove frame (the soffit shape) ============ */
.cove {
  position: relative; margin: 0; overflow: hidden;
  border-radius: 28px; border-start-start-radius: clamp(90px, 14vw, 180px);
  background: var(--ink-2);
}
.cove::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 2px 0 0 rgba(70, 217, 242, 0.9), inset 0 18px 30px -18px rgba(70, 217, 242, 0.55);
}
.cove img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Layout ============ */
section { padding: clamp(5rem, 11vw, 9rem) var(--pad); max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; }
.section-head { max-width: 38rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--step-2); font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; }
.section-head p { color: var(--steel); margin-top: 0.9rem; max-width: 34rem; }

/* ============ Hero ============ */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: clamp(2rem, 5vw, 5rem); padding-top: 7rem; position: relative;
}
.hero-place { color: var(--cove); font-size: var(--step--1); margin-bottom: 1.4rem; display: flex; align-items: center; gap: 0.7rem; }
.hero-place::before { content: ""; width: 2.2rem; height: 1px; background: var(--cove); box-shadow: var(--glow); }
.hero-title { font-size: var(--step-3); font-weight: 300; line-height: 1.15; letter-spacing: -0.02em; max-width: 13ch; }
html[lang="ar"] .hero-title { line-height: 1.35; letter-spacing: 0; }
.hero-lede { color: var(--steel); margin-top: 1.6rem; max-width: 30rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }

.hero-visual { position: relative; height: min(78svh, 720px); }
.cove-hero { position: absolute; inset: 0; transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease); }
.cove-hero img { transform: scale(1.08); }
.hero-ribbon { position: absolute; inset: -6% -12% auto -12%; width: 124%; height: 60%; overflow: visible; pointer-events: none; z-index: 2; }
.hero-ribbon path { fill: none; stroke: var(--cove); stroke-width: 1.5; filter: drop-shadow(0 0 6px rgba(70, 217, 242, 0.9)); stroke-dasharray: 900; stroke-dashoffset: 900; }
.wordmark {
  position: absolute; inset-block-end: -2.2rem; inset-inline-end: -1rem; z-index: 3; direction: ltr;
  font-size: clamp(3.5rem, 11vw, 9rem); font-weight: 200; letter-spacing: 0.12em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(238, 243, 246, 0.55);
  background: linear-gradient(100deg, transparent 40%, var(--cove) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0; -webkit-background-clip: text; background-clip: text;
  pointer-events: none; user-select: none;
}

/* Page-load sequence: the one orchestrated moment */
.js .hero-place, .js .hero-title, .js .hero-lede, .js .hero-actions { opacity: 0; transform: translateY(18px); }
.js .cove-hero { clip-path: inset(100% 0 0 0 round 28px); }
.is-loaded .hero-place, .is-loaded .hero-title, .is-loaded .hero-lede, .is-loaded .hero-actions {
  opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.is-loaded .hero-title { transition-delay: 0.12s; }
.is-loaded .hero-lede { transition-delay: 0.24s; }
.is-loaded .hero-actions { transition-delay: 0.36s; }
.is-loaded .cove-hero { clip-path: inset(0 0 0 0 round 28px); transition: clip-path 1.3s var(--ease) 0.1s, transform 0.6s var(--ease); }
.is-loaded .cove-hero img { transform: scale(1); transition: transform 2.2s var(--ease); }
.is-loaded .hero-ribbon path { stroke-dashoffset: 0; transition: stroke-dashoffset 2s var(--ease) 0.8s; }
.is-loaded .wordmark { animation: sweep 2.4s var(--ease) 1.2s both; }
@keyframes sweep { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* ============ Gallery rail ============ */
.space { max-width: none; padding-inline: 0; }
.space .section-head { padding-inline: var(--pad); max-width: calc(38rem + var(--pad) * 2); margin-inline: max(0px, calc((100vw - var(--max)) / 2 - var(--pad))) 0; }
.rail {
  display: flex; gap: clamp(1rem, 2vw, 1.5rem); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0.5rem var(--pad) 1.5rem; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.shot { flex: 0 0 auto; margin: 0; scroll-snap-align: start; width: min(78vw, 640px); }
.shot-tall { width: min(58vw, 360px); }
.shot img { width: 100%; height: clamp(320px, 52vw, 480px); object-fit: cover; border-radius: 20px; transition: transform 0.8s var(--ease), filter 0.6s ease; filter: saturate(0.85); pointer-events: none; }
.shot:hover img { filter: saturate(1.05); }
.shot figcaption { margin-top: 0.8rem; color: var(--steel); font-size: var(--step--1); display: flex; align-items: center; gap: 0.6rem; }
.shot figcaption::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cove); box-shadow: var(--glow); }
.rail-controls { display: flex; gap: 0.6rem; padding-inline: var(--pad); margin-inline: max(0px, calc((100vw - var(--max)) / 2 - var(--pad))) 0; }
.rail-btn {
  width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer;
  display: grid; place-items: center; transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.rail-btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
html[dir="rtl"] .rail-btn svg { transform: scaleX(-1); }
.rail-btn:hover { border-color: var(--cove); box-shadow: var(--glow); }
.rail-btn:active { transform: scale(0.92); }

/* ============ Facilities ============ */
.fac-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.fac-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fac-item { border-bottom: 1px solid var(--line); position: relative; }
.fac-item::before {
  content: ""; position: absolute; inset-block: -1px; inset-inline-start: 0; width: 2px; background: var(--cove);
  box-shadow: var(--glow); transform: scaleY(0); transition: transform 0.45s var(--ease);
}
.fac-item button { all: unset; box-sizing: border-box; display: grid; width: 100%; cursor: pointer; padding: 1.5rem 0; padding-inline-start: 1.4rem; }
.fac-item button:focus-visible { outline: 2px solid var(--cove); outline-offset: -2px; }
.fac-name { font-size: var(--step-1); font-weight: 400; color: var(--steel); transition: color 0.3s ease; }
.fac-desc { color: var(--steel); max-width: 30rem; display: block; opacity: 0; transition: max-height 0.45s var(--ease), opacity 0.35s ease, margin 0.45s var(--ease); overflow: hidden; }
.fac-item.is-active::before { transform: scaleY(1); }
.fac-item.is-active .fac-name, .fac-item:hover .fac-name { color: var(--plaster); }
.fac-item.is-active .fac-desc { opacity: 1; margin-top: 0.5rem; }
.fac-desc { max-height: 0; }
.fac-item.is-active .fac-desc { max-height: 8rem; }
.fac-preview { position: sticky; top: 7rem; aspect-ratio: 4 / 5; }
.fac-preview img { transition: opacity 0.5s ease, transform 1s var(--ease); }
.fac-preview.is-swapping img { opacity: 0; transform: scale(1.05); }

/* ============ Plans ============ */
.plan-panel {
  border: 1px solid var(--line); border-radius: 32px; border-start-start-radius: clamp(70px, 10vw, 140px);
  padding: clamp(1.5rem, 4vw, 3.5rem); background: linear-gradient(180deg, var(--ink-2), var(--ink)); position: relative; overflow: hidden;
}
.plan-panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 2px 0 rgba(70, 217, 242, 0.85), inset 0 30px 50px -30px rgba(70, 217, 242, 0.35); }
.periods {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0.35rem;
  border: 1px solid var(--line); border-radius: 999px; max-width: 34rem;
}
.periods button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 0.75rem 0.5rem; border-radius: 999px; color: var(--steel); transition: color 0.35s ease; white-space: nowrap; font-size: var(--step--1); }
.periods button[aria-checked="true"] { color: var(--ink); }
.periods button:not([aria-checked="true"]):hover { color: var(--plaster); }
.periods-light {
  position: absolute; top: 0.35rem; bottom: 0.35rem; left: 0; width: 0; border-radius: 999px; background: var(--plaster);
  box-shadow: 0 0 26px rgba(70, 217, 242, 0.45); transition: transform 0.5s var(--ease), width 0.5s var(--ease);
}
.plan-body { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; margin-top: clamp(2rem, 4vw, 3rem); align-items: end; }
.price-line { display: flex; align-items: baseline; gap: 0.8rem; }
.price { font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 200; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.currency { color: var(--steel); font-size: var(--step-1); }
.price-meta { color: var(--steel); margin-top: 0.6rem; }
.save { display: inline-block; margin-inline-start: 0.8rem; color: var(--cove); transition: opacity 0.3s; }
.save:empty { opacity: 0; }
.plan-includes { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.plan-includes li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 0.8rem; align-items: center; transition: opacity 0.4s ease, color 0.4s ease; }
.plan-includes li::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--cove); box-shadow: var(--glow); transition: width 0.4s var(--ease), background 0.4s; }
.plan-includes li.is-off { color: rgba(147, 164, 177, 0.45); text-decoration: line-through; text-decoration-color: rgba(147, 164, 177, 0.3); }
.plan-includes li.is-off::before { width: 6px; background: var(--steel); box-shadow: none; }
.plan-includes li.is-new { animation: lit 0.9s var(--ease); }
@keyframes lit { 0% { color: var(--cove); } 100% { color: var(--plaster); } }
.addons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.addon { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 18px; }
.addon span { color: var(--steel); }
.addon strong { font-weight: 400; font-size: var(--step-1); white-space: nowrap; direction: ltr; }
.addon small { font-size: var(--step--1); color: var(--steel); }
.fineprint { color: var(--steel); font-size: var(--step--1); margin-top: 1.4rem; opacity: 0.8; }

/* ============ Visit ============ */
.visit { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.visit h2 { font-size: var(--step-2); font-weight: 400; }
.visit address { font-style: normal; color: var(--steel); margin-top: 1.2rem; line-height: 1.9; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.phone { display: inline-block; margin-top: 1.6rem; font-size: var(--step-1); font-weight: 300; letter-spacing: 0.04em; transition: color 0.25s, text-shadow 0.25s; }
.phone:hover { color: var(--cove); text-shadow: 0 0 18px rgba(70, 217, 242, 0.6); }
.map-wrap { aspect-ratio: 5 / 4; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: invert(0.92) hue-rotate(185deg) saturate(0.6) brightness(0.95); }

/* ============ Closing ============ */
.closing { text-align: center; display: grid; justify-items: center; gap: 2.4rem; padding-block: clamp(6rem, 14vw, 11rem); position: relative; }
.closing::before { content: ""; position: absolute; top: 0; left: 50%; width: min(60%, 520px); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--cove), transparent); box-shadow: 0 0 24px rgba(70, 217, 242, 0.6); }
.closing h2 { font-size: var(--step-3); font-weight: 300; line-height: 1.25; max-width: 16ch; }

/* ============ Footer ============ */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 2rem var(--pad) 6.5rem; border-top: 1px solid var(--line); color: var(--steel); font-size: var(--step--1); }
.footer .brand-word { color: var(--plaster); direction: ltr; }
.footer a:hover { color: var(--cove); }

/* ============ WhatsApp widget (styled like the WhatsApp app itself) ============ */
.wa {
  --wa-green: #25D366; --wa-green-deep: #128C7E; --wa-teal: #075E54;
  --wa-bg: #0B141A; --wa-bubble-in: #202C33; --wa-panel-line: rgba(255, 255, 255, 0.08);
  --wa-input-bg: #2A3942; --wa-bar-bg: #1F2C34; --wa-text: #E9EDEF; --wa-text-dim: #8696A0;
  position: fixed; z-index: 70; inset-block-end: max(1.25rem, env(safe-area-inset-bottom)); inset-inline-end: 1.25rem; display: grid; justify-items: end; gap: 0.9rem;
}
.wa-toggle {
  width: 3.8rem; height: 3.8rem; border-radius: 50%; border: 0; cursor: pointer; position: relative;
  background: var(--wa-green); color: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15), 0 12px 30px -8px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background 0.35s ease;
}
.wa-toggle::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--wa-green); opacity: 0; animation: ping 3.2s ease-out 3s infinite; }
@keyframes ping { 0% { transform: scale(0.85); opacity: 0.8; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.wa-toggle:hover { transform: translateY(-3px) scale(1.04); background: var(--wa-green-deep); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 18px 40px -8px rgba(0, 0, 0, 0.65); }
.wa-toggle svg { grid-area: 1 / 1; transition: transform 0.4s var(--ease), opacity 0.3s ease; }
.wa-icon { width: 1.9rem; height: 1.9rem; }
.wa-x { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2; opacity: 0; transform: rotate(-90deg); }
.wa[data-open="true"] .wa-icon { opacity: 0; transform: rotate(90deg); }
.wa[data-open="true"] .wa-x { opacity: 1; transform: none; }
.wa[data-open="true"] .wa-toggle::before { animation: none; }

.wa-panel {
  width: min(22rem, calc(100vw - 2.5rem)); background: var(--wa-bg);
  border: 1px solid var(--wa-panel-line); border-radius: 24px; border-start-start-radius: 56px; overflow: hidden;
  box-shadow: inset 0 2px 0 var(--wa-green), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  transform-origin: bottom right; animation: panelIn 0.45s var(--ease);
  color: var(--wa-text);
}
html[dir="rtl"] .wa-panel { transform-origin: bottom left; }
.wa-panel.is-closing { animation: panelOut 0.25s ease forwards; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes panelOut { to { opacity: 0; transform: translateY(8px) scale(0.96); } }
.wa-head { display: flex; align-items: center; gap: 0.8rem; padding: 1.1rem 1.1rem 0.9rem; padding-inline-start: 1.6rem; background: var(--wa-teal); border-bottom: 1px solid var(--wa-panel-line); }
.wa-avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; font-weight: 400; flex: none; }
.wa-title { font-weight: 500; font-size: 0.95rem; direction: ltr; text-align: start; color: #fff; }
.wa-status { font-size: 0.78rem; color: rgba(255, 255, 255, 0.75); }
.wa-close { margin-inline-start: auto; border: 0; background: none; cursor: pointer; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; color: rgba(255, 255, 255, 0.85); transition: color 0.2s, background 0.2s; }
.wa-close:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.wa-close svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; }
.wa-body {
  padding: 1.1rem; display: grid; gap: 0.9rem;
  background-color: var(--wa-bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 18px 18px;
}
.wa-bubble { background: var(--wa-bubble-in); color: var(--wa-text); padding: 0.7rem 1rem; border-radius: 18px; border-start-start-radius: 4px; justify-self: start; font-size: 0.92rem; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); animation: panelIn 0.5s var(--ease) 0.15s both; }
.wa-chips { display: grid; gap: 0.5rem; }
.wa-chips button {
  text-align: start; border: 1px solid rgba(37, 211, 102, 0.4); color: var(--wa-text); background: rgba(37, 211, 102, 0.08); cursor: pointer; padding: 0.6rem 0.95rem; border-radius: 14px; font-size: 0.88rem;
  transition: border-color 0.25s, background 0.25s, transform 0.2s var(--ease); animation: panelIn 0.5s var(--ease) both;
}
.wa-chips button:nth-child(1) { animation-delay: 0.25s; }
.wa-chips button:nth-child(2) { animation-delay: 0.32s; }
.wa-chips button:nth-child(3) { animation-delay: 0.39s; }
.wa-chips button:hover { border-color: var(--wa-green); background: rgba(37, 211, 102, 0.18); transform: translateX(-3px); }
html[dir="ltr"] .wa-chips button:hover { transform: translateX(3px); }
.wa-form { display: flex; gap: 0.5rem; padding: 0.8rem; background: var(--wa-bar-bg); border-top: 1px solid var(--wa-panel-line); }
.wa-form input { flex: 1; min-width: 0; background: var(--wa-input-bg); color: var(--wa-text); border: 1px solid transparent; border-radius: 999px; padding: 0.65rem 1rem; font-size: 0.9rem; transition: border-color 0.25s; }
.wa-form input::placeholder { color: var(--wa-text-dim); }
.wa-form input:focus { outline: none; border-color: var(--wa-green); }
.wa-form button { flex: none; width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 0; background: var(--wa-green); color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.25s; }
.wa-form button:hover { background: var(--wa-green-deep); box-shadow: 0 0 20px rgba(37, 211, 102, 0.45); }
.wa-form button:active { transform: scale(0.9); }
.wa-form svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
html[dir="rtl"] .wa-form svg { transform: scaleX(-1); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 6.5rem; min-height: auto; }
  .hero-visual { height: 64svh; min-height: 420px; margin-bottom: 2rem; }
  .fac-grid, .visit, .plan-body { grid-template-columns: 1fr; }
  .fac-preview { display: none; }
  .addons { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .brand-word { letter-spacing: 0.22em; font-size: 0.95rem; }
  .lang button { padding: 0.3rem 0.65rem; font-size: 0.8rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .periods button { font-size: 0.8rem; padding-inline: 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .hero-ribbon path { stroke-dashoffset: 0; }
}
