/* ==========================================================================
   Ananda Catering & Aqiqah - Stylesheet
   Palet Resmi:
   - Merah Ananda: #D82028
   - Arang: #4A4545
   - Putih Hangat: #FFF8F0
   - Blush: #FCEBEA
   - Arang Gelap: #2B2625
   ========================================================================== */

:root {
  --bg: #FFF8F0;
  --bg2: #FCEBEA;
  --ink: #4A4545;
  --red: #D82028;
  --rt: #D82028;
  --card: #fff;
  --line: #EBDAD2;
  --dk: #2B2625;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1F1A19;
    --bg2: #282221;
    --ink: #F3E9E2;
    --rt: #FF6A70;
    --card: #2B2625;
    --line: #41383A;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #1F1A19;
  --bg2: #282221;
  --ink: #F3E9E2;
  --rt: #FF6A70;
  --card: #2B2625;
  --line: #41383A;
  color-scheme: dark;
}

html {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 70px);
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 Nunito, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 10;
}

h1, h2, h3, .btn, .nav a {
  font-family: Montserrat, system-ui, sans-serif;
}

h1 {
  font-size: clamp(1.8rem, 6vw, 3.4rem);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 16px;
  overflow-wrap: break-word;
  word-break: break-word;
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 12px;
  overflow-wrap: break-word;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
  font-weight: 800;
}

p {
  margin: 0 0 12px;
  max-width: 62ch;
}

.w {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 380px) {
  .w {
    padding: 0 14px;
  }
}

section {
  padding: 64px 0;
}

.alt {
  background: var(--bg2);
}

/* Pengalihan Logo Berdasarkan Mode Terang/Gelap */
.ll {
  display: block;
}
.ld {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ll {
    display: none;
  }
  :root:not([data-theme="light"]) .ld {
    display: block;
  }
}

:root[data-theme="dark"] .ll {
  display: none;
}
:root[data-theme="dark"] .ld {
  display: block;
}

/* Header & Navigasi */
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

header .w {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

header img {
  height: 40px;
  width: auto;
}

.nav {
  display: none;
  margin-left: auto;
  gap: 20px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--red);
  font-weight: 800;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav a:hover,
  :root:not([data-theme="light"]) .nav a.active {
    color: var(--rt);
  }
}

:root[data-theme="dark"] .nav a:hover,
:root[data-theme="dark"] .nav a.active {
  color: var(--rt);
}

/* Tombol Hamburger Menu Mobile */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  gap: 5px;
  margin-left: 8px;
  flex-shrink: 0;
  transition: background .2s ease, border-color .2s ease;
}

.nav-toggle:hover {
  background: var(--line);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2.2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.2px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.2px) rotate(-45deg);
}

/* Navigasi Mobile Dropdown */
@media (max-width: 759px) {
  header {
    position: sticky;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 2px solid var(--red);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    flex-direction: column;
    padding: 14px 16px 22px;
    gap: 6px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 100;
  }

  .nav.open {
    display: flex;
    animation: navSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav a {
    font-size: 0.98rem;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bg2);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
  }

  .nav a:hover,
  .nav a.active {
    background: rgba(197, 48, 48, 0.08);
    border-color: var(--red);
    color: var(--red);
  }

  .nav-divider {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0.65;
    letter-spacing: 0.5px;
    margin: 10px 4px 4px;
  }

  .nav-sublinks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .nav-sublinks a {
    font-size: 0.84rem;
    padding: 8px 10px;
  }
}

@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--red);
  cursor: pointer;
}

.btn.o {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.hb {
  margin-left: auto;
  padding: 9px 16px;
}

@media (max-width: 380px) {
  header .w {
    gap: 8px;
    height: 58px;
  }
  header img {
    height: 32px;
  }
  .hb {
    padding: 7px 11px;
    font-size: 0.8rem;
  }
  .nav-toggle {
    width: 36px;
    height: 36px;
    margin-left: 4px;
  }
}

/* Icon Mobile Nav */
.m-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 1.05rem;
}

@media (min-width: 760px) {
  .m-icon {
    display: none;
  }

  .nav {
    display: flex;
    flex-direction: row;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-height: none;
    margin-left: auto; /* Mendorong cluster menu ke sisi kanan */
    gap: 6px;
    align-items: center;
  }

  .nav-divider,
  .nav-sublinks {
    display: none;
  }

  .nav a {
    background: transparent;
    border: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
  }

  .nav a:hover {
    background: rgba(197, 48, 48, 0.05);
    color: var(--red);
    font-weight: 700;
  }

  .nav a.active {
    background: rgba(197, 48, 48, 0.08);
    color: var(--red);
    font-weight: 800;
  }

  .nav-toggle {
    display: none;
  }

  .hb {
    margin-left: 10px; /* Merapat rapi di samping menu paling kanan */
    padding: 9px 18px;
    font-size: 0.88rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Subpage Header */
.page-header {
  background: var(--bg2);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 0 0 10px;
}

.page-header p {
  font-size: 1.05rem;
  margin: 0;
  max-width: 65ch;
}

/* Kartu Keunggulan / Inclusions Bar */
.perks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 600px) {
  .perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .perks-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.perk-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  text-align: left;
}

.perk-card h4 {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--ink);
}

.perk-card p {
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.5;
}

/* Bagian Hero */
.hero {
  background: var(--red);
  color: #fff;
  padding: 48px 0 56px;
  overflow: hidden;
}

.hero .w {
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero p {
  font-size: 1.1rem;
}

.hero .btn {
  background: #fff;
  color: var(--red);
  border-color: #fff;
}

.hero .btn.o {
  background: transparent;
  color: #fff;
}

.hero img {
  width: min(280px, 70%);
  margin: 0 auto;
  display: block;
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 480px) {
  .acts {
    flex-direction: column;
    width: 100%;
  }
  .acts .btn {
    width: 100%;
    text-align: center;
    padding: 13px 18px;
  }
}

/* Badges Kepercayaan Hero (Halal MUI, Free Ongkir, Rasa, dll) */
.hero-trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
  margin-top: 24px;
  max-width: 480px;
}

@media (min-width: 640px) {
  .hero-trust-badges {
    grid-template-columns: repeat(3, 1fr);
    max-width: 520px;
  }
}

.hero-trust-badges span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  padding: 8px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .hero-trust-badges {
    gap: 6px 8px;
  }
  .hero-trust-badges span {
    font-size: 0.72rem;
    padding: 6px 4px;
    gap: 4px;
  }
}

.hero.hero-krem .hero-trust-badges span {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

@media (min-width: 800px) {
  .hero .w {
    grid-template-columns: 1.3fr 1fr;
  }
  .hero img {
    width: min(340px, 100%);
  }
}

/* Varian Hero Krem untuk Pengujian A/B */
.hero.hero-krem {
  background: var(--bg2);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.hero.hero-krem h1 {
  color: var(--ink);
}

.hero.hero-krem p {
  color: var(--ink);
}

.hero.hero-krem .btn {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.hero.hero-krem .btn.o {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}

.hero-logo-box {
  width: min(280px, 70%);
  margin: 0 auto;
  display: block;
}

.hero-logo-box img {
  width: 100%;
  height: auto;
}

.hero-logo-box .ll {
  display: block;
}

.hero-logo-box .ld {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-logo-box .ll {
    display: none;
  }
  :root:not([data-theme="light"]) .hero-logo-box .ld {
    display: block;
  }
}

:root[data-theme="dark"] .hero-logo-box .ll {
  display: none;
}
:root[data-theme="dark"] .hero-logo-box .ld {
  display: block;
}

@media (min-width: 800px) {
  .hero-logo-box {
    width: min(340px, 100%);
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero.hero-krem .btn.o {
    color: var(--ink);
    border-color: var(--line);
  }
}

:root[data-theme="dark"] .hero.hero-krem .btn.o {
  color: var(--ink);
  border-color: var(--line);
}

/* Grid & Kartu */
.g {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .g.c2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .g.c3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .g.c4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cd {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.cd.p {
  border-radius: 22px 22px 22px 6px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cd.p:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pkg-thumb {
  margin: -20px -20px 14px -20px;
  background: var(--bg2);
  height: 200px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.pkg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .3s ease;
}

.cd.p:hover .pkg-thumb img {
  transform: scale(1.04);
}

.pkg-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--red);
  color: #fff;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  z-index: 2;
  letter-spacing: 0.2px;
}

.pkg-badge.bonus {
  background: #d97706;
  color: #fff;
}

.pkg-note {
  font-size: 0.78rem;
  color: var(--ink);
  opacity: 0.8;
  margin: -2px 0 10px;
  font-weight: 600;
  line-height: 1.3;
}

.cd.p ul {
  flex: 1;
}

.cd.p .btn {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

/* Menu Gallery Cards */
.menu-card {
  padding: 12px;
  overflow: hidden;
}

.menu-card img {
  border-radius: 12px;
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.menu-card .menu-body {
  padding: 12px 6px 6px;
}

.menu-card h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.menu-card p {
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.45;
  opacity: 0.9;
}

.cd small {
  color: var(--rt);
  font-weight: 700;
}

.x {
  color: var(--rt);
  font-weight: 700;
}

/* Toggle Jenis Kelamin */
.tg {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin: 8px 0 22px;
  max-width: 100%;
}

.tg button {
  font: 700 .9rem Montserrat, sans-serif;
  border: 0;
  background: none;
  color: var(--ink);
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}

.tg button.on {
  background: var(--red);
  color: #fff;
}

@media (max-width: 480px) {
  .tg {
    display: flex;
    width: 100%;
    border-radius: 14px;
    padding: 4px;
    gap: 4px;
  }
  .tg button {
    flex: 1;
    padding: 10px 8px;
    font-size: 0.82rem;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    border-radius: 10px;
    min-height: 44px;
  }
}

.pr {
  font: 800 1.8rem Montserrat, sans-serif;
  color: var(--rt);
  margin: 6px 0;
}

.cd ul {
  padding-left: 18px;
  margin: 8px 0 0;
}

.fav {
  border: 2px solid var(--red);
}

/* Langkah Proses */
.st {
  counter-reset: s;
  display: grid;
  gap: 14px;
}

.st .cd {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.st .cd::before {
  counter-increment: s;
  content: counter(s);
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font: 800 1rem/34px Montserrat, sans-serif;
  text-align: center;
}

/* Placeholder Foto */
.ph {
  aspect-ratio: 4/3;
  border: 2px dashed var(--line);
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  color: var(--ink);
  opacity: .75;
  font-size: .9rem;
}

/* Form & Input */
label {
  display: block;
  font-weight: 700;
  margin: 14px 0 6px;
}

input, select {
  font: inherit;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

.rs {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg2);
}

/* Grid & Komponen Khusus Kalkulator */
.calc-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 800px) {
  .calc-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }
}

.quick-guests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 14px;
}

.quick-guests button {
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--ink);
  font: 700 0.85rem Montserrat, system-ui, sans-serif;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}

.quick-guests button:hover,
.quick-guests button.on {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* Badge Penawaran Pengantaran */
.badge-delivery {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  color: var(--rt);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
}

/* Komponen Ulasan Pelanggan / Testimoni */
.testi-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 600px) {
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Horizontal swipeable scroll on small mobile screens */
@media (max-width: 599px) {
  .testi-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    gap: 14px;
    scrollbar-width: thin;
  }
  .testi-video-card {
    flex: 0 0 280px;
    scroll-snap-align: center;
  }
}

.testi-video-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testi-video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.testi-video-frame {
  width: 100%;
  position: relative;
  background: #111;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testi-video-frame iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
}

.testi-video-action {
  padding: 10px 12px;
  background: var(--card);
  border-top: 1px solid var(--line);
  text-align: center;
}

.btn-ig-reel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d62976;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-ig-reel:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.testi-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testi-card p {
  font-style: italic;
  margin-bottom: 12px;
}

.testi-meta {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.testi-meta small {
  display: block;
  font-weight: 400;
  color: var(--ink);
  opacity: 0.75;
}

/* Mobile Sticky Action Bar */
.mobile-bar {
  display: none;
}

@media (max-width: 760px) {
  .mobile-bar {
    display: flex;
    position: fixed;
    inset: auto 0 0;
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 25;
    gap: 10px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  }

  .mobile-bar .btn {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
    font-size: 0.88rem;
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Di layar mobile, aksi WhatsApp sudah terakomodasi elegan di mobile-bar */
  .wa {
    display: none;
  }

  /* Padding bawah body di mobile agar konten terakhir tidak tertutup */
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 360px) {
  .mobile-bar {
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
  }
  .mobile-bar .btn {
    padding: 9px 6px;
    font-size: 0.78rem;
  }
}

/* Tanya Jawab (FAQ) */
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

summary {
  font: 700 1rem Montserrat, sans-serif;
  cursor: pointer;
}

details p {
  margin: 10px 0 0;
}

/* CTA Penutup & Footer */
.cta {
  background: var(--dk);
  color: #fff;
  text-align: center;
}

.cta p {
  margin-inline: auto;
}

footer {
  background: var(--dk);
  color: #d9cfc9;
  padding: 36px 0 96px;
  font-size: .9rem;
}

footer img {
  height: 56px;
  width: auto;
  margin-bottom: 12px;
}

.footer-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 16px 0 12px;
  font-size: 0.85rem;
}

.footer-areas a {
  color: #d9cfc9;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
  transition: color .2s ease;
}

.footer-areas a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* Tombol Mengambang WhatsApp Lama & Widget Baru */
.wa {
  display: none; /* Digantikan oleh wa-widget interaktif multi-agent */
}

/* ==========================================================================
   Multi-Agent WhatsApp Widget (CS 1 & CS 2)
   ========================================================================== */
.wa-widget {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  font-family: Nunito, system-ui, sans-serif;
}

.wa-toggle-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  border: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  position: relative;
}

.wa-toggle-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

.wa-toggle-btn svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  transition: opacity .2s ease, transform .2s ease;
}

.wa-toggle-btn .icon-close {
  display: none;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.wa-widget.open .wa-toggle-btn {
  background: #128C7E;
}

.wa-widget.open .wa-toggle-btn svg {
  display: none;
}

.wa-widget.open .wa-toggle-btn .icon-close {
  display: block;
}

/* Kotak Popup Pilihan CS */
.wa-popup {
  display: none;
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 330px;
  max-width: calc(100vw - 32px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  padding: 16px;
  opacity: 1;
}

.wa-widget.open .wa-popup {
  display: block;
}

.wa-popup-header {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.wa-popup-header h4 {
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 2px;
  color: var(--ink);
}

.wa-popup-header p {
  font-size: 0.78rem;
  margin: 0;
  opacity: 0.8;
  color: var(--ink);
}

/* Item Agen CS */
.wa-agent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all .2s ease;
}

.wa-agent-item:last-child {
  margin-bottom: 0;
}

.wa-agent-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #25D366;
}

.wa-agent-item.offline::before {
  background: #A0AAB5;
}

.wa-agent-item:hover {
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.18);
}

.wa-agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  border: 1px solid var(--line);
}

.wa-agent-info {
  flex: 1;
  min-width: 0;
}

.wa-agent-name {
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.2;
}

.wa-agent-role {
  font-size: 0.78rem;
  color: var(--ink);
  opacity: 0.8;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-agent-status {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1e8e3e;
  margin-top: 2px;
}

.wa-agent-item.offline .wa-agent-status {
  color: #888;
}

.wa-agent-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25);
  flex-shrink: 0;
}

.wa-agent-item.offline .wa-agent-dot {
  background: #A0AAB5;
  box-shadow: none;
}

@media (max-width: 760px) {
  .wa-widget {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: 16px;
  }
  .wa-popup {
    bottom: 68px;
    right: 0;
    width: min(340px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 360px) {
  .wa-widget {
    right: 12px;
  }
  .wa-popup {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    padding: 12px;
  }
  .wa-agent-item {
    padding: 10px 8px;
    gap: 8px;
  }
  .wa-agent-avatar {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

/* Aksesibilitas Fokus Keyboard */
:focus-visible {
  outline: 3px solid #FFB300;
  outline-offset: 2px;
}
