/* Definisi semua variasi font */
@font-face {
  font-family: "Inknut Antiqua";
  src: url("../fonts/inknut_antiqua/InknutAntiqua-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Inknut Antiqua";
  src: url("../fonts/inknut_antiqua/InknutAntiqua-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Inknut Antiqua";
  src: url("../fonts/inknut_antiqua/InknutAntiqua-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

/* Tambahkan varian lainnya (Medium, SemiBold, ExtraBold, Black) sesuai kebutuhan */

:root {
  --brand-orange: #ff8c00;
  --brand-teal: #0ea59d;
  --muted: #6c757d;
  --card-radius: 14px;
  --soft-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  --line: #eef1f4;
}

body {
  background: #fcfbf7;
  color: #212529;
}
.brand-logo {
  height: 36px;
}
.footer-logo {
  height: 56px;
}

.custom-line {
  border: 0;
  height: 2px;
  background: #000; /* contoh pakai warna brand */
  margin: 1rem 0;
}

.btn-warning {
  --bs-btn-bg: var(--brand-orange);
  --bs-btn-border-color: var(--brand-orange);
  --bs-btn-hover-bg: #ff9619;
  --bs-btn-hover-border-color: #ff9619;
  --bs-btn-active-bg: #e67e00;
  --bs-btn-active-border-color: #e67e00;
  color: #fff !important;
}

.shadow-soft {
  box-shadow: var(--soft-shadow);
}
.rounded-4 {
  border-radius: var(--card-radius) !important;
}
.text-muted-sm {
  color: #8b9198;
  font-size: 0.9rem;
}
.section-pad {
  padding-top: 48px;
  padding-bottom: 48px;
}

.navbar {
  background-color: #fcfbf7;
}

.navbar-nav .nav-link {
  font-family: "Inknut Antiqua", serif;
  font-weight: 400; /* ganti sesuai varian yang diinginkan */
  font-size: 0.8rem;
}

/* Hero */
.hero-wrap {
  background: #f7f5f1;
  border: 1px solid #eee;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.hero-img {
  max-width: 560px;
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}
@media (max-width: 991.98px) {
  .hero-img {
    max-width: 100%;
  }
}
.store-badges img {
  height: 42px;
  width: auto;
  display: block;
}

/* Hero background (scoped, tidak mengubah global) */
.hero-bg {
  min-height: 420px;
}
.hero-bg .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg .hero-overlay {
  position: absolute;
  inset: 0;
  /* overlay gelap dari kiri ke kanan agar teks kiri terbaca */
  /* background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, 0) 80%
  ); */
}
@media (max-width: 992px) {
  .hero-bg {
    min-height: 360px;
  }
  /* .hero-bg .hero-overlay { background: rgba(0,0,0,.45); } lebih rata di mobile */
}

/* Small info pill (tanggal + cuaca) */
.info-pill {
  background: #eaf4ff;
  border: 1px solid #dbe8fb;
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.info-pill .badge {
  background: #e8f6f5;
  color: #09837b;
  font-weight: 600;
}

/* Card look */
.card.clean {
  border: 1px solid #edf0f3;
  border-radius: var(--card-radius);
  box-shadow: var(--soft-shadow);
}
.card.clean .card-header {
  background: #fff;
  border-bottom: 1px solid #f0f2f5;
  border-top-left-radius: var(--card-radius);
  border-top-right-radius: var(--card-radius);
}
.card.clean .card-body {
  background: #fff;
}
.ratio-21x9 {
  --bs-aspect-ratio: 42.857%;
}

/* Accordion */
.accordion-button {
  background: #fff;
  border-radius: 12px !important;
  padding: 0.9rem 1rem;
  box-shadow: none;
  font-weight: 600;
}
.accordion-item {
  border: none;
  border-radius: var(--card-radius);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}
.accordion-button:not(.collapsed) {
  color: #000;
  background: #fff;
}
.accordion-button::after {
  transform: rotate(180deg);
}
.accordion-button.collapsed::after {
  transform: none;
}
.accordion-body {
  padding: 0;
  background: #fff;
}

/* Subteks di bawah judul accordion (selalu terlihat) */
.accordion-subtitle {
  padding: 0.25rem 1rem 0.75rem 1rem;
  font-size: 0.875rem;
  color: #6c757d;
  border-bottom: 1px solid #f0f2f5;
  background: #fff;
}

/* Lists inside accordion */
.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-plain li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.list-plain li:last-child {
  border-bottom: none;
}
.list-plain .left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #4b5563;
}
.list-plain .time {
  color: #111;
  font-weight: 700;
}

/* News list */
.news-item {
  border: 1px solid #edf0f3;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--soft-shadow);
  background: #fff;
}
.news-item .title {
  font-weight: 700;
  margin-bottom: 2px;
}
.news-item .meta {
  font-size: 0.85rem;
  color: #6b7280;
}
.slider-dots .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d1d5db;
  margin-right: 6px;
}
.slider-dots .dot.active {
  background: #111;
}

/* Layanan tiles */
.tile-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  background: #fff;
  border: 1px solid #edf0f3;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--soft-shadow);
  font-weight: 600;
  color: #111;
  text-decoration: none;
}
.tile-btn .bi {
  font-size: 1.1rem;
}

/* CTA bar */
.cta-download {
  position: relative;
  background: #0ea5a7; /* strip teal */
  border-radius: 0; /* tidak rounded */
  overflow: visible; /* izinkan overflow KE ATAS */
  padding: clamp(20px, 3vw, 36px) 16px; /* tinggi nyaman */
  isolation: isolate; /* stacking context untuk z-index */
  min-height: clamp(130px, 15vw, 240px);
}
/* pastikan konten (teks) selalu di depan gambar */
.cta-download > .container {
  position: relative;
  z-index: 2;
}

.cta-title {
  color: #fff;
}
.cta-desc {
  color: rgba(255, 255, 255, 0.9);
}
.store-badge {
  height: 44px;
  width: auto;
  transition: transform 0.2s ease;
}
.store-badge:hover {
  transform: scale(1.05);
}

/* == Default (mobile/tablet): SEMBUNYIKAN gambar agar fokus teks == */
.cta-device-clip {
  display: none;
}

/* ===== Desktop layout ===== */
@media (min-width: 992px) {
  /* Wrapper klip menutupi keseluruhan section dan hanya meng-klip BAGIAN BAWAH */
  .cta-device-clip {
    display: block;
    position: absolute;
    inset: 0; /* top/right/bottom/left:0 */
    pointer-events: none;
    /* Klip: top/kiri/kanan negatif (boleh keluar), bottom=0 (tak boleh keluar) */
    clip-path: inset(-100vmax -100vmax 0 -100vmax);
    -webkit-clip-path: inset(-100vmax -100vmax 0 -100vmax);
    z-index: 1; /* di bawah konten teks */
  }
  .cta-device {
    position: absolute;
    bottom: 0; /* anchor ke batas bawah */
    height: clamp(200px, 22vw, 320px);
    transform-origin: 85% 100%; /* pivot sudut kanan-bawah */
    transform: rotate(-12deg);
    filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.35));
    right: calc(
      (100vw - 960px) / 2 - 8px
    ); /* align ke sisi kanan container @lg (≥992px) */
  }
}

@media (min-width: 1200px) {
  /* xl: container 1140px */
  .cta-device {
    right: calc((100vw - 1140px) / 2 - 8px);
  }
}
@media (min-width: 1400px) {
  /* xxl: container 1320px */
  .cta-device {
    right: calc((100vw - 1320px) / 2 - 8px);
  }
}
/* Footer */
footer {
  border-top: 1px solid #e9ecef;
  background: #f8fafb;
}

/* Section heads */
.sec-head {
  font-weight: 800;
  color: #34495e;
  font-size: 1.5em;
}
.muted-link {
  color: #98a2ad;
  text-decoration: none;
}
.muted-link:hover {
  color: #6b7280;
}

/* === LSW additions (scoped) === */
.available-store {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.available-store .label {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 600;
}
.store-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}
.store-badges img {
  height: 40px;
  width: auto;
  display: block;
}
/* CTA: biar elemen anak boleh "keluar" */
.cta-bleed {
  position: relative;
  overflow: visible; /* <-- KUNCI */
  min-height: 220px;
}

/* Latar hijau tetap hanya selebar container */
.cta-bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #1bb2a6;
  z-index: 0;
}

/* Mockup "floating" ke luar sisi kanan container */
.cta-phone {
  position: absolute;
  /* geser ke luar sejauh gutter container + sedikit ekstra */
  right: calc((100vw - 100%) / -2 - 24px);
  bottom: -32px;
  width: clamp(280px, 38vw, 480px);
  transform: rotate(-12deg);
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.35));
  z-index: 2;
  pointer-events: none;
}

/* (opsional) teks paragraf */
.text-white-75 {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Mobile: jangan floating agar aman */
@media (max-width: 991.98px) {
  .cta-bleed {
    overflow: hidden;
    min-height: 0;
  }
  .cta-phone {
    position: static;
    width: 72%;
    transform: none;
    display: block;
    margin: 1rem auto 0;
    right: auto;
    bottom: auto;
  }
}

/* teks putih samar */
.text-white-75 {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* FAQ styling */
.faq-section {
  background: #fbfbf7;
}
.accordion.faq .accordion-button {
  border-radius: 10px !important;
}
.faq-item {
  border: none;
  margin-bottom: 12px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.faq-item .accordion-button {
  background: #fff;
  font-weight: 600;
}
.faq-item .accordion-body {
  background: #fff;
  color: #374151;
}
