/* ============================================================
   VOYARIST — Landing page
   Responsive layout + motion system on top of voyarist.css
   ============================================================ */

/* ── Motion system ──────────────────────────────────────────── */
[data-aos] { --aos-delay: 0ms; transition-delay: var(--aos-delay); }
[data-aos].aos-animate { transition-delay: var(--aos-delay); }

@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 ───────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }

.aurora {
  position: absolute; inset: -20% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 20% 30%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(700px 500px at 80% 20%, rgba(8, 145, 178, 0.18), transparent 60%),
    radial-gradient(500px 500px at 60% 80%, rgba(251, 191, 36, 0.10), transparent 60%);
  animation: auroraShift 14s ease-in-out infinite alternate;
  filter: blur(40px);
}
@keyframes auroraShift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4%, -3%, 0) scale(1.08); }
}

.hero-content { position: relative; z-index: 1; }

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 540px;
  margin-top: 1.5rem;
  color: var(--text-secondary);
}

/* Hero proof points — replace the duplicated logo, which the navbar already shows */
.hero-points {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.hero-points i { color: #4ade80; font-size: 0.85rem; flex-shrink: 0; }

/* Phone mockup wrapper */
.phone-hero { position: relative; justify-self: center; }
.phone-glow {
  position: absolute; inset: -30px; z-index: 0;
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.35), transparent);
  filter: blur(30px);
}
.phone-hero .phone-mockup {
  transform: rotate(-4deg);
  position: relative; z-index: 1;
  animation: phoneSway 8s ease-in-out infinite;
}
@keyframes phoneSway {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-3deg) translateY(-8px); }
}

/* ── Language ticker ────────────────────────────────────────── */
.lang-ticker {
  overflow: hidden; margin-top: 2.5rem; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.lang-ticker-track {
  display: flex; gap: 0.75rem; width: max-content;
  animation: tickerMove 30s linear infinite;
}
.lang-ticker:hover .lang-ticker-track { animation-play-state: paused; }
.lang-chip {
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
  padding: 0.45rem 0.9rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--glass-border);
}
@keyframes tickerMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Live destinations ──────────────────────────────────────── */
.dest-wrap { position: relative; }
.dest-scroller {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 26vw, 280px);
  gap: 1.25rem; overflow-x: auto; padding: 0.5rem 0.25rem 1.25rem;
  scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth;
}
.dest-scroller::-webkit-scrollbar { display: none; }

.dest-card {
  scroll-snap-align: start; position: relative; height: clamp(300px, 40vw, 360px);
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--glass-border); background: var(--bg-surface);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
}
.dest-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.dest-card img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  image-orientation: from-image;
  transition: transform 6s ease;
}
.dest-card:hover img { transform: scale(1.12); }
/* Orientation-aware framing (class set on img load from natural dimensions) */
.dest-card.is-portrait img  { object-position: center 22%; }
.dest-card.is-landscape img { object-position: center; }

.dest-overlay {
  position: absolute; inset: 0; padding: 1.25rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 8, 15, 0.92) 100%);
}
.dest-name { font-weight: 800; font-size: 1.02rem; line-height: 1.25; color: #fff; }
.dest-loc {
  margin-top: 0.3rem; display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.75rem; color: rgba(255, 255, 255, 0.75);
}
.dest-audio {
  position: absolute; top: 0.9rem; right: 0.9rem; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 0.8rem; color: #4ade80;
  background: rgba(10, 14, 23, 0.72); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.dest-skeleton {
  scroll-snap-align: start; height: clamp(300px, 40vw, 360px); border-radius: 20px;
  background: var(--bg-surface); position: relative; overflow: hidden;
}
.dest-skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.dest-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 14, 23, 0.85); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border); color: var(--text-primary);
  cursor: pointer; font-size: 0.85rem;
  transition: background var(--transition), transform var(--transition);
}
.dest-nav:hover { background: var(--primary-dark); transform: translateY(-50%) scale(1.06); }
.dest-nav.prev { left: -14px; }
.dest-nav.next { right: -14px; }

.dest-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.dest-header .section-desc { max-width: 380px; margin: 0; }

/* ── Stat counters ──────────────────────────────────────────── */
.stat-value { font-variant-numeric: tabular-nums; }

/* ── Business section ───────────────────────────────────────── */
.biz-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.biz-bullets { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.biz-bullet { display: flex; align-items: center; gap: 0.85rem; }
.biz-bullet-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; color: #fde68a; background: rgba(240, 160, 64, 0.15);
}
.biz-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.biz-metric {
  border: 1px solid var(--glass-border); background: var(--bg-surface);
  border-radius: 16px; padding: 1.25rem;
  transition: transform var(--transition-md), border-color var(--transition-md);
}
.biz-metric:hover { transform: translateY(-4px); border-color: rgba(240, 160, 64, 0.35); }
.biz-metric .v { font-size: clamp(1.3rem, 2.6vw, 1.6rem); font-weight: 900; }
.biz-metric .l { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.25rem; }
.biz-metric.offset { margin-top: 1.5rem; }
.biz-cta-row { margin-top: 2rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Download ───────────────────────────────────────────────── */
.download-logo {
  width: 64px; height: 64px; display: block; margin: 0 auto 1rem;
  border-radius: 16px; box-shadow: 0 8px 32px rgba(37, 99, 235, 0.4);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dest-nav { display: none; }
  .navbar-nav { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 900px) {
  .hero-main { grid-template-columns: 1fr; }
  .phone-hero { order: 2; margin-top: 1rem; }
  .hero-cta { flex-wrap: wrap; }
  .biz-grid { grid-template-columns: 1fr; }
  .biz-metric.offset { margin-top: 0; }
}

@media (max-width: 560px) {
  .phone-hero .phone-mockup { transform: rotate(0deg) scale(0.92); }
  @keyframes phoneSway {
    0%, 100% { transform: rotate(0deg) scale(0.92) translateY(0); }
    50%      { transform: rotate(0deg) scale(0.92) translateY(-6px); }
  }
  .biz-metrics { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .dest-header { flex-direction: column; align-items: flex-start; }
}

/* ── Mobile nav ─────────────────────────────────────────────── */
.nav-burger {
  display: none; width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 10px; color: var(--text-primary); font-size: 1rem; cursor: pointer;
}
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 90;
  background: rgba(3, 7, 18, 0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 1.5rem 1.5rem; flex-direction: column; gap: 0.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.85rem 0.5rem; color: var(--text-secondary); text-decoration: none;
  font-weight: 600; font-size: 0.95rem; border-radius: 8px;
}
.mobile-menu a:hover { color: var(--text-primary); background: var(--glass); }

@media (max-width: 768px) {
  .nav-burger { display: flex; }
  .navbar-actions .btn-ghost { display: none; }
}

/* ============================================================
   PHOTOGRAPHIC LAYER — cinematic, image-rich tourism visuals
   ============================================================ */

/* ── Cinematic hero: a real Spanish monument behind the copy ─── */
.hero { isolation: isolate; }

.hero-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 42%;
  transform: scale(1.14);
  animation: heroKen 30s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroKen {
  0%   { transform: scale(1.14) translate3d(0, 0, 0); }
  100% { transform: scale(1.24) translate3d(-2.5%, -2%, 0); }
}

/* Legibility scrim — very dark on the left (where the copy is), lets the
   monument breathe on the right, and fades into the page at the bottom */
.hero-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3,7,18,0.96) 0%, rgba(3,7,18,0.86) 30%, rgba(3,7,18,0.55) 58%, rgba(3,7,18,0.25) 100%),
    linear-gradient(0deg, var(--bg-base) 1%, rgba(3,7,18,0.45) 26%, transparent 52%),
    radial-gradient(120% 85% at 82% 22%, transparent 38%, rgba(3,7,18,0.55) 100%);
}

/* Colour glow + faint grid now float subtly over the photo */
.hero .aurora    { z-index: 0; opacity: 0.65; mix-blend-mode: screen; }
.hero .hero-grid { z-index: 0; opacity: 0.45; }
.hero .hero-content { z-index: 2; }

/* Text gets a soft shadow so it stays crisp over any photo */
.hero h1        { text-shadow: 0 2px 30px rgba(0,0,0,0.55); }
.hero .hero-sub { text-shadow: 0 1px 16px rgba(0,0,0,0.45); }

/* "You're looking at a real place" caption, pinned to the hero corner */
.hero-caption {
  position: absolute; z-index: 2; left: max(1.5rem, calc((100% - 1280px) / 2 + 1.5rem));
  bottom: 1.4rem; display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 0.9rem; border-radius: 100px;
  background: rgba(3, 7, 18, 0.55); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 0.78rem; font-weight: 600; color: var(--text-secondary);
}
.hero-caption i { color: var(--accent); }
.hero-caption strong { color: var(--text-primary); font-weight: 700; }

/* On stacked (mobile) layouts the copy sits over the whole photo, so the
   scrim darkens top-and-bottom instead of left-to-right for legibility */
@media (max-width: 900px) {
  .hero-caption { display: none; }
  .hero-photo img { object-position: 50% 30%; }
  .hero-scrim {
    background:
      linear-gradient(180deg,
        rgba(3,7,18,0.93) 0%, rgba(3,7,18,0.78) 22%, rgba(3,7,18,0.55) 42%,
        rgba(3,7,18,0.70) 62%, rgba(3,7,18,0.93) 84%, var(--bg-base) 100%);
  }
}

/* Monument thumbnail inside the phone "now playing" card */
.phone-card-thumb {
  position: relative; margin: 0 0 0.5rem; border-radius: 10px; overflow: hidden;
  height: 62px; box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.phone-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-card-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(3,7,18,0.55), transparent 60%);
}
.phone-card-thumb .live-badge {
  position: absolute; top: 6px; left: 6px; display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 6px; border-radius: 6px; font-size: 0.5rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: #fff; background: rgba(79,142,247,0.9);
}
.phone-card-thumb .live-badge::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: #fff;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Map of Spain, dotted with destinations, inside the phone mockup */
.phone-map { position: relative; }
.phone-spain {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 18px 14px 26px;
  filter: drop-shadow(0 0 22px rgba(79, 142, 247, 0.28));
  opacity: 0.97; animation: mapFloat 9s ease-in-out infinite;
}
@keyframes mapFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.phone-map .phone-pin { z-index: 2; }
.phone-map-count {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 4px 9px; border-radius: 100px; font-size: 0.52rem; font-weight: 700;
  color: #dbeafe; background: rgba(3, 7, 18, 0.62); border: 1px solid rgba(147, 197, 253, 0.3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.phone-map-count i { color: #7db4ff; }

/* ── Monuments mosaic — the visual centrepiece ──────────────────── */
.monuments { position: relative; }
.mon-halo {
  position: absolute; inset: -10% -5% auto -5%; height: 60%; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(79,142,247,0.12), transparent 70%);
  filter: blur(30px);
}
.monuments-mosaic {
  position: relative; z-index: 1; display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr); grid-auto-rows: 215px; margin-top: 2.5rem;
}
.mon-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border); background: var(--bg-surface);
  box-shadow: var(--shadow-md); text-decoration: none; display: block;
  transform: translateZ(0);
}
.mon-card.big  { grid-column: span 2; grid-row: span 2; }
.mon-card.wide { grid-column: span 2; }
.mon-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
  filter: saturate(1.02);
}
.mon-card:hover img { transform: scale(1.09); filter: saturate(1.12) brightness(1.03); }
.mon-overlay {
  position: absolute; inset: 0; padding: 1.05rem 1.15rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(0deg, rgba(3,7,18,0.9) 0%, rgba(3,7,18,0.35) 42%, rgba(3,7,18,0.02) 70%);
}
.mon-card:hover .mon-overlay {
  background: linear-gradient(0deg, rgba(3,7,18,0.92) 0%, rgba(15,32,64,0.35) 46%, rgba(3,7,18,0.05) 75%);
}
.mon-name { font-size: 1.05rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; line-height: 1.15; }
.mon-card.big .mon-name { font-size: 1.55rem; }
.mon-city {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.25rem;
  font-size: 0.78rem; color: #cbd5e1; font-weight: 500;
}
.mon-city i { color: var(--accent); font-size: 0.72rem; }
.mon-chip {
  position: absolute; top: 0.85rem; right: 0.85rem; display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.28rem 0.6rem; border-radius: 100px; font-size: 0.66rem; font-weight: 700;
  color: #dbeafe; background: rgba(3,7,18,0.5); border: 1px solid rgba(147,197,253,0.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: translateY(-6px); opacity: 0; transition: transform 0.4s ease, opacity 0.4s ease;
}
.mon-card:hover .mon-chip { transform: translateY(0); opacity: 1; }
.mon-chip i { color: #93c5fd; }

@media (max-width: 900px) {
  .monuments-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 175px; }
  .mon-card.big  { grid-column: span 2; grid-row: span 2; }
  .mon-card.wide { grid-column: span 2; }
  .mon-card.big .mon-name { font-size: 1.35rem; }
}
@media (max-width: 560px) {
  .monuments-mosaic { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .mon-card.big, .mon-card.wide { grid-column: span 1; }
  .mon-card.big { grid-row: span 1; }
}

/* ── Immersive parallax band ────────────────────────────────────── */
.parallax-band {
  position: relative; min-height: 460px; display: flex; align-items: center;
  overflow: hidden; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
}
.pb-photo {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('/img/monuments/sagrada-familia-2.jpg');
  background-size: cover; background-position: center; background-attachment: fixed;
  transform: scale(1.05);
}
.pb-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(3,7,18,0.94) 0%, rgba(3,7,18,0.7) 45%, rgba(3,7,18,0.55) 100%),
    linear-gradient(0deg, rgba(3,7,18,0.6), transparent 40%);
}
.pb-content { position: relative; z-index: 2; }
.pb-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.pb-title { font-size: clamp(1.9rem, 4.5vw, 3.2rem); line-height: 1.1; max-width: 15ch; }
.pb-sub { margin-top: 1.1rem; max-width: 46ch; font-size: 1.05rem; }
.pb-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2rem; }
.pb-stat .v { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.pb-stat .l { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
@media (max-width: 768px) {
  .pb-photo { background-attachment: scroll; }
  .parallax-band { min-height: 400px; }
  .pb-stats { gap: 1.5rem; }
}

/* ── Download section: monument montage backdrop ────────────────── */
#download { position: relative; overflow: hidden; }
.download-backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.download-backdrop::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('/img/monuments/park-guell.jpg');
  background-size: cover; background-position: center 35%;
  opacity: 0.22; filter: saturate(1.05);
}
.download-backdrop::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(80% 80% at 50% 40%, rgba(3,7,18,0.55) 0%, var(--bg-base) 78%),
    linear-gradient(0deg, var(--bg-base), transparent 55%, var(--bg-base));
}
#download .container { position: relative; z-index: 1; }

/* Image scroll-reveal (used on the mosaic + bands) */
[data-aos="zoom-in"] { transform: scale(0.94); opacity: 0; }
[data-aos="zoom-in"].aos-animate { transform: scale(1); opacity: 1; }

/* ============================================================
   LANGUAGE SWITCHER + RTL
   ============================================================ */
.lang-switch { position: relative; }
.lang-switch > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.7rem; border-radius: 10px; font-size: 0.82rem; font-weight: 700;
  color: var(--text-secondary); background: var(--glass); border: 1px solid var(--glass-border);
  transition: color var(--transition), background var(--transition);
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::marker { content: ""; }
.lang-switch > summary i { color: var(--primary); }
.lang-switch > summary:hover { color: var(--text-primary); background: var(--glass-hover); }
.lang-switch[open] > summary { color: var(--text-primary); background: var(--glass-hover); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
  min-width: 190px; max-height: 66vh; overflow: auto;
  padding: 6px; border-radius: 14px;
  background: rgba(13, 17, 23, 0.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg);
  display: grid; gap: 2px;
}
.lang-menu a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.7rem; border-radius: 9px;
  font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); text-decoration: none;
}
.lang-menu a:hover { background: var(--glass); color: var(--text-primary); }
.lang-menu a.active { color: var(--primary); background: rgba(79, 142, 247, 0.12); }

/* SVG flags — render identically on every OS (Windows has no flag emoji glyphs) */
.flag {
  width: 22px; height: 16px; flex: 0 0 auto;
  border-radius: 3px; object-fit: cover;
  vertical-align: -3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.lang-switch > summary .flag { width: 20px; height: 15px; }

.mobile-langs {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0.85rem 0.5rem 0.2rem; margin-top: 0.5rem; border-top: 1px solid var(--glass-border);
}
.mobile-langs a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 700;
  color: var(--text-secondary); background: var(--glass); border: 1px solid var(--glass-border);
}
.mobile-langs a.active { color: var(--primary); border-color: rgba(79, 142, 247, 0.45); }

@media (max-width: 768px) { .lang-switch { display: none; } }

/* ── Right-to-left (Arabic) ─────────────────────────────────────── */
[dir="rtl"] .hero-points li,
[dir="rtl"] .biz-bullet,
[dir="rtl"] .mon-city,
[dir="rtl"] .phone-map-count,
[dir="rtl"] .lang-menu a { flex-direction: row-reverse; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .hero-scrim {
  background:
    linear-gradient(270deg, rgba(3,7,18,0.96) 0%, rgba(3,7,18,0.86) 30%, rgba(3,7,18,0.55) 58%, rgba(3,7,18,0.25) 100%),
    linear-gradient(0deg, var(--bg-base) 1%, rgba(3,7,18,0.45) 26%, transparent 52%),
    radial-gradient(120% 85% at 18% 22%, transparent 38%, rgba(3,7,18,0.55) 100%);
}
[dir="rtl"] .hero-caption { left: auto; right: max(1.5rem, calc((100% - 1280px) / 2 + 1.5rem)); }
[dir="rtl"] .steps-grid .step { border-right: none !important; border-left: 1px solid var(--glass-border); }
[dir="rtl"] .steps-grid .step:last-child { border-left: none; }
@media (max-width: 900px) {
  [dir="rtl"] .hero-scrim {
    background: linear-gradient(180deg, rgba(3,7,18,0.93) 0%, rgba(3,7,18,0.78) 22%, rgba(3,7,18,0.55) 42%, rgba(3,7,18,0.70) 62%, rgba(3,7,18,0.93) 84%, var(--bg-base) 100%);
  }
}
