/* =====================================================================
   Transport Connecting — hero.css
   Smart Match vector hero (SVG + glassmorphism overlays). Loaded on the homepage only.
   ===================================================================== */

.hero--smh {
  background: radial-gradient(1100px 700px at 78% 20%, #0b3f80 0%, var(--c-deep) 50%, var(--c-deep-900) 100%);
  min-height: calc(100vh - var(--header-h));
}
.smh-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.smh-bg__orb { position: absolute; border-radius: 50%; opacity: .5; will-change: transform; }
.smh-bg__orb--blue { width: 640px; height: 640px; left: -220px; top: -180px; background: radial-gradient(circle, rgba(31,90,166,.75), transparent 70%); animation: smhOrb 14s ease-in-out infinite alternate; }
.smh-bg__orb--red { width: 460px; height: 460px; right: -140px; bottom: -160px; background: radial-gradient(circle, rgba(228,23,27,.5), transparent 70%); animation: smhOrb 18s ease-in-out infinite alternate-reverse; }
.smh-bg__grid { position: absolute; inset: 0; opacity: .32;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 72%); }
@keyframes smhOrb { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(60px, 40px, 0) scale(1.12); } }

.hero__inner--smh { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); padding-top: clamp(28px, 6vh, 80px); padding-bottom: clamp(48px, 8vh, 96px); }
.smh-copy .hero__title { font-size: clamp(2.35rem, 4.6vw, 4.4rem); }
.smh-copy .hero__subtitle { max-width: 540px; }
.smh-proof { display: flex; align-items: center; gap: 14px; margin: -14px 0 30px; font-size: .86rem; color: rgba(255,255,255,.7); }
.smh-proof p { margin: 0; }
.smh-proof a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.smh-proof__avatars { display: flex; flex: none; }
.smh-proof__avatars span { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--c-deep); background: linear-gradient(135deg, var(--c-primary-400), var(--c-primary)); color: #fff; font-family: var(--ff-display); font-weight: 800; font-size: .62rem; display: grid; place-items: center; margin-left: -8px; }
.smh-proof__avatars span:first-child { margin-left: 0; }
.smh-proof__avatars span:nth-child(2) { background: linear-gradient(135deg, #ffb3b5, var(--c-accent)); }
.smh-proof__avatars span:nth-child(4) { background: linear-gradient(135deg, #10a37f, #0b6b54); }

/* ---------- Stage / scene ---------- */
.smh-visual { display: block !important; min-height: 0; position: relative; }
.smh-stage {
  position: relative; width: 100%; aspect-ratio: 720 / 560; max-width: 760px; margin: 0 auto;
  container-type: inline-size; isolation: isolate;
}
.smh-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.smh-city__label { font-family: var(--ff-body); font-size: 11px; font-weight: 500; fill: rgba(255,255,255,.62); letter-spacing: .02em; }
.smh-city--major .smh-city__label { font-family: var(--ff-display); font-size: 13px; font-weight: 700; fill: #fff; }
.smh-carrier__label { font-family: var(--ff-display); font-size: 10px; font-weight: 700; fill: #ffd7d8; letter-spacing: .06em; }
.smh-serbia { transition: fill .6s; }
.smh-stage[data-stage="4"] .smh-serbia { fill: rgba(255,255,255,.06); }

/* ---------- Glassmorphism badge (stage 1) ---------- */
.smh-badge {
  position: absolute; left: 47%; top: 21%; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 11px; border-radius: 14px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 18px 40px -18px rgba(1,15,42,.8), inset 0 1px 0 rgba(255,255,255,.25);
  color: #fff; white-space: nowrap; font-size: clamp(9px, 1.9cqw, 13px); pointer-events: none;
}
.smh-badge b { display: block; font-family: var(--ff-display); font-weight: 700; font-size: 1em; }
.smh-badge span { display: block; font-size: .86em; color: rgba(255,255,255,.75); margin-top: 2px; }
.smh-badge__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 0 rgba(228,23,27,.6); animation: ping 1.6s infinite; flex: none; }

/* ---------- Glassmorphism offers card (stage 3) ---------- */
.smh-card { position: absolute; right: 3%; top: 8%; width: 47%; max-width: 360px; z-index: 4; perspective: 900px; pointer-events: none; font-size: clamp(9px, 1.85cqw, 13.5px); }
.smh-card__inner {
  position: relative; border-radius: 18px; padding: 1.1em 1.1em 1em;
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 30px 60px -20px rgba(1,15,42,.85), inset 0 1px 0 rgba(255,255,255,.35);
  color: #fff; transform-style: preserve-3d; will-change: transform;
}
.smh-card__inner::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px 160px at var(--gx, 70%) var(--gy, 20%), rgba(255,255,255,.18), transparent 70%); }
.smh-card__head { margin-bottom: .8em; }
.smh-card__status { display: inline-flex; align-items: center; gap: 6px; font-size: .78em; font-weight: 600; color: #7ee2c3; letter-spacing: .06em; text-transform: uppercase; }
.smh-card__status i { width: 7px; height: 7px; border-radius: 50%; background: #10a37f; box-shadow: 0 0 0 3px rgba(16,163,127,.25); }
.smh-card__head h3 { font-family: var(--ff-display); font-size: 1.05em; font-weight: 800; color: #fff; letter-spacing: .02em; text-transform: uppercase; margin-top: 4px; line-height: 1.2; }
.smh-offers { display: flex; flex-direction: column; gap: .5em; }
.smh-offer {
  position: relative; display: grid; grid-template-columns: 2.4em 1fr auto; gap: .7em; align-items: center;
  padding: .6em .75em; border-radius: 12px; background: rgba(1,27,69,.55); border: 1px solid rgba(255,255,255,.12);
  transition: box-shadow .5s, border-color .5s, background .5s;
}
.smh-offer__avatar { width: 2.4em; height: 2.4em; border-radius: 9px; display: grid; place-items: center; font-family: var(--ff-display); font-weight: 800; background: linear-gradient(135deg, var(--c-primary-400), var(--c-primary)); font-size: 1em; }
.smh-offer__body { display: flex; flex-direction: column; min-width: 0; }
.smh-offer__body b { font-family: var(--ff-display); font-size: 1em; line-height: 1.2; white-space: nowrap; }
.smh-offer__body small { font-size: .78em; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smh-offer__stars { color: #f5a524; }
.smh-offer__price { font-family: var(--ff-display); font-weight: 800; font-size: 1.15em; white-space: nowrap; }
.smh-offer--best { border-color: rgba(228,23,27,.7); background: rgba(228,23,27,.14); }
.smh-offer--best.is-glowing { animation: smhOfferGlow 1.8s ease-in-out infinite; }
.smh-offer--best.is-confirmed { animation: none; border-color: #10a37f; background: rgba(16,163,127,.16); box-shadow: 0 0 0 4px rgba(16,163,127,.18), 0 12px 30px -12px rgba(16,163,127,.6); }
.smh-offer--best .smh-offer__avatar { background: linear-gradient(135deg, #ffb3b5, var(--c-accent)); }
.smh-offer--best.is-confirmed .smh-offer__avatar { background: linear-gradient(135deg, #7ee2c3, #10a37f); }
@keyframes smhOfferGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(228,23,27,.35), 0 0 18px 0 rgba(228,23,27,.35); }
  50% { box-shadow: 0 0 0 5px rgba(228,23,27,.12), 0 0 34px 4px rgba(228,23,27,.6); }
}
.smh-offer__tag { position: absolute; top: -.7em; right: .7em; padding: .28em .6em; border-radius: 999px; background: var(--c-accent); color: #fff; font-family: var(--ff-display); font-size: .66em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 8px 20px -8px rgba(228,23,27,.8); }
.smh-offer__tag--ok { background: #10a37f; box-shadow: 0 8px 20px -8px rgba(16,163,127,.8); }
.smh-lottie { position: absolute; right: -1.2em; top: 50%; width: 3.2em; height: 3.2em; transform: translateY(-50%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.smh-lottie.is-visible { opacity: 1; }
.smh-lottie svg { width: 100% !important; height: 100% !important; }
.smh-card__foot { display: flex; justify-content: space-between; gap: 8px; margin-top: .8em; font-size: .74em; color: rgba(255,255,255,.65); flex-wrap: wrap; }
.smh-card__timer { color: #fff; font-weight: 600; }

/* ---------- Toast (stage 4) ---------- */
.smh-toast {
  position: absolute; left: 4%; bottom: 6%; z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: .7em .95em; border-radius: 14px; background: rgba(1,27,69,.72); border: 1px solid rgba(126,226,195,.45);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; font-size: clamp(9px, 1.8cqw, 13px);
  box-shadow: 0 18px 40px -18px rgba(1,15,42,.9); pointer-events: none; white-space: nowrap;
}
.smh-toast__icon { width: 2em; height: 2em; border-radius: 50%; background: #10a37f; display: grid; place-items: center; font-weight: 800; flex: none; }
.smh-toast b { display: block; font-family: var(--ff-display); font-size: 1em; }
.smh-toast span { display: block; font-size: .82em; color: rgba(255,255,255,.7); }

/* ---------- Stage indicator ---------- */
.smh-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 760px; margin: 18px auto 0; }
.smh-stages li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: .74rem; font-weight: 600; color: rgba(255,255,255,.5); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); cursor: pointer; transition: all .35s var(--ease-out); user-select: none; }
.smh-stages li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--ff-display); font-size: .7rem; font-weight: 800; background: rgba(255,255,255,.08); color: #fff; flex: none; transition: all .35s; }
.smh-stages li:hover { color: #fff; border-color: rgba(255,255,255,.2); }
.smh-stages li.is-active { color: #fff; background: rgba(228,23,27,.14); border-color: rgba(228,23,27,.45); }
.smh-stages li.is-active i { background: var(--c-accent); }
.smh-stages li.is-done i { background: #10a37f; }
.smh-stages li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__inner--smh { grid-template-columns: 1fr; padding-top: clamp(20px, 4vh, 48px); }
  .smh-copy { max-width: 640px; }
  .smh-visual { margin-top: 8px; }
}
@media (max-width: 960px) {
  .smh-stage { max-width: 640px; }
  .smh-card { width: 52%; max-width: 330px; }
}
@media (max-width: 640px) {
  .hero--smh { min-height: 0; }
  .smh-copy .hero__title { font-size: clamp(2rem, 9.5vw, 2.6rem); }
  .smh-proof { margin-top: -6px; }
  .smh-card { width: 60%; right: 2%; top: 4%; font-size: clamp(10px, 2.6cqw, 13px); }
  .smh-badge { left: 44%; top: 20%; font-size: clamp(10px, 2.4cqw, 13px); }
  .smh-toast { font-size: clamp(10px, 2.4cqw, 13px); }
  .smh-toast { left: 3%; bottom: 4%; }
  .smh-stages { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .smh-stages li { padding: 6px 6px; font-size: .62rem; gap: 5px; }
  .smh-stages li i { width: 18px; height: 18px; font-size: .6rem; }
}
@media (max-width: 380px) {
  .smh-stages li span { display: none; }
  .smh-stages li { justify-content: center; }
  .smh-card { width: 62%; }
}
@supports not (font-size: 1cqw) {
  .smh-badge, .smh-toast { font-size: 10px; }
  .smh-card { font-size: 10.5px; }
  @media (min-width: 640px) { .smh-badge, .smh-toast { font-size: 12px; } .smh-card { font-size: 12.5px; } }
}

/* ---------- Reduced motion: static final frame, no pulses ---------- */
@media (prefers-reduced-motion: reduce) {
  .smh-bg__orb, .smh-badge__dot, .smh-offer--best.is-glowing { animation: none !important; }
}
.smh-stage[data-reduced-motion="true"] .smh-pin__pulse,
.smh-stage[data-reduced-motion="true"] .smh-wave,
.smh-stage[data-reduced-motion="true"] .smh-sweep,
.smh-stage[data-reduced-motion="true"] .smh-dest__ring { display: none; }
