/* ==========================================================
   Tampilan per halaman (view) + tab + bottom nav
   ========================================================== */

/* Header disederhanakan: topbar & hamburger tidak dipakai */
.topbar, .nav-toggle { display: none !important; }
.main-nav ul a.is-active { color: var(--heading); box-shadow: inset 0 -2px 0 var(--cta); font-weight: 600; }
.header-branch {
  display: none; align-items: center; gap: .35rem; min-height: 40px; padding: 0 .9rem;
  border-radius: var(--pill); background: var(--surface-tint); color: var(--heading);
  border: 1.5px solid var(--line); font-weight: 600; font-size: var(--fs-sm); text-decoration: none;
}
.header-branch.is-active { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }

@media (max-width: 1040px) {
  .main-nav { display: none !important; }
  .header-branch { display: inline-flex; }
}

/* ---------- View ---------- */
main { min-height: calc(100svh - var(--header-h) - 140px); outline: none; }
.view[hidden], .panel[hidden] { display: none !important; }
.is-entering { animation: view-in .28s cubic-bezier(.2,.7,.2,1); }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .is-entering { animation: none; } }

.view-head {
  background-color: var(--surface-hero);
  padding-top: clamp(1.75rem, 1.2rem + 2vw, 3rem);
}
.view-head h1 { font-size: var(--fs-xl); margin-bottom: .4em; }
.view-jp { font-family: var(--font-display); color: var(--blue-500); font-weight: 700; letter-spacing: .08em; margin-bottom: .3rem; font-size: var(--fs-sm); }
.view-sub { color: var(--text-muted); margin: 0; padding-bottom: 1.75rem; }
.view-body { padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(2.5rem, 2rem + 2vw, 4rem); }
.lead { font-size: var(--fs-md); color: var(--text); }

/* ---------- Tabs (segmen) ---------- */
.tabs {
  display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none;
  margin-top: 1rem; margin-inline: -1.25rem; padding-inline: 1.25rem;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: .8rem 1.1rem; border-radius: 12px 12px 0 0;
  color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
  white-space: nowrap;
}
.tabs a:hover { color: var(--heading); }
.tabs a.is-active { background: var(--surface); color: var(--heading); box-shadow: inset 0 3px 0 var(--cta); }

/* ---------- Beranda ---------- */
[data-view="beranda"] .hero { padding-bottom: clamp(5rem, 4rem + 3vw, 6.5rem); }
.home-panel { margin-top: clamp(-4rem, -3rem - 2vw, -3rem); position: relative; z-index: 2; padding-bottom: 3rem; display: grid; gap: var(--gap); }
.quick-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .quick-grid { grid-template-columns: repeat(4, 1fr); } }
.quick-card {
  display: flex; flex-direction: column; gap: .3rem; height: 100%;
  padding: 1.25rem; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: border-color .15s, transform .15s;
}
.quick-card:hover { border-color: var(--blue-500); transform: translateY(-2px); }
.quick-card strong { font-family: var(--font-display); font-size: var(--fs-md); color: var(--heading); }
.quick-card span:last-child { font-size: var(--fs-sm); color: var(--text-muted); }
.quick-jp { font-family: var(--font-display); font-size: var(--fs-xs); color: var(--blue-500); font-weight: 700; }
.quick-card--dark { background: var(--blue-700); border-color: var(--blue-700); }
.quick-card--dark strong { color: #fff; }
.quick-card--dark span:last-child { color: var(--on-strong-muted); }
.quick-card--dark .quick-jp { color: var(--blue-200); }

/* ---------- Isi panel ---------- */
.profile-grid { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .profile-grid { grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; } }
.vm-grid { margin-top: 0; }
.vm-card h2, .program-card h2, .price-card h2, .jobfield h2, .facility h2 { font-size: var(--fs-lg); margin-bottom: .4em; }
.steps h2 { font-size: var(--fs-base); margin-bottom: .2em; }

.legal-grid { margin: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.legal-grid div { padding: 1.25rem; border-radius: var(--radius); background: var(--surface-tint); border-left: 4px solid var(--blue-500); }
.legal-grid dt { font-size: var(--fs-xs); color: var(--text-muted); }
.legal-grid dd { margin: .2rem 0 0; font-weight: 700; color: var(--heading); word-break: break-word; }

.org-list { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .org-list { grid-template-columns: repeat(4, 1fr); } }
.org-list .org-top { grid-column: 1 / -1; justify-self: center; min-width: min(100%, 260px); background: var(--blue-700); border-color: var(--blue-700); }
.org-list .org-top span { color: var(--on-strong-muted); }
.org-list .org-top strong { color: #fff; }

.price-grid { display: grid; gap: var(--gap); }
@media (min-width: 760px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.price-card .price { margin: 0; }
.price-card--green { background: var(--blue-700); color: #fff; box-shadow: none; }
.price-card--green h2 { color: #fff; }
.price-card--green .check-list li { color: var(--on-strong-muted); }
.price-card--green .check-list li::before { border-color: var(--blue-200); }
.finance-card { margin-top: var(--gap); display: grid; gap: 1.25rem; align-items: center; padding: 1.5rem; border-radius: var(--radius); background: var(--gray-900); color: #fff; border-left: 6px solid var(--cta); }
@media (min-width: 900px) { .finance-card { grid-template-columns: 1.2fr 1fr; padding: 2rem; } }
.finance-card h2 { color: #fff; font-size: var(--fs-lg); margin-bottom: .3em; }
.finance-card p { color: #BDC1C6; margin: 0; }

.gallery { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.activity-grid { align-items: start; }

.empty-state { text-align: center; padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) 1.5rem; border: 2px dashed var(--line); border-radius: var(--radius); }
.empty-state h2 { font-size: var(--fs-lg); }
.empty-state p { color: var(--text-muted); max-width: 46ch; margin-inline: auto; margin-bottom: 1.25rem; }

/* ---------- Footer ringkas ---------- */
.site-footer { padding-block: 1.75rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.footer-inner p { margin: 0; flex: 1; min-width: 240px; }
.footer-inner .brand-logo { height: 52px; width: auto; background: #fff; border-radius: var(--radius-sm); padding: 5px 7px; }
.footer-inner .footer-copy { flex: none; }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav { display: none; }
@media (max-width: 1040px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { padding-bottom: 1.75rem; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: var(--surface); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -6px 20px -12px rgb(60 64 67 / .3);
  }
  .bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
    min-height: 64px; text-decoration: none; color: var(--text-muted); font-size: .7rem; font-weight: 600;
  }
  .bottom-nav svg { width: 22px; height: 22px; fill: currentColor; }
  .bottom-nav a.is-active { color: var(--blue-700); }
  .bottom-nav a.is-active svg { fill: var(--blue-700); }
  .bottom-nav a.is-active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--cta); }
  .bottom-nav a { position: relative; }
  .fab-wa { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Penyesuaian mobile ---------- */
@media (max-width: 640px) {
  .brand-text { display: none; }
  .brand-logo { height: 48px; }
  [data-view="beranda"] .hero { padding-top: 1.75rem; }
  .hero-grid { gap: 1.5rem; }
  .hero-actions { margin: 1.25rem 0 0; }
  .hero-actions .btn { flex: 1; padding: 0 1rem; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .hinomaru { width: 56px; top: -12px; right: -6px; border-width: 4px; }
  .branch-strip-card { padding: 1rem; gap: .75rem; }
  .branch-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; width: 100%; }
  .branch-chip { flex-direction: column; justify-content: center; gap: 0; padding: .4rem .25rem; border-radius: var(--radius-sm); min-height: 54px; line-height: 1.25; }
  .quick-card { padding: 1rem; }
  .quick-card strong { font-size: var(--fs-base); }
}
@media (max-width: 640px) {
  .video-frame { aspect-ratio: 4 / 5; max-width: 300px; }
  .activity-list { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .activity-list li { padding: .6rem .75rem; font-size: var(--fs-xs); }
}
