/*
Theme Name:   LMS Editorial
Theme URI:    https://yoursite.com
Description:  Warm editorial theme for LMS Core — courses, consulting, content. Built for Brizy Pro.
Version:      1.0.0
Author:       Custom Build
License:      GPL-2.0+
Text Domain:  lms-editorial
Tags:         lms, editorial, coaching, courses, brizy
*/

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS — edit these and every component updates
   These also connect to Brizy's global style system
═══════════════════════════════════════════════════════════ */
:root {
  /* Core palette */
  --cream:          #FAF8F4;
  --cream-deep:     #F2EFE9;
  --cream-border:   #E4DDD3;
  --ink:            #1C1A17;
  --ink-mid:        #3D3A35;
  --ink-soft:       #6B6660;
  --ink-faint:      #9E9890;
  --gold:           #B8934A;
  --gold-light:     #CBA968;
  --gold-pale:      #F7F0E2;
  --gold-glow:      rgba(184,147,74,0.15);
  --sage:           #8A9E8C;
  --sage-pale:      #EEF2EE;
  --rust:           #C4674A;
  --rust-pale:      #FAEEEA;
  --white:          #FFFFFF;

  /* Brizy-compatible semantic aliases */
  --color-primary:      var(--ink);
  --color-secondary:    var(--gold);
  --color-accent:       var(--rust);
  --color-background:   var(--cream);
  --color-surface:      var(--white);
  --color-text:         var(--ink);
  --color-text-muted:   var(--ink-soft);
  --color-border:       var(--cream-border);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', sans-serif;
  --font-mono:    'Courier Prime', 'Courier New', monospace;

  /* Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.5rem;
  --text-5xl:  3.5rem;

  /* Spacing */
  --sp-1:  4px;   --sp-2:  8px;   --sp-3: 12px;
  --sp-4:  16px;  --sp-5: 20px;   --sp-6: 24px;
  --sp-8:  32px;  --sp-10:40px;   --sp-12:48px;
  --sp-16: 64px;  --sp-20:80px;   --sp-24:96px;
  --sp-32: 128px;

  /* Layout */
  --max-w:    1160px;
  --max-w-md:  940px;
  --max-w-sm:  680px;
  --gutter:    clamp(20px, 4vw, 48px);

  /* Borders */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(28,26,23,0.06);
  --shadow-sm: 0 2px 8px rgba(28,26,23,0.08);
  --shadow-md: 0 6px 24px rgba(28,26,23,0.10);
  --shadow-lg: 0 16px 48px rgba(28,26,23,0.13);
  --shadow-xl: 0 32px 80px rgba(28,26,23,0.16);

  /* Motion */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --dur-fast:  150ms;
  --dur:       250ms;
  --dur-slow:  450ms;
}

/* ═══════════════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; }

/* Grain */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 99999;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.3rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 1rem;   font-weight: 600; }

p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; }

/* Display sizes */
.t-display {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.03;
  letter-spacing: -0.025em;
}
.t-display-upright {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.t-eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.t-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  color: var(--ink-soft);
}
.t-caption {
  font-size: var(--text-sm);
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* Gold highlight for italics inside headings */
h1 em, h2 em, .t-display em, .t-display-upright em { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   LAYOUT SYSTEM
═══════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-md  { max-width: var(--max-w-md); }
.container-sm  { max-width: var(--max-w-sm); }

.section         { padding: var(--sp-24) 0; }
.section-sm      { padding: var(--sp-16) 0; }
.section-lg      { padding: clamp(80px,10vw,140px) 0; }
.section-hero    { padding: clamp(100px,12vw,160px) 0 clamp(80px,10vw,120px); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-6); }

/* ═══════════════════════════════════════════════════════════
   SITE HEADER
═══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,248,244,0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cream-border);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: var(--sp-8);
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-right: auto;
}
.site-logo img { height: 32px; width: auto; }
.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.primary-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: all var(--dur) var(--ease);
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: var(--ink);
  border-bottom-color: var(--gold);
}
.nav-external::after { content: ' ↗'; font-size: 0.65rem; opacity: 0.55; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  background: none;
  border: none;
  padding: 4px;
}
.mobile-toggle span {
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
  display: block;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 999;
  padding: var(--sp-8) var(--gutter);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; flex-direction: column; gap: var(--sp-2); }
.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--cream-border);
}

/* ═══════════════════════════════════════════════════════════
   SITE FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  color: rgba(250,248,244,0.7);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3,1fr);
  gap: var(--sp-12);
  padding: var(--sp-20) 0 var(--sp-16);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-wordmark { color: var(--cream); }
.footer-brand p { margin-top: var(--sp-4); font-size: var(--text-sm); line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a { font-size: var(--text-sm); transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-6) 0;
  font-size: var(--text-xs);
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer-bottom a { transition: color var(--dur) var(--ease); }
.footer-bottom a:hover { color: var(--cream); }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.025em;
  border: 1.5px solid transparent;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none !important;
}
.btn-primary  { padding: 13px 28px; background: var(--ink);  color: var(--cream); border-color: var(--ink); }
.btn-primary:hover  { background: var(--ink-mid); border-color: var(--ink-mid); transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--cream); }
.btn-gold     { padding: 13px 28px; background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover     { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(184,147,74,0.30); color: var(--white); }
.btn-outline  { padding: 12px 26px; background: transparent; color: var(--ink);   border-color: var(--cream-border); }
.btn-outline:hover  { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.btn-ghost    { padding: 10px 18px; background: transparent; color: var(--ink-soft); }
.btn-ghost:hover    { color: var(--ink); background: var(--cream-deep); }
.btn-white    { padding: 13px 28px; background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-white:hover    { background: var(--cream); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-lg { padding: 16px 36px; font-size: var(--text-base); border-radius: var(--radius-xs); }
.btn-sm { padding: 8px 16px;  font-size: var(--text-xs); }

.btn-arrow { gap: var(--sp-3); }
.btn-arrow .arrow { transition: transform var(--dur) var(--ease); display: inline-block; }
.btn-arrow:hover .arrow { transform: translateX(4px); }

/* ═══════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}
.card-body { padding: var(--sp-6); }
.card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream-deep);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--gold-pale);
  color: var(--gold);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}
.card-tag.sage { background: var(--sage-pale); color: var(--sage); }
.card-tag.rust { background: var(--rust-pale); color: var(--rust); }

/* ═══════════════════════════════════════════════════════════
   SECTION DECORATORS
═══════════════════════════════════════════════════════════ */
.divider-line {
  height: 1px;
  background: var(--cream-border);
  margin: 0;
  border: none;
}

.section-label {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

/* Oversize number decorators */
.deco-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 400;
  color: var(--cream-border);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Pull quote style */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  padding-left: var(--sp-8);
  border-left: 2px solid var(--gold);
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════ */
.testimonial {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: var(--sp-8);
  position: relative;
}
.testimonial::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--gold-pale);
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-6);
  pointer-events: none;
}
.testimonial-body {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink-mid);
  position: relative;
  z-index: 1;
  margin-bottom: var(--sp-6);
  padding-top: var(--sp-5);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream-deep);
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: var(--text-sm); }
.testimonial-role { font-size: var(--text-xs); color: var(--ink-soft); }
.testimonial-stars {
  display: flex;
  gap: 2px;
  color: var(--gold);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-4);
}

/* ═══════════════════════════════════════════════════════════
   PRICING CARDS
═══════════════════════════════════════════════════════════ */
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: var(--sp-8);
  transition: all var(--dur) var(--ease);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.pricing-card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--cream);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  margin: var(--sp-4) 0 var(--sp-2);
}
.pricing-price sup { font-size: 1.5rem; vertical-align: top; margin-top: 8px; }
.pricing-price sub { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; color: var(--ink-soft); }
.pricing-features {
  margin: var(--sp-6) 0 var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--ink-mid);
}
.pricing-feature-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.pricing-feature-no { color: var(--ink-faint); }
.pricing-feature-no .pricing-feature-icon { color: var(--ink-faint); }

/* ═══════════════════════════════════════════════════════════
   BLOG / ARTICLE CARDS
═══════════════════════════════════════════════════════════ */
.post-card { background: transparent; border: none; border-radius: 0; }
.post-card:hover { transform: none; box-shadow: none; }
.post-card-image {
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream-deep);
  margin-bottom: var(--sp-5);
}
.post-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
  font-size: var(--text-xs);
  color: var(--ink-faint);
}
.post-card h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: var(--sp-3);
  transition: color var(--dur) var(--ease);
}
.post-card:hover h3 { color: var(--gold); }
.post-card p { font-size: var(--text-sm); color: var(--ink-soft); }
.post-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  margin-top: var(--sp-4);
  transition: gap var(--dur) var(--ease);
}
.post-card:hover .post-card-readmore { gap: var(--sp-3); }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding-top: calc(68px + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow: hidden;
  background: var(--cream);
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(228,221,211,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228,221,211,0.4) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -30%; right: -5%;
  width: 55vw; height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,240,226,0.8) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero-eyebrow-row {
  display: flex; align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.hero-eyebrow-rule { width: 28px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-6);
}
.hero-title em { color: var(--gold); }
.hero-body { font-size: 1.1rem; color: var(--ink-soft); line-height: 1.8; max-width: 480px; margin-bottom: var(--sp-8); }
.hero-actions { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: var(--sp-8); flex-wrap: wrap;
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--cream-border);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 600;
  display: block; line-height: 1;
}
.hero-stat-lbl { font-size: var(--text-xs); color: var(--ink-faint); letter-spacing: 0.04em; margin-top: 3px; display: block; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-xl);
}
.hero-img-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-float-card {
  position: absolute;
  bottom: -var(--sp-6); left: -var(--sp-8);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
}
.hero-float-card .fc-icon { font-size: 1.5rem; margin-bottom: var(--sp-2); }
.hero-float-card strong { font-family: var(--font-display); font-size: 1.1rem; display: block; }
.hero-float-card span  { font-size: var(--text-xs); color: var(--ink-soft); }

/* ═══════════════════════════════════════════════════════════
   ABOUT / SPLIT SECTIONS
═══════════════════════════════════════════════════════════ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.split-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.split-image-accent {
  position: absolute;
  bottom: -var(--sp-6); right: -var(--sp-6);
  width: 60%;
  aspect-ratio: 1;
  background: var(--gold-pale);
  border-radius: var(--radius-md);
  z-index: -1;
}

/* ═══════════════════════════════════════════════════════════
   PROCESS / STEPS
═══════════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-6);
}
.step {
  position: relative;
  padding: var(--sp-8);
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  transition: all var(--dur) var(--ease);
}
.step:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--cream-border);
  line-height: 1;
  margin-bottom: var(--sp-4);
  transition: color var(--dur) var(--ease);
}
.step:hover .step-num { color: var(--gold-pale); }
.step h4 { margin-bottom: var(--sp-2); }
.step p  { font-size: var(--text-sm); color: var(--ink-soft); }

/* ═══════════════════════════════════════════════════════════
   CTA SECTIONS
═══════════════════════════════════════════════════════════ */
.cta-section {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 8vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(184,147,74,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(184,147,74,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section * { position: relative; z-index: 1; }
.cta-section h2 { color: var(--cream); margin-bottom: var(--sp-4); }
.cta-section p  { color: rgba(250,248,244,0.65); max-width: 520px; margin: 0 auto var(--sp-8); }
.cta-section .btn-group { display: flex; justify-content: center; gap: var(--sp-4); flex-wrap: wrap; }

/* Inline gold strip CTA */
.cta-strip {
  background: var(--gold);
  padding: var(--sp-8) 0;
}
.cta-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.cta-strip h3 { color: var(--white); font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
.cta-strip p  { color: rgba(255,255,255,0.75); font-size: var(--text-sm); margin-top: var(--sp-1); }

/* ═══════════════════════════════════════════════════════════
   CONTACT FORM
═══════════════════════════════════════════════════════════ */
.form-field { margin-bottom: var(--sp-5); }
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-mid);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.01em;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 13px 16px;
  background: var(--white);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,147,74,0.12);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-hint { font-size: var(--text-xs); color: var(--ink-faint); margin-top: var(--sp-2); }

/* ═══════════════════════════════════════════════════════════
   BLOG / SINGLE POST
═══════════════════════════════════════════════════════════ */
.post-header { margin-bottom: var(--sp-10); }
.post-title  { margin-bottom: var(--sp-5); }
.post-meta   { display: flex; align-items: center; gap: var(--sp-4); font-size: var(--text-sm); color: var(--ink-soft); flex-wrap: wrap; }
.post-meta-sep { color: var(--cream-border); }
.post-featured-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--sp-10);
  aspect-ratio: 16/7;
}
.post-featured-image img { width: 100%; height: 100%; object-fit: cover; }

.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-mid);
}
.post-content h2 { margin: var(--sp-10) 0 var(--sp-4); }
.post-content h3 { margin: var(--sp-8) 0 var(--sp-3); }
.post-content p  { margin-bottom: 1.4em; }
.post-content a  { color: var(--gold); border-bottom: 1px solid rgba(184,147,74,0.3); transition: border-color var(--dur) var(--ease); }
.post-content a:hover { border-bottom-color: var(--gold); }
.post-content blockquote {
  border-left: 2px solid var(--gold);
  padding: var(--sp-4) var(--sp-8);
  margin: var(--sp-8) 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
}
.post-content ul, .post-content ol {
  margin: 0 0 1.4em var(--sp-6);
  list-style: disc;
}
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: var(--sp-2); }
.post-content img { border-radius: var(--radius-sm); margin: var(--sp-8) 0; }
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--cream-deep);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}
.post-content pre {
  background: var(--ink);
  color: var(--cream);
  padding: var(--sp-6);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: var(--sp-6) 0;
}
.post-content pre code { background: none; padding: 0; }

/* ═══════════════════════════════════════════════════════════
   BRIZY INTEGRATION
═══════════════════════════════════════════════════════════ */

/* Give Brizy our font choices */
.brz-root,
.brz-wrapper { font-family: var(--font-body) !important; }

/* Map Brizy global colour slots to our palette */
:root {
  --brz-color-1: #1C1A17;  /* Primary   = Ink    */
  --brz-color-2: #B8934A;  /* Secondary = Gold   */
  --brz-color-3: #FAF8F4;  /* Light     = Cream  */
  --brz-color-4: #FFFFFF;  /* White              */
  --brz-color-5: #8A9E8C;  /* Accent    = Sage   */
  --brz-color-6: #C4674A;  /* Extra     = Rust   */
}

/* Brizy sections match our background */
.brz-section { background-color: var(--cream); }
.brz-section.brz-bg-dark { background-color: var(--ink); }
.brz-section.brz-bg-gold { background-color: var(--gold); }

/* Brizy buttons inherit our style */
.brz-btn {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  letter-spacing: 0.025em !important;
  border-radius: var(--radius-xs) !important;
}

/* Brizy typography */
.brz h1,.brz h2,.brz h3,.brz h4,.brz h5,.brz h6 {
  font-family: var(--font-display) !important;
  letter-spacing: -0.015em !important;
}

/* LMS shortcodes inside Brizy inherit theme styles */
.brz-wrapper .lms-enrol-btn { font-family: var(--font-body); }
.brz-wrapper .lms-course-grid { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   LMS THEME INTEGRATION — override LMS plugin vars
   with warm editorial palette
═══════════════════════════════════════════════════════════ */
:root {
  --lms-accent:       var(--gold);
  --lms-accent-dark:  #9A7A3A;
  --lms-bg:           var(--cream);
  --lms-surface:      var(--white);
  --lms-surface-2:    var(--cream-deep);
  --lms-border:       rgba(228,221,211,0.8);
  --lms-text:         var(--ink);
  --lms-text-muted:   var(--ink-soft);
  --lms-font:         var(--font-body);
  --lms-font-display: var(--font-display);
  --lms-radius:       12px;
  --lms-radius-sm:    6px;
  --lms-success:      #4A8C6A;
  --lms-danger:       #C4674A;
  --lms-info:         #5A7FA0;
}

/* LMS buttons in light mode */
.lms-btn-primary, .lms-enrol-btn, .lms-mark-complete {
  background: var(--ink) !important;
  color: var(--cream) !important;
}
.lms-btn-primary:hover, .lms-enrol-btn:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 6px 20px rgba(184,147,74,0.25) !important;
}
.lms-mark-complete.lms-completed { background: var(--sage) !important; }

/* LMS progress bar */
.lms-progress-fill { background: linear-gradient(90deg, #9A7A3A, var(--gold)) !important; }

/* LMS quiz on light background */
.lms-quiz-wrap { background: var(--white); border-color: var(--cream-border); }
.lms-answer-opt { background: var(--cream-deep); border-color: var(--cream-border); color: var(--ink); }
.lms-answer-opt:hover { border-color: var(--gold); background: var(--gold-pale); }
.lms-result-icon { background: var(--sage) !important; }

/* LMS dashboard on light background */
.lms-dashboard { color: var(--ink); }
.lms-tab { color: var(--ink-soft); }
.lms-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.lms-stat-num { color: var(--gold) !important; }
.lms-course-card, .lms-cert-card, .lms-community-card { background: var(--white) !important; border-color: var(--cream-border) !important; }
.lms-course-card:hover { border-color: var(--gold) !important; }
.lms-locked-header, .lms-lesson-locked { background: var(--white) !important; border-color: var(--cream-border) !important; }
.lms-locked-title { color: var(--ink) !important; }
.lms-cd-num { background: var(--cream-deep) !important; border-color: var(--cream-border) !important; color: var(--ink) !important; }

/* LMS badges light mode */
.lms-badge-item { background: var(--white) !important; border-color: var(--cream-border) !important; color: var(--ink) !important; }
.lms-badge-name { color: var(--ink) !important; }
.lms-badge-pts  { color: var(--gold) !important; }
.lms-lb-row { border-bottom-color: var(--cream-border) !important; }
.lms-lb-points { color: var(--gold) !important; }

/* ═══════════════════════════════════════════════════════════
   WORDPRESS CORE CLASSES
═══════════════════════════════════════════════════════════ */
.alignleft  { float: left;  margin: 0 var(--sp-6) var(--sp-4) 0; }
.alignright { float: right; margin: 0 0 var(--sp-4) var(--sp-6); }
.aligncenter { margin: 0 auto var(--sp-6); display: block; }
.wp-caption { text-align: center; }
.wp-caption-text { font-size: var(--text-sm); color: var(--ink-faint); margin-top: var(--sp-2); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.sticky { }
.bypostauthor { }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner        { grid-template-columns: 1fr; gap: var(--sp-12); }
  .hero-visual       { display: none; }
  .hero-body         { max-width: 100%; }
  .footer-top        { grid-template-columns: 1fr 1fr; }
  .split-section     { grid-template-columns: 1fr; }
  .split-section.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .primary-nav, .header-actions { display: none; }
  .mobile-toggle { display: flex; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: var(--sp-8); }
  .cta-section { padding: var(--sp-12) var(--sp-8); }
  .cta-strip .container { flex-direction: column; text-align: center; }
  .pricing-card.featured { transform: none; }
  .hero-stats { gap: var(--sp-6); }
}

@media (max-width: 480px) {
  .btn-lg { padding: 14px 24px; font-size: var(--text-sm); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.anim-fade-up    { animation: fadeUp    var(--dur-slow) var(--ease) both; }
.anim-fade-in    { animation: fadeIn    var(--dur-slow) var(--ease) both; }
.anim-slide-right{ animation: slideRight var(--dur-slow) var(--ease) both; }

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }

/* Scroll reveal (JS adds .revealed class) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
