@import url("../base.css");

/* ══════════════════════════════════════
       HERO
    ══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding-top: var(--navbar-height);
}

/* Background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100vh;

  background-image: url("../../assets/home/heroImage.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark overlay layers (from Figma: #000 50%, #202020 0%, #000 67%, gradient) */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Extra bottom vignette */
.hero__overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  z-index: 2;
  background: linear-gradient(to top, var(--color-overlay-vignette) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Content */
.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* Heading */
.hero__title {
  font-family: var(--font-body);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.7s ease both;
}

.hero__title span {
  color: var(--color-primary);
}

/* Sub */
.hero__sub {
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

/* ── SEARCH CARD ──────────────────────── */
.hero__search-card {
  width: 100%;
  max-width: 760px;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: visible;
  position: relative;
  z-index: 5;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero__search-card:has(.hero__dropdown.is-open) {
  z-index: 50;
}

/* Category tabs */
.hero__tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 0.75rem 1rem;
  gap: 0.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  height: 62px;
  justify-content: space-between;
  border-radius: 16px 16px 0 0;
}

.hero__tabs::-webkit-scrollbar {
  display: none;
}

.hero__tab {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.5rem 0.875rem 0.625rem;
  border-radius: 9999px;
  border: 2px solid transparent;
  white-space: nowrap;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast);
  position: relative;
}

.hero__tab:hover {
  color: var(--color-text-secondary);
}

.hero__tab.is-active {
  color: var(--color-text-primary);
  background: rgba(212, 146, 26, 0.06);
  border-color: var(--color-primary);
}

.hero__tab svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Search fields row */
.hero__fields {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  gap: 0;
  overflow: visible;
  position: relative;
}

.hero__field-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.hero__field-wrap.hero__dropdown.is-open {
  z-index: 60;
}

.hero__field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 1rem;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  min-width: 0;
  border: none;
  background: transparent;
  text-align: start;
  color: inherit;
  font: inherit;
}

.hero__field:hover {
  background: var(--color-hover-subtle);
}

.hero__field-icon {
  color: var(--color-primary);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--color-primary-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__field-icon svg {
  width: 16px;
  height: 16px;
}

.hero__field-text {
  min-width: 0;
}

.hero__field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  line-height: 1.2;
}

.hero__field-hint {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  line-height: 1.2;
}

/* Divider between fields */
.hero__divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* Search button */
.hero__search-btn {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 0.75rem;
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-spring);
}

.hero__search-btn:hover {
  background: var(--color-primary-light);
  box-shadow: var(--shadow-glow-strong);
}

.hero__search-btn:active {
  transform: scale(0.94);
}

.hero__search-btn svg {
  width: 18px;
  height: 18px;
}

.hero__dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  bottom: auto;
  left: 0;
  right: 0;
  min-width: 220px;
  background: var(--color-surface-dropdown);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  padding: 0.375rem;
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
}

.hero__dropdown.is-open .hero__dropdown-panel {
  display: block;
}

.hero__dropdown-panel--where {
  max-height: 320px;
}

.hero__dropdown-option {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--color-text-primary);
  font-size: 0.8125rem;
  text-align: start;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.hero__dropdown-option:hover,
.hero__dropdown-option.is-selected {
  background: rgba(212, 146, 26, 0.12);
  color: var(--color-primary);
}

.hero__dropdown-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--color-border);
}

.hero__dropdown-search svg {
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.hero__dropdown-search input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--color-text-primary);
  font-size: 0.8125rem;
  outline: none;
}

.hero__dropdown-search input::placeholder {
  color: var(--color-text-muted);
}

.hero__dropdown-location-list {
  max-height: 180px;
  overflow-y: auto;
}

.hero__dropdown-custom-date {
  padding: 0.5rem 0.25rem 0;
}

.hero__dropdown-custom-date.is-hidden {
  display: none;
}

.hero__dropdown-custom-date-calendar .flatpickr-calendar.inline {
  box-shadow: none;
  border: none;
  width: 100%;
}

.hero__dropdown-custom-date-picker-input {
  display: none;
}

/* ── BOTTOM TRUST BADGES ─────────────── */
.hero__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3rem);
  margin-top: 2rem;
  animation: fadeUp 0.7s 0.35s ease both;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.hero__badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ── ANIMATIONS ──────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 640px) {
  .hero__fields {
    flex-direction: column;
    gap: 0;
  }

  .hero__field-wrap {
    width: 100%;
  }

  .hero__field {
    width: 100%;
    padding: 0.625rem 0.75rem;
  }

  .hero__divider {
    width: 100%;
    height: 1px;
    margin-block: 0;
  }

  .hero__search-btn {
    width: 100%;
    height: 44px;
    border-radius: var(--radius-md);
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .hero__badges {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero__tabs {
    gap: 0;
  }

  .hero__tab {
    padding: 0.5rem 0.625rem 0.625rem;
    font-size: 0.75rem;
  }
}

/* ── SECTIONS CONTAINER ── */
.page-sections {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  padding-block: 4rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Dot indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 1.25rem;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background var(--transition-fast);
}
.carousel-dot.is-active {
  background: var(--color-primary);
}
/* ── PLACEHOLDER IMAGES (colored gradient boxes) ── */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
/* ── TOP SINGERS ── */
.singers-section {
  padding-inline: 0 !important;
}
.singers-header {
  text-align: center;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
}
.singers-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.singers-sub {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.singers-link {
  color: var(--color-text-primary);
  font-weight: 600;
  transition: color var(--transition-fast);
}
.singers-link:hover {
  color: var(--color-primary);
}

.singers-stage {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-block: 0.25rem;
}
/* fade overlay — pointer-events:none so clicks pass through to cards */
.singers-fade {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    to right,
    var(--color-bg) 0%,
    color-mix(in srgb, var(--color-bg) 80%, transparent) 8%,
    transparent 22%,
    transparent 78%,
    color-mix(in srgb, var(--color-bg) 80%, transparent) 92%,
    var(--color-bg) 100%
  );
}
.singers-track {
  width: 100%;
  overflow: hidden;
}
.singers-belt {
  display: flex;
  gap: 0.75rem;
  width: max-content;
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.singers-belt--fast {
  animation: scrollLeft 28s linear infinite;
}
.singers-belt--slow {
  animation: scrollLeft 40s linear infinite;
}

.singer-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 0.625rem 1.125rem 0.625rem 0.625rem;
  min-width: 220px;
  max-width: 260px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast);
}
.singer-card:hover {
  border-color: rgba(212, 146, 26, 0.35);
  background: var(--color-bg-elevated);
}
.singer-card__img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-bg-elevated);
}
.singer-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.singer-card__meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Scroll fade-in */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════
        Loved by Thousands WRAPPER
    ══════════════════════════════════════ */
.loved {
  padding-block: 5rem;
}

/* ── HEADER ── */
.loved__header {
  text-align: center;
  margin-bottom: 3rem;
}
.loved__title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.loved__sub {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════
       STAGE — clips scroll + holds fade
    ══════════════════════════════════════ */
.loved__stage {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Edge fade — pointer-events: none is CRITICAL */
.loved__fade {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    to right,
    var(--color-bg) 0%,
    color-mix(in srgb, var(--color-bg) 85%, transparent) 7%,
    transparent 20%,
    transparent 80%,
    color-mix(in srgb, var(--color-bg) 85%, transparent) 93%,
    var(--color-bg) 100%
  );
}

/* ── TRACK (one row) ── */
.loved__track {
  overflow: hidden;
  width: 100%;
}

/* ── BELT (the moving strip — 2 copies wide) ── */
.loved__belt {
  display: flex;
  gap: 1rem;
  width: max-content;
}

/* Row 1 → left (fast) */
@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* Row 2 → right (slow) */
@keyframes scrollRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.loved__belt--ltr {
  animation: scrollLeft 32s linear infinite;
}
.loved__belt--rtl {
  animation: scrollRight 46s linear infinite;
}

/* ══════════════════════════════════════
       TESTIMONIAL CARD
    ══════════════════════════════════════ */
.tcard {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.375rem 1.125rem;
  width: 320px;
  flex-shrink: 0;
  cursor: default;
  user-select: none;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast);
}
.tcard:hover {
  border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
  background: var(--color-bg-elevated);
}

/* Quote text */
.tcard__text {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.125rem;
}
/* Bold highlights inside quote */
.tcard__text strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* Author row */
.tcard__author {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.tcard__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-bg-elevated);
}
.tcard__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 3px;
}
.tcard__stars {
  display: flex;
  gap: 2px;
}
.tcard__star {
  width: 13px;
  height: 13px;
  fill: var(--color-primary);
}
.tcard__star--half {
  fill: url(#halfGrad);
}
.tcard__star--empty {
  fill: var(--color-star-empty);
}

/* ── SECTION WRAPPER ────────────────── */
.features {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ── GRID ────────────────────────────── */
.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
  height: 500px;
}

/* Left column — two stacked cards filling full height */
.features__col-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Right column — one tall card */
.features__col-right {
  display: flex;
}

/* ── BASE CARD ───────────────────────── */
.feat-card {
  position: relative;
  background: var(--color-surface-strong);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
  flex: 1;
  width: 100%;
}
.feat-card:hover {
  border-color: rgba(212, 146, 26, 0.25);
  box-shadow: var(--shadow-glow);
}
.feat-card--refundable,
.feat-card--deals {
  background-image: linear-gradient(to right, rgba(212, 146, 26, 0.09), var(--color-surface-strong));
}
/* ── WATERMARK ───────────────────────── */
/* Repeating tiled SVG watermark via background-image */
.feat-card__watermark {
  display: none;
}

/* ── ICON ────────────────────────────── */
.feat-card__icon {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.feat-card__icon::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to top, black, var(--color-primary));
  opacity: 0.1;
  border-radius: 50%;
}
.feat-card__icon svg,
.feat-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ── TEXT ────────────────────────────── */
.feat-card__text {
  position: relative;
  z-index: 10;
  flex: 1;
  min-width: 0;
}
.feat-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.625rem;
  line-height: 1.2;
}
.feat-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 320px;
}

/* ── TALL CARD (Book Anytime) ─────────── */
.feat-card--tall {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
  padding: 2.5rem 2.5rem 0;
  gap: 0;
}

.feat-card--tall .feat-card__text {
  margin-bottom: 2rem;
}
.feat-card--tall .feat-card__title {
  font-size: 1.75rem;
}
.feat-card--tall .feat-card__desc {
  max-width: 100%;
  font-size: 0.9375rem;
}

/* Large icon at the bottom of tall card */
.feat-card--tall .feat-card__icon {
  width: 200px;
  height: 200px;
  /* push to bottom */
  margin: 50px auto;

  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 1;
}
.feat-card--tall .feat-card__icon svg,
.feat-card--tall .feat-card__icon img {
  width: clamp(200px, 70%, 320px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

/* gradient bottom on tall card — gold glow */
.feat-card--tall::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(180, 110, 5, 0.18), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .features__col-right {
    display: flex;
  }
  .feat-card--tall {
    flex-direction: row;
    align-items: center;
    padding: 2rem;
  }
  .feat-card--tall .feat-card__icon {
    width: 120px;
    height: 120px;
    flex: 0 0 120px;
    margin: 0;
    align-items: center;
    justify-content: center;
  }
  .feat-card--tall .feat-card__icon svg,
  .feat-card--tall .feat-card__icon img {
    width: 100%;
    height: 100%;
  }
  .feat-card--tall::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .feat-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  .feat-card--tall {
    flex-direction: column;
  }
  .feat-card--tall .feat-card__icon {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    margin: 0;
    align-items: center;
    justify-content: center;
  }
  .feat-card--tall .feat-card__icon svg,
  .feat-card--tall .feat-card__icon img {
    width: 100%;
    height: 100%;
  }
}
