/* ═══════════════════════════════════════════════════════════════
   PPQ — Responsive System
   Breakpoints: 320 · 375 · 425 · 576 · 768 · 992 · 1200 · 1400 · 1600
   Mobile-first, layout reflow (bukan sekadar mengecilkan)
   ═══════════════════════════════════════════════════════════════ */

/* ── BASE (320px+) ────────────────────────────────────────────── */

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

.container {
  width: min(94%, 100%);
  max-width: 100rem;
  padding-inline: clamp(0.75rem, 3vw, 1.5rem);
}

/* Hero */
.hero {
  min-height: 100svh;
  height: auto;
  padding: clamp(6rem, 18vw, 7.5rem) 0 clamp(8rem, 22vw, 11.25rem);
}

.scroll-curve {
  width: min(67.3125rem, 140vw);
  height: clamp(16rem, 40vw, 67.3125rem);
  bottom: clamp(-12rem, -18vw, -16.25rem);
}

/* Section spacing */
.profil,
.sejarah,
.struktur {
  padding-block: clamp(4rem, 10vw, 8.75rem);
}

.section-heading {
  margin-bottom: clamp(2.5rem, 6vw, 5.625rem);
}

/* Profil layout — stacked until desktop besar (≥1200px) */
.profil-about {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3.75rem);
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.profil-text {
  order: 2;
  padding: 1.25rem 0;
}

.profil-image {
  order: 1;
}

.profil-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 7 / 5;
  object-fit: cover;
}

.profil-quote {
  margin-block: clamp(2rem, 5vw, 2.8125rem);
  padding-inline: clamp(0.5rem, 3vw, 1rem);
}

.aktivitas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2.375rem);
}

/* Sejarah */
.sejarah-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 1.25rem);
}

.main-image,
.bottom-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Struktur */
.slide-wrap {
  padding: clamp(2.5rem, 6vw, 5rem) 0 0.625rem;
}

.deko {
  display: none;
}

.foto-card {
  width: min(48.75rem, 100%);
}

.foto-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
}

.caption {
  font-size: clamp(1.25rem, 4vw, 2.0625rem);
  padding-inline: 0.5rem;
}

.controls {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
}

.dot {
    width: 3px;
    height: 3px;
    padding: 0.5rem;
    box-sizing: content-box;
  }

/* Proker */
.proker {
  height: clamp(36rem, 85vh, 94rem);
  min-height: 74rem;
}

.pk-details {
  max-width: 100%;
  padding: 0 clamp(1rem, 4vw, 2.75rem);
}

.pk-desc {
  font-size: clamp(1rem, 2.5vw, 1.75rem);
}

.pk-gallery {
  flex-wrap: wrap;
}

.pk-gallery img {
  width: clamp(5rem, 22vw, 12.5rem);
  height: clamp(3.75rem, 14vw, 7.5rem);
}

/* Footer */
.ft3-gallery-item img {
  width: 100%;
  min-height: clamp(10rem, 38vw, 16rem);
  object-fit: cover;
  object-position: center top;
}

.ft3-main {
  display: grid;
  grid-template-columns: 1fr;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 4vw, 3.75rem) clamp(1rem, 3vw, 1.5rem);
  gap: 1.25rem;
}

.ft3-col {
  padding: 0;
  border: none !important;
}

.ft3-col + .ft3-col {
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: none;
}

.ft3-col-logo {
  order: -1;
}

.ft3-logo-wrap {
  width: clamp(8rem, 30vw, 15.625rem);
  height: clamp(8rem, 30vw, 15.625rem);
  margin: 0 auto;
}

.ft3-heading {
  font-size: clamp(1rem, 3vw, 1.375rem);
}

.ft3-bottom {
  padding: 0.875rem clamp(1rem, 4vw, 3.75rem);
}

/* Navbar mobile base */
.menu-toggle{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:6px;

    width:44px;
    height:44px;

    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.2);
    border-radius:12px;

    cursor:pointer;
    transition:.3s;
}

.menu-toggle span{
    width:20px;
    height:2px;
    background:#fff;
    border-radius:2px;

    transition:
        transform .3s ease,
        opacity .3s ease;
}

.menu-toggle.active span:nth-child(1){
    transform:translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2){
    opacity:0;
}

.menu-toggle.active span:nth-child(3){
    transform:translateY(-8px) rotate(-45deg);
}

/* ── 375px+ ───────────────────────────────────────────────────── */

@media (min-width: 23.4375em) {
  .aktivitas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── 425px+ ───────────────────────────────────────────────────── */

@media (min-width: 26.5625em) {
  .hero-title {
    letter-spacing: 0.03em;
  }
}

/* ── 576px+ ───────────────────────────────────────────────────── */

@media (min-width: 36em) {
  .logo {
    width: 3.75rem;
    height: 3.75rem;
  }

  .aktivitas-grid {
    gap: 1.75rem;
  }

  .controls {
    gap: 0.75rem;
  }

  .btn-susunan {
    font-size: 0.75rem;
    padding: 0.625rem 1.25rem;
  }
}

/* ── 768px+ ───────────────────────────────────────────────────── */

@media (min-width: 48em) {
  .aktivitas-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sejarah-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .deko {
    display: flex;
  }

  .deko-kiri  { left: 2%; }
  .deko-kanan { right: 2%; }

  .ft3-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
  }

  .ft3-col-logo {
    order: 0;
  }

  .ft3-col + .ft3-col {
    padding-top: 0;
    border-top: none;
  }

  .ft3-col:nth-child(2) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 2rem;
  }

  .ft3-col:nth-child(3) {
    grid-column: span 2;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
  }

  .ft3-col:nth-child(4) {
    grid-column: span 2;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
  }

  .pk-details {
    max-width: 55vw;
  }
}

/* ── 992px+ ───────────────────────────────────────────────────── */

@media (min-width: 62em) {
  .logo {
    width: 5rem;
    height: 5rem;
  }

  .nav-action {
    display: block;
  }

  .menu-toggle {
    display: none !important;
  }

  .nav {
    position: static;
    display: flex !important;
    width: auto;
    background: transparent;
    padding: 0;
    border: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
  }

  .ft3-main {
    grid-template-columns: 1.3fr 0.9fr 0.6fr 1.2fr;
    gap: 0;
  }

  .ft3-col {
    padding-right: 2.75rem;
  }

  .ft3-col + .ft3-col {
    padding-left: 2.75rem;
    padding-right: 2.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    padding-top: 0;
  }

  .ft3-col:nth-child(3) {
    grid-column: auto;
    border-top: none;
    padding-top: 0;
  }

  .ft3-col:nth-child(4) {
    grid-column: auto;
    border-top: none;
    padding-top: 0;
    padding-right: 0;
  }

  .pk-details {
    max-width: 40vw;
  }
}

/* ── 1200px+ — Profil dua kolom (desktop) ─────────────────────── */

@media (min-width: 75em) {
  .profil-about {
    grid-template-columns: 1fr minmax(18rem, 43.75rem);
    align-items: center;
  }

  .profil-text {
    order: 1;
    padding-bottom: 3rem;
  }

  .profil-image {
    order: 2;
  }
}

/* ── 1200px+ ──────────────────────────────────────────────────── */

@media (min-width: 75em) {
  .container {
    width: 94%;
  }

  .deko-kiri  { left: 0; }
  .deko-kanan { right: 0; }

  .deko-garis {
    height: 7.5rem;
  }
}

/* ── 1400px+ ──────────────────────────────────────────────────── */

@media (min-width: 87.5em) {
  .container {
    max-width: 87.5rem;
  }

  .scroll-curve {
    width: min(67.3125rem, 110vw);
  }
}

/* ── 1600px+ ──────────────────────────────────────────────────── */

@media (min-width: 100em) {
  .container {
    max-width: 100rem;
  }
}

/* ── MOBILE NAV (max 991px) ─────────────────────────────────── */

@media (max-width: 61.9375em) {
  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(8, 30, 59, 0.92);
    backdrop-filter: blur(1.25rem);
    -webkit-backdrop-filter: blur(1.25rem);
    padding: 1.25rem 1.5rem;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-0.5rem);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
    pointer-events: none;
  }

  .nav.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-link {
    display: block;
    padding: 0.875rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    min-height: 2.75rem;
    line-height: 1.4;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-link::after {
    display: none;
  }

  .nav-action {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar {
    position: relative;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
}

/* ── NARROW MOBILE FIXES (max 374px) ────────────────────────── */

@media (max-width: 23.4374em) {
  .hero-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
    letter-spacing: 0.02em;
  }

  .hero-description {
    font-size: clamp(0.875rem, 3.5vw, 1rem);
    padding-inline: 0.5rem;
  }

  .aktivitas-grid {
    grid-template-columns: 1fr;
  }

  .btn-nav {
    width: 2.75rem;
    height: 2.75rem;
  }

  .dot {
    width: 10px;
    height: 10px;
  }
}

/* ── PROKER SLIDER (desktop only >1024px) ─────────────────────── */

@media (max-width: 64em) {
  .proker.is-slider-mode {
    height: min(100vh, 52rem);
    min-height: 34rem;
  }
}

@media (min-width: 64.0625em) {
  .pk-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 1fr));
  }
}

/* Tablet portrait — profil quote & aktivitas spacing */
@media (min-width: 48em) and (max-width: 74.9375em) {
  .profil-about {
    gap: clamp(1.75rem, 4vw, 2.5rem);
  }

  .profil-quote {
    margin-block: clamp(2rem, 4vw, 2.5rem);
  }

  .aktivitas-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
  }
}

/* iPad Air / Pro — aktivitas 2 kolom nyaman */
@media (min-width: 51.25em) and (max-width: 74.9375em) {
  .aktivitas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── PROKER legacy compact overrides (slider mode only) ───────── */

@media (max-width: 64em) {
  .proker.is-slider-mode .pk-header {
    padding: clamp(4.5rem, 14vw, 6rem) 1rem 0 !important;
  }

  .proker.is-slider-mode .pk-title {
    font-size: clamp(1.125rem, 3.5vw, 1.75rem) !important;
  }

  .proker.is-slider-mode .pk-deco-line {
    width: clamp(2.5rem, 12vw, 5.625rem);
  }

  .proker.is-slider-mode .pk-deco-star {
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (max-width: 64em) {
  .proker.is-slider-mode.is-compact .pk-details {
    top: auto !important;
    bottom: clamp(3.5rem, 12vw, 5rem);
    left: 0 !important;
    right: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 2.5rem 1.25rem 1rem;
    justify-content: flex-end;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.6) 55%,
      transparent 100%
    );
    transform: none !important;
  }

  .proker.is-slider-mode.is-compact .pk-dept {
    font-size: clamp(0.75rem, 2.5vw, 1rem);
  }

  .proker.is-slider-mode.is-compact .pk-t1,
  .proker.is-slider-mode.is-compact .pk-t2 {
    font-size: clamp(1.125rem, 5vw, 1.75rem) !important;
  }

  .proker.is-slider-mode.is-compact .pk-title-box {
    height: auto;
    overflow: visible;
  }

  .proker.is-slider-mode.is-compact .pk-desc {
    font-size: clamp(0.8125rem, 2.8vw, 1rem) !important;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    margin-bottom: 0.75rem;
  }

  .proker.is-slider-mode.is-compact .pk-gallery {
    display: none;
  }

  .proker.is-slider-mode.is-compact .pk-cta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .proker.is-slider-mode.is-compact .pk-pagination {
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 0.75rem !important;
    width: calc(100% - 2rem);
    justify-content: center;
  }

  .proker.is-slider-mode.is-compact .pk-progress-wrap {
    width: min(12rem, 40vw);
    margin-left: 0.75rem;
  }
}

@media (max-width: 36em) {
  .proker.is-slider-mode {
    height: min(100svh, 48rem);
    min-height: 30rem;
  }

  .proker.is-slider-mode.is-compact .pk-details {
    bottom: clamp(3rem, 14vw, 4.5rem);
    padding: 2rem 1rem 0.75rem;
  }

  .proker.is-slider-mode.is-compact .pk-desc {
    -webkit-line-clamp: 3;
  }
}

/* ── FOOTER MOBILE & TABLET ─────────────────────────────────── */

@media (max-width: 61.9375em) {
  .ft3-gallery-item img {
    min-height: clamp(14rem, 52vw, 22rem);
    max-height: 28rem;
    object-fit: cover;
    object-position: center 20%;
  }

  .ft3-main {
    padding: 1rem 1rem 0.875rem;
    gap: 0.875rem;
  }

  .ft3-col + .ft3-col {
    padding-top: 0.875rem;
  }

  .ft3-heading {
    margin-bottom: 0.75rem;
    font-size: clamp(0.875rem, 3.5vw, 1.125rem);
  }

  .ft3-list {
    gap: 0.375rem;
  }

  .ft3-dev {
    margin-top: 1rem;
    padding-top: 0.875rem;
  }

  .ft3-dev-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
  }

  .ft3-logo-wrap {
    width: clamp(5.5rem, 22vw, 8rem);
    height: clamp(5.5rem, 22vw, 8rem);
  }

  .ft3-social-item {
    padding: 0.5rem 0;
  }

  .ft3-social-name {
    margin-bottom: 0.5rem;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
  }

  .ft3-social-row {
    gap: 0.75rem;
    font-size: 0.875rem;
  }

  .ft3-bottom {
    padding: 0.625rem 1rem;
    font-size: 0.6875rem;
  }
}

/* Profil tablet — card elegan stacked */
@media (max-width: 74.9375em) {
  .profil-about {
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.06);
  }

  .profil-quote {
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: #fafafa;
    border-radius: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.12);
  }
}

/* ── PREVENT HORIZONTAL SCROLL ──────────────────────────────── */

.profil-about,
.sejarah-grid,
.aktivitas-grid,
.slide-wrap,
.ft3-main,
.ft3-gallery,
.pk-grid,
.proker {
  max-width: 100%;
}

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

/* ── TOUCH TARGETS ──────────────────────────────────────────── */

@media (pointer: coarse) {
  .nav-link,
  .ppq-button,
  .btn-nav,
  .btn-susunan,
  .pk-arrow,
  .menu-toggle {
    min-height: 2.75rem;
    min-width: 2.75rem;
  }

  .dot {
    width: 10px;
    height: 10px;
    padding: 0;
    box-sizing: content-box;
  }
}
