/* Home purpose-first redesign, aligned with HoySeBaila's existing identity. */
.hsb-home-shell{
  --hsb-home-cyan: #65caf1;
  --hsb-home-cyan-strong: #36bfe9;
  --hsb-home-cyan-soft: rgba(101,202,241,0.15);
  --hsb-home-gold: #d4af37;
  --hsb-home-gold-strong: #f5d574;
  --hsb-home-gold-soft: rgba(212,175,55,0.12);
  --hsb-home-ink: rgba(255,255,255,0.94);
  --hsb-home-muted: rgba(255,255,255,0.68);
  --hsb-home-line: rgba(255,255,255,0.12);
  --hsb-home-surface: #071014;
  --hsb-home-radius-sm: 8px;
  --hsb-home-radius-md: 14px;
  --hsb-home-radius-lg: 18px;
  --hsb-home-shadow-soft: 0 18px 44px rgba(0,0,0,0.24);
  --hsb-home-shadow-deep: 0 30px 80px rgba(0,0,0,0.48);
  width: 100%;
}

.hsb-home-shell--with-register-bar{
  padding-bottom: 132px !important;
}

.hsb-home-register-bar{
  z-index: 1040;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.hsb-home-register-bar .bg-ts-2{
  box-shadow: 0 -16px 42px rgba(0,0,0,0.42);
}

.hsb-home-hero{
  min-height: 560px;
  border-radius: var(--hsb-home-radius-lg);
  background: var(--hsb-home-surface);
}

.hsb-home-hero::before{
  background:
    radial-gradient(circle at 82% 38%, rgba(101,202,241,0.18), transparent 34%),
    radial-gradient(circle at 72% 72%, rgba(212,175,55,0.12), transparent 36%),
    linear-gradient(90deg, rgba(3,9,12,0.98) 0%, rgba(3,9,12,0.92) 50%, rgba(3,9,12,0.70) 100%),
    linear-gradient(135deg, rgba(101,202,241,0.11), rgba(212,175,55,0.075) 46%, rgba(0,0,0,0.10));
  transform: scale(1.01);
  animation: hsbHomeHeroBreath 14s ease-in-out infinite alternate;
}

.hsb-home-hero::after{
  content: "";
  position: absolute;
  inset: auto 24px 24px 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,213,116,0.66), rgba(101,202,241,0.28), transparent);
  opacity: .72;
}

.hsb-home-hero .hsb-hero-content{
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  align-items: center;
  gap: 40px;
  padding: 52px;
}

.hsb-hero-copy{
  max-width: 760px;
}

.hsb-hero-kicker{
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(212,175,55,0.32);
  border-radius: 999px;
  background: var(--hsb-home-gold-soft);
  color: var(--hsb-home-gold-strong);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.hsb-home-hero .hsb-title{
  max-width: 680px;
  margin-bottom: 16px;
  color: var(--hsb-home-ink);
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hsb-home-hero .hsb-subtitle{
  max-width: 690px;
  margin-bottom: 12px;
  color: var(--hsb-home-gold-strong);
  font-size: 22px;
  font-weight: 820;
  line-height: 1.26;
}

.hsb-hero-text{
  max-width: 650px;
  margin: 0;
  color: var(--hsb-home-muted);
  font-size: 16px;
  line-height: 1.58;
}

.hsb-hero-visual{
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  pointer-events: none;
  user-select: none;
}

.hsb-hero-visual::before{
  content: "";
  position: absolute;
  inset: 28px -8px 30px;
  border: 1px solid rgba(101,202,241,0.18);
  border-radius: 46% 54% 50% 50% / 54% 44% 56% 46%;
  background:
    radial-gradient(circle at 52% 46%, rgba(101,202,241,0.18), transparent 55%),
    linear-gradient(135deg, rgba(101,202,241,0.10), rgba(212,175,55,0.10));
  opacity: .92;
}

.hsb-hero-visual::after{
  content: "";
  position: absolute;
  inset: 66px 16px 60px;
  border: 1px solid rgba(212,175,55,0.26);
  border-radius: 54% 46% 52% 48% / 48% 58% 42% 52%;
  transform: rotate(-9deg);
  opacity: .74;
}

.hsb-hero-photo{
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 42% 58% 50% 50% / 48% 44% 56% 52%;
  box-shadow:
    var(--hsb-home-shadow-deep),
    0 0 46px rgba(101,202,241,0.13);
  transform: rotate(1deg);
  animation: hsbHomeVisualFloat 8s ease-in-out infinite;
}

.hsb-hero-photo img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(1.04) contrast(1.04);
}

.hsb-hero-photo-shade{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 56% 42%, transparent 0 42%, rgba(0,0,0,0.14) 64%, rgba(0,0,0,0.52) 100%),
    linear-gradient(135deg, rgba(101,202,241,0.15), transparent 42%, rgba(212,175,55,0.10));
}

.hsb-hero-motion-line{
  position: absolute;
  z-index: 2;
  display: block;
  border: 1px solid rgba(101,202,241,0.32);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 999px;
  opacity: .72;
}

.hsb-hero-motion-line--one{
  width: 270px;
  height: 150px;
  top: 30px;
  right: -10px;
  transform: rotate(18deg);
}

.hsb-hero-motion-line--two{
  width: 230px;
  height: 120px;
  left: -8px;
  bottom: 48px;
  border-color: rgba(212,175,55,0.30);
  border-right-color: transparent;
  border-top-color: transparent;
  transform: rotate(10deg);
}

.hsb-hero-motion-line--three{
  width: 150px;
  height: 78px;
  right: 36px;
  bottom: 18px;
  border-color: rgba(255,255,255,0.18);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-16deg);
}

.hsb-hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hsb-hero-action{
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 20px;
  border-radius: 10px !important;
  line-height: 1.1;
  white-space: nowrap;
}

.hsb-home-hero .btn-6.hsb-hero-action{
  border-color: rgba(245,213,116,0.52);
  background: linear-gradient(180deg, #f8e59a 0%, #d4af37 58%, #9f7d1f 100%);
  color: #171203;
  box-shadow:
    0 10px 26px rgba(0,0,0,0.45),
    0 0 24px rgba(212,175,55,0.28);
}

.hsb-home-hero .btn-6.hsb-hero-action:hover{
  box-shadow:
    0 16px 34px rgba(0,0,0,0.52),
    0 0 30px rgba(212,175,55,0.36);
}

.btn-hsb-outline.hsb-hero-action{
  background: rgba(4,12,16,0.22);
  border-color: rgba(101,202,241,0.34);
  color: var(--hsb-home-ink);
  box-shadow: none;
}

.hsb-home-section{
  margin-top: 72px;
}

.hsb-home-section-content{
  margin-top: 18px;
}

.hsb-home-section,
.hsb-home-section-content,
.hsb-home-dynamic,
.hsb-home-publications,
.hsb-home-publications__rotator{
  overflow-x: hidden;
}

.hsb-home-hero,
.hsb-home-section,
.hsb-home-section-content{
  max-width: calc(100% - 24px);
}

.hsb-section-heading{
  max-width: 760px;
  margin: 0 0 22px;
  text-align: left;
}

.hsb-section-heading--center{
  max-width: 820px;
  margin: 0 auto 24px;
  text-align: center;
}

.hsb-section-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin-bottom: 9px;
  padding: 5px 11px;
  border: 1px solid rgba(212,175,55,0.26);
  border-radius: 999px;
  background: var(--hsb-home-gold-soft);
  color: var(--hsb-home-gold-strong);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.hsb-section-heading h2{
  margin: 0;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.hsb-section-heading p{
  max-width: 660px;
  margin: 8px 0 0;
  color: rgba(255,255,255,0.66);
  font-size: 15px;
  line-height: 1.42;
}

.hsb-section-heading--center p{
  margin-inline: auto;
}

.hsb-journey-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hsb-journey-step{
  position: relative;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--hsb-home-radius-sm);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.022)),
    rgba(5,11,14,0.74);
  box-shadow: var(--hsb-home-shadow-soft);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.hsb-journey-step::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hsb-home-gold), rgba(101,202,241,0.56));
  opacity: .78;
}

.hsb-journey-step:hover{
  transform: translateY(-3px);
  border-color: rgba(101,202,241,0.32);
  background:
    linear-gradient(180deg, rgba(101,202,241,0.095), rgba(255,255,255,0.024)),
    rgba(5,11,14,0.78);
}

.hsb-journey-number{
  color: rgba(245,213,116,0.76);
  font-size: 12px;
  font-weight: 900;
}

.hsb-journey-step h3{
  margin: 22px 0 8px;
  color: var(--hsb-home-ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.hsb-journey-step p{
  margin: 0;
  color: var(--hsb-home-muted);
  font-size: 14px;
  line-height: 1.45;
}

.hsb-home-section .hsb-tabs{
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.hsb-home-section .hsb-tabs::-webkit-scrollbar{
  display: none;
}

.hsb-home-section .hsb-tab{
  min-height: 40px;
  white-space: nowrap;
}

.hsb-home-dynamic{
  width: 100%;
}

.hsb-home-place-slider{
  margin-inline: -8px;
}

.hsb-home-loading-card{
  min-height: 330px;
  display: grid;
  gap: 12px;
  align-content: end;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--hsb-home-radius-sm);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  overflow: hidden;
}

.hsb-home-loading-card span{
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  background-size: 220% 100%;
  animation: hsbHomeLoading 1.25s ease-in-out infinite;
}

.hsb-home-loading-card span:first-child{
  width: 42%;
}

.hsb-home-loading-card span:nth-child(2){
  width: 74%;
  height: 24px;
}

.hsb-home-loading-card span:nth-child(3){
  width: 58%;
}

#homeSearchBottomSheet.hsb-bottom-sheet--center{
  top: 50%;
  bottom: auto;
  width: min(460px, calc(100vw - 32px));
  max-height: min(80dvh, 560px);
  border-radius: 16px;
  opacity: 0;
  transform: translate3d(-50%, calc(-50% + 24px), 0) scale(.96);
  transition: transform .22s ease, opacity .22s ease;
  touch-action: auto;
}

#homeSearchBottomSheet.hsb-bottom-sheet--center.is-open{
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

#homeSearchBottomSheet.hsb-bottom-sheet--center .hsb-bottom-sheet-handle{
  display: none;
}

#homeSearchBottomSheet.hsb-bottom-sheet--center .hsb-bottom-sheet-head{
  padding: 16px 16px 12px;
}

#homeSearchBottomSheet.hsb-bottom-sheet--center .hsb-bottom-sheet-body{
  padding: 14px 14px 16px;
}

@keyframes hsbHomeLoading{
  0%{ background-position: 120% 0; }
  100%{ background-position: -120% 0; }
}

@keyframes hsbHomeHeroBreath{
  0%{ transform: scale(1.01); }
  100%{ transform: scale(1.035); }
}

@keyframes hsbHomeStepIn{
  0%{ opacity: 0; transform: translateY(8px); }
  100%{ opacity: 1; transform: translateY(0); }
}

@keyframes hsbHomeVisualFloat{
  0%, 100%{ transform: translateY(0) rotate(1.2deg); }
  50%{ transform: translateY(-8px) rotate(.2deg); }
}

@media (max-width: 480px){
  #homeSearchBottomSheet.hsb-bottom-sheet--center{
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 48px);
  }
}

@media (max-width: 767.98px){
  .hsb-home-shell{
    padding-top: 12px !important;
  }

  .hsb-home-shell--with-register-bar{
    padding-bottom: 156px !important;
  }

  .hsb-home-hero{
    min-height: auto;
    border-radius: var(--hsb-home-radius-md);
  }

  .hsb-home-hero .hsb-hero-content{
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 18px 28px;
  }

  .hsb-home-hero .hsb-title{
    font-size: 38px;
  }

  .hsb-home-hero .hsb-subtitle{
    font-size: 19px;
  }

  .hsb-hero-text{
    font-size: 15px;
  }

  .hsb-hero-visual{
    min-height: 204px;
    align-items: flex-start;
  }

  .hsb-hero-visual::before{
    inset: 12px 58px 0;
  }

  .hsb-hero-visual::after{
    inset: 36px 86px 24px;
  }

  .hsb-hero-photo{
    width: min(192px, 56vw);
    transform: none;
  }

  .hsb-hero-motion-line--one{
    width: 156px;
    height: 82px;
    top: 14px;
    right: 52px;
  }

  .hsb-hero-motion-line--two{
    width: 138px;
    height: 74px;
    left: 52px;
    bottom: 24px;
  }

  .hsb-hero-motion-line--three{
    display: none;
  }


  .hsb-hero-actions{
    display: grid;
    grid-template-columns: 1fr;
  }

  .hsb-hero-action{
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    white-space: normal;
    text-align: center;
  }

  .hsb-section-heading{
    margin-bottom: 14px;
  }

  .hsb-section-heading p{
    font-size: 14px;
  }

  .hsb-section-heading h2{
    font-size: 28px;
  }

  .hsb-home-section{
    margin-top: 52px;
  }

  .hsb-journey-grid{
    grid-template-columns: 1fr;
  }

  .hsb-journey-step{
    min-height: 150px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px){
  .hsb-home-hero .hsb-hero-content{
    grid-template-columns: 1fr;
    min-height: 760px;
  }

  .hsb-home-hero .hsb-title{
    font-size: 50px;
  }

  .hsb-hero-visual{
    min-height: 320px;
  }

  .hsb-hero-photo{
    width: min(330px, 70vw);
  }

  .hsb-journey-grid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce){
  .hsb-home-hero::before,
  .hsb-hero-photo,
  .hsb-journey-step{
    animation: none;
    transition: none;
  }
}
