/* ============================================================
   THE INVESTED MAN — Main Stylesheet
   Brand: Purple #64288C | Dark Purple #50148C | Grey #505050
   ============================================================ */

:root {
  --purple:       #64288C;
  --dark-purple:  #50148C;
  --grey:         #505050;
  --charcoal:     #2D2D2D;
  --mid-grey:     #707070;
  --light-bg:     #F0EBF8;
  --pale-bg:      #FAF7FC;
  --light-lilac:  #D4B8EE;
  --white:        #FFFFFF;
  --max-width:    1080px;
  --radius:       6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a   { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--purple);
  box-shadow: 0 2px 12px rgba(100,40,140,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo img  { height: 48px; width: auto; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--purple); text-decoration: none; }

.nav-cta {
  background: var(--purple);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--dark-purple) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  background: var(--dark-purple);
  padding: 96px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(100,40,140,0.35);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-lilac);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  max-width: 700px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--light-lilac);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}
.btn-primary:hover { background: var(--dark-purple); border-color: var(--dark-purple); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-outline-purple {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}
.btn-outline-purple:hover { background: var(--purple); color: var(--white); }

/* ── SECTIONS ───────────────────────────────────────────────── */
.section { padding: 72px 24px; }
.section-light  { background: var(--pale-bg); }
.section-purple { background: var(--light-bg); }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--dark-purple);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-intro {
  font-size: 17px;
  color: var(--grey);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ── CONVICTION BLOCK ───────────────────────────────────────── */
.conviction {
  background: var(--dark-purple);
  padding: 40px 48px;
  border-radius: var(--radius);
  margin: 40px 0;
}

.conviction p:first-child {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 12px;
}

.conviction p:last-child {
  font-size: 16px;
  font-style: italic;
  color: var(--light-lilac);
}

/* ── STAT STRIP ─────────────────────────────────────────────── */
.stat-strip {
  display: grid;
  gap: 2px;
  background: var(--purple);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 40px 0;
}

.stat-strip-4 { grid-template-columns: repeat(4,1fr); }
.stat-strip-3 { grid-template-columns: repeat(3,1fr); }

.stat-item {
  background: var(--purple);
  padding: 28px 20px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--light-lilac);
  line-height: 1.4;
}

/* ── PROGRAMME CARDS ────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

.card {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-header {
  padding: 28px 28px 20px;
  background: var(--purple);
}

.card-header.dark { background: var(--dark-purple); }

.card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-lilac);
  margin-bottom: 8px;
}

.card-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 6px;
}

.card-header p {
  font-size: 13px;
  font-style: italic;
  color: var(--light-lilac);
}

.card-body {
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--light-bg);
  border-top: none;
  flex: 1;
}

.card-body p { font-size: 15px; color: var(--grey); line-height: 1.7; margin-bottom: 20px; }

.card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.02em;
}
.card-link:hover { text-decoration: underline; }

/* ── STEPS ──────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 24px; margin: 32px 0; }

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
}

.step-num {
  width: 48px; height: 48px;
  background: var(--purple);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark-purple);
  margin-bottom: 6px;
}

.step-content p { font-size: 15px; color: var(--grey); line-height: 1.7; }

/* ── TWO COLUMN ─────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.two-col-wide {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 56px;
  align-items: start;
}

/* ── DETAIL TABLE ───────────────────────────────────────────── */
.detail-table { width: 100%; border-collapse: collapse; margin: 24px 0; }

.detail-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid #E8E0F0;
  vertical-align: top;
}

.detail-table td:first-child {
  font-weight: 700;
  color: var(--purple);
  white-space: nowrap;
  width: 160px;
  background: var(--light-bg);
}

.detail-table td:last-child { color: var(--charcoal); }

/* ── OUTCOMES LIST ──────────────────────────────────────────── */
.outcomes-list { list-style: none; margin: 24px 0; }

.outcomes-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #E8E0F0;
  font-size: 15px;
}

.outcomes-list li:last-child { border-bottom: none; }

.outcome-stat {
  font-weight: 800;
  color: var(--purple);
  min-width: 120px;
  font-size: 15px;
}

.outcome-detail { color: var(--charcoal); }

/* ── WEEK TABLE ─────────────────────────────────────────────── */
.week-table { width: 100%; border-collapse: collapse; margin: 24px 0; }

.week-table td {
  padding: 14px 18px;
  font-size: 14px;
  border-bottom: 1px solid #E8E0F0;
  vertical-align: top;
}

.week-table td:first-child {
  font-weight: 700;
  color: var(--purple);
  white-space: nowrap;
  width: 140px;
  background: var(--light-bg);
}

/* ── AUDIENCE SECTIONS ──────────────────────────────────────── */
.audience-block {
  margin-bottom: 32px;
  border-left: 4px solid var(--purple);
  padding-left: 24px;
}

.audience-block h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark-purple);
  margin-bottom: 4px;
}

.audience-block .strapline {
  font-size: 15px;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 8px;
}

.audience-block p { font-size: 15px; color: var(--grey); margin-bottom: 10px; }

.audience-block .cta-arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
}

/* ── CTA BLOCK ──────────────────────────────────────────────── */
.cta-block {
  background: var(--dark-purple);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin: 48px 0;
}

.cta-block p {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  max-width: 560px;
  line-height: 1.5;
}

/* ── INVEST TABLE ───────────────────────────────────────────── */
.invest-table { width: 100%; border-collapse: collapse; margin: 24px 0; }

.invest-table th {
  background: var(--purple);
  color: var(--white);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.invest-table td {
  padding: 11px 16px;
  font-size: 14px;
  border-bottom: 1px solid #E8E0F0;
  vertical-align: top;
}

.invest-table tr:nth-child(even) td { background: #FAFAFA; }

.invest-table td:first-child {
  font-weight: 700;
  color: var(--purple);
  white-space: nowrap;
  background: var(--light-bg) !important;
}

/* ── PARTNERS LIST ──────────────────────────────────────────── */
.partners-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.partners-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--charcoal);
}

.partners-list li::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
}

/* ── CONTACT GRID ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

.contact-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-card .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
}

/* ── PAGE HERO (inner pages) ────────────────────────────────── */
.page-hero {
  background: var(--dark-purple);
  padding: 64px 24px 56px;
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero .hero-label { color: var(--light-lilac); }

.page-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  max-width: 640px;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: var(--light-lilac);
  max-width: 560px;
  line-height: 1.65;
}

/* ── PARTNER LOGOS GRID ─────────────────────────────────────── */
.partner-logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.partner-logo-tile {
  background: var(--white);
  border: 1px solid #E8E0F0;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.partner-logo-tile img {
  max-height: 90px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .partner-logos-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── VIDEO SECTION ──────────────────────────────────────────── */
.section-video-bg {
  background: var(--dark-purple);
  padding: 72px 24px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  aspect-ratio: 16 / 9;
}

.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  border: none;
}

.video-caption {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--dark-purple);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 24px;
}

.footer-logo img { height: 44px; margin-bottom: 12px; }

.footer-tagline {
  font-size: 13px;
  font-style: italic;
  color: var(--light-lilac);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-bottom a {
  font-size: 12px;
  color: var(--light-lilac);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    padding: 16px 24px;
    border-bottom: 2px solid var(--light-bg);
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .cards-grid    { grid-template-columns: 1fr; }
  .two-col       { grid-template-columns: 1fr; gap: 32px; }
  .two-col-wide  { grid-template-columns: 1fr; gap: 32px; }
  .stat-strip-4  { grid-template-columns: repeat(2,1fr); }
  .stat-strip-3  { grid-template-columns: repeat(3,1fr); }
  .partners-list { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
  .footer-top    { grid-template-columns: 1fr; gap: 24px; }
  .footer-links  { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .conviction { padding: 28px 24px; }
  .cta-block  { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .section    { padding: 48px 24px; }
  .section-video-bg { padding: 48px 24px; }
  .video-wrapper { max-width: 100%; }
}

@media (max-width: 480px) {
  .stat-strip-4 { grid-template-columns: repeat(2,1fr); }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}
