/* =====================================================================
   Tejas Spa Bisma — Offers landing
   Tema diambil persis dari situs lama (Elementor global color):
   maroon flat #77161C, tombol maroon + glow putih lembut.
   Font self-host: Bellefair — heading bold, body regular.
   ===================================================================== */

/* Font self-host: Bellefair (font yang sama dipakai situs lama via Google
   Fonts). Bellefair hanya punya satu weight asli; weight 700 memakai file
   yang sama dan browser menerapkan bold sintetis — sama seperti situs lama. */
@font-face {
  font-family: "Bellefair";
  src: url("../fonts/bellefair-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bellefair";
  src: url("../fonts/bellefair-regular.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --maroon: #77161c;
  --maroon-btn: #77161c;
  --maroon-btn-hover: #8b2229;
  --maroon-deep: #5f1015;
  --text-light: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.92);
  --arrow: #ffffff;
  --audio-btn: #400d10;

  --font-body: "Bellefair", sans-serif;
  --font-heading: "Bellefair", 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(--maroon);
  color: var(--text-light);
  line-height: 1.5;
}

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

/* =====================================================================
   HERO — fullscreen video + tengah: logo, 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: min(220px, 52vw);
  height: auto;
  margin-bottom: 2.6rem;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.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(--maroon-btn);
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 2px;
  /* Glow putih lembut persis seperti tombol di situs lama */
  box-shadow: 0 0 13px 6px rgba(255, 255, 255, 0.36);
  transition:
    background 0.4s var(--ease),
    transform 0.15s var(--ease);
}

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

/* =====================================================================
   PROMO — slider di atas, grid info di bawah, sosial + jam paling bawah
   ===================================================================== */
.promo {
  background: var(--maroon);
  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(26, 4, 6, 0.5);
}

.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-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: capitalize;
  margin: 0 0 0.5rem;
}

.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: 220px;
  height: auto;
}

/* ---- 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-weight: 700;
  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, maroon tua sesuai situs lama)
   ===================================================================== */
.audio-float {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--audio-btn);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(26, 4, 6, 0.45);
  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(--maroon-deep);
  }
}
