/* =====================================================================
   Bisma Valley — Offers landing
   Tema diambil persis dari situs lama (screenshot): biru flat #3f60a8,
   tombol biru tua #3e5fa4. Font self-host: Acumin Pro (body) &
   Engravers Gothic (heading).
   ===================================================================== */

/* Font self-host — file dari user, jangan ganti yang lain */
@font-face {
  font-family: "Acumin Pro";
  src: url("../fonts/acumin-pro-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Engravers-Gothic";
  src: url("../fonts/engravers-gothic.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #3f60a8;
  --blue-btn: #3e5fa4;
  --blue-btn-hover: #4a6cb4;
  --blue-deep: #2f4c8c;
  --text-light: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.92);
  --arrow: #ffffff;
  --wa-green: #2e77e6;

  --font-body: "Acumin Pro", sans-serif;
  --font-heading: "Engravers-Gothic", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--blue);
  color: var(--text-light);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* =====================================================================
   HERO — fullscreen video + tengah: logo, tagline, menu tombol
   ===================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Lapisan tipis agar logo & menu terbaca di atas video terang */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
}

.hero__logo {
  width: 92px;
  height: auto;
  margin-bottom: 0.75rem;
}

.hero__tagline {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 2.6rem;
}

.hero__tagline strong {
  font-weight: 400;
}

.hero-menu {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: min(400px, 86vw);
}

.hero-menu__item {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--blue-btn);
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  transition:
    background 0.2s var(--ease),
    transform 0.15s var(--ease);
}

.hero-menu__item:hover,
.hero-menu__item:focus-visible {
  background: var(--blue-btn-hover);
  transform: translateY(-1px);
}

/* =====================================================================
   PROMO — slider di atas, grid info di bawah, sosial + jam paling bawah
   ===================================================================== */
.promo {
  background: var(--blue);
  padding: 4rem 0 1.5rem;
}

/* ---- Slider ---- */
.promo__slider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.promo__viewport {
  flex: 1;
  overflow: hidden;
}

.promo__track {
  display: flex;
  transition: transform 0.45s var(--ease);
}

.promo__slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.promo__slide img {
  width: min(480px, 88vw);
  height: auto;
  box-shadow: 0 18px 50px rgba(9, 22, 54, 0.45);
}

.promo__arrow {
  flex: 0 0 auto;
  background: none;
  border: none;
  color: var(--arrow);
  cursor: pointer;
  padding: 0.75rem;
  opacity: 0.85;
  transition:
    opacity 0.2s var(--ease),
    transform 0.15s var(--ease);
}

.promo__arrow:hover,
.promo__arrow:focus-visible {
  opacity: 1;
  transform: scale(1.12);
}

/* ---- Info: Location | Logo | Get in touch ---- */
.promo__info {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 960px;
  margin: 3.5rem auto 0;
  padding-inline: 1rem;
  text-align: center;
}

.promo__col h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: capitalize;
  margin: 0 0 0.5rem;
  font-weight: 400;
}

.promo__col p,
.promo__col a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.92rem;
  margin: 0;
}

.promo__col a:hover {
  text-decoration: underline;
}

.promo__col--brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-inline: 1.5rem;
}

.promo__brand-logo {
  width: 74px;
  height: auto;
  margin-bottom: 0.35rem;
}

.promo__brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.promo__brand-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ---- Bawah: jam buka kiri, sosial kanan ---- */
.promo__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: 960px;
  margin: 2.5rem auto 0;
  padding-inline: 1rem;
}

.promo__hours {
  text-align: center;
  margin-inline: auto;
}

.promo__hours h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  margin: 0 0 0.35rem;
}

.promo__hours p {
  margin: 0;
  font-size: 0.92rem;
}

.promo__social {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.promo__social a {
  color: var(--text-light);
  display: inline-flex;
  padding: 0.35rem;
  opacity: 0.92;
  transition:
    opacity 0.2s var(--ease),
    transform 0.15s var(--ease);
}

.promo__social a:hover,
.promo__social a:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}

/* =====================================================================
   Floating audio on/off (kiri bawah, biru terang sesuai referensi)
   ===================================================================== */
.audio-float {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(9, 22, 54, 0.4);
  transition: transform 0.15s var(--ease);
  cursor: pointer;
  padding: 0;
}

.audio-float:hover {
  transform: scale(1.08);
}

.audio-float__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}

/* Ikon ikuti Font Awesome Free (volume-high / volume-xmark), inline SVG.
   Crossfade + pop kecil saat toggle. */

/* Ikon ON (volume-high) — tampil saat musik berputar */
.audio-float__icon--on {
  opacity: 0;
  transform: scale(0.6);
}

.audio-float.is-playing .audio-float__icon--on {
  opacity: 1;
  transform: scale(1);
}

/* Ikon OFF (volume-xmark) — tampil saat musik berhenti */
.audio-float__icon--off {
  opacity: 1;
  transform: scale(1);
}

.audio-float.is-playing .audio-float__icon--off {
  opacity: 0;
  transform: scale(0.6);
}

/* Denyut halus pada ikon ON mengikuti musik */
.audio-float.is-playing .audio-float__icon--on svg {
  animation: fa-pulse 1.6s ease-in-out infinite;
}

@keyframes fa-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .audio-float.is-playing .audio-float__icon--on svg {
    animation: none;
  }
}

/* =====================================================================
   Mobile
   ===================================================================== */
@media (max-width: 760px) {
  .promo__slider {
    gap: 0;
    padding-inline: 0.5rem;
  }

  .promo__arrow {
    padding: 0.4rem;
  }

  .promo__slide img {
    width: min(300px, 72vw);
  }

  .promo__info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .promo__info > .promo__col--brand {
    order: -1;
  }

  .promo__bottom {
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
  }

  .promo__hours {
    order: -1;
  }
}

/* =====================================================================
   Aksesibilitas motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .promo__track {
    transition: none;
  }
  .hero__video {
    display: none;
  }
  .hero {
    background: var(--blue-deep) url("../img/poster-hero.webp") center / cover
      no-repeat;
  }
}
