/* ============================================================
   True Destiny Leadership Group — site design system
   Palette: charcoal-slate ink, warm off-white paper, bronze-gold
   accent; deep teal reserved for 555 MLP sub-brand bands.
   Type: Fraunces (display serif) + Instrument Sans (body).
   ============================================================ */

:root {
  --ink: #1c2321;
  --ink-soft: #2a332f;
  --ink-card: #242d29;
  --paper: #f5f2ed;
  --paper-deep: #ece7dd;
  --white: #ffffff;
  --gold: #c9a227;
  --gold-deep: #a5851c;
  --gold-soft: #e7d9a8;
  --teal: #123f43;
  --teal-soft: #1c565b;
  --teal-bright: #3fa2a8;
  --muted: #5f6660;
  --muted-on-dark: #aab3ac;
  --line: rgba(28, 35, 33, 0.14);
  --line-on-dark: rgba(245, 242, 237, 0.16);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 18px 44px -18px rgba(28, 35, 33, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

.on-dark .kicker, .band-dark .kicker, .band-teal .kicker { color: var(--gold); }

.lede { font-size: 1.15rem; color: var(--muted); max-width: 46em; }

.band-dark .lede, .band-teal .lede { color: var(--muted-on-dark); }

section { padding: 84px 0; }

.band-dark { background: var(--ink); color: var(--paper); }
.band-teal { background: var(--teal); color: var(--paper); }
.band-paper-deep { background: var(--paper-deep); }
.band-white { background: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); color: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn-teal { background: var(--teal-bright); color: var(--ink); }
.btn-teal:hover { background: var(--paper); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(28, 35, 33, 0.97);
  color: var(--paper);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-on-dark);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; border-radius: 6px; }
.brand strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.15;
  display: block;
}
.brand span { display: block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
nav.main { display: flex; align-items: center; gap: 22px; }
nav.main a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--paper);
  opacity: 0.85;
}
nav.main a:hover, nav.main a[aria-current="page"] { opacity: 1; color: var(--gold); }
.nav-cta { white-space: nowrap; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--paper);
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201, 162, 39, 0.22), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(63, 162, 168, 0.16), transparent 55%),
    var(--ink);
  color: var(--paper);
  padding: 110px 0 96px;
}
.hero .lede { color: var(--muted-on-dark); margin-top: 22px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 60px; align-items: center; }
.hero-portrait {
  justify-self: center;
  position: relative;
}
.hero-portrait img {
  width: min(320px, 80vw);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-on-dark);
}
.hero-portrait figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-on-dark);
}

/* ---------- Authority bar ---------- */
.authority {
  background: var(--ink-soft);
  border-top: 1px solid var(--line-on-dark);
  padding: 22px 0;
  color: var(--paper);
}
.authority ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 38px;
  justify-content: center;
  align-items: center;
}
.authority li {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-on-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.authority li::before { content: "◆"; color: var(--gold); font-size: 0.6rem; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { font-size: 1.8rem; }
.card h3 { color: var(--ink); }
.card p { color: var(--muted); font-size: 0.98rem; flex-grow: 1; }
.card a.cardlink { font-weight: 700; color: var(--gold-deep); text-decoration: none; }
.card a.cardlink:hover { text-decoration: underline; }

.band-dark .card, .band-teal .card {
  background: var(--ink-card);
  border-color: var(--line-on-dark);
}
.band-dark .card h3, .band-teal .card h3 { color: var(--paper); }
.band-dark .card p, .band-teal .card p { color: var(--muted-on-dark); }
.band-teal .card { background: rgba(255, 255, 255, 0.06); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.14);
  color: var(--gold-deep);
  border: 1px solid rgba(201, 162, 39, 0.35);
}
.band-dark .tag, .band-teal .tag { color: var(--gold-soft); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold);
  display: block;
}
.stat span { font-size: 0.88rem; color: var(--muted-on-dark); }

/* ---------- Transformation arc ---------- */
.arc {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 44px;
}
.arc-step {
  border-radius: var(--radius);
  padding: 34px 30px;
  border: 1px solid var(--line-on-dark);
}
.arc-step.stand { background: linear-gradient(160deg, rgba(201, 162, 39, 0.16), rgba(201, 162, 39, 0.04)); }
.arc-step.mlp { background: linear-gradient(160deg, rgba(63, 162, 168, 0.2), rgba(63, 162, 168, 0.05)); }
.arc-step h3 { font-size: 1.5rem; margin-bottom: 4px; }
.arc-step .sub { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.arc-step.stand .sub { color: var(--gold); }
.arc-step.mlp .sub { color: var(--teal-bright); }
.arc-step p { color: var(--muted-on-dark); margin-top: 12px; font-size: 0.98rem; }
.arc-join {
  align-self: center;
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
}
.arc-flow {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
}
.arc-flow em { font-style: normal; color: var(--gold); }
.arc-flow span { color: var(--muted-on-dark); }

/* ---------- 5-5-5 anatomy ---------- */
.anatomy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.seg {
  border-radius: var(--radius);
  padding: 30px 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-on-dark);
}
.seg .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--teal-bright);
  line-height: 1;
}
.seg h3 { margin: 10px 0 8px; }
.seg p { color: var(--muted-on-dark); font-size: 0.95rem; }
.seg .mins { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.trip {
  border-radius: 12px;
  padding: 22px;
  font-size: 0.92rem;
  border: 1px solid var(--line-on-dark);
  color: var(--muted-on-dark);
}
.trip b { display: block; font-size: 1rem; margin-bottom: 6px; }
.trip.setup b { color: var(--gold); }
.trip.right b { color: #7fc98a; }
.trip.wrong b { color: #d98a8a; }

/* ---------- Placeholder frames (content Stephen supplies) ---------- */
.placeholder {
  border: 2px dashed rgba(201, 162, 39, 0.6);
  border-radius: var(--radius);
  background: rgba(201, 162, 39, 0.06);
  padding: 40px 30px;
  text-align: center;
  color: var(--muted);
}
.band-dark .placeholder, .band-teal .placeholder { color: var(--muted-on-dark); }
.placeholder .ph-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(201, 162, 39, 0.16);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.band-dark .placeholder .ph-label, .band-teal .placeholder .ph-label { color: var(--gold-soft); }
.placeholder.video { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.placeholder .play {
  width: 74px; height: 74px; border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--gold);
  margin-bottom: 18px;
}

/* ---------- Testimonials ---------- */
.tsl-carousel { position: relative; margin-top: 40px; }
.tsl { display: none; text-align: center; max-width: 760px; margin: 0 auto; }
.tsl.active { display: block; }
.tsl blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.4;
}
.tsl figcaption { margin-top: 18px; font-size: 0.92rem; color: var(--muted-on-dark); }
.tsl-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.tsl-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; background: var(--line-on-dark); cursor: pointer;
}
.tsl-dots button.active { background: var(--gold); }

/* ---------- Program cards ---------- */
.program { scroll-margin-top: 100px; }
.program .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.program details { margin-top: 4px; }
.program summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--gold-deep);
  list-style: none;
}
.program summary::-webkit-details-marker { display: none; }
.program summary::after { content: " +"; }
.program details[open] summary::after { content: " –"; }
.program details ul { margin: 12px 0 0 18px; color: var(--muted); font-size: 0.95rem; }
.program details li { margin-bottom: 6px; }
.program .outcome { margin-top: 12px; font-size: 0.95rem; color: var(--muted); }

/* ---------- Forms ---------- */
form.tdlg { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
form.tdlg .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; letter-spacing: 0.03em; }
.field label em { color: var(--gold-deep); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.band-dark .field input, .band-dark .field select, .band-dark .field textarea {
  background: var(--ink-card);
  border-color: var(--line-on-dark);
  color: var(--paper);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  border-color: transparent;
}
.field .err { color: #c96a5a; font-size: 0.8rem; display: none; margin-top: 4px; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c96a5a; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.check-grid label {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.9rem; font-weight: 600;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.band-dark .check-grid label { background: var(--ink-card); border-color: var(--line-on-dark); }
.check-grid input { accent-color: var(--gold); width: 16px; height: 16px; }
.form-success {
  display: none;
  grid-column: 1 / -1;
  background: rgba(127, 201, 138, 0.12);
  border: 1px solid rgba(127, 201, 138, 0.5);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  font-weight: 600;
}
form.tdlg.sent > *:not(.form-success) { display: none; }
form.tdlg.sent .form-success { display: block; }

/* ---------- Quiz ---------- */
.quiz-box {
  background: var(--ink-card);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 780px;
  margin: 44px auto 0;
}
.quiz-q h3 { margin-bottom: 20px; font-size: 1.3rem; }
.quiz-opts { display: grid; gap: 12px; }
.quiz-opts button {
  text-align: left;
  padding: 15px 18px;
  border-radius: 10px;
  border: 1px solid var(--line-on-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.97rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.quiz-opts button:hover { background: rgba(201, 162, 39, 0.15); border-color: var(--gold); }
.quiz-progress { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 16px; }
.quiz-bar { height: 6px; background: var(--line-on-dark); border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
.quiz-bar i { display: block; height: 100%; background: var(--gold); width: 0; transition: width 0.3s ease; }
.quiz-result h3 { font-size: 1.6rem; color: var(--gold); margin-bottom: 12px; }
.quiz-result p { color: var(--muted-on-dark); }
.quiz-email { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.quiz-email input {
  flex: 1 1 240px;
  padding: 13px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-on-dark);
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  font-family: var(--font-body);
}

/* ---------- Newsletter ---------- */
.newsletter-inner { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: space-between; }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  min-width: 260px;
  font-family: var(--font-body);
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin-top: 40px; position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gold), var(--teal-bright));
}
.timeline li { position: relative; padding-bottom: 30px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -32px; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--paper);
}
.band-dark .timeline li::before { border-color: var(--ink); }
.timeline b { display: block; font-size: 1.05rem; }
.timeline span { color: var(--muted); font-size: 0.95rem; }
.band-dark .timeline span { color: var(--muted-on-dark); }

/* ---------- Framework canon ---------- */
.canon { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: center; margin-top: 30px; }
.canon span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--muted-on-dark);
}
.canon span b { color: var(--paper); font-weight: 600; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: var(--muted-on-dark);
  padding: 70px 0 34px;
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
footer.site h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 9px; }
footer.site a { color: var(--muted-on-dark); text-decoration: none; }
footer.site a:hover { color: var(--paper); }
.footer-brand img { height: 44px; border-radius: 6px; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid var(--line-on-dark);
  margin-top: 50px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Section headers ---------- */
.sec-head { max-width: 720px; margin-bottom: 20px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { margin-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .grid-3, .anatomy, .triptych { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .arc { grid-template-columns: 1fr; }
  .arc-join { transform: rotate(90deg); justify-self: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  form.tdlg { grid-template-columns: 1fr; }

  nav.main {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 26px;
    gap: 16px;
    border-bottom: 1px solid var(--line-on-dark);
  }
  nav.main.open { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 560px) {
  section { padding: 60px 0; }
  .hero { padding: 74px 0 64px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .quiz-box { padding: 26px 20px; }
}
