/* ============================================================
   PAGE: Partnership — B2B / kerja sama
   Art direction: confident commercial, light bg, brand grid.
============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.pr-hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: clamp(6rem, 13vw, 9.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.pr-hero-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-h);
  font-size: clamp(6rem, 19vw, 16rem);
  font-weight: 700;
  color: var(--b1);
  opacity: .045;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
[data-theme="dark"] .pr-hero-bg { opacity: .07; }

.pr-hero-in { position: relative; max-width: 720px; }
.pr-hero .eyebrow { margin-bottom: 1.1rem; }
.pr-h1 {
  font-family: var(--f-h);
  font-size: clamp(2.8rem, 7.2vw, 5.4rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.02em;
  color: var(--ink2);
  margin: 0 0 1.3rem;
}
.pr-lead {
  font-size: clamp(1rem, 1.65vw, 1.18rem);
  color: var(--muted);
  line-height: 1.74;
  max-width: 54ch;
  margin: 0 0 2.2rem;
}
.pr-hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── JENIS KERJA SAMA ────────────────────────────────────── */
.pr-types-sec {
  padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); /* keep .container side gutters */
}
.pr-types-sec .eyebrow { margin-bottom: 1rem; }
.pr-types-h2 {
  font-family: var(--f-h);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 700;
  color: var(--ink2);
  margin: 0 0 clamp(2.2rem, 4.5vw, 3.5rem);
  max-width: 22ch;
  line-height: 1.12;
}

.pr-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.pr-type {
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.9rem 1.9rem 1.8rem;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.pr-type:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 52px rgba(38,66,132,.15);
  border-color: transparent;
}
/* gradient sheen + growing bottom bar */
.pr-type::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(38,66,132,.06), rgba(31,195,243,.05));
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.pr-type:hover::before { opacity: 1; }
.pr-type::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s var(--ease);
}
.pr-type:hover::after { transform: scaleX(1); }

.pr-type .pi {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(38,66,132,.08);
  color: var(--b2);
  margin-bottom: 1.2rem;
  transition: transform .4s var(--ease), background .35s, color .35s, border-radius .35s;
}
.pr-type:hover .pi {
  background: var(--grad);
  color: #fff;
  transform: rotate(-8deg) scale(1.08);
  border-radius: 16px;
}
[data-theme="dark"] .pr-type .pi { background: rgba(33,152,206,.14); color: var(--cy); }
.pr-type .pi svg { width: 24px; height: 24px; }

.pr-type h3 {
  position: relative;
  z-index: 1;
  font-family: var(--f-h);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink2);
  margin: 0 0 .55rem;
}
.pr-type p {
  position: relative;
  z-index: 1;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
/* arrow reveals on hover */
.pr-type .parrow {
  position: absolute;
  top: 1.9rem;
  right: 1.9rem;
  z-index: 1;
  color: var(--b3);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.pr-type:hover .parrow { opacity: 1; transform: none; }
.pr-type .parrow svg { width: 18px; height: 18px; }

/* ── KLIEN KAMI (logo marquee) ───────────────────────────── */
.pr-clients-sec {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  overflow: hidden;
}
.pr-clients-head {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.pr-clients-head .eyebrow { display: block; margin-bottom: .7rem; }
.pr-clients-head h2 {
  font-family: var(--f-h);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--ink2);
  margin: 0;
}

/* multi-row marquee (jumlah baris diatur di JS: const ROWS) */
.pr-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(.7rem, 2vw, 1.1rem);
}
.pr-marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.pr-mtrack {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  animation: prMarquee 38s linear infinite;
}
.pr-marquee.rev .pr-mtrack { animation-direction: reverse; }
.pr-rows:hover .pr-mtrack { animation-play-state: paused; }
@keyframes prMarquee { to { transform: translateX(-50%); } }

.pr-client {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 178px;
  height: 80px;
  margin-right: clamp(1.2rem, 3vw, 2.4rem);
  padding: 0 1.5rem;
  border-radius: 14px;
  background: var(--bg2);
  border: 1px solid var(--line);
  font-family: var(--f-h);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
  transition: color .3s, border-color .3s, transform .3s var(--ease);
}
.pr-client:hover {
  color: var(--b2);
  border-color: var(--b3);
  transform: translateY(-3px);
}
.pr-client img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  opacity: .85;
  transition: opacity .3s;
}
.pr-client:hover img { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .pr-mtrack { animation: none; }
}

/* ── POLAROID WALL (section B) ───────────────────────────── */
.ps-polaroid-sec {
  padding-block: clamp(2rem, 4vw, 3.5rem);
  background: var(--bg1);
}
.ps-polaroid-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.ps-polaroid-head .eyebrow { display: block; margin-bottom: .7rem; }
.ps-polaroid-head h2 {
  font-family: var(--f-h);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 700;
  color: var(--ink2);
  margin: 0;
  line-height: 1.12;
}

.ps-polaroid-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 5vw, 4rem);
}

.ps-card {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  background: #fff;
  padding: 12px 12px 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .22);
  transform: rotate(var(--rot, 0deg));
  transition: transform .3s ease, box-shadow .3s ease, z-index 0s;
  cursor: pointer;
  will-change: transform;
}
.ps-card:hover {
  transform: rotate(0deg) scale(1.06) translateY(-8px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, .32);
  z-index: 10;
}
.ps-card img {
  width: 240px;
  height: 180px;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.08);
  transition: filter .45s ease;
}
.ps-card:hover img {
  filter: grayscale(0%) contrast(1);
}
.ps-caption {
  display: block;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: .95rem;
  font-weight: 600;
  color: #333;
  padding-top: 8px;
  line-height: 1.3;
}

[data-theme="dark"] .ps-card {
  background: #fff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
}

/* polaroid bisa diklik → kursor zoom-in */
.ps-card { cursor: zoom-in; }

/* ── LIGHTBOX (polaroid diperbesar saat diklik) ──────────── */
.ps-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  background: rgba(4, 8, 20, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
  cursor: zoom-out;
}
.ps-lightbox.open { opacity: 1; visibility: visible; }

.ps-lb-fig {
  position: relative;
  margin: 0;
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  background: #fff;
  padding: 14px 14px 0;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  transform: scale(.9);
  transition: transform .4s var(--ease);
  cursor: default;
}
.ps-lightbox.open .ps-lb-fig { transform: scale(1); }

.ps-lb-img {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 70px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.ps-lb-cap {
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  font-weight: 600;
  color: #222;
  padding: 10px 6px 16px;
}

.ps-lb-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
  transition: transform .25s var(--ease), background .25s;
}
.ps-lb-close:hover { transform: scale(1.1) rotate(90deg); background: var(--cy); }

@media (max-width: 600px) {
  .ps-lb-close { top: -10px; right: -10px; width: 38px; height: 38px; font-size: 1.5rem; }
  .ps-lb-cap { font-size: 1.1rem; }
}

/* CTA → komponen .cta-band di shared.css */

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 920px) {
  .pr-types { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  /* polaroid: 2 kolom, kartu menyesuaikan lebar layar */
  .ps-polaroid-wall {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 1.5rem 1rem;
  }
  .ps-card { width: 100%; }
  .ps-card img { width: 100%; height: 130px; }
  .pr-types { grid-template-columns: 1fr; }
  .pr-hero { min-height: auto; }
  .pr-hero-cta { width: 100%; }
  .pr-hero-cta .btn { flex: 1; justify-content: center; }
  /* smaller logo chips so 4 rows stay compact and readable on phones */
  .pr-rows { gap: .6rem; }
  .pr-client { min-width: 132px; height: 64px; font-size: .95rem;
               margin-right: 1rem; padding: 0 1.1rem; }
  .pr-client img { max-height: 48px; }
}
