/* =================================================================
   corporatetrainer.com  —  shared design system
   Used by all 9 pages. Edit here to update site-wide.
   ================================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colours */
  --navy: #0F172A;
  --navy-soft: #1E293B;
  --off-white: #F5F4EE;
  --warm-paper: #FAFAF7;
  --burnt-orange: #B45309;
  --burnt-orange-hover: #9A4408;
  --terracotta: #92400E;
  --sage: #5A7A60;
  --text-primary: #1C1917;
  --text-muted: #57534E;
  --rule: #D6D3D1;
  --rule-soft: #E7E5E4;

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 128px;

  /* Layout */
  --content-max: 1200px;
  --content-narrow: 760px;
  --content-prose: 680px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--off-white);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--burnt-orange); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: var(--space-sm); }

p { margin: 0 0 var(--space-md); max-width: var(--content-prose); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 var(--space-md); padding: 0; list-style: none; }
li { margin-bottom: var(--space-sm); padding-left: var(--space-md); position: relative; }
li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7em;
  width: 8px; height: 8px;
  background: var(--terracotta);
}

/* ---------- 3. Layout primitives ---------- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.container-narrow { max-width: var(--content-narrow); margin: 0 auto; padding: 0 var(--space-md); }

.section { padding: var(--space-2xl) 0; }
.section-tight { padding: var(--space-xl) 0; }
.section-large { padding: var(--space-3xl) 0; }

.section-paper { background: var(--warm-paper); }
.section-rule-top { border-top: 1px solid var(--rule); }

@media (min-width: 768px) {
  .section { padding: var(--space-3xl) 0; }
}

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terracotta);
  margin-bottom: var(--space-md);
  display: block;
}

.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.muted { color: var(--text-muted); }

.divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 244, 238, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-md) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
.wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark:hover { color: var(--navy); }
.wordmark-footer { color: #fff !important; }

.nav { display: none; }
.nav-list { display: flex; gap: var(--space-lg); margin: 0; padding: 0; }
.nav-list li { margin: 0; padding: 0; }
.nav-list li::before { display: none; }
.nav-list a {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
}
.nav-list a:hover { color: var(--terracotta); }

@media (min-width: 1024px) {
  .nav { display: block; }
}

.menu-toggle {
  display: block;
  background: none;
  border: 1px solid var(--rule);
  padding: 8px 14px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: 2px;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Hide the desktop nav CTA on mobile - it appears in the mobile menu instead */
.site-header .nav-cta { display: none !important; }
@media (min-width: 1024px) { .site-header .nav-cta { display: inline-block !important; } }

.mobile-nav { display: none; padding: var(--space-md); border-top: 1px solid var(--rule-soft); background: var(--off-white); }
.mobile-nav.is-open { display: block; }
.mobile-nav .nav-list { flex-direction: column; gap: var(--space-md); }
.mobile-nav .btn { margin-top: var(--space-md); width: 100%; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  text-align: center;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--burnt-orange);
  color: #fff;
}
.btn-primary:hover { background: var(--burnt-orange-hover); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-small { padding: 10px 18px; font-size: 0.875rem; }

/* ---------- 7. Hero — full-bleed image, text overlay ---------- */
.hero {
  position: relative;
  padding: 0;
  min-height: calc(100vh - 73px);
  background: var(--off-white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% center;
  display: block;
}
/* Subtle gradient on the right to ensure text readability over the light wall area */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(245, 244, 238, 0) 0%,
    rgba(245, 244, 238, 0) 40%,
    rgba(245, 244, 238, 0.85) 65%,
    rgba(245, 244, 238, 0.96) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--space-2xl) var(--space-xl);
}
@media (min-width: 768px) {
  .hero-content { padding: var(--space-3xl) var(--space-2xl); }
}
.hero-text {
  max-width: 620px;
  width: 100%;
}
.hero-text h1 { margin-bottom: var(--space-lg); }
.hero-text .lead { margin-bottom: var(--space-lg); font-size: clamp(1.125rem, 1.5vw, 1.4rem); }
.hero-text .cta-line { font-family: var(--font-body); font-style: italic; color: var(--text-muted); margin-top: var(--space-md); font-size: 0.95rem; }

/* On mobile, the gradient covers more so text is readable */
@media (max-width: 767px) {
  .hero-bg img { object-position: 30% top; }
  .hero-bg::after {
    background: linear-gradient(
      to bottom,
      rgba(245, 244, 238, 0) 0%,
      rgba(245, 244, 238, 0) 35%,
      rgba(245, 244, 238, 0.95) 55%,
      rgba(245, 244, 238, 1) 70%
    );
  }
  .hero-content {
    align-items: flex-end;
    justify-content: flex-start;
    padding: var(--space-md) var(--space-md) var(--space-xl);
    padding-top: 45vh;
  }
  .hero-text h1 { font-size: 1.75rem; line-height: 1.2; }
  .hero-text .lead { font-size: 1rem; }
}

/* ---------- Four ways banner image (heading above, full image, smaller) ---------- */
.four-ways-banner {
  margin: var(--space-xl) auto var(--space-2xl);
  max-width: 720px;
}
.four-ways-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* ---------- Four ways with full-section background image ---------- */
.section-fourways {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  padding: var(--space-3xl) 0;
}
.section-fourways .fw-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.section-fourways .fw-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.18;
}
.section-fourways .fw-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(250, 250, 247, 0.7) 0%,
    rgba(250, 250, 247, 0.85) 50%,
    rgba(250, 250, 247, 0.95) 100%
  );
}
.section-fourways .container {
  position: relative;
  z-index: 1;
}
.section-fourways .section-intro {
  max-width: 900px;
  margin-bottom: var(--space-2xl);
}
.section-fourways .section-intro h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

/* ---------- Authority section restructure ---------- */
.authority-heading {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  margin-bottom: var(--space-lg);
}
.authority-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
  margin-bottom: var(--space-xl);
}
@media (min-width: 1024px) {
  .authority-body-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-2xl);
  }
}
.authority-image-large {
  border: 1px solid var(--rule-soft);
  padding: var(--space-xs);
  background: var(--warm-paper);
}
.authority-image-large img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.authority-closing {
  font-size: 1.0625rem;
  max-width: 100%;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--rule);
}

/* ---------- 8. Logo strip ---------- */
.logo-strip {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: #ffffff;
}
.logo-strip-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.logo-strip img {
  width: 100%;
  height: auto;
  display: block;
  /* Source image is already pre-processed black-on-white */
}

/* ---------- 9. Two-column section ---------- */
.two-col {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}
@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

/* ---------- 10. Authority section (with portrait) ---------- */
.authority-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 1024px) {
  .authority-grid { grid-template-columns: 1.3fr 1fr; gap: var(--space-2xl); }
}
.authority-quote {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-style: italic;
  border-left: 3px solid var(--terracotta);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--navy);
  line-height: 1.5;
  font-weight: 600;
}
.authority-image {
  border: 1px solid var(--rule-soft);
  padding: var(--space-sm);
  background: var(--warm-paper);
}

/* ---------- 11. Card grid (2/3/4 cols) ---------- */
.card-grid {
  display: grid;
  gap: var(--space-md);
}
.card-grid-2 { grid-template-columns: 1fr; }
.card-grid-3 { grid-template-columns: 1fr; }
.card-grid-4 { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  border: 1px solid var(--rule);
  background: var(--warm-paper);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--terracotta); transform: translateY(-2px); }
.card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}
.card p { font-size: 1rem; color: var(--text-muted); flex: 1; }
.card-link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--burnt-orange);
  margin-top: var(--space-md);
  display: inline-block;
}
.card-link::after { content: ' →'; transition: transform 0.2s ease; display: inline-block; }
.card:hover .card-link::after { transform: translateX(4px); }

/* ---------- 12. Outcomes / case tiles ---------- */
.case-tile {
  background: var(--warm-paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.case-tile:hover { border-color: var(--navy); }
.case-tile-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.case-tile-body { padding: var(--space-md); flex: 1; display: flex; flex-direction: column; }
.case-tile-body p {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  flex: 1;
}
.case-tile-body .case-link {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--burnt-orange);
  margin-top: auto;
}

/* ---------- 13. Testimonials ---------- */
.testimonials {
  display: grid;
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
}
.testimonial {
  background: var(--warm-paper);
  border-left: 4px solid var(--terracotta);
  padding: var(--space-lg);
}
.testimonial blockquote {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy);
  margin: 0 0 var(--space-md);
  line-height: 1.6;
}
.testimonial cite {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-style: normal;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- 14. Sage section (retreats) — image fills left ---------- */
.section-sage {
  background: #EAEFE9;
  border-top: 1px solid #C4D2C3;
  border-bottom: 1px solid #C4D2C3;
  padding: 0;
}
.section-sage .eyebrow { color: var(--sage); }
.sage-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: 480px;
}
@media (min-width: 1024px) {
  .sage-grid { grid-template-columns: 1fr 1fr; }
}
.sage-image {
  position: relative;
  margin: 0;
  min-height: 320px;
  display: flex;
}
.sage-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 80%;  /* compass + hand fully in frame */
  border: none;
  display: block;
}
.sage-text {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
}
@media (min-width: 1024px) {
  .sage-text { padding: var(--space-3xl) var(--space-2xl); }
}
.sage-link {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--sage);
}

/* ---------- 15. Final CTA ---------- */
.final-cta {
  background: var(--navy);
  color: var(--off-white);
  padding: var(--space-3xl) 0;
}
.final-cta h2 { color: #fff; max-width: 720px; margin-bottom: var(--space-lg); }
.final-cta p { color: rgba(245, 244, 238, 0.85); max-width: 620px; }
.final-cta .btn-primary { margin-top: var(--space-lg); }
.final-cta-meta {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: rgba(245, 244, 238, 0.65);
  margin-top: var(--space-md);
}

/* ---------- 16. Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(245, 244, 238, 0.7);
  padding: var(--space-xl) 0 var(--space-lg);
  font-family: var(--font-ui);
  font-size: 0.875rem;
}
.site-footer .container { display: flex; flex-direction: column; gap: var(--space-lg); }
@media (min-width: 768px) {
  .site-footer .container { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.site-footer a { color: rgba(245, 244, 238, 0.85); }
.site-footer a:hover { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); }
.footer-meta { font-size: 0.8rem; color: rgba(245, 244, 238, 0.5); margin-top: var(--space-md); }

/* ---------- 17. Utilities ---------- */
.text-center { text-align: center; }
.no-bullets { list-style: none; padding-left: 0; }
.no-bullets li { padding-left: 0; }
.no-bullets li::before { display: none; }
.intro-block { max-width: 720px; margin-bottom: var(--space-xl); }
.intro-block h2 { margin-bottom: var(--space-md); }

/* Section heading + intro pattern */
.section-intro {
  max-width: var(--content-prose);
  margin-bottom: var(--space-xl);
}
.section-intro h2 { margin-bottom: var(--space-md); }
.section-intro p { font-size: 1.0625rem; }
