/* ADONIS TELECOM v2 — Section 1 (header / hero / marquee / trust) */

.t21-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;
}

/* ===== Header ===== */
.t21-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
}
/* No backdrop-filter here: on a white page it buys nothing visually, and a
   filtered ancestor becomes the containing block for position:fixed children —
   which was collapsing .t21-overlay to the header's own 107px height. */
/* transparent at top → solid white on scroll, CSS only.
   Keyframe name kept (the reduced-motion block below references it). */
@supports (animation-timeline: scroll()) {
  .t21-header {
    background: rgba(255, 255, 255, .55);
    border-bottom-color: transparent;
    animation: t21-header-darken linear both;
    animation-timeline: scroll();
    animation-range: 0 220px;
  }
  @keyframes t21-header-darken {
    to { background: rgba(255, 255, 255, .94); border-bottom-color: var(--line); }
  }
}
.t21-header__inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.t21-brand { display: inline-flex; align-items: center; gap: 12px; }
.t21-brand img { display: block; }
/* Two-line lockup: ADONIS TELECOM / by ADONIS NETWORK. The by-line is the
   honest phrasing — "An Adonis Network Company" would claim a separate legal
   entity, and Adonis Telecom is a brand of the same company. */
.t21-brand__lockup { display: inline-flex; flex-direction: column; gap: 4px; line-height: 1; }
.t21-brand__line { color: var(--text); font-weight: 600; font-size: 15px; letter-spacing: .07em; }
.t21-brand__line em { font-style: normal; color: var(--gold); font-weight: 500; letter-spacing: .2em; }
.t21-brand__by {
  font-size: 9.5px; font-weight: 600; letter-spacing: .26em;
  /* red-800 (6.30:1) — at 9.5px a pale red would be unreadable, so the scale
     steps down rather than fading out. */
  color: var(--red-800);
}
.t21-nav { display: flex; gap: 26px; margin-left: auto; }
.t21-nav a { color: var(--text-2); font-size: 15px; font-weight: 600; }
.t21-nav a:hover { color: var(--red-600); }
.t21-header__cta { display: flex; align-items: center; gap: 14px; }
/* A hairline between browsing and your own account — the nav is places on the
   site, everything past this rule is you. */
.t21-header__cta::before {
  content: ""; flex: none; width: 1px; height: 22px; background: var(--line);
  margin-inline-end: 4px;
}
/* Three tiers in the header, each visually distinct: nav links are plain text,
   this is an outlined pill, the CTA is a solid fill. It used to be 15px/600 —
   character-for-character the nav rule — so it read as a seventh menu item
   rather than the way in to your account. */
.t21-header__login {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); font-size: 14px; font-weight: 700;
  border: 1px solid var(--line); border-radius: 999px;
  padding-block: 8px; padding-inline: 12px 16px;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
/* The icon carries the only red, so the pill stays subordinate to the CTA
   beside it — one solid red button in the header, not two red things. */
.t21-header__login svg { flex: none; color: var(--red-600); transition: color .18s ease; }
.t21-header__login:hover {
  background: var(--red-50); border-color: var(--red-200); color: var(--red-800);
}
.t21-header__login:hover svg { color: var(--red-700); }
.t2-btn.t21-btn--sm { padding: 11px 24px; font-size: 14px; }

/* mobile menu */
.t21-menu-check { position: absolute; opacity: 0; pointer-events: none; }
.t21-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; margin-left: auto;
  cursor: pointer; z-index: 102; position: relative;
}
.t21-burger span {
  display: block; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .3s ease, opacity .3s ease;
}
.t21-menu-check:focus-visible + .t21-burger { outline: 3px solid var(--gold); outline-offset: 3px; }
.t21-menu-check:checked ~ .t21-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.t21-menu-check:checked ~ .t21-burger span:nth-child(2) { opacity: 0; }
.t21-menu-check:checked ~ .t21-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.t21-overlay {
  position: fixed; inset: 0; z-index: 101; display: flex;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
}
.t21-menu-check:checked ~ .t21-overlay { opacity: 1; visibility: visible; }
.t21-overlay__nav { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.t21-overlay__nav a { color: var(--text); font-size: clamp(24px, 6vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.t21-overlay__nav a:hover { color: var(--gold); }
.t21-overlay__nav .t2-btn { font-size: 17px; margin-top: 10px; color: #FFFFFF; }

/* ===== Hero ===== */
.t21-hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  /* Generous top padding: below 1080px the globe is order:-1 (first thing
     under the fixed header, itself ~110px with the topbar) and rides into
     the menu without this. The desktop compaction lives in the >=1080
     override, whose top/bottom split nudges the centered content upward. */
  padding: 140px 0 90px; overflow: hidden;
  background:
    radial-gradient(1100px 640px at 78% -10%, rgba(229, 9, 20, .045), transparent 62%),
    radial-gradient(900px 560px at 12% 108%, rgba(244, 64, 78, .035), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 58%, var(--bg) 100%);
}
.t21-hero__bg { position: absolute; inset: 0; z-index: 0; }
/* .t21-arcs is positioned further down, inside the globe's own stacking layer. */
.t21-orb-1 { width: 560px; height: 560px; top: -180px; right: -140px; }
.t21-orb-2 { width: 640px; height: 640px; bottom: -260px; left: -200px; }
.t21-hero__content { position: relative; z-index: 1; }

.t21-h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 800; line-height: 1.06; letter-spacing: -.03em;
  margin-bottom: 26px;
}
/* "Stay connected in" is the fixed half of the headline — it must never wrap,
   or the typewriter line below it jumps a row mid-animation. */
.t21-h1__line { display: block; white-space: nowrap; }
.t21-h1__type { min-height: 1.08em; } /* no layout jump while typing */

.t21-hero__sub { margin-bottom: 36px; }
.t21-hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

/* ===== Destination search ===== */
.t21-search { max-width: 720px; padding: 26px 28px; }
.t21-search:hover { transform: none; } /* keep the card still; focus glow is the effect */
.t21-search:focus-within {
  border-color: var(--red-600);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, .12), var(--shadow-md);
}
.t21-search__label {
  display: block; color: var(--gold); font-size: 12px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 12px;
}
.t21-search__field { display: flex; align-items: center; gap: 14px; color: var(--text-3); }
.t21-search__field:focus-within { color: var(--gold); }
.t21-search__field input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: var(--text); font-family: var(--font); font-size: 20px; font-weight: 600; padding: 6px 0;
}
.t21-search__field input::placeholder { color: var(--text-3); font-weight: 500; }
.t21-search__field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.t21-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.t21-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.t21-chip:hover { border-color: var(--red-600); color: var(--text); background: var(--bg-3); }
.t21-chips__empty { margin-top: 16px; color: var(--text-3); font-size: 14px; }

/* ===== Scroll cue ===== */
.t21-scroll-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 1;
  transform: translateX(-50%);
  color: var(--text-3); line-height: 0;
  animation: t21-cue 2.2s ease-in-out infinite;
}
.t21-scroll-cue:hover { color: var(--gold); }
@keyframes t21-cue {
  0%, 100% { transform: translate(-50%, 0); opacity: .55; }
  50% { transform: translate(-50%, 9px); opacity: 1; }
}

/* ===== Marquee band ===== */
.t21-marquee-band { padding: 26px 0; border-block: 1px solid var(--line); background: var(--bg-2); }
.t21-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 20px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); font-size: 15px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

/* ===== Trust bar — one minimal row right under the hero ===== */
.t21-trustbar { border-block: 1px solid var(--line); background: var(--surface); }
.t21-trustbar__row {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 14px 32px; padding-block: 18px;
}
.t21-trustbar__item {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: var(--text);
  letter-spacing: .01em; white-space: nowrap;
}
.t21-trustbar__item svg { color: var(--red-600); flex-shrink: 0; }
@media (max-width: 760px) {
  .t21-trustbar__row { justify-content: center; gap: 12px 26px; }
  .t21-trustbar__item { font-size: 14px; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .t21-nav, .t21-header__cta { display: none; }
  .t21-burger { display: flex; }
}
@media (max-width: 960px) {
  .t21-header__inner { height: 66px; }
}
@media (max-width: 640px) {
  .t21-hero { padding: 120px 0 84px; }
  .t21-hero__ctas .t2-btn { width: 100%; justify-content: center; }
  .t21-search { padding: 22px 20px; }
  .t21-search__field input { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .t21-scroll-cue { animation: none; }
  .t21-burger span, .t21-overlay { transition: none; }
  @supports (animation-timeline: scroll()) {
    .t21-header { animation: none; background: rgba(255, 255, 255, .94); border-bottom-color: var(--line); }
  }
}

/* ===== Hero globe — ported from Adonis Marketplace ===== */
.t21-globe { position: relative; width: min(460px, 40vw); aspect-ratio: 1 / 1; margin: 0 auto; }
.t21-globe__glow {
  position: absolute; inset: -9%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.16) 0%, transparent 60%);
}
.t21-globe__earth {
  position: absolute; inset: 0; border-radius: 50%;
  /* Re-derived from the night-lights source: ocean clipped to paper white,
     city lights mapped onto brand red. The original gold texture was a
     near-black disc that punched a hole in a white page. */
  background-image: url(../assets/earth-red.jpg);
  background-color: #FFFFFF;
  background-size: 200% 100%;
  background-repeat: repeat-x;
  animation: t21-earthspin 60s linear infinite;
  /* The baked texture reads washed-out on a white page: saturate/contrast
     deepen the continents and network dots without regenerating the JPG. */
  filter: saturate(1.22) contrast(1.12);
  /* A pale sphere needs shading to stay spherical: the inset darkens the
     lower-right limb, the ring keeps its edge off the white page. */
  box-shadow:
    inset -26px -20px 60px 4px rgba(11, 18, 32, .20),
    inset 18px 14px 50px rgba(255, 255, 255, .55),
    0 0 0 1px rgba(11, 18, 32, .07),
    0 18px 48px rgba(11, 18, 32, .12),
    0 0 70px 16px rgba(229, 9, 20, .10);
}
@keyframes t21-earthspin { from { background-position-x: 0%; } to { background-position-x: 200%; } }

/* the branded e-SIM card floating off the globe's lower-right limb.
   z-index 3: above the arcs canvas (2), so beacons pass behind it. */
.t21-globe__sim {
  position: absolute; right: -3%; bottom: 3%;
  width: 37%; height: auto; z-index: 3;
  filter: drop-shadow(0 14px 24px rgba(11, 18, 32, .20));
  animation: t21-sim-float 5.2s ease-in-out infinite;
}
@keyframes t21-sim-float { 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  .t21-globe__earth, .t21-globe__sim { animation: none; }
}

@media (min-width: 1080px) {
  .t21-hero__content { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); align-items: center; gap: 56px; }
}
@media (max-width: 1079px) {
  .t21-hero__content { display: flex; flex-direction: column; }
  .t21-globe { order: -1; width: min(220px, 55vw); margin: 0 auto 30px; }
}

/* ===== Topbar (language switcher row) + header overflow fixes ===== */
/* Ink, not red: the active language pill is already red-600, and a red bar
   would force it to invert to white — a weaker "you are here" signal. It would
   also put the loudest colour on the page directly above the Get an e-SIM
   button. Ink anchors the top and pairs with the dark footer, so the white page
   is bracketed at both ends. */
.t21-topbar { background: var(--ink-900); border-bottom: none; }
.t21-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 36px; }
/* currency pills share the lang-pill look; keep the group from shrinking */
.cur-switcher { display: flex; gap: 6px; align-items: center; flex: none; }
.t21-header__inner { height: 70px; flex-wrap: nowrap; }
.t21-nav a, .t21-header__login { white-space: nowrap; }
.t2-btn { white-space: nowrap; }
/* brand lockup must never wrap or shrink — it collides with the nav if it does */
.t21-brand { flex: none; }
.t21-brand__line, .t21-brand__by { white-space: nowrap; }
/* topbar pills: cap at the container and swipe-scroll when they don't fit
   (tokens-v2 already hides the scrollbar and sets overflow-x below 1250px) */
@media (max-width: 1250px) { .lang-switcher { max-width: 100%; min-width: 0; } }
@media (max-width: 640px) { .lang-switcher { max-width: 100%; } }
@media (max-width: 1250px) and (min-width: 1101px) {
  .t21-nav { gap: 16px; }
  .t21-nav a { font-size: 13.5px; }
  .t21-header__cta { gap: 12px; }
}

/* ===== Globe placement: sit high beside the headline, not below ===== */
@media (min-width: 1080px) {
  .t21-globe { align-self: start; margin-top: 20px; width: min(500px, 38vw); }
}

/* ===== Hero: search on its own full-width row, everything inside one screen =====
   The search card was nested in the text column, which made the left side tall,
   pushed the globe down and ran the hero past the fold. It is now a third grid
   child spanning both columns, and the globe is sized off viewport height rather
   than width so it can never be the thing that overflows. */
@media (min-width: 1080px) {
  .t21-hero { padding: 84px 0 88px; justify-content: center; }
  .t21-hero__content {
    grid-template-rows: auto auto;
    align-items: center;
    gap: 24px 56px;
  }
  .t21-hero__main { grid-column: 1; grid-row: 1; }
  .t21-globe {
    grid-column: 2; grid-row: 1;
    align-self: center; margin-top: 0;
    width: min(400px, 30vw, 42vh);
  }
  .t21-hero__sub { margin-bottom: 26px; }
  .t21-search__label { margin-bottom: 12px; }
  .t21-chips { margin-top: 12px; }
}

/* Short desktop windows: give the row back some height by trimming the globe. */
@media (min-width: 1080px) and (max-height: 820px) {
  .t21-hero { padding: 76px 0 72px; }
  .t21-h1 { font-size: clamp(34px, 4.2vw, 52px); }
  .t21-globe { width: min(320px, 26vw, 38vh); }
  .t21-search { padding: 20px 24px; }
}

@media (max-width: 1079px) {
  .t21-search { order: 3; }
}

/* ===== Search: one-line bar =====
   The stacked card (label / field / wrapping chips) cost four rows of height,
   which is what forced the globe down to a token size. Collapsed to a single
   bar plus one scrolling chip row: the label survives as the input's own
   placeholder and a visually-hidden <label>, so both the accessible name and
   the translation key are kept. */
.t21-search { max-width: none; padding: 0; background: none; border: 0; backdrop-filter: none; }
.t21-search:hover { transform: none; box-shadow: none; }

.t21-search__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 22px; border-radius: 999px;
  color: var(--text-3);
  /* One step darker than --line: at #E8EAEF the bar's edge vanished into the
     white page, and this is the page's primary conversion element. */
  background: var(--surface); border: 1px solid #DDE2EA;
  box-shadow: var(--shadow-md);
}
.t21-search__bar:focus-within {
  border-color: var(--red-600);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, .12), var(--shadow-md);
}
.t21-search__bar:hover { transform: none; }
.t21-search__icon { flex-shrink: 0; }
.t21-search__bar:focus-within .t21-search__icon { color: var(--gold); }
.t21-search__bar input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: var(--text); font-family: var(--font); font-size: 18px; font-weight: 600; padding: 10px 0;
}
.t21-search__bar input::placeholder { color: var(--text-3); font-weight: 500; }
.t21-search__bar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.t2-btn.t21-search__go { flex-shrink: 0; padding: 13px 26px; font-size: 15px; }

/* Chips stay on one line and scroll instead of wrapping into extra rows. */
.t21-chips {
  margin-top: 14px; flex-wrap: nowrap; overflow-x: auto;
  padding-bottom: 4px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.t21-chips::-webkit-scrollbar { display: none; }
.t21-chips > li { flex: 0 0 auto; }
html[dir="rtl"] .t21-chips {
  -webkit-mask-image: linear-gradient(-90deg, #000 88%, transparent);
  mask-image: linear-gradient(-90deg, #000 88%, transparent);
}

/* The bar is short now, so the globe goes back to full size. */
@media (min-width: 1080px) {
  .t21-globe { width: min(480px, 36vw, 58vh); }
  .t21-search { padding: 0; }
}
@media (min-width: 1080px) and (max-height: 820px) {
  .t21-globe { width: min(420px, 32vw, 52vh); }
  .t21-search__bar { padding: 8px 8px 8px 20px; }
}
@media (max-width: 640px) {
  .t21-search__bar { flex-wrap: wrap; border-radius: var(--radius-lg); padding: 16px 18px; }
  .t21-search__bar input { flex: 1 1 100%; order: -1; }
  .t2-btn.t21-search__go { width: 100%; justify-content: center; }
  .t21-search__icon { display: none; }
}

/* ===== Arc canvas sits ON the globe =====
   It used to live in .t21-hero__bg, which is a lower stacking layer than
   .t21-hero__content, so the opaque earth image covered every arc except the
   sliver that escaped past the limb. Moving it inside .t21-globe puts it above
   the texture; the negative inset gives the lifted arcs room to arch clear of
   the sphere without being clipped. */
.t21-globe { overflow: visible; }
.t21-arcs {
  position: absolute; inset: -34%;
  width: 168%; height: 168%;
  z-index: 2; pointer-events: none;
}

/* ===== Search autocomplete dropdown =====
   Replaces the static chip row: two permanent flag rows (chips + marquee)
   read as duplication, so flags now appear only in response to typing. */
.t21-search { position: relative; }
.t21-search__drop {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 20;
  padding: 10px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  max-height: 290px; overflow-y: auto;
}
.t21-search__drop:hover { transform: none; }
.t21-search__drop ul { list-style: none; margin: 0; padding: 0; }
.t21-search__hit {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  color: var(--text-2); font-size: 15px; font-weight: 600;
}
.t21-search__hit:hover, .t21-search__hit:focus-visible {
  background: var(--bg-3); color: var(--text); outline: none;
}
.t21-search__hit .fl { font-size: 15px; }
.t21-search__drop .t21-chips__empty { margin: 8px 6px; }

/* ===== Search in the CTA slot =====
   The bar replaced the Find Your e-SIM / How It Works button pair, so it now
   lives inside the text column and matches a button row's visual weight:
   compact height, capped width, sized to sit under the subtitle. */
.t21-search { max-width: 560px; margin-top: 6px; }
.t21-search__bar { padding: 6px 6px 6px 18px; gap: 10px; }
.t21-search__bar input { font-size: 16px; padding: 8px 0; }
.t21-search__icon { width: 18px; height: 18px; }
.t2-btn.t21-search__go { padding: 11px 22px; font-size: 14px; }
@media (min-width: 1080px) and (max-height: 820px) {
  .t21-search { margin-top: 0; }
}
@media (max-width: 640px) {
  .t21-search { max-width: none; }
}

/* By-line stretches to the main line's width — the two lines read as one
   justified block instead of a short caption hanging under a long word. */
.t21-brand__by { text-align: justify; text-align-last: justify; letter-spacing: .12em; }

/* ===== Wide-screen hero scaling ===== */
@media (min-width: 1600px) {
  .t21-h1 { font-size: clamp(38px, 4.6vw, 84px); }
  .t21-globe { width: min(600px, 34vw, 62vh); }
  .t21-search { max-width: 640px; }
}
