/*
 Theme Name:   Chef James Won — Ecological Luxury
 Description:  Bespoke child theme — Ecological Luxury Design System. Sarawak forest deep, peat earth, resin amber, wet lichen.
 Author:       James MF Won
 Template:     chefjameswon-wordpress
 Version:   2.0.0
 License:      All Rights Reserved
 Text Domain:  chefjameswon

 NOTE: The "Template" line above must match the parent theme's
 folder name EXACTLY. Common Hostinger themes:
   starter-starter  (Hostinger Starter)
   astra            (Astra)
   flavor-starter   (Flavor Starter)
   flavor-developer (Flavor Developer)

 If your parent theme folder is different, update the Template
 line to match. Check via Appearance > Themes in WP Admin, or
 look at the folder name in /wp-content/themes/.
*/

/* This file is intentionally minimal.
   All styles are in css/global.css and page-specific CSS files,
   loaded via functions.php for correct dependency ordering. */

/* ================================================================ */
/* CHEF JAMES WON — UNIFIED DESIGN SYSTEM v2 (corrected)           */
/* Bound to real theme tokens from css/global.css:                 */
/*   Palette  : --black --deep --surface --white --body             */
/*              --gold --gold-sub --moss --lichen                   */
/*   Spacing  : --gutter --max-w --sec-pad                          */
/*   Fonts    : 'Playfair Display' 'Libre Baskerville' 'Montserrat' */
/* All classes use u- prefix. Activated only on v2 templates.       */
/* ================================================================ */

:root {
  --u-container-narrow:   680px;
  --u-container-standard: 1040px;
  --u-container-wide:     1280px;
  --u-section-py:         clamp(4.5rem, 10vh, 7rem);
  --u-line-body:          1.75;
  --u-line-heading:       1.2;
}

.u-page {
  color: var(--body);
  background: var(--black);
  font-family: 'Libre Baskerville', Georgia, serif;
  line-height: var(--u-line-body);
}
.u-page *,
.u-page *::before,
.u-page *::after { box-sizing: border-box; }

.u-container-narrow,
.u-container-standard,
.u-container-wide {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.u-container-narrow   { max-width: var(--u-container-narrow); }
.u-container-standard { max-width: var(--u-container-standard); }
.u-container-wide     { max-width: var(--u-container-wide); }

.u-section {
  padding-top: var(--u-section-py);
  padding-bottom: var(--u-section-py);
  background: var(--black);
  position: relative;
}
.u-section--elevated { background: var(--surface); }
.u-section--deep     { background: var(--deep); }
.u-section--accent   { background: #1a2218; }

@media (max-width: 768px) {
  .u-section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
}

.u-section-intro {
  max-width: var(--u-container-narrow);
  margin: 0 auto 3rem;
  text-align: center;
}

.u-eyebrow {
  display: inline-block;
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.u-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: var(--u-line-heading);
  color: var(--white);
  margin: 0 0 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.u-lede {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.0625rem;
  line-height: var(--u-line-body);
  color: var(--body);
  margin: 0;
}

/* ---------- Hero ---------- */
.u-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--deep);
  padding: 6rem var(--gutter) 5rem;
  margin: 0;
}
.u-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.35;
}
.u-hero__placeholder {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(184,147,74,0.10), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(74,94,62,0.12), transparent 60%),
    var(--deep);
}
.u-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,12,8,0.30) 0%, rgba(8,12,8,0.70) 100%);
}
.u-hero__content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: var(--u-container-standard);
  padding: 0;
}
.u-hero__eyebrow {
  display: inline-block;
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
  font-weight: 500;
}
.u-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 1.1;
  font-weight: 400;
  color: var(--white);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}
.u-hero__subtitle {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  max-width: 640px;
  margin: 0 auto;
}
.u-hero__divider {
  width: 60px; height: 1px;
  background: var(--gold);
  border: 0;
  margin: 1.75rem auto;
}
@media (max-width: 768px) {
  .u-hero { min-height: 60vh; padding: 5rem var(--gutter) 4rem; }
  .u-hero__title { font-size: 2.25rem; }
}

/* ---------- Card ---------- */
.u-card {
  background: var(--surface);
  border: 1px solid rgba(184,147,74,0.18);
  padding: 2.5rem 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  height: 100%;
}
.u-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}
.u-card__eyebrow {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
  font-weight: 500;
}
.u-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--white);
  margin: 0 0 1rem;
  font-weight: 400;
}
.u-card__body {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  margin: 0;
}

/* ---------- Grid ---------- */
.u-grid { display: grid; gap: 1.75rem; }
.u-grid--2 { grid-template-columns: repeat(2, 1fr); }
.u-grid--3 { grid-template-columns: repeat(3, 1fr); }
.u-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .u-grid--3, .u-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .u-grid--2, .u-grid--3, .u-grid--4 { grid-template-columns: 1fr; }
}

/* ---------- CTA ---------- */
.u-cta {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: 1px solid var(--gold);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  font-weight: 500;
}
.u-cta:hover {
  background: var(--gold-sub);
  border-color: var(--gold-sub);
  color: var(--white);
}
.u-cta--ghost {
  background: transparent;
  color: var(--gold);
}
.u-cta--ghost:hover {
  background: var(--gold);
  color: var(--black);
}

/* ---------- Prose ---------- */
.u-prose {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--body);
}
.u-prose p { margin: 0 0 1.25rem; }
.u-prose p:last-child { margin-bottom: 0; }
.u-prose h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--white);
  margin: 2.5rem 0 1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.u-prose blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--white);
  font-style: italic;
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

/* ---------- Divider & utilities ---------- */
.u-divider {
  width: 80px; height: 1px;
  background: var(--gold);
  border: 0;
  margin: 1.75rem auto;
}
.u-text-center { text-align: center; }
.u-mt-sm { margin-top: 0.75rem; }
.u-mt-md { margin-top: 1.25rem; }
.u-mt-lg { margin-top: 1.75rem; }
.u-mt-xl { margin-top: 2.5rem; }
.u-mb-sm { margin-bottom: 0.75rem; }
.u-mb-md { margin-bottom: 1.25rem; }
.u-mb-lg { margin-bottom: 1.75rem; }
.u-mb-xl { margin-bottom: 2.5rem; }

/* ---------- Timeline ---------- */
.u-timeline {
  max-width: var(--u-container-narrow);
  margin: 0 auto;
}
.u-timeline__item {
  border-left: 2px solid var(--gold);
  padding-left: 1.75rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.u-timeline__item:last-child { margin-bottom: 0; }
.u-timeline__step {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 500;
}
.u-timeline__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem;
  color: var(--white);
  margin: 0 0 0.75rem;
  font-weight: 400;
}
.u-timeline__body {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  margin: 0;
}

/* ---------- Stat ---------- */
.u-stat {
  text-align: center;
  padding: 1.75rem;
}
.u-stat__figure {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.u-stat__label {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(200,201,184,0.75);
}

/* ---------- Nav strip (v2 pages) ---------- */
.cjw-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--gutter);
  background: var(--black);
  border-bottom: 1px solid rgba(184,147,74,0.15);
  position: sticky;
  top: 0;
  z-index: 10;
}
.cjw-nav a {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--body);
  text-decoration: none;
  transition: color 0.25s ease;
}
.cjw-nav a:hover { color: var(--gold); }
.cjw-nav .cjw-nav__mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: none;
}

/* ---------- Unified nav extensions ---------- */
.cjw-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cjw-nav__link {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--body);
  text-decoration: none;
  transition: color 0.25s ease;
  position: relative;
  padding-bottom: 0.2rem;
}
.cjw-nav__link:hover {
  color: var(--gold);
}
.cjw-nav__link.is-current {
  color: var(--gold);
}
.cjw-nav__link.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
}
@media (max-width: 768px) {
  .cjw-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem var(--gutter);
    gap: 0.75rem;
  }
  .cjw-nav__links {
    gap: 1.25rem;
    justify-content: flex-start;
  }
  .cjw-nav__link {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
  }
}
