/*
 * serumpun-sarawak.css
 * chefjameswon.com — Ecological Luxury Design System
 * Page: Serumpun Sarawak — Page-specific styles only
 * Version: 1.0 — April 2026
 *
 * ENQUEUE VIA functions.php — see DEPLOY-README.md
 *
 * NOTE: The following are NOT in this file because they
 * belong in the global theme stylesheet (already applied
 * site-wide per the CoWork brief):
 *   — :root design tokens
 *   — html, body base styles
 *   — * reset
 *   — .nav / .nav-brand / .nav-section
 *   — footer / footer span
 *   — Google Fonts import
 * ═══════════════════════════════════════════════════════
 */


/* ═══════════════════════════════════════════════════════
   WORDPRESS ADMIN BAR CLEARFIX
   Prevents fixed nav overlapping WP toolbar for logged-in users
   ═══════════════════════════════════════════════════════ */
.admin-bar .nav {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .nav {
    top: 46px;
  }
}

/* Body class scope — prevents styles leaking to other pages */
.page-serumpun-sarawak {
  background: var(--black);
  color: var(--body);
}


/* ═══════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════ */
.sec {
  background: var(--black);
  padding: var(--sec-pad) var(--gutter);
}
.sec__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.sec--dark {
  background: var(--deep);
  padding: var(--sec-pad) var(--gutter);
}
.sec--dark .sec__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.sec--flush {
  padding-left: 0;
  padding-right: 0;
}


/* ═══════════════════════════════════════════════════════
   TYPOGRAPHY — page scope
   ═══════════════════════════════════════════════════════ */
.page-serumpun-sarawak .eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.2rem;
}
.page-serumpun-sarawak h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 9rem);
  line-height: 1.05;
  color: var(--white);
}
.page-serumpun-sarawak h1 em,
.page-serumpun-sarawak h2 em,
.page-serumpun-sarawak h3 em {
  font-style: italic;
  color: var(--gold);
}
.page-serumpun-sarawak h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1.05;
  color: var(--white);
}
.page-serumpun-sarawak h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  color: var(--white);
  margin-bottom: 0.8rem;
}
.page-serumpun-sarawak p {
  margin-bottom: 1.3em;
}
.page-serumpun-sarawak p:last-child {
  margin-bottom: 0;
}
.page-serumpun-sarawak strong {
  font-weight: 700;
  color: var(--white);
}
.page-serumpun-sarawak em {
  font-style: italic;
  color: var(--gold);
}


/* ═══════════════════════════════════════════════════════
   GRID
   ═══════════════════════════════════════════════════════ */
.col-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: start;
}
.col-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(74,94,62,0.2);
}
@media (max-width: 900px) {
  .col-2, .col-3 {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════════════════ */

/* Pullquote */
.pq {
  border-left: 2px solid var(--gold);
  padding-left: 1.8rem;
  margin: 2.5rem 0;
}
.pq p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 1.8vw, 1.9rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--white);
}
.pq cite {
  display: block;
  margin-top: 0.8rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.57rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-sub);
  font-style: normal;
}

/* Statement */
.statement {
  border: 1px solid rgba(74,94,62,0.35);
  background: rgba(22,32,20,0.6);
  padding: clamp(2rem, 4vw, 3.5rem);
  margin: 3rem 0;
}
.statement p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 1.6vw, 1.7rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--white);
}
.statement cite {
  display: block;
  margin-top: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.57rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-sub);
  font-style: normal;
}

/* Cards */
.t-card {
  background: var(--black);
  padding: 2.4rem 2rem;
  transition: background 0.3s ease;
}
.t-card:hover { background: var(--surface); }
.t-card .card-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 400;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.t-card h3 { margin-bottom: 0.6rem; }
.t-card p {
  font-size: 0.92em;
  color: var(--body);
  margin-bottom: 0;
}

/* Divider */
.divider-line {
  border: none;
  border-top: 1px solid rgba(74,94,62,0.4);
  margin: 0;
}

/* Timeline */
.timeline {
  border-left: 1px solid rgba(74,94,62,0.35);
  padding-left: 2.2rem;
  position: relative;
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lichen);
}
.timeline-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
  display: block;
}
.timeline-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  color: var(--white);
  margin-bottom: 0.5rem;
}
.timeline-text { font-size: 0.9em; }

/* Acknowledgements list */
.g-list { list-style: none; }
.g-list li {
  border-bottom: 1px solid rgba(74,94,62,0.2);
  padding: 1rem 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}
.g-list li:first-child { border-top: 1px solid rgba(74,94,62,0.2); }
.g-list .g-term {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 0.1em;
}
.g-list .g-def { font-size: 0.9em; }
@media (max-width: 600px) {
  .g-list li { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* Honours bar */
.honours-bar {
  border-top: 1px solid rgba(74,94,62,0.4);
  border-bottom: 1px solid rgba(74,94,62,0.4);
  padding: clamp(2rem, 4vw, 3.5rem) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}
.honours-bar .honour { text-align: center; }
.honour-divider {
  background: linear-gradient(to bottom, transparent, rgba(74,94,62,0.6), transparent);
  height: 80px;
  justify-self: center;
}
.honour .eyebrow { justify-content: center; display: block; }
.honour h3 {
  font-size: clamp(0.95rem, 1.3vw, 1.3rem);
  margin-bottom: 0.4rem;
  text-align: center;
}
.honour p { font-size: 0.85em; text-align: center; margin: 0; }
@media (max-width: 900px) {
  .honours-bar { grid-template-columns: 1fr; }
  .honour-divider { display: none; }
}


/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,12,8,0.96) 0%,
    rgba(8,12,8,0.6) 40%,
    rgba(8,12,8,0.2) 80%,
    rgba(8,12,8,0.35) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
}


/* ═══════════════════════════════════════════════════════
   MEDIA COMPONENTS
   ═══════════════════════════════════════════════════════ */

/* Image placeholder / container */
.img-ph {
  background: var(--surface);
  width: 100%;
  aspect-ratio: 16/10;
  display: block;
  overflow: hidden;
  position: relative;
}
.img-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease;
}
.img-ph:hover img { transform: scale(1.03); }
.img-ph--tall { aspect-ratio: 3/4; }

/* Full-bleed image strip */
.img-strip {
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  position: relative;
}
.img-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.img-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,12,8,0.3), rgba(8,12,8,0.5));
}
@media (max-width: 768px) {
  .img-strip { aspect-ratio: 16/9; }
}

/* Video embed */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface);
  overflow: hidden;
}
.video-wrap iframe,
.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Gallery 3-image asymmetric grid */
.gallery-3 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 3px;
}
.gallery-3 .gallery-main { grid-row: 1 / 3; }
.gallery-3 .img-ph { aspect-ratio: 4/3; }
.gallery-3 .gallery-main .img-ph { aspect-ratio: unset; height: 100%; }
@media (max-width: 768px) {
  .gallery-3 { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-3 .gallery-main { grid-row: auto; }
  .gallery-3 .gallery-main .img-ph { aspect-ratio: 16/9; height: auto; }
}

/* Mentee portrait grid */
.mentee-portraits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 3rem;
}
.mentee-portrait .img-ph { aspect-ratio: 3/4; }
.mentee-portrait-name {
  background: var(--surface);
  padding: 1.2rem 1.5rem 1.5rem;
}
.mentee-portrait-name h3 {
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  margin-bottom: 0.3rem;
}
.mentee-portrait-name .role {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.57rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-sub);
}
@media (max-width: 768px) {
  .mentee-portraits { grid-template-columns: 1fr; }
}

/* Image caption */
.img-caption {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.57rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-sub);
  margin-top: 0.9rem;
  display: block;
}


/* ═══════════════════════════════════════════════════════
   REVEAL ANIMATION — .rv / .rv.on
   Matches cuisine-philosophy-final.html exactly
   ═══════════════════════════════════════════════════════ */
.rv {
  opacity: 0.15;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.rv.on {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════
   CLOSING
   ═══════════════════════════════════════════════════════ */
.closing {
  text-align: center;
  padding: var(--sec-pad) var(--gutter);
  background: var(--black);
  max-width: var(--max-w);
  margin: 0 auto;
}
.closing h2 { margin-bottom: 2rem; font-style: italic; }
.closing p { max-width: 640px; margin-left: auto; margin-right: auto; }
.closing-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 4rem;
}
.closing-seal-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(74,94,62,0.6), transparent);
}
.closing-seal-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.54rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(184,147,74,0.5);
}

/* ═══════════════════════════════════════════════════════
   FAQ — AEO/LLM OPTIMISED STYLES
   ═══════════════════════════════════════════════════════ */
.faq-list li {
  grid-template-columns: 1fr 2.5fr;
  align-items: start;
}
.faq-q {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  color: var(--white);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
  padding-top: 0.2em;
}
@media (max-width: 600px) {
  .faq-list li { grid-template-columns: 1fr; }
  .faq-q { color: var(--gold); font-size: 0.95rem; }
}

/* Speakable — marks key passages for AI voice reading */
.speakable-intro,
.speakable-scv,
.speakable-closing { position: relative; }
