﻿/* Beranda desain Imersif. Versi lama ada di home-lama.css. */
:root {
  --hv-navy: #001973;
  --hv-navy-2: #0d47a1;
  --hv-ink: #0e1d34;
  --hv-accent: #1d5fd1;
  --hv-yellow: #ffc107;
  --hv-yellow-2: #ffb300;
  --hv-orange: #f28c28; /* oranye "Ade" di logo, sedikit lebih terang agar terbaca di foto gelap */
  --hv-orange-2: #e07818; /* oranye persis logo, untuk hover */
  --hv-wa: #128c4a;
  --hv-text: #2d3436;
  --hv-muted: #5b6475;
  --hv-soft: #6c757d;
  --hv-line: #e8ecf4;
  --hv-line-2: #eef1f6;
  --hv-tint: #f5f7fb;
  --hv-tint-2: #eef3fc;
  --hv-radius: 16px;
  /* Sudut kartu sengaja dibuat beragam per section, tidak semua bulat sama */
  --hv-radius-none: 0;
  --hv-radius-sm: 6px;
  --hv-radius-leaf: 24px 0 24px 0;
}

/* Lebar konten beranda mengikuti prototype (1140px), jadi ukuran gambar kartu
   trip (4:3) dan artikel (16:10) sama seperti di prototype. */
@media (min-width: 1200px) {
  section[class^="hv-"] > .container {
    max-width: 1140px;
  }
}

/* Hero dengan slideshow foto bergerak */
.hv-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  background: var(--hv-ink);
  color: #fff;
}

.hv-hero__slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 12, 50, 0.6) 0%, rgba(0, 18, 77, 0.5) 45%, rgba(0, 12, 50, 0.88) 100%);
}

.hv-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.6s ease;
}

.hv-hero__slide.is-active {
  opacity: 1;
  animation: hv-drift 9s ease-out forwards;
}

.hv-hero__slide:nth-child(even).is-active {
  animation-name: hv-drift-back;
}

@keyframes hv-drift {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.16) translate(-2%, -1.5%); }
}

@keyframes hv-drift-back {
  from { transform: scale(1.16) translate(2%, 1%); }
  to { transform: scale(1.04) translate(0, 0); }
}

.hv-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6.5rem;
  padding-bottom: 4.5rem;
  text-align: center;
}

.hv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--hv-navy-2);
  font-family: var(--heading-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hv-eyebrow::before,
.hv-eyebrow--center::after {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

.hv-hero .hv-eyebrow {
  margin-bottom: 14px;
  color: var(--hv-orange);
}

.hv-hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2.3rem, 5.6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hv-hero h1 span {
  display: block;
  color: var(--hv-orange);
  font-weight: 600;
}

.hv-hero__lead {
  max-width: 600px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hv-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 18px;
  padding: 8px 8px 8px 24px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.hv-search input {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #1f2937;
  font-size: 1.02rem;
  outline: none;
}

.hv-search input::placeholder {
  color: #8a93a6;
}

.hv-search button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 0.6rem 1.35rem;
  border: 0;
  border-radius: 6px;
  background: var(--hv-orange);
  color: var(--hv-ink);
  font-family: var(--heading-font);
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.hv-search button:hover {
  background: var(--hv-orange-2);
}

.hv-hero__controls {
  position: absolute;
  left: max(16px, calc((100% - 1296px) / 2 + 12px));
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hv-hero__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.05rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hv-hero__toggle:hover {
  background: #fff;
  color: var(--hv-navy);
}

.hv-hero__dots {
  display: flex;
  gap: 6px;
}

.hv-hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.hv-hero__dot[aria-current="true"] {
  width: 24px;
  background: var(--hv-orange);
}

/* Tautan bergaris bawah */
.hv-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: var(--hv-navy);
  font-family: var(--heading-font);
  font-weight: 600;
  white-space: nowrap;
}

.hv-link:hover {
  color: var(--hv-navy-2);
}

/* Strip jaminan */
.hv-assurance {
  padding: 0;
  background: #fff;
}

.hv-assurance ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hv-assurance li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 20px 18px;
}

.hv-assurance__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 25, 115, 0.07);
  color: var(--hv-navy);
  font-size: 1.1rem;
}

.hv-assurance__icon--0 {
  color: #e0a800;
}

.hv-assurance strong {
  display: block;
  color: var(--hv-navy);
  font-family: var(--heading-font);
  font-size: 0.95rem;
  font-weight: 600;
}

.hv-assurance small {
  display: block;
  color: var(--hv-soft);
  font-size: 0.8rem;
}

/* Pola section */
.hv-section {
  padding: 56px 0;
  background: #fff;
}

.hv-section--tint {
  background: var(--hv-tint);
}

.hv-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.hv-heading h2,
.hv-schedule h2 {
  margin: 0 0 8px;
  color: var(--hv-navy);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Judul section satu warna (sebelumnya potongan kedua berwarna biru) */
.hv-heading h2 span {
  color: inherit;
  font-weight: inherit;
}

.hv-heading p,
.hv-schedule p {
  max-width: 560px;
  margin: 0;
  color: var(--hv-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Tombol */
.hv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--heading-font);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hv-btn--navy {
  background: var(--hv-navy);
  color: #fff;
}

.hv-btn--navy:hover {
  background: #0d2a9a;
  color: #fff;
}

.hv-btn--pill {
  border-radius: 999px;
}

.hv-btn--wa {
  border-color: #cfe9da;
  border-radius: 999px;
  background: #fff;
  color: var(--hv-wa);
}

.hv-btn--wa:hover {
  border-color: #25d366;
  background: #25d366;
  color: #fff;
}

/* Mulai dari sini */
.hv-start {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hv-start__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 24px;
  border-radius: var(--hv-radius-none);
  /* Tanpa border: kartu putih di atas latar abu section */
  background: #fff;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hv-start__card:hover {
  box-shadow: 0 12px 28px rgba(0, 25, 115, 0.1);
  transform: translateY(-3px);
}

.hv-start__card:focus-within {
  outline: 2px solid #0056b3;
  outline-offset: 3px;
}

.hv-start__title {
  padding-right: 28px;
  color: var(--hv-navy);
  font-family: var(--heading-font);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Seluruh kartu bisa diklik lewat link judul */
.hv-start__title::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hv-start__title:hover,
.hv-start__title:focus-visible {
  color: var(--hv-navy);
  outline: none;
}

/* Link WhatsApp di kartu Private Trip, di atas area klik kartu */
.hv-start__wa {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--hv-wa);
  font-family: var(--heading-font);
  font-size: 0.88rem;
  font-weight: 600;
}

.hv-start__wa:hover {
  color: #0b6b37;
  text-decoration: underline;
}

.hv-start__desc {
  color: var(--hv-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hv-start__card > .bi {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--hv-navy);
  transition: transform 0.2s ease;
}

.hv-start__card:hover > .bi {
  transform: translate(2px, -2px);
}

/* Destinasi */

.hv-trips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hv-trip {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 25, 115, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hv-trip:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 25, 115, 0.12);
}

.hv-trip__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef1f7;
}

.hv-trip__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hv-trip__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--hv-navy);
  font-family: var(--heading-font);
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.hv-trip__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 16px 16px;
}

.hv-trip h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 6px;
  color: #2c3e50;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.hv-trip__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: var(--hv-muted);
  font-size: 0.86rem;
}

.hv-trip__meta .bi {
  color: var(--hv-navy);
}

.hv-trip__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--hv-line-2);
}

.hv-trip__label {
  display: block;
  color: var(--hv-soft);
  font-size: 0.72rem;
}

.hv-trip__price {
  display: block;
  color: var(--hv-navy);
  font-family: var(--heading-font);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.hv-trip__price small {
  color: var(--hv-soft);
  font-family: var(--default-font);
  font-size: 0.72rem;
  font-weight: 500;
}

.hv-trip__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hv-navy);
  font-family: var(--heading-font);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.hv-trip__link:hover {
  color: var(--hv-navy-2);
}

/* Jadwal */
.hv-schedule {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
}

.hv-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 25, 115, 0.08);
  color: var(--hv-navy);
  font-family: var(--heading-font);
  font-size: 0.85rem;
  font-weight: 600;
}

.hv-schedule p {
  max-width: 420px;
  margin-bottom: 22px;
}

.hv-schedule__actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hv-poster {
  position: relative;
  display: block;
  max-width: 480px;
  margin: 0 0 0 auto;
  padding: 10px;
  border: 1px solid var(--hv-line);
  border-radius: var(--hv-radius-sm);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 25, 115, 0.08);
  cursor: zoom-in;
}

.hv-poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.hv-poster__hint {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.8rem;
  transition: background-color 0.2s ease;
}

.hv-poster:hover .hv-poster__hint {
  background: rgba(0, 25, 115, 0.88);
}

.hv-poster--empty {
  padding: 40px 24px;
  color: var(--hv-muted);
  text-align: center;
  cursor: default;
}

.hv-poster--empty .bi {
  display: block;
  margin-bottom: 10px;
  color: var(--hv-navy);
  font-size: 2rem;
}

.hv-poster-dialog {
  max-width: min(92vw, 720px);
  max-height: 94vh;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 14px;
  background: transparent;
}

.hv-poster-dialog::backdrop {
  background: rgba(0, 10, 40, 0.82);
}

.hv-poster-dialog img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 14px;
}

.hv-poster-dialog__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--hv-navy);
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Artikel */
/* Tanpa kotak/bayangan: foto, tanggal, judul, ringkasan singkat */
.hv-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}

.hv-article {
  position: relative;
}

.hv-article:focus-within {
  outline: 2px solid #0056b3;
  outline-offset: 6px;
  border-radius: 4px;
}

.hv-article__img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--hv-radius-leaf);
  background: #eef1f7;
}

.hv-article__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hv-article:hover .hv-article__img img {
  transform: scale(1.04);
}

.hv-article__body {
  padding-top: 16px;
}

.hv-article time {
  display: block;
  margin-bottom: 6px;
  color: var(--hv-soft);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.hv-article h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.hv-article h3 a {
  color: var(--hv-navy);
  transition: color 0.2s ease;
}

.hv-article:hover h3 a {
  color: var(--hv-accent);
}

.hv-article p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--hv-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.hv-article h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hv-article h3 a:focus-visible {
  outline: none;
}

/* Responsif */
@media (max-width: 991.98px) {
  .hv-hero__content {
    padding-top: 5.5rem;
    padding-bottom: 4rem;
  }

  .hv-assurance ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .hv-trips {
    grid-template-columns: repeat(2, 1fr);
  }

  .hv-schedule {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hv-poster {
    margin: 0 auto;
  }

}

@media (max-width: 767.98px) {
  .hv-start {
    grid-template-columns: 1fr;
  }

  .hv-trips,
  .hv-articles {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 6px;
  }

  .hv-trips::-webkit-scrollbar,
  .hv-articles::-webkit-scrollbar {
    display: none;
  }

  .hv-trips > *,
  .hv-articles > * {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}

@media (max-width: 575.98px) {
  .hv-hero__content {
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
  }

  .hv-eyebrow--center {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .hv-eyebrow--center::before,
  .hv-eyebrow--center::after {
    display: none;
  }

  .hv-hero__lead {
    font-size: 0.95rem;
  }

  .hv-search {
    padding-left: 18px;
  }

  .hv-search button span {
    display: none;
  }

  .hv-search button {
    padding: 0.6rem 0.8rem;
  }

  .hv-hero__controls {
    bottom: 18px;
  }

  .hv-section {
    padding: 44px 0;
  }

  .hv-heading {
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .hv-heading h2,
  .hv-schedule h2 {
    font-size: 1.5rem;
  }

  .hv-assurance li {
    gap: 10px;
    padding: 14px 8px;
  }

  .hv-assurance__icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .hv-assurance strong {
    font-size: 0.82rem;
  }

  .hv-assurance small {
    font-size: 0.72rem;
  }

  .hv-start {
    gap: 10px;
  }

  .hv-start__card {
    padding: 16px 18px;
  }

  .hv-start__desc {
    display: none;
  }

  .hv-start__card > .bi {
    top: 50%;
    transform: translateY(-50%);
  }

  .hv-start__card:hover > .bi {
    transform: translateY(-50%);
  }

  .hv-poster-dialog__close {
    top: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hv-hero__slide,
  .hv-hero__slide.is-active {
    animation: none;
    transform: none;
    transition: none;
  }
}
