/* ============================================================
   YIJING HOUSE — SITE STYLESHEET (v5 · elegant redesign)
   Cormorant Garamond display + Inter body, linen/stone palette,
   brand yellow retained as the accent.
   ============================================================ */

/* Self-hosted fonts */
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:300;font-display:swap;src:url(/assets/fonts/cormorant-garamond-latin-300-normal.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:300;font-display:swap;src:url(/assets/fonts/cormorant-garamond-latin-300-italic.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/cormorant-garamond-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/cormorant-garamond-latin-400-italic.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url(/assets/fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:300;font-display:swap;src:url(/assets/fonts/inter-latin-300-normal.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/inter-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/inter-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/inter-latin-600-normal.woff2) format('woff2')}

:root {
  --gold:        #efa518;   /* brand yellow — fills, rules, highlights */
  --gold-soft:   #f6d58f;
  --gold-deep:   #9a6a0c;   /* brand yellow, darkened for text on light */
  --ink:         #1d1b18;
  --ink-soft:    #4c4842;
  --muted:       #8a8478;
  --linen:       #faf8f3;
  --stone:       #f3efe6;
  --stone-mid:   #e5dece;
  --white:       #ffffff;
  --night:       #161512;
  --ff-display:  'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --ff-body:     'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --max:         1200px;
  --gutter:      max(5vw, 24px);
  --nav-h:       84px;
  --radius:      2px;
  --ease:        cubic-bezier(.25,.1,.25,1);
}

/* ── RESET / BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }
p { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .45em; }
strong, b { font-weight: 600; }
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 .55em;
  color: var(--ink);
}
h1 { font-size: clamp(46px, 6vw, 88px); font-weight: 300; line-height: 1.02; letter-spacing: -.02em; }
h2 { font-size: clamp(34px, 4vw, 58px); font-weight: 300; }
h3 { font-size: clamp(25px, 2.2vw, 31px); }
h4 { font-size: 23px; }
h5, h6 { font-size: 18px; }
em, i { font-style: italic; }
h1, h2, h3, h4, h5, h6, .card-index, #cf-total, .review blockquote, summary, .course-link, .hero-bottom { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* Small-caps label used above headings */
.eyebrow {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--gold-deep);
  margin: 0 0 22px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); flex: none; }
.eyebrow.centered, .centered .eyebrow { justify-content: center; }
.eyebrow.centered::after { content: ''; width: 28px; height: 1px; background: var(--gold); flex: none; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 0 var(--gutter);
  background: rgba(250,248,243,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone-mid);
}
.site-header > a:first-child { line-height: 0; }
.site-header img { height: 58px; width: auto; mix-blend-mode: multiply; }

.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 34px; }
.desktop-nav > a {
  position: relative;
  font-size: 12.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap; padding: 4px 0;
}
.desktop-nav > a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.desktop-nav > a:not(.nav-cta):hover { color: var(--ink); }
.desktop-nav > a:not(.nav-cta):hover::after { transform: scaleX(1); }
.desktop-nav .nav-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--white);
  padding: 12px 22px; border-radius: var(--radius);
  letter-spacing: .06em; text-transform: none; font-size: 13px; font-weight: 500;
  transition: background .25s, color .25s;
}
.desktop-nav .nav-cta:hover { background: var(--gold); color: var(--ink); }

.menu-open {
  display: flex; align-items: center; gap: 12px;
  border: 0; background: transparent; color: var(--ink);
  font-size: 0; padding: 8px 0;
}
.menu-open span { font-size: 24px; line-height: 1; }

/* ============================================================
   BUTTONS & LINKS
   ============================================================ */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--gold); color: var(--ink);
  padding: 15px 30px; border: 1px solid var(--gold); border-radius: var(--radius);
  font-family: var(--ff-body); font-size: 12.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; text-align: center;
  transition: background .25s, color .25s, border-color .25s, transform .15s;
}
.button:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.button:active { transform: scale(.98); }
.button-dark { background: var(--ink); border-color: var(--ink); color: var(--white); flex-shrink: 0; }
.button-dark:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.button-wrap { margin: 34px 0 0; }

.secondary-link, .text-link {
  font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 3px;
  display: inline-block; line-height: 1.4;
}
.secondary-link:hover, .text-link:hover { color: var(--gold-deep); }

/* ============================================================
   HOME HERO
   ============================================================ */
.home-hero { background: var(--linen); padding: 0; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  min-height: calc(100svh - var(--nav-h)); max-height: 880px; min-height: 640px;
  max-width: none; margin: 0; gap: 0; align-items: stretch;
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px clamp(32px, 4vw, 64px) 80px var(--gutter);
  max-width: 780px; justify-self: end; width: 100%;
}
.home-hero h1 { margin-bottom: 30px; font-size: clamp(46px, 5vw, 76px); }
.home-hero h1 span { font-style: italic; color: var(--gold-deep); font-weight: 300; }
.hero-lead { font-size: 16px; line-height: 1.85; color: var(--ink-soft); max-width: 430px; margin-bottom: 0; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; margin-top: 42px; }
.hero-bottom {
  display: flex; gap: 34px; margin-top: 56px; padding-top: 22px;
  border-top: 1px solid var(--stone-mid);
  font-family: var(--ff-display); font-size: 19px; font-style: italic; color: var(--muted);
}
.hero-visual { position: relative; background: var(--night); overflow: hidden; }
.compass-image { position: absolute; inset: 0; }
.compass-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.compass-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,21,18,0) 55%, rgba(22,21,18,.55) 100%);
}
.wisdom-note {
  position: absolute; left: 0; bottom: 64px; z-index: 2;
  display: flex; align-items: center; gap: 22px;
  background: var(--linen); padding: 22px 30px 22px 28px;
  border-left: 3px solid var(--gold);
}
.wisdom-note > span { font-family: var(--ff-display); font-size: 36px; font-weight: 400; letter-spacing: .14em; line-height: 1; color: var(--ink); }
.wisdom-note p { margin: 0; font-size: 12px; line-height: 1.55; letter-spacing: .06em; color: var(--ink-soft); }
.visual-caption {
  position: absolute; right: 32px; bottom: 28px; z-index: 2;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.75);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.content-section { padding: 112px var(--gutter); }
.content-row { max-width: var(--max); margin: 0 auto 40px; display: grid; gap: 72px; align-items: center; }
.content-row:last-child { margin-bottom: 0; }
.cols-1 { grid-template-columns: minmax(0,1fr); }
.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; align-items: stretch; }
.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; align-items: stretch; }
.column { min-width: 0; }
.rich-text { overflow-wrap: break-word; }
.rich-text:empty, .rich-text > div:empty { display: none; }
.rich-text table { border-collapse: collapse; width: 100%; }
.rich-text td, .rich-text th { border: 1px solid var(--stone-mid); padding: 12px; }
.section-heading { text-align: center; }
.image-block { margin: 0; }

.section-top {
  max-width: var(--max); margin: 0 auto 56px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
}
.section-top h2 { margin-bottom: 0; }
.section-top .eyebrow { margin-bottom: 20px; }

/* Approach */
.approach-section { background: var(--stone); }
.approach-section h2 { margin-bottom: 36px; }
.approach-section .rich-text { font-size: 15.5px; color: var(--ink-soft); }
.approach-section .image-block { background: var(--white); border: 1px solid var(--stone-mid); padding: 44px; max-width: 460px; margin-left: auto; }

/* Quote */
.quote-section { background: var(--linen); text-align: center; padding: 104px var(--gutter); border-top: 1px solid var(--stone-mid); border-bottom: 1px solid var(--stone-mid); }
.quote-section .content-row { max-width: 980px; }
.quote-section .rich-text h4 {
  font-size: clamp(28px, 3.8vw, 52px); font-weight: 300; font-style: italic; line-height: 1.22; letter-spacing: -.01em; margin: 0 0 30px;
}
.quote-section .rich-text h4::before { content: ''; display: block; width: 44px; height: 1px; background: var(--gold); margin: 0 auto 36px; }
.quote-section .rich-text h6, .quote-section p {
  font-family: var(--ff-body); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin: 0;
}

/* About */
.about-section { background: var(--white); }
.about-section .content-row { gap: 96px; align-items: center; }
.about-section .image-block { background: linear-gradient(160deg, var(--stone) 0%, var(--stone-mid) 100%); padding: 40px 40px 0; max-width: 480px; overflow: hidden; border: 1px solid var(--stone-mid); }
.about-section .image-block img { width: 100%; height: 560px; object-fit: contain; object-position: bottom; max-height: none; }
.about-section .rich-text { color: var(--ink-soft); }
.about-section h2 { margin-bottom: 30px; }

/* Services cards */
.cards-section { background: var(--linen); }
.service-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px;
  background: var(--stone-mid); border: 1px solid var(--stone-mid);
}
.service-card {
  background: var(--linen); padding: 48px 40px 40px;
  display: flex; flex-direction: column; height: 100%;
  transition: background .3s var(--ease);
  position: relative;
}
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 2px; background: var(--gold); transition: width .4s var(--ease); }
.service-card:hover { background: var(--white); }
.service-card:hover::before { width: 100%; }
.card-index { font-family: var(--ff-display); font-size: 54px; font-weight: 300; line-height: 1; color: var(--gold); margin-bottom: 22px; display: block; letter-spacing: 0; }
.service-card h2, .service-card h3 { font-size: 30px; font-weight: 400; font-style: italic; margin: 0 0 14px; }
.service-card p { font-size: 14px; line-height: 1.8; color: var(--ink-soft); }
.service-card .text-link { margin-top: auto; align-self: flex-start; }
.service-card > div + .text-link { margin-top: auto; }

/* Academy */
.academy-section { background: var(--night); color: #e8e4da; padding: 112px var(--gutter); }
.academy-section h2 { color: var(--white); }
.academy-section .eyebrow { color: var(--gold); }
.academy-section .secondary-link { color: var(--white); }
.academy-section .secondary-link:hover { color: var(--gold); }
.academy-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.academy-card {
  position: relative; display: block; background: var(--night); color: var(--white);
  padding: 40px 30px 80px; transition: background .3s;
}
.academy-card:hover { background: #1f1e1a; color: var(--white); }
.course-level { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 26px; }
.academy-card h3 { font-size: 32px; font-weight: 300; line-height: 1.1; color: var(--white); margin-bottom: 16px; }
.academy-card p { font-size: 13.5px; line-height: 1.75; color: #b3ae9f; margin: 0; }
.card-arrow { position: absolute; left: 30px; bottom: 30px; font-family: var(--ff-display); font-size: 28px; line-height: 1; color: var(--gold); transition: transform .3s var(--ease); }
.academy-card:hover .card-arrow { transform: translate(4px,-4px); }

/* Testimonials */
.testimonial-section { background: var(--stone); }
.testimonial-section .section-heading { max-width: 800px; margin: 0 auto 24px; }
.review-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 2px 28px; scrollbar-width: thin; scrollbar-color: var(--gold) var(--stone-mid);
}
.review {
  flex: 0 0 calc((100% - 48px) / 3); min-width: 290px;
  display: flex; flex-direction: column; scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--stone-mid); padding: 40px 36px 34px;
}
.stars { color: var(--gold); letter-spacing: 5px; font-size: 14px; }
.review blockquote {
  flex: 1; margin: 20px 0 28px;
  font-family: var(--ff-display); font-size: 21px; font-style: italic; font-weight: 400; line-height: 1.5; color: var(--ink);
}
.review-person { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--stone-mid); }
.review-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; filter: grayscale(.2); }
.review-person strong { font-size: 13.5px; font-weight: 500; letter-spacing: .02em; display: block; line-height: 1.4; }
.review-person p { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 2px 0 0; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 18px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.carousel-controls button { width: 46px; height: 46px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); font-size: 18px; transition: background .2s, color .2s, border-color .2s; }
.carousel-controls button:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); }
.carousel-controls button:disabled { opacity: .3; cursor: default; }

/* Videos / insights */
.insights-section { background: var(--white); }
.insights-section .content-row { align-items: start; gap: 48px; }
.insights-section .rich-text { font-size: 14.5px; color: var(--ink-soft); }
.video-block { margin-bottom: 26px; }
.video-frame, video { display: block; width: 100%; aspect-ratio: 16/9; border: 0; height: auto; background: var(--night); }
.insights-section .content-row.cols-1 {
  max-width: 760px; text-align: center; margin-top: 96px; padding-top: 80px; border-top: 1px solid var(--stone-mid);
}
.insights-section .content-row.cols-1 h2 { font-size: clamp(32px, 3.6vw, 48px); }

/* Social proof (YouTube + featured badge, built from original images) */
.connect-actions { display: flex; flex-direction: column; align-items: center; gap: 44px; margin-top: 8px; }
.featured-on { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.featured-on > span { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.featured-on a { display: block; line-height: 0; opacity: .85; transition: opacity .2s, transform .3s var(--ease); }
.featured-on a:hover { opacity: 1; transform: translateY(-2px); }
.featured-on img { width: 132px; height: 132px; object-fit: contain; }
.button-youtube { gap: 12px; }
.button-youtube svg { width: 20px; height: 20px; flex: none; }

/* CTA band — brand yellow */
.contact-cta {
  max-width: none; margin: 0;
  padding: 96px max(var(--gutter), calc((100% - var(--max)) / 2));
  background: var(--gold); color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 48px;
  position: relative;
}
.contact-cta::before { content: ''; position: absolute; inset: 18px max(calc(var(--gutter) - 24px), calc((100% - var(--max)) / 2 - 24px)); border: 1px solid rgba(29,27,24,.28); pointer-events: none; }
.contact-cta > * { position: relative; }
.contact-cta .eyebrow { color: var(--ink); }
.contact-cta .eyebrow::before { background: var(--ink); }
.contact-cta h2 { color: var(--ink); font-size: clamp(34px, 4vw, 56px); max-width: 640px; margin-bottom: 16px; }
.contact-cta p:last-child { font-size: 15px; color: rgba(29,27,24,.8); max-width: 560px; margin: 0; }
.contact-cta .button-dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.contact-cta .button-dark:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-intro { background: var(--stone); padding: 96px var(--gutter) 88px; text-align: left; border-bottom: 1px solid var(--stone-mid); }
.page-intro .content-row { max-width: var(--max); }
.page-intro .section-heading { text-align: left; }
.page-intro h1 { max-width: 920px; margin-bottom: 40px; }
.page-intro .rich-text { max-width: 820px; color: var(--ink-soft); }
.page-intro .rich-text h2 { font-size: clamp(30px, 3vw, 42px); margin: 1.5em 0 .5em; }
.page-intro .rich-text h2:first-child { margin-top: 0; }
.page-intro .rich-text h3 { font-size: 13px; font-family: var(--ff-body); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin: 2em 0 1em; }
.page-intro .rich-text h3 a { color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.inner-page .hero { display: block; text-align: left; }
.inner-page .hero h2 { font-size: clamp(26px, 2.6vw, 36px); font-style: italic; font-weight: 300; max-width: 760px; color: var(--ink-soft); }
.inner-page .content-section:not(.page-intro):not(.about-section):not(.testimonial-section):not(.quote-section):not(.cards-section):not(.payment-section) { background: var(--linen); }
.inner-page .content-section:not(.page-intro) .content-row.cols-1 > .column { max-width: 900px; }
.inner-page .testimonial-section .content-row.cols-1 > .column, .inner-page .gallery-section .content-row.cols-1 > .column { max-width: none; }
.inner-page .content-row.cols-1 > .column:has(> .contact-form) { margin-inline: auto; width: 100%; max-width: 780px; }
.inner-page .content-section:not(.page-intro) .content-row.cols-1 > .column > .rich-text > div > h3:first-child { margin-top: 0; }
.inner-page .rich-text { color: var(--ink-soft); }
.inner-page .rich-text h2 { margin-top: 1.4em; }
.inner-page .rich-text h2:first-child, .inner-page .rich-text h3:first-child { margin-top: 0; }
.inner-page .rich-text h4 { font-size: 21px; margin-top: 1.2em; }
.inner-page .content-row.cols-3 .column,
.inner-page .content-row.cols-4 .column {
  background: var(--white); border: 1px solid var(--stone-mid); border-top: 2px solid var(--gold);
  padding: 34px 28px 30px;
}
.page-intro + .content-row, .page-intro ~ .content-section .content-row.cols-4 { max-width: var(--max); }
.inner-page .content-row.cols-3 .rich-text h4,
.inner-page .content-row.cols-4 .rich-text h4 { font-size: 24px; font-style: italic; margin: 0 0 12px; }
.inner-page .content-row.cols-4 .rich-text h4 + h4 { margin-top: 0; }
.inner-page .content-row.cols-3 .rich-text p,
.inner-page .content-row.cols-4 .rich-text p { font-size: 14px; line-height: 1.8; }
.inner-page .content-row.cols-4 .button { width: 100%; }

/* FAQ / accordions */
details { border-bottom: 1px solid var(--stone-mid); margin: 0; }
details:first-of-type { border-top: 1px solid var(--stone-mid); }
summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 44px 24px 0;
  font-family: var(--ff-display); font-size: 24px; font-weight: 400; line-height: 1.3; color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--ff-body); font-weight: 300; font-size: 26px; color: var(--gold-deep); }
details[open] > summary::after { content: '−'; }
details > div { padding: 0 0 24px; color: var(--ink-soft); }

/* Gallery */
.gallery-section { background: var(--linen); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; max-width: var(--max); margin: 0 auto; }
.gallery-item { padding: 0; border: 0; background: var(--stone); overflow: hidden; border-radius: 0; position: relative; }
.gallery-item img { width: 100%; height: 320px; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.gallery-item:hover img { transform: scale(1.04); }

/* Forms */
.contact-form { display: grid; gap: 22px; width: 100%; max-width: 720px; margin: 0 auto; }
.contact-form label { display: grid; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.contact-form input, .contact-form select, .contact-form textarea,
.checkout-form input:not([type=radio]) {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--stone-mid); border-radius: var(--radius);
  background: var(--white); color: var(--ink);
  font-size: 15px; letter-spacing: 0; text-transform: none; transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus,
.checkout-form input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(239,165,24,.18); }
.contact-form .button { justify-self: start; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 0; }
.inner-page .contact-form { background: var(--white); border: 1px solid var(--stone-mid); padding: 48px; }
.inner-page .content-section .section-heading { margin-bottom: 40px; }

/* Payment / checkout */
.payment-section { background: var(--stone); padding-top: 80px; }
.payment-section > .content-row { max-width: 800px; margin: 0 auto; }
.payment-section .column { background: var(--white); border: 1px solid var(--stone-mid); border-top: 2px solid var(--gold); padding: 56px; }
.payment-section h1 { font-size: clamp(40px, 5vw, 60px); text-align: center; }
.payment-section .eyebrow { justify-content: center; }
.payment-section .rich-text { text-align: center; }
.payment-section .image-block img { max-width: 240px; margin: 22px auto; border: 1px solid var(--stone-mid); padding: 8px; }
.checkout-form { text-align: left; padding: 8px 0; }
.checkout-form h3 { font-family: var(--ff-body); font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--gold-deep); margin: 34px 0 18px; }
.checkout-form > label { display: block; margin: 10px 0; font-size: 15px; }
.checkout-form input[type=radio] { accent-color: var(--gold-deep); }
.checkout-form > div:not(#cf-paypal) { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#cf-total { float: right; font-family: var(--ff-display); font-size: 24px; }
#cf-payment-status { font-size: 13px; padding: 16px; background: var(--stone); margin-top: 18px; color: var(--ink-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--night); color: #b3ae9f; padding: 88px var(--gutter) 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1.1fr; gap: 80px; max-width: var(--max); margin: 0 auto; }
.site-footer h2 { font-size: 40px; font-weight: 300; color: var(--white); margin-bottom: 20px; }
.site-footer h3 { font-family: var(--ff-body); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.site-footer p { color: #b3ae9f; line-height: 1.8; max-width: 380px; }
.site-footer a { display: block; color: #d9d4c6; margin: 0 0 12px; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max); margin: 72px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 12px; letter-spacing: .04em; color: #8f8a7d;
}
.footer-bottom a { display: inline; margin: 0; font-size: 12px; color: #8f8a7d; }

/* ============================================================
   DIALOGS / MENU
   ============================================================ */
dialog { border: 0; padding: 48px; max-width: min(700px, calc(100% - 32px)); max-height: 90dvh; background: var(--linen); color: var(--ink); border-radius: 0; }
dialog:not([open]) { display: none; }
dialog::backdrop { background: rgba(22,21,18,.72); }
dialog h2 { font-size: 38px; }
.dialog-close { position: absolute; right: 20px; top: 12px; border: 0; background: none; color: inherit; font: 300 38px/1 var(--ff-body); }
body.modal-open { overflow: hidden; }

.menu-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; background: var(--night); color: var(--white); padding: 100px var(--gutter) 60px; overflow: auto; }
.menu-dialog .dialog-close { position: fixed; right: 28px; top: 18px; font-size: 52px; color: rgba(255,255,255,.8); }
.menu-dialog .dialog-close:hover { color: var(--gold); }
.menu-columns { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 100px; }
.menu-columns nav > a:not(.button) {
  display: block; font-family: var(--ff-display); font-size: clamp(38px, 4.6vw, 62px); font-weight: 300; line-height: 1.1;
  color: rgba(255,255,255,.88); margin: 0 0 22px; transition: color .2s, transform .3s var(--ease);
}
.menu-columns nav > a:not(.button):hover { color: var(--gold); transform: translateX(8px); }
.menu-columns nav .button { margin-top: 28px; }
.menu-columns h2 { font-family: var(--ff-body); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 10px 0 34px; }
.course-link { display: block; font-family: var(--ff-display); font-size: 29px; font-weight: 400; line-height: 1.2; color: var(--white); }
.course-link:hover { color: var(--gold); }
.menu-columns p { font-size: 14px; line-height: 1.7; color: #b3ae9f; margin: 8px 0 30px; max-width: 460px; }
.social-links { display: flex; gap: 12px; margin-top: 10px; }
.social-links a { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: var(--white); font: 400 18px var(--ff-body); transition: background .2s, border-color .2s, color .2s; }
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

#lightbox { padding: 48px 20px 20px; background: var(--night); color: var(--white); max-width: 95vw; }
#lightbox img { max-width: 90vw; max-height: 80dvh; object-fit: contain; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .desktop-nav { gap: 22px; }
  .desktop-nav .nav-cta { display: none; }
  .content-section, .academy-section { padding: 88px var(--gutter); }
  .about-section .content-row { gap: 56px; }
  .academy-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .review { flex-basis: calc((100% - 24px) / 2); }
  .cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-cta { padding: 72px var(--gutter); }
  .menu-columns { gap: 56px; }
}

@media (max-width: 860px) {
  :root { --nav-h: 72px; }
  .site-header img { height: 50px; }
  .desktop-nav { display: none; }
  .menu-open { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero-copy { padding: 64px var(--gutter) 56px; max-width: none; }
  .hero-visual { height: 460px; }
  .wisdom-note { bottom: 32px; padding: 16px 22px; gap: 16px; }
  .wisdom-note > span { font-size: 28px; }
  .cols-2, .cols-3 { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .cols-3 { gap: 20px; }
  .approach-section .image-block { margin: 0 auto; padding: 32px; }
  .about-section .image-block { margin: 0 auto; }
  .about-section .image-block img { height: 460px; }
  .section-top { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .menu-columns { grid-template-columns: 1fr; gap: 56px; }
  .menu-dialog { padding: 84px var(--gutter) 48px; }
  .contact-cta { flex-direction: column; align-items: flex-start; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .gallery-item img { height: 240px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .content-section, .academy-section { padding: 64px var(--gutter); }
  .page-intro { padding: 56px var(--gutter) 52px; }
  .quote-section { padding: 72px var(--gutter); }
  .hero-copy { padding: 52px var(--gutter) 48px; }
  .hero-actions { gap: 22px; margin-top: 34px; }
  .hero-bottom { margin-top: 40px; gap: 24px; font-size: 17px; }
  .hero-visual { height: 380px; }
  .visual-caption { right: 20px; bottom: 20px; font-size: 9.5px; }
  .service-grid, .academy-grid, .cols-4 { grid-template-columns: minmax(0,1fr); }
  .service-card { padding: 36px 28px 32px; }
  .academy-card { padding: 32px 26px 72px; }
  .review { flex-basis: 86%; min-width: 0; padding: 32px 26px 28px; }
  .review blockquote { font-size: 20px; }
  .carousel-controls span { display: none; }
  .carousel-controls { gap: 14px; }
  .contact-cta { padding: 56px var(--gutter); }
  .contact-cta::before { inset: 10px; }
  .contact-cta .button { width: 100%; }
  .inner-page .contact-form { padding: 28px 20px; }
  .payment-section { padding-top: 48px; }
  .payment-section .column { padding: 32px 22px; }
  .checkout-form > div:not(#cf-paypal), .cf-fields { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-footer { padding-top: 64px; }
  .site-footer h2 { font-size: 34px; }
  summary { font-size: 21px; }
  dialog { padding: 36px 22px; }
  .about-section .image-block { padding: 28px 28px 0; }
  .about-section .image-block img { height: 380px; }
  .rich-text table { font-size: 13px; }
  .rich-text td, .rich-text th { padding: 8px; }
  .gallery-item img { height: 190px; }
  .menu-columns nav > a:not(.button) { margin-bottom: 14px; }
  .course-link { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
