/* ==========================================================================
   Pinegate Residency — page-scoped theme
   Semua peraturan di sini hanya terpakai pada body.theme-pinegate.
   Palet: hijau pain (logo + signage projek), kertas kraf, ochre dan coklat
   tanah liat daripada brosur rasmi Pinegate Residency.
   ========================================================================== */

body.theme-pinegate {
  --paper: #f4eedf;
  --paper-2: #fbf7ec;
  --paper-3: #e9e0cc;
  --ink: #24301f;
  --ink-soft: #4b5140;
  --muted: #656a57;
  --forest: #14512e;
  --forest-2: #1c6b3c;
  --forest-3: #0b2f1b;
  --sage: #e2e7d3;
  --sage-2: #ccd8b8;
  --clay: #744a2b;
  --clay-soft: #f0dcc2;
  --gold: #c8a369;
  --line: rgba(36, 48, 31, 0.14);
  --line-soft: rgba(36, 48, 31, 0.08);
  --shadow: 0 24px 60px -30px rgba(11, 47, 27, 0.35);
  --shadow-sm: 0 10px 30px -18px rgba(11, 47, 27, 0.3);
}

/* ---------- header / topbar ---------- */
.theme-pinegate .topbar { background: #07210f; color: rgba(244, 238, 223, 0.76); }
.theme-pinegate .site-header { background: rgba(11, 47, 27, 0.96); border-bottom-color: rgba(195, 154, 77, 0.14); }
.theme-pinegate .site-header.is-scrolled {
  background: #0b2f1b;
  border-color: rgba(195, 154, 77, 0.22);
  box-shadow: 0 10px 30px -26px rgba(0, 0, 0, 0.6);
}
.theme-pinegate .brand-text strong { color: var(--paper); }
.theme-pinegate .brand-text span { color: rgba(244, 238, 223, 0.55); }
.theme-pinegate .brand-mark { background: var(--paper); color: var(--forest); }
.theme-pinegate .brand-mark .bm-j { color: var(--clay); }
.theme-pinegate .nav a { color: rgba(244, 238, 223, 0.78); }
.theme-pinegate .nav a:hover,
.theme-pinegate .nav a.is-active { color: var(--gold); }
/* Garis bawah nav hanya untuk desktop — menu mobile guna butang panah global. */
@media (min-width: 861px) {
  .theme-pinegate .nav a::after { background: var(--gold); }
}
.theme-pinegate .lang-switch { border-color: rgba(244, 238, 223, 0.28); }
.theme-pinegate .lang-switch a { color: rgba(244, 238, 223, 0.72); }
.theme-pinegate .lang-switch a.is-current { background: var(--paper); color: var(--forest); }
.theme-pinegate .nav-toggle { border-color: rgba(244, 238, 223, 0.28); }
.theme-pinegate .nav-toggle span { background: var(--paper); }

/* ---------- section accents ---------- */
.theme-pinegate .hero-glow {
  background: radial-gradient(circle at 60% 40%, rgba(195, 154, 77, 0.2), transparent 62%);
}
.theme-pinegate .section-sage { background: var(--sage); }
.theme-pinegate .site-footer { background: #0b2f1b; }
.theme-pinegate .cta-section { background: #0d3a22; }
.theme-pinegate .cta-section em,
.theme-pinegate .dark-section em { background-image: linear-gradient(rgba(195, 154, 77, 0.34), rgba(195, 154, 77, 0.34)); }
.theme-pinegate .dark-section .honest-num { color: var(--gold); }
.theme-pinegate .agent-quote { border-left-color: var(--gold); }
.theme-pinegate .footer-col h3 { color: var(--gold); }
.theme-pinegate .wa-float,
.theme-pinegate .to-top {
  background: var(--forest);
  box-shadow: 0 18px 40px -18px rgba(11, 47, 27, 0.5);
}
.theme-pinegate .wa-float:hover,
.theme-pinegate .to-top:hover { background: var(--forest-2); }
.theme-pinegate .facility-band div {
  background: linear-gradient(transparent, rgba(11, 47, 27, 0.88));
}
.theme-pinegate .plan-frame { background: #fff; }
.theme-pinegate .plan-badge { background: var(--forest); }
.theme-pinegate .map-card { background: #fff8ea; }

/* ---------- subsection pelan lantai dalam Unit ---------- */
/* Diskop pada page ini supaya style.css tidak perlu diubah. */
.theme-pinegate .unit-combined .unit-detail {
  margin-top: var(--section-space);
  scroll-margin-top: 96px;
}
.theme-pinegate .unit-combined .unit-detail > .container {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.theme-pinegate .unit-combined .unit-detail-title {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 16px;
}
@media (max-width: 620px) {
  .theme-pinegate .unit-combined .unit-detail-title { font-size: 22px; }
  .theme-pinegate .unit-combined .unit-detail { scroll-margin-top: 78px; }
  .theme-pinegate .unit-combined .unit-detail > .container { padding-top: 24px; }
}

/* ---------- video ---------- */
.pg-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pg-videos figure { margin: 0; }
.pg-videos .video-embed {
  max-width: none;
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #0b2f1b;
  box-shadow: var(--shadow-sm);
}
.pg-videos figcaption {
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.pg-videos figcaption span {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .pg-videos { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- table (harga ikut jenis unit) ---------- */
.pg-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
}
.pg-table-wrap .factsheet { min-width: 500px; }
.pg-scroll-hint { display: none; }
.pg-price-table thead th {
  width: auto;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pg-price-table tbody th { width: 24%; }
.pg-price-table tbody td:last-child { white-space: nowrap; }
.pg-price-table tr:last-child th,
.pg-price-table tr:last-child td { border-bottom: 0; }

/* ---------- plan tabs ---------- */
.theme-pinegate .plan-tabs { flex-wrap: wrap; }

/* ---------- hint for the scrollable price table ---------- */
@media (max-width: 620px) {
  .pg-scroll-hint {
    display: block;
    margin-bottom: 10px;
    font-size: 0.74rem;
    color: var(--muted);
  }
}

/* ---------- mobile nav ---------- */
/* Menu mobile menggunakan drawer global (krim + nombor) daripada style.css,
   jadi tiada override latar diperlukan di sini. */

/* ---------- print ---------- */
@media print {
  .theme-pinegate .site-header,
  .theme-pinegate .topbar { background: #fff; color: #000; }
}
