/*
 * cuisine-philosophy.css
 * Chef James Won — Cuisine Philosophy page
 * ─────────────────────────────────────────────────────────────────
 * Ecological Luxury colour system. All rules scoped to
 * body.page-template-cuisine-philosophy so styles apply only to
 * this page and cannot affect any other page on the site.
 *
 * Enqueued via functions-snippet.php — page-template-conditional only.
 * Google Fonts loaded via the same snippet as a separate handle.
 *
 * COLOUR TOKENS
 * ─────────────
 * Forest Deep  #080c08  Primary background
 * Peat Earth   #0e140d  Alternate dark sections
 * Undergrowth  #162014  Cards, image placeholders, hover surface
 * Parchment    #edeae0  Headings
 * Dried Fern   #c8c9b8  Body text
 * Amber Resin  #b8934a  Primary accent (eyebrows, borders, links)
 * Dark Resin   #7d6135  Secondary accent (labels, cites)
 * Live Moss    #4a5e3e  Rule lines, borders, dividers
 * Lichen       #6b7a5c  Timeline dots, subtle highlights
 * ─────────────────────────────────────────────────────────────────
 */

/* ── TOKENS ──────────────────────────────────────────────────────── */
body.page-template-cuisine-philosophy {
  --black:    #080c08;
  --deep:     #0e140d;
  --surface:  #162014;
  --white:    #edeae0;
  --body:     #c8c9b8;
  --gold:     #b8934a;
  --gold-sub: #7d6135;
  --moss:     #4a5e3e;
  --lichen:   #6b7a5c;
  --side:     clamp(1.5rem, 6vw, 7rem);
  --max:      1200px;
}

/* ── RESET ───────────────────────────────────────────────────────── */
body.page-template-cuisine-philosophy *,
body.page-template-cuisine-philosophy *::before,
body.page-template-cuisine-philosophy *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── HTML / BODY ─────────────────────────────────────────────────── */
html.cjw-philosophy-html {
  scroll-behavior: smooth;
  background: #080c08;
  min-height: 100%;
}

body.page-template-cuisine-philosophy {
  background: #080c08;
  color: var(--body);
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.82;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── NEUTRALISE THEME OVERRIDES ──────────────────────────────────── */
body.page-template-cuisine-philosophy #page,
body.page-template-cuisine-philosophy #content,
body.page-template-cuisine-philosophy #primary,
body.page-template-cuisine-philosophy .site,
body.page-template-cuisine-philosophy .site-content,
body.page-template-cuisine-philosophy .entry-content {
  background: transparent;
  max-width: none;
  margin: 0;
  padding: 0;
  float: none;
  width: 100%;
}

/* ── ACCESSIBILITY UTILITY ───────────────────────────────────────── */
/* sr-only: invisible to sighted users, fully accessible to crawlers
   and assistive technology. Used for breadcrumb, author entity,
   and hidden FAQ block. DO NOT use display:none on these elements. */
body.page-template-cuisine-philosophy .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── TYPE SYSTEM ─────────────────────────────────────────────────── */
body.page-template-cuisine-philosophy .eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

body.page-template-cuisine-philosophy h1,
body.page-template-cuisine-philosophy h2,
body.page-template-cuisine-philosophy h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.05;
  color: var(--white);
}

body.page-template-cuisine-philosophy p       { color: var(--body); }
body.page-template-cuisine-philosophy em      { font-style: italic; color: var(--gold); }
body.page-template-cuisine-philosophy strong  { font-weight: 700; color: var(--white); }

body.page-template-cuisine-philosophy blockquote {
  margin: 0;
  padding: 0;
}

/* ── NAVIGATION ──────────────────────────────────────────────────── */
body.page-template-cuisine-philosophy .cjw-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem var(--side);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(8,12,8,1) 60%, transparent);
}

body.page-template-cuisine-philosophy .nav-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

body.page-template-cuisine-philosophy .nav-page {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.57rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── HERO ────────────────────────────────────────────────────────── */
body.page-template-cuisine-philosophy .hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--side) clamp(4rem, 9vh, 7rem);
  position: relative;
  overflow: hidden;
  background: var(--black);
}

body.page-template-cuisine-philosophy .hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(to top, rgba(8,12,8,1) 0%, rgba(8,12,8,0.65) 50%, rgba(8,12,8,0.2) 100%),
    linear-gradient(160deg, #0d1a0b 0%, #080c08 60%);
}

/* When ACF background-image is set via inline style:
   gradient overlay sits above the photograph */
body.page-template-cuisine-philosophy .hero-photo[style] {
  background-image:
    linear-gradient(to top, rgba(8,12,8,1) 0%, rgba(8,12,8,0.65) 50%, rgba(8,12,8,0.2) 100%);
}

body.page-template-cuisine-philosophy .hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
}

body.page-template-cuisine-philosophy .hero-inner .eyebrow { margin-bottom: 1.6rem; }

body.page-template-cuisine-philosophy .hero h1 {
  font-size: clamp(3.2rem, 8vw, 9rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
  max-width: 12ch;
}

body.page-template-cuisine-philosophy .hero-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.7rem, 0.85vw, 0.8rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--body);
  max-width: 50ch;
  line-height: 1.9;
}

/* ── SECTIONS ────────────────────────────────────────────────────── */
body.page-template-cuisine-philosophy .sec {
  padding: clamp(4.5rem, 10vh, 8rem) var(--side);
  max-width: calc(var(--max) + (var(--side) * 2));
  margin: 0 auto;
  background: #080c08;
}

body.page-template-cuisine-philosophy .sec--dark {
  background: #0e140d;
  max-width: none;
  padding: clamp(4.5rem, 10vh, 8rem) var(--side);
}

body.page-template-cuisine-philosophy .sec--dark .sec-inner {
  max-width: calc(var(--max) + (var(--side) * 2));
  margin: 0 auto;
}

body.page-template-cuisine-philosophy .divider-line {
  border: none;
  border-top: 1px solid rgba(74,94,62,0.4);
}

/* ── SECTION HEADER ──────────────────────────────────────────────── */
body.page-template-cuisine-philosophy .sec-head {
  margin-bottom: clamp(2.5rem, 5vh, 4rem);
}

body.page-template-cuisine-philosophy .sec-head .eyebrow { margin-bottom: 1rem; }

body.page-template-cuisine-philosophy .sec-head h2 {
  font-size: clamp(2rem, 4vw, 4.5rem);
}

/* ── GRID LAYOUTS ────────────────────────────────────────────────── */
body.page-template-cuisine-philosophy .col-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: start;
}

body.page-template-cuisine-philosophy .col-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(74,94,62,0.2);
  border: 1px solid rgba(74,94,62,0.2);
  margin-top: 3rem;
}

@media (max-width: 900px) {
  body.page-template-cuisine-philosophy .col-2 { grid-template-columns: 1fr; }
  body.page-template-cuisine-philosophy .col-3 { grid-template-columns: 1fr; }
}

/* ── TEXT BLOCKS ─────────────────────────────────────────────────── */
body.page-template-cuisine-philosophy .text-block p {
  font-size: clamp(0.95rem, 1.05vw, 1.08rem);
  line-height: 1.85;
  color: var(--body);
}

body.page-template-cuisine-philosophy .text-block p + p { margin-top: 1.4em; }

/* ── PULLQUOTE ───────────────────────────────────────────────────── */
body.page-template-cuisine-philosophy .pq {
  margin: 2.8rem 0;
  padding-left: 1.8rem;
  border-left: 2px solid #b8934a;
}

body.page-template-cuisine-philosophy .pq p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 1.8vw, 1.9rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.42;
}

body.page-template-cuisine-philosophy .pq cite {
  display: block;
  margin-top: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-sub);
  font-style: normal;
}

/* ── TIMELINE ────────────────────────────────────────────────────── */
body.page-template-cuisine-philosophy .timeline {
  list-style: none;
  border-left: 1px solid rgba(74,94,62,0.35);
  margin-top: 3rem;
}

body.page-template-cuisine-philosophy .tl-item {
  padding: 0 0 2.8rem 2.5rem;
  position: relative;
}

body.page-template-cuisine-philosophy .tl-item::before {
  content: '';
  position: absolute;
  left: -4px; top: 0.45rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6b7a5c;
  opacity: 0.85;
}

body.page-template-cuisine-philosophy .tl-era {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.57rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

body.page-template-cuisine-philosophy .tl-item h3 {
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  margin-bottom: 0.6rem;
}

body.page-template-cuisine-philosophy .tl-item p {
  font-size: 0.92rem;
  line-height: 1.8;
  max-width: 54ch;
}

/* ── TECHNIQUE CARDS ─────────────────────────────────────────────── */
body.page-template-cuisine-philosophy .t-card {
  background: #080c08;
  padding: 2.4rem 2rem;
  transition: background 0.3s ease;
}

body.page-template-cuisine-philosophy .t-card:hover { background: #162014; }

body.page-template-cuisine-philosophy .t-card-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.53rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-sub);
  margin-bottom: 0.8rem;
}

body.page-template-cuisine-philosophy .t-card h3 {
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  margin-bottom: 0.7rem;
}

body.page-template-cuisine-philosophy .t-card p {
  font-size: 0.9rem;
  line-height: 1.78;
}

/* ── CONSULTANCY GRID ────────────────────────────────────────────── */
body.page-template-cuisine-philosophy .consult-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 2.5rem 4rem;
  margin-top: 3rem;
}

body.page-template-cuisine-philosophy .consult-item h3 {
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  margin-bottom: 0.55rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(74,94,62,0.3);
}

body.page-template-cuisine-philosophy .consult-item p {
  font-size: 0.88rem;
  line-height: 1.78;
}

/* ── IMAGE PLACEHOLDERS (remove when ACF images are live) ────────── */
body.page-template-cuisine-philosophy .img-ph {
  background: #162014;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-template-cuisine-philosophy .img-ph span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.48rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.09);
}

body.page-template-cuisine-philosophy .img-ph--tall { aspect-ratio: 3/4; }
body.page-template-cuisine-philosophy .img-ph--wide { aspect-ratio: 16/7; width: 100%; }
body.page-template-cuisine-philosophy .img-ph--sq   { aspect-ratio: 1/1; }

/* ── GRATITUDE LIST ──────────────────────────────────────────────── */
body.page-template-cuisine-philosophy .g-list {
  list-style: none;
  margin-top: 1.8rem;
}

body.page-template-cuisine-philosophy .g-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(74,94,62,0.2);
  font-size: 0.9rem;
  color: var(--body);
}

body.page-template-cuisine-philosophy .g-list li .role {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-sub);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── STATEMENT BOX ───────────────────────────────────────────────── */
body.page-template-cuisine-philosophy .statement {
  border: 1px solid rgba(74,94,62,0.35);
  padding: 2.2rem 2.4rem;
  margin-top: 2.5rem;
  background: rgba(22,32,20,0.6);
}

body.page-template-cuisine-philosophy .statement p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.55;
}

body.page-template-cuisine-philosophy .statement cite {
  display: block;
  margin-top: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-sub);
  font-style: normal;
}

/* ── CLOSING ─────────────────────────────────────────────────────── */
body.page-template-cuisine-philosophy .closing {
  padding: clamp(5rem, 12vh, 10rem) var(--side);
  max-width: calc(var(--max) + (var(--side) * 2));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  background: #080c08;
}

@media (max-width: 720px) {
  body.page-template-cuisine-philosophy .closing {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

body.page-template-cuisine-philosophy .closing h2 {
  font-size: clamp(2.8rem, 5vw, 6rem);
  line-height: 1.0;
}

body.page-template-cuisine-philosophy .closing-body p {
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.85;
}

body.page-template-cuisine-philosophy .closing-body p + p { margin-top: 1.3em; }

body.page-template-cuisine-philosophy .sig {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(74,94,62,0.3);
}

body.page-template-cuisine-philosophy .sig-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--white);
}

body.page-template-cuisine-philosophy .sig-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.53rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-sub);
  margin-top: 0.4rem;
  line-height: 1.8;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
body.page-template-cuisine-philosophy .cjw-footer {
  background: #0e140d;
  border-top: 1px solid rgba(74,94,62,0.1);
  padding: 1.8rem var(--side);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

body.page-template-cuisine-philosophy .cjw-footer span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.54rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(221,216,207,0.3);
}

/* ── SCROLL REVEAL ───────────────────────────────────────────────── */
body.page-template-cuisine-philosophy .rv {
  opacity: 0.15;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

body.page-template-cuisine-philosophy .rv.on {
  opacity: 1;
  transform: none;
}

body.page-template-cuisine-philosophy .rv.d1 { transition-delay: 0.1s; }
body.page-template-cuisine-philosophy .rv.d2 { transition-delay: 0.2s; }
body.page-template-cuisine-philosophy .rv.d3 { transition-delay: 0.3s; }

/* ── HERO ANIMATION ──────────────────────────────────────────────── */
body.page-template-cuisine-philosophy .h-anim {
  opacity: 0;
  animation: cjwRiseIn 1s ease forwards;
}

body.page-template-cuisine-philosophy .h-anim.a1 { animation-delay: 0.3s; }
body.page-template-cuisine-philosophy .h-anim.a2 { animation-delay: 0.55s; }
body.page-template-cuisine-philosophy .h-anim.a3 { animation-delay: 0.8s; }

@keyframes cjwRiseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ── RESPONSIVE — MOBILE ─────────────────────────────────────────── */
@media (max-width: 600px) {
  body.page-template-cuisine-philosophy .hero h1 {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }
}
