/* ==========================================================================
   Hero — Figma 7:272 (text), 7:222 + 8:1988 (glows), 8:1990 (city imagery)
   Fonts (Geist / DM Sans) are declared in header.css.
   ========================================================================== */

/* "Backed by" — Figma 7:1861: DM Sans Regular 14/20, opsz 14 */
.hero-backed {
  font-family: "DM Sans", var(--font-sans);
  font-variation-settings: "opsz" 14;
}

/* "Upload my passport" — Figma 8:1982: 35px tall, text 18px from the edge
   (inside border, so padding = 18 − 2.175), radius 43 */
.pill-btn--hero,
.pill-btn.pill-btn--hero {
  height: 35px;
  padding: 0 15.825px;
  border-radius: 43px;
}

/* City tiles — Figma 8:2099/8:2105/8:2102/8:2111, 360×360 each at 1440 */
.hero-city {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Load-in starting state (js/hero.js animates to the final state). Only applied when
   JS is running and motion is allowed — with JS off the markup shows final content. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  #hero [data-hero-item] { opacity: 0; transform: translateY(16px); }
  #hero [data-hero-cities] { opacity: 0; }
}

/* Hero city tiles — on hover: darken the bottom, show the destination name + arrow (like the live site) */
.hero-tile { display: block; overflow: hidden; }
.hero-tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(35, 26, 46, 0.55), rgba(35, 26, 46, 0) 45%);
  opacity: 0; transition: opacity 0.35s ease;
}
.hero-tile .hero-city { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.hero-tile__label {
  position: absolute; z-index: 1; left: 24px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 20px; line-height: 24px; font-weight: 500; color: #fff; letter-spacing: -0.2px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-tile__label svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.hero-tile:hover::after, .hero-tile:focus-visible::after { opacity: 1; }
.hero-tile:hover .hero-tile__label, .hero-tile:focus-visible .hero-tile__label { opacity: 1; transform: none; }
.hero-tile:hover .hero-tile__label svg { transform: translateX(3px); }
.hero-tile:hover .hero-city { transform: scale(1.03); }
.hero-tile:focus-visible { outline: 2px solid var(--color-passport, #2663eb); outline-offset: -2px; }
/* touch screens have no hover: keep the names visible */
@media (hover: none) { .hero-tile::after, .hero-tile__label { opacity: 1; transform: none; } .hero-tile__label { font-size: 16px; left: 16px; bottom: 14px; } }
