/* Roamvy homepage v2 — hero layout B (full-width video), trust strip, sticky mobile CTA, search prices */

/* ---------- Hero B ---------- */
.banner-sec.hero-b { background: #1d1530; min-height: 640px; padding-top: 110px; padding-bottom: 60px; }
.hero-b .hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-b .hero-poster,
.hero-b .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-b .hero-poster,
.hero-b .hero-video { object-position: center 28%; }   /* keep tall landmarks' tops in frame on wide screens */
.hero-b .hero-video { opacity: 0; transition: opacity .8s ease; }
.hero-b .hero-video.is-playing { opacity: 1; }
.hero-b .hero-overlay { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,10,40,.82) 0%, rgba(20,10,40,.62) 45%, rgba(20,10,40,.25) 100%); }
.hero-b .container { position: relative; z-index: 2; }
.hero-b .banner-dis h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-b .banner-dis p { color: rgba(255,255,255,.88) !important; }
.hero-b .commn-wht-btn { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }
.hero-b .banner-srch .search-box { box-shadow: 0 10px 30px rgba(0,0,0,.25); }
@media (max-width: 991.98px) {
  .banner-sec.hero-b { min-height: 560px; padding-top: 90px; text-align: center; }
  .hero-b .hero-overlay { background: rgba(20,10,40,.66); }
}

/* ---------- Trust strip ---------- */
.trust-strip { gap: 8px 22px; margin: 0; font-size: 14px; font-weight: 500; color: #3d3550; }
.trust-strip--under-search { margin: -16px 0 6px 8px; }   /* sits under the search box, space before buttons */
@media (max-width: 991.98px) { .trust-strip--under-search { margin: -16px 0 4px; font-size: 13px; } }
.trust-strip li { display: flex; align-items: center; gap: 6px; }
.trust-strip i { color: #893fc8; }
.hero-b .trust-strip { color: rgba(255,255,255,.92); }
.hero-b .trust-strip i { color: #d6b4ff; }

/* ---------- Search "from $X" ---------- */
.search-from-price { font-size: 12px; color: #893fc8; font-weight: 600; margin-left: 6px; white-space: nowrap; }

/* ---------- Sticky "Find your eSIM" (mobile) ---------- */
.sticky-find-esim { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1030;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 18px; border-radius: 30px; background: #893fc8; color: #fff !important;
  font-weight: 600; font-size: 16px; box-shadow: 0 8px 24px rgba(137,63,200,.45);
  transform: translateY(140%); transition: transform .25s ease; text-decoration: none; }
.sticky-find-esim.is-visible { transform: translateY(0); }

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-b .hero-video { display: none !important; }
  .sticky-find-esim { transition: none; }
}

/* ---------- Phase 3: motion & polish ---------- */
/* Scroll reveal (only when JS has switched it on, so content never stays hidden) */
html.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html.js-reveal .reveal.is-in { opacity: 1; transform: none; }
html.js-reveal .reveal-item { opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
html.js-reveal .is-in .reveal-item { opacity: 1; transform: none; }

/* Destination & plan cards: lift on hover, flag pops */
.destination .network_cards, .Switch_section .network_cards, .destination-card {
  transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }
.destination .network_cards:hover, .Switch_section .network_cards:hover, .destination-card:hover {
  transform: translateY(-6px); box-shadow: 0 18px 40px rgba(137,63,200,.18); }
.destination .popular-flag img { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.destination .network_cards:hover .popular-flag img { transform: scale(1.12) rotate(-3deg); }

/* How it works: cards lift and the app screens tilt slightly on hover */
.how_it_works .how-work-card { transition: transform .3s ease, box-shadow .3s ease; }
.how_it_works .how-work-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(29,21,48,.12); }
.how_it_works .how-img img { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.how_it_works .how-work-card:hover .how-img img { transform: translateY(-6px) rotate(-1.5deg); }

/* Buttons: subtle sheen on hover */
.commn-btn { position: relative; overflow: hidden; }
.commn-btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.commn-btn:hover::after { left: 120%; }

@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal, html.js-reveal .reveal-item { opacity: 1 !important; transform: none !important; transition: none !important; }
  .commn-btn::after { display: none; }
}
