/* ─────────────────────────────────────────────────────────────
   Zahra Medika Hospital — sub-page styles
   Extends css/style.css. Reuses homepage components (.section,
   .section-head, .kicker, .svc-grid/.svc-card, .feature/.feature-igd,
   .doc-table, .pill). Adds the title-band, breadcrumb, callout,
   CTA band, nav active state, and a today-highlight.
   Load AFTER style.css.
   ───────────────────────────────────────────────────────────── */

.subpage { padding-top: 74px; }

/* Guarantee sub-page content is always visible (no scroll-reveal
   dependency that can leave blank gaps). Homepage keeps its animation. */
.subpage .reveal,
.subpage .svc-grid,
.subpage .section-head,
.subpage .feature,
.subpage .feature-pair { opacity: 1 !important; transform: none !important; }
.subpage .svc-card { opacity: 1 !important; }
.subpage .svc-card:not(:hover) { transform: none !important; }

/* Tighter rhythm on content-light pages */
.subpage .section { padding: 50px 0; }
.subpage .svc-grid { margin-bottom: 0; }
@media (max-width: 900px) { .subpage .section { padding: 36px 0; } }

/* ── Active nav item (current page) ── */
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-links a.active::after { transform: scaleX(1); }
.mobile-menu a.active { color: var(--navy); font-weight: 600; }

/* ── Title band — satu warna biru solid, identik & menyatu dengan .emergency-band ── */
.subhero {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  padding: 14px 0 12px;
  overflow: hidden;
}
/* Minimal blank space between the navy title band and the page content */
.subhero + .section { padding-top: 16px; }
@media (max-width: 900px) { .subhero + .section { padding-top: 14px; } }
/* Panel glass di belakang teks subhero — biar standout */
.subhero-panel {
  display: inline-block;
  max-width: 720px;
  background: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px;
  padding: 24px 30px;
  box-shadow: 0 18px 46px rgba(0,0,0,0.20);
}
/* IGD — subhero dua kolom: header kiri + notice darurat kanan (gabung emergency-band → hemat scroll) */
.subhero-emg .subhero-row { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 24px; align-items: stretch; }
.subhero-emg .subhero-panel { display: block; max-width: none; }
.subhero-emg-card {
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  background: rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 20px;
  padding: 22px 26px; box-shadow: 0 18px 46px rgba(0,0,0,0.20);
}
.subhero-emg-card .eb-pulse { display: inline-block; vertical-align: middle; margin-right: 9px; }
.subhero-emg-card .eb-text strong { font-size: 16px; }
.subhero-emg-card .eb-wa { align-self: flex-start; }
@media (max-width: 860px) {
  .subhero-emg .subhero-row { grid-template-columns: 1fr; gap: 14px; }
  .subhero-emg-card .eb-wa { align-self: stretch; justify-content: center; }
}

.subhero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  /* Hanya aktif bila ada foto latar (.subhero-bg). Tanpa foto, transparan
     supaya warna subhero = solid biru yang persis sama dengan .emergency-band. */
  background: transparent;
  pointer-events: none;
}
/* Scrim biru senada hanya saat ada foto latar (menjaga teks tetap terbaca) */
.subhero:has(.subhero-bg)::after {
  background: linear-gradient(120deg, rgba(26,68,128,0.60) 0%, rgba(26,68,128,0.74) 100%);
}
/* foto latar subhero (placeholder gradient tampil bila file belum ada; onerror menghapus img) */
.subhero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.subhero .container { position: relative; z-index: 2; }
.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em;
  color: rgba(255,255,255,.70); margin-bottom: 12px;
}
.crumb a { color: rgba(255,255,255,.70); text-decoration: none; }
.crumb a:hover { color: #fff; }
.crumb span { opacity: .5; }
.crumb strong { color: #fff; font-weight: 600; }
.subhero .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-soft); margin-bottom: 10px;
}
.subhero .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-soft); animation: pulse 2s infinite; }
.subhero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(25px, 2.9vw, 36px); line-height: 1.08;
  letter-spacing: -.01em; margin: 0 0 8px; max-width: 20ch;
  color: #fff;
}
.subhero h1 em { font-style: italic; color: var(--teal-soft); }
.subhero .lead {
  font-size: clamp(14.5px, 1.3vw, 16.5px); line-height: 1.55;
  color: rgba(255,255,255,.88); max-width: 58ch; margin: 0;
}

.section .lead-p { color: var(--ink-soft); line-height: 1.7; font-size: 16.5px; max-width: 72ch; margin: 0 0 8px; }
.section .lead-p strong { color: var(--ink); }

/* ── Callout — full border + icon badge (no side stripe) ── */
.callout {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  border-radius: 16px; padding: 22px 24px; margin: 28px 0;
  box-shadow: var(--shadow-sm);
}
.callout .ico {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal-pale); color: var(--teal-deep);
}
.callout p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); align-self: center; }
.callout p strong { color: var(--ink); }
.callout a { color: var(--teal-deep); font-weight: 600; text-decoration: none; }
.callout a:hover { text-decoration: underline; }
.callout.amber { background: #fdf6ef; border-color: var(--copper-soft); }
.callout.amber .ico { background: var(--paper-warm); color: var(--copper); }

.subnote { font-family: var(--mono); font-size: 13px; color: var(--mute); letter-spacing: .01em; margin: 6px 0 0; }

/* ── "hari ini" highlight on shared doc-table ── */
.doc-table tr.today-row > td { background: var(--teal-pale); }
.badge-today {
  display: inline-block; margin-left: 8px;
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .06em;
  color: var(--teal-deep); background: #fff;
  border: 1px solid var(--teal-soft); border-radius: 999px;
  padding: 2px 9px; vertical-align: middle;
}

/* ── CTA band ── */
.cta-band { background: var(--navy); color: #fff; padding: 64px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 280px at 50% -30%, rgba(43,181,138,.22), transparent 60%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.2vw, 42px); color: #fff; margin: 0 0 14px; }
.cta-band h2 em { font-style: italic; color: var(--teal-soft); }
.cta-band p { color: rgba(255,255,255,.82); max-width: 56ch; margin: 0 auto 28px; line-height: 1.6; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.08); }

@media (max-width: 700px) {
  .subhero { padding: 30px 0 34px; }
  .callout { padding: 18px 18px; }
}

/* ─────────────── Rawat Inap — showcase kelas kamar ─────────────── */
.rooms { background: var(--paper); }
.room-list { display: flex; flex-direction: column; gap: 44px; margin-bottom: 76px; }
.room {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 46px;
  align-items: center;
}
.room-list .room:nth-child(even) .room-media { order: 2; }
.room-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-deep) 130%);
  box-shadow: var(--shadow-md);
}
.room-media::after {
  content: "";
  position: absolute; inset: 0;
  background: url("../assets/images/logo-watermark.png") center / 120px no-repeat;
  opacity: 0.12;
}
.room-media .card-media-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.room-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: rgba(13,33,81,0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 12px; border-radius: 999px;
}
.room-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--copper); font-weight: 600;
}
.room-info h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 30px); color: var(--navy); margin: 8px 0 12px; line-height: 1.15; }
.room-info > p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 20px; max-width: 52ch; }
.room-facilities { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 22px; margin-bottom: 26px; }
.room-facilities li { position: relative; padding-left: 22px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.room-facilities li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 1.5px; background: var(--teal); }

/* FAQ accordion */
.faq { max-width: 820px; margin: 0 auto; }
.faq-head { text-align: center; margin-bottom: 30px; }
.faq-head h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); color: var(--navy); margin-top: 8px; }
.faq-item { border: 1px solid var(--rule); border-radius: 12px; background: #fff; margin-bottom: 12px; overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: var(--rule-strong); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px;
  font-weight: 600; font-size: 15.5px; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--copper); font-weight: 400; line-height: 1; flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--teal-deep); }
.faq-a { padding: 0 22px 20px; color: var(--ink-soft); line-height: 1.7; font-size: 14.5px; }

@media (max-width: 820px) {
  .room { grid-template-columns: 1fr; gap: 22px; }
  .room-list .room:nth-child(even) .room-media { order: 0; }
  .room-facilities { grid-template-columns: 1fr; }
}

/* ─────────────── Alur Rawat Jalan (flow steps) ─────────────── */
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flow-step { position: relative; }
.flow-num {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--serif); font-style: italic; font-size: 21px;
  color: #fff; background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(13,155,110,0.22);
}
.flow-step h3 { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--navy); margin-bottom: 8px; line-height: 1.2; }
.flow-step p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: 58px; right: -12px; height: 1px;
  background: var(--rule-strong);
}
@media (max-width: 820px) { .flow-steps { grid-template-columns: 1fr 1fr; gap: 30px 24px; } .flow-step:not(:last-child)::after { display: none; } }
@media (max-width: 460px) { .flow-steps { grid-template-columns: 1fr; } }

/* ─────────────── Banner darurat (IGD) ─────────────── */
.emergency-band { background: var(--navy-deep); color: #fff; }
.eb-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; flex-wrap: wrap; }
.eb-left { display: flex; align-items: center; gap: 16px; }
.eb-pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--teal-soft); animation: pulse 2s infinite; flex-shrink: 0; }
.eb-text strong { display: block; font-size: 17px; color: #fff; }
.eb-text span { font-size: 13.5px; color: rgba(255,255,255,0.72); }
.eb-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa-green); color: #fff;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  box-shadow: 0 8px 22px rgba(37,211,102,0.3); transition: background .2s, transform .15s;
}
.eb-wa:hover { background: #1ebe5d; transform: translateY(-1px); }
@media (max-width: 640px) { .eb-inner { flex-direction: column; align-items: flex-start; } .eb-actions { width: 100%; } .eb-wa { width: 100%; justify-content: center; } }

/* ─────────────── Galeri fasilitas ─────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gallery-item {
  position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--teal-deep));
}
.gallery-item::after { content: ""; position: absolute; inset: 0; background: url("../assets/images/logo-watermark.png") center / 52px no-repeat; opacity: 0.12; }
.gallery-item .card-media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .4s ease; }
.gallery-item:hover .card-media-img { transform: scale(1.05); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* IGD — dua kolom: kiri "Kapan harus ke IGD" (triase), kanan "Fasilitas IGD" (galeri) */
.igd-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: start; }
.igd-split .section-head { margin-bottom: 22px; }
.igd-split-side .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.igd-split-side .gallery-item { aspect-ratio: 16 / 10; }
@media (max-width: 900px) {
  .igd-split { grid-template-columns: 1fr; gap: 30px; }
  .igd-split-side .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .igd-split-side .gallery-item { aspect-ratio: 1 / 1; }
}

/* ─────────────── Rawat Inap — tab kelas kamar (interaktif) ─────────────── */
.room-tabs {
  display: inline-flex;
  gap: 6px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 36px;
}
.room-tab {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 9px 24px;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: color .2s, background .2s, box-shadow .2s;
}
.room-tab:hover { color: var(--navy); }
.room-tab.is-active {
  color: var(--navy);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.room-panel[hidden] { display: none !important; }

/* ─────────────── svc-card varian baris horizontal (IGD info) ─────────────── */
.svc-grid--rows { grid-template-columns: 1fr; gap: 10px; }
.svc-grid--rows .svc-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 22px;
  padding: 15px 22px;
}
.svc-grid--rows .svc-head { grid-column: 1; grid-row: 1 / 3; margin: 0; display: block; }
.svc-grid--rows .svc-num { font-size: 22px; }
.svc-grid--rows .svc-icon { display: none; }
.svc-grid--rows .svc-card h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 16px; }
.svc-grid--rows .svc-card p { grid-column: 2; grid-row: 2; margin: 3px 0 0; font-size: 13.5px; }
.svc-grid--rows .svc-tags { grid-column: 3; grid-row: 1 / 3; border-top: 0; padding-top: 0; flex-wrap: nowrap; }
@media (max-width: 560px) {
  .svc-grid--rows .svc-card { grid-template-columns: 40px minmax(0,1fr); }
  .svc-grid--rows .svc-tags { grid-column: 1 / 3; grid-row: 3; margin-top: 10px; flex-wrap: wrap; }
}

.room-panels { margin-bottom: 46px; }

/* ─────────────── Rawat Inap — menu kiri + galeri kanan (Sansani-style) ─────────────── */
.room-showcase { display: grid; grid-template-columns: 270px 1fr; gap: 34px; align-items: start; }
.room-menu { display: flex; flex-direction: column; border-left: 2px solid var(--rule); }
.room-menu-item {
  text-align: left; background: none; border: none; cursor: pointer;
  padding: 15px 18px; margin-left: -2px; border-left: 2px solid transparent;
  transition: border-color .2s, background .2s;
}
.room-menu-item strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--navy); line-height: 1.2; }
.room-menu-item span { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; }
.room-menu-item:hover { background: var(--paper-2); }
.room-menu-item.is-active { border-left-color: var(--teal); background: var(--teal-pale); }
.room-menu-item.is-active strong { color: var(--teal-deep); }

.room-panel { display: block; }
.room-panel[hidden] { display: none !important; }
.room-main {
  position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-deep) 130%);
  box-shadow: var(--shadow-md);
}
.room-main::after { content: ""; position: absolute; inset: 0; background: url("../assets/images/logo-watermark.png") center / 120px no-repeat; opacity: 0.12; }
.room-main-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: opacity .3s; }
.room-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.room-thumb {
  position: relative; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; cursor: pointer; padding: 0;
  border: 2px solid transparent; background: linear-gradient(135deg, var(--navy), var(--teal-deep));
}
.room-thumb::after { content: ""; position: absolute; inset: 0; background: url("../assets/images/logo-watermark.png") center / 44px no-repeat; opacity: 0.12; }
.room-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.room-thumb.is-active { border-color: var(--teal); }
.room-detail { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.room-detail .room-facilities { flex: 1 1 320px; margin: 0; }
.room-detail .btn { flex-shrink: 0; }

@media (max-width: 820px) {
  .room-showcase { grid-template-columns: 1fr; gap: 16px; }
  .room-menu { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 2px solid var(--rule); }
  .room-menu-item { margin-left: 0; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; padding: 10px 16px; }
  .room-menu-item.is-active { border-left-color: transparent; border-bottom-color: var(--teal); }
  .room-menu-item span { display: none; }
}

/* ─────────────── Jadwal Dokter — filter spesialisasi ─────────────── */
.doc-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.doc-filter-btn {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  color: var(--ink-soft); background: #fff;
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 8px 18px; cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.doc-filter-btn:hover { color: var(--navy); border-color: var(--rule-strong); }
.doc-filter-btn.is-active { color: #fff; background: var(--teal-deep); border-color: var(--teal-deep); }
.doc-card[hidden] { display: none !important; }
.doc-card.is-today { border-color: var(--teal-soft); box-shadow: 0 0 0 1px var(--teal-soft); }

/* ── Rapatkan jarak setelah banner darurat IGD ── */
.emergency-band + .section { padding-top: 18px; }
.emergency-band + .section .callout:first-of-type { margin-top: 0; }

/* ─────────────── Layanan — menu poli + galeri (reuse room-showcase) ─────────────── */
.poli-detail { margin-top: 20px; }
.poli-detail h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); color: var(--navy); margin-bottom: 10px; line-height: 1.15; }
.poli-detail p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 16px; max-width: 60ch; }
.poli-detail .svc-tags { border-top: 0; padding-top: 0; }
