/* ============================================================
   TWB — The Wealth Builders Academy
   Shared stylesheet for all site pages.
   Layout concept: a warm, editorial "ledger" feel — cream paper,
   serif headlines, three brand accents (violet/orange/teal) used
   as single highlight colors rather than a rainbow palette.
   ============================================================ */

:root {
  /* color */
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --surface-2: #F3F1EA;
  --fg: #17181B;
  --muted: #716C63;
  --border: #E6E1D6;
  --violet: #7839E9;
  --orange: #FF9638;
  --teal: #08B5D0;
  --accent: #FF9638;
  --accent-contrast: #17181B;

  /* type */
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131319;
    --surface: #1D1E25;
    --surface-2: #23242C;
    --fg: #F3F1EA;
    --muted: #A7A39A;
    --border: #32333C;
    --accent-contrast: #131319;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #131319;
  --surface: #1D1E25;
  --surface-2: #23242C;
  --fg: #F3F1EA;
  --muted: #A7A39A;
  --border: #32333C;
  --accent-contrast: #131319;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: auto; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  display: flex;
  gap: 5px;
}
.brand-mark span {
  width: 20px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
}
.brand-mark .t { background: var(--violet); }
.brand-mark .w { background: var(--orange); height: 34px; align-self: center; }
.brand-mark .b { background: var(--teal); }

.brand-word {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--fg);
}

.nav-links a[aria-current="page"] {
  position: relative;
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--orange);
}

.nav-cta {
  background: var(--orange);
  color: #111111;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}
.nav-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--fg);
  flex-shrink: 0;
}
.nav-caret { margin-left: 4px; vertical-align: -2px; opacity: 0.7; }
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle-label svg { width: 22px; height: 22px; }

@media (max-width: 1410px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px max(20px, env(safe-area-inset-left, 0px)) 20px;
    display: none;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }
  .nav-links a { padding: 10px 0; width: 100%; font-size: 0.98rem; }
  .nav-links .nav-cta { display: inline-flex; margin-top: 6px; }
  .nav-toggle-label { display: flex; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--accent-contrast);
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-dark {
  background: var(--fg);
  color: var(--bg);
}
.btn-dark:hover { filter: brightness(1.15); }

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--fg); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- layout helpers ---------- */

.section {
  padding-block: clamp(56px, 9vw, 104px);
}
.section-tight { padding-block: clamp(40px, 6vw, 64px); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.6;
}

.badge-pill {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 9px 20px;
  border-radius: 999px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 640px) {
  .grid-2x2 { grid-template-columns: 1fr; }
}

.triple-col {
  display: grid;
  grid-template-columns: 0.62fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .triple-col { grid-template-columns: 1fr 1fr; }
  .triple-col > :first-child { grid-column: 1 / -1; max-width: 220px; }
}
@media (max-width: 620px) {
  .triple-col { grid-template-columns: 1fr; }
  .triple-col > :first-child { max-width: 260px; }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.hero-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 20px;
  align-items: center;
}
@media (max-width: 820px) {
  .hero-grid-2 { grid-template-columns: 1fr; gap: 32px; }
}

.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(64px, 10vw, 120px) clamp(48px, 8vw, 80px);
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  max-width: 18ch;
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 8px;
}
.stat-strip .stat { min-width: 140px; }
.stat-strip .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--fg);
  line-height: 1;
}
.stat-strip .lbl {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 48px;
  margin-top: 40px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--fg);
  font-size: 0.95rem;
}
.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- forms ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.field label {
  font-weight: 700;
  font-size: 0.9rem;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.copy-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  white-space: pre-wrap;
  color: var(--fg);
}

/* ---------- misc ---------- */

.tag-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.qr-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  display: inline-flex;
}
.qr-frame img { width: 200px; height: 200px; border-radius: 10px; }

/* ---------- hero band (home, white) ---------- */

.hero-band {
  background: #FFFFFF;
  padding-bottom: clamp(40px, 5vw, 56px);
}

/* ---------- pillar strip (home) ---------- */

.pillar-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(17,17,17,0.10);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.pillar-strip-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 22px;
  border-left: 1px solid var(--border);
}
.pillar-strip-item:first-child { border-left: none; }
.pillar-strip-item .picon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar-strip-item .picon svg { width: 36px; height: 36px; }
.pillar-strip-item h4 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  color: #111111;
}
.pillar-strip-item p {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 4px;
}
.pillar-strip-overlap {
  margin-top: -56px;
  position: relative;
  z-index: 2;
}
@media (max-width: 760px) {
  .pillar-strip-overlap { margin-top: 24px; }
}
@media (max-width: 900px) {
  .pillar-strip { grid-template-columns: repeat(2, 1fr); }
  .pillar-strip-item:nth-child(3) { border-left: none; }
  .pillar-strip-item:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 520px) {
  .pillar-strip { grid-template-columns: 1fr; }
  .pillar-strip-item { border-left: none !important; border-top: 1px solid var(--border); }
  .pillar-strip-item:first-child { border-top: none; }
}

/* ---------- dark feature banner (creative hub teaser) ---------- */

.feature-banner {
  background: var(--fg);
  color: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.feature-banner .fb-media { min-height: 260px; }
.feature-banner .fb-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-banner .fb-copy {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.feature-banner .fb-copy .lede { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.feature-banner .fb-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.feature-banner .fb-list li {
  font-size: 0.85rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--bg) 85%, transparent);
}
@media (max-width: 820px) {
  .feature-banner { grid-template-columns: 1fr; }
  .feature-banner .fb-media { min-height: 200px; order: -1; }
}

/* ---------- pillars / numbered cards ---------- */

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 26px;
  border-top: 4px solid var(--teal);
}
.pillar-card .pillar-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--muted);
  opacity: 0.6;
}
.pillar-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pillar-card li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.pillar-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.num-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  color: var(--fg);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- hero media ---------- */

.hero-visual {
  position: relative;
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 32px;
  z-index: 0;
}
.hero-visual::before {
  background: var(--violet);
  width: 56%;
  height: 42%;
  top: -16px;
  right: -16px;
  opacity: 0.9;
}
.hero-visual::after {
  background: var(--orange);
  width: 30%;
  height: 26%;
  bottom: -14px;
  right: 14%;
  opacity: 0.9;
}
.hero-visual .blob-teal {
  content: "";
  position: absolute;
  z-index: 0;
  background: var(--teal);
  width: 16%;
  height: 38%;
  top: 22%;
  right: -16px;
  border-radius: 28px;
  opacity: 0.9;
}

.hero-media {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  overflow: hidden;
  border: none;
  line-height: 0;
}
.hero-media img { width: 100%; height: auto; display: block; }

/* ---------- checklist ---------- */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
}
.check-list .check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-list .check-icon svg { width: 13px; height: 13px; }

/* ---------- about portrait ---------- */

.portrait-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--orange);
  padding: 10px;
  line-height: 0;
}
.portrait-frame img {
  border-radius: 14px;
  width: 100%;
  height: auto;
  display: block;
}
.portrait-mark {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 2;
}

/* ---------- divider stat strip ---------- */

.stat-strip-bare {
  display: flex;
  flex-wrap: wrap;
}
.stat-strip-bare .stat {
  flex: 1 1 160px;
  padding: 4px 28px;
  border-left: 1px solid var(--border);
}
.stat-strip-bare .stat:first-child { border-left: none; }
@media (max-width: 700px) {
  .stat-strip-bare .stat { border-left: none !important; padding-left: 0; }
}

/* ---------- fb-list with icons ---------- */

.fb-list.fb-list-icons {
  flex-direction: column;
  gap: 10px;
}
.fb-list.fb-list-icons li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fb-list.fb-list-icons .fi {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fb-list.fb-list-icons .fi svg { width: 16px; height: 16px; }

/* ---------- diagonal accent (closing cta) ---------- */

.diagonal-accent {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
.diagonal-accent span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34px;
  clip-path: polygon(40% 0%, 100% 0%, 60% 100%, 0% 100%);
}

/* ---------- event / partner cards ---------- */

.event-card {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.event-card:last-child { border-bottom: none; }
.event-date {
  flex-shrink: 0;
  width: 86px;
  text-align: center;
}
.event-date .d-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
}
.event-date .d-mon {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[hidden] { display: none !important; }
