/* HiFi Indosat Child — komponen & responsif */

/* Sticky CTA mobile: hanya tampil di layar kecil */
.hifi-sticky-cta { display: none; }
@media (max-width: 781px) {
  .hifi-sticky-cta {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    box-shadow: 0 -6px 24px rgba(18,16,15,.14);
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  }
  .hifi-sticky-cta .wp-block-buttons,
  .hifi-sticky-cta .wp-block-button { flex: 1; }
  .hifi-sticky-cta .wp-block-button__link { width: 100%; text-align: center; }
  body { padding-bottom: 76px; }
}

/* Header */
.hifi-header { backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); }
.hifi-header .wp-block-site-logo img { border-radius: 8px; }
.hifi-nav .wp-block-navigation__container { gap: 1.15rem; }
@media (max-width: 1100px) { .hifi-header-actions { display: none; } }

/* Target sentuh & fokus */
a, button, .wp-block-button__link { touch-action: manipulation; }
.wp-block-button__link:focus-visible, a:focus-visible {
  outline: 3px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}

/* Kartu paket */
.hifi-paket-card { display: flex; flex-direction: column; height: 100%; transition: transform .18s ease, box-shadow .18s ease; }
.hifi-paket-card > .wp-block-group { height: 100%; display: flex; flex-direction: column; }
.hifi-paket-card .wp-block-buttons { margin-top: auto; }
@media (hover: hover) { .hifi-paket-card:hover { transform: translateY(-3px); } }
.hifi-paket-card--featured { position: relative; }
.hifi-paket-card--featured::before {
  content: "Paling Populer";
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--wp--preset--color--primary); color: #fff;
  font-size: .6875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 999px; white-space: nowrap;
}

/* Accordion FAQ */
.wp-block-details > summary {
  cursor: pointer; font-weight: 700; font-size: 1.0625rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: .25rem 0;
}
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 400; line-height: 1;
  color: var(--wp--preset--color--primary); transition: transform .2s ease; flex-shrink: 0;
}
.wp-block-details[open] > summary::after { transform: rotate(45deg); }
.wp-block-details[open] > summary { color: var(--wp--preset--color--primary-dark); }

/* Band CTA */
.hifi-cta-band .wp-block-buttons { margin-top: 1.25rem; }

/* Tabel harga responsif */
.wp-block-table { overflow-x: auto; display: block; }
.wp-block-table table { min-width: 560px; border-collapse: collapse; }
.wp-block-table th, .wp-block-table td { padding: .75rem .85rem; border: 1px solid var(--wp--preset--color--border); text-align: left; }
.wp-block-table thead th { background: var(--wp--preset--color--surface-alt); font-weight: 800; }

/* Tipografi mobile */
@media (max-width: 781px) {
  .hifi-hero h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); }
  .wp-block-columns { gap: 1.25rem; }
  .hifi-header .wp-block-site-title { font-size: .95rem; }
}

/* Breadcrumb AIOSEO */
.aioseo-breadcrumbs { font-size: .8125rem; color: var(--wp--preset--color--muted); margin-bottom: .75rem; }
.aioseo-breadcrumbs a { color: var(--wp--preset--color--muted); }

/* Aksesibilitas: lewati ke konten */
.skip-link.screen-reader-text:focus {
  position: absolute; left: 8px; top: 8px; z-index: 200;
  background: #fff; padding: .75rem 1rem; border-radius: 8px; box-shadow: var(--wp--preset--shadow--card);
}

/* Cetak */
@media print { .hifi-sticky-cta, .hifi-header-actions { display: none !important; } }
