/* ============================================================
   TRIBE ACADEMY  —  styles.css
   Design tokens match design.jpeg exactly on desktop (> 1024px).
   Responsive breakpoints: 768–1024px tablet, < 768px mobile.
============================================================ */

/* --- Custom properties ------------------------------------ */
:root {
  --dark:         #0a0c1a;
  --dark-card:    #0c0f24;
  --cream:        #f4efe4;
  --gold:         #c9a227;
  --gold-hover:   #d4ae45;
  --white:        #ffffff;
  --text-dark:    rgba(10, 12, 26, 0.82);
  --text-muted:   rgba(255, 255, 255, 0.6);
  --text-faint:   rgba(255, 255, 255, 0.4);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-cream: rgba(10, 12, 26, 0.12);
  --gold-border:  rgba(201, 162, 39, 0.3);
}

/* --- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--white);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* --- Layout utility --------------------------------------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
}

/* --- Shared typography ------------------------------------ */
.section-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-label--light { color: var(--gold); }

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--dark);
}
.section-heading em {
  font-style: italic;
  color: var(--gold);
}
.section-heading--light { color: var(--white); }

/* --- Button ----------------------------------------------- */
.btn-primary {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: center;
}
.btn-primary:hover  { background: var(--gold-hover); }
.btn-primary:active { background: var(--gold); }

.btn-primary--sm {
  display: inline-block;
  width: auto;
  padding: 14px 28px;
  flex-shrink: 0;
}

/* --- Form shared ------------------------------------------ */
.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 7px;
}
.form-input {
  display: block;
  width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input::placeholder { color: rgba(255, 255, 255, 0.28); }
.form-input:focus { border-color: rgba(201, 162, 39, 0.7); }

.form-group { margin-bottom: 16px; }

.form-disclaimer {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.5;
}

.form-success {
  margin-top: 12px;
  padding: 11px 14px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--gold);
  font-size: 13px;
  text-align: center;
  border-radius: 1px;
}

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: var(--dark);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 2px 32px rgba(0, 0, 0, 0.6);
}
.navbar-logo {
  display: flex;
  align-items: center;
}
.navbar-logo-img {
  height: 52px;
  width: auto;
  display: block;
}
.navbar-meta {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 26, 0.5) 0%, transparent 35%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 550px 360px;
  column-gap: 32px;
  align-items: center;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 72px 48px;
}

/* Center photo */
.hero-center {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  min-height: 520px;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.hero-center::before,
.hero-center::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 96px;
  z-index: 1;
  pointer-events: none;
}
.hero-center::before {
  left: 0;
  background: linear-gradient(to right, var(--dark) 0%, transparent 100%);
}
.hero-center::after {
  right: 0;
  background: linear-gradient(to left, rgba(10, 12, 26, 0.65) 0%, transparent 100%);
}

/* Eyebrow label */
.hero-eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}
.hero-eyebrow-rule {
  display: block;
  flex-shrink: 0;
  width: 28px;
  height: 1.5px;
  background: var(--gold);
  margin-top: 9px;
}
.hero-eyebrow-text {
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* Heading */
.hero-heading {
  font-family: 'Playfair Display', serif;
  font-size: 70px;
  font-weight: 700;
  line-height: 1.04;
  color: var(--white);
  margin-bottom: 26px;
}
.hero-heading em {
  display: block;
  font-style: italic;
  color: var(--gold);
}

/* Description */
.hero-desc {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  max-width: 390px;
  margin-bottom: 20px;
}

.hero-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 10px 16px;
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.hero-location-pin {
  font-size: 14px;
  line-height: 1;
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
}

/* Card */
.hero-right {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.hero-card {
  flex: 1;
  background: rgba(10, 12, 30, 0.92);
  border: 1px solid var(--gold-border);
  padding: 36px 32px 32px;
  backdrop-filter: blur(4px);
}
.hero-card-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 13px;
  margin-bottom: 22px;
}
.hero-card-heading {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.22;
  color: var(--white);
  margin-bottom: 12px;
}
.hero-card-desc {
  font-size: 13px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
}

/* ============================================================
   FRAMEWORK
============================================================ */
.framework {
  background: var(--cream);
  padding: 100px 0;
}

.framework-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 64px;
}
.framework-intro-left .section-heading {
  font-size: 54px;
}
.framework-intro-right p {
  font-size: 14px;
  line-height: 1.78;
  color: rgba(10, 12, 26, 0.65);
  max-width: 400px;
}

/* Pillars grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--border-cream);
}
.pillar {
  padding: 36px 28px 40px 0;
  border-right: 1px solid var(--border-cream);
}
.pillar:last-child { border-right: none; }
.pillar + .pillar { padding-left: 28px; }

.pillar-icon {
  height: 44px;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.pillar-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.pillar-number {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.pillar-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.pillar-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.22;
  color: var(--dark);
  margin-bottom: 12px;
}
.pillar-desc {
  font-size: 13px;
  line-height: 1.72;
  color: rgba(10, 12, 26, 0.62);
  margin-bottom: 24px;
}

.pillar-looks {
  padding-top: 18px;
  border-top: 1px solid rgba(10, 12, 26, 0.1);
}
.looks-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.looks-list li {
  font-size: 12.5px;
  color: rgba(10, 12, 26, 0.62);
  line-height: 2;
}

/* ============================================================
   TIMELINE
============================================================ */
.timeline {
  background: var(--dark);
  overflow: hidden;
}
.timeline-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  min-height: 560px;
}

.timeline-left {
  padding: 88px 64px 88px 48px;
}

/* Container-relative max-width for the heading */
.timeline-left .section-heading {
  font-size: 40px;
  margin-bottom: 20px;
  color: var(--white);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.timeline-event {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
}
.timeline-date {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  padding-top: 2px;
}
.timeline-event-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.4;
}
.timeline-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.5);
  padding: 3px 8px;
  text-transform: uppercase;
  white-space: nowrap;
}
.timeline-event-desc {
  font-size: 12.5px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.48);
}

.timeline-right {
  position: relative;
  overflow: hidden;
}
.timeline-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ============================================================
   PROGRAM DETAILS
============================================================ */
.program {
  background: var(--cream);
  padding: 100px 0;
}
.program-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 1.6fr;
  gap: 56px;
  align-items: start;
}
.program-col .section-heading {
  font-size: 38px;
  margin-bottom: 34px;
}

/* Checklist */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.checklist-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.checklist-mark {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  border: 1.5px solid var(--gold);
  margin-top: 2px;
  position: relative;
}
.checklist-mark::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 5px;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}
.checklist-text {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.55;
}
.checklist-text strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(10, 12, 26, 0.48);
  margin-bottom: 3px;
}

/* --- Program details icon-row list ------------------------- */
.details-list {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
}
.details-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-cream);
}
.details-item:first-child { border-top: 1px solid var(--border-cream); }
.details-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}
.details-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.details-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.details-value {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

/* Program photo */
.program-photo-col {
  align-self: stretch;
}
.program-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  min-height: 340px;
}

/* ============================================================
   TESTIMONIAL
============================================================ */
.testimonial {
  background: var(--dark);
  padding: 100px 0;
}
.testimonial-inner {
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}
.testimonial-quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 88px;
  color: var(--gold);
  line-height: 0.9;
  margin-bottom: 8px;
  opacity: 0.9;
}
.testimonial-text {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.58;
  color: var(--white);
  margin-bottom: 28px;
}
.testimonial-attr {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* ============================================================
   CTA BANNER
============================================================ */
.cta {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 88px 0;
  text-align: center;
}
.cta-heading {
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 18px;
}
.cta-heading em {
  font-style: italic;
  color: var(--gold);
}
.cta-sub {
  font-size: 14px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 36px;
}
.cta-form {
  display: flex;
  max-width: 476px;
  margin: 0 auto 16px;
}
.cta-input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-right: none;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.cta-input::placeholder { color: rgba(255, 255, 255, 0.32); }
.cta-input:focus { border-color: rgba(201, 162, 39, 0.7); }
.cta-success {
  max-width: 476px;
  margin: 0 auto 14px;
}
.cta-disclaimer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.32);
  margin-top: 14px;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 36px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
}
.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
}
.social-icon {
  color: rgba(255, 255, 255, 0.48);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.social-icon:hover { color: var(--white); }
.social-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
}
.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ============================================================
   RESPONSIVE  — Wide desktop collapse  1024 – 1420px
   Hide the center photo column when viewport is too narrow
   to comfortably hold 1fr + 550px + 420px.
============================================================ */
@media (max-width: 1420px) {
  .hero-inner {
    grid-template-columns: 1fr 420px;
    column-gap: 40px;
  }
  .hero-center { display: none; }
}

/* ============================================================
   RESPONSIVE  — Tablet  768 – 1024px
============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }

  /* Navbar */
  .navbar { padding: 18px 32px; }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr 420px;
    column-gap: 40px;
    padding: 60px 32px;
  }
  .hero-heading { font-size: 52px; }
  .hero-right { max-width: 100%; }

  /* Framework */
  .framework { padding: 80px 0; }
  .framework-intro { grid-template-columns: 1fr; gap: 24px; }
  .framework-intro-left .section-heading { font-size: 44px; }

  .pillars-grid { grid-template-columns: 1fr 1fr; }

  /* Fix borders on 2×2 grid */
  .pillar:nth-child(2)  { border-right: none; }
  .pillar:nth-child(3)  { padding-left: 0; border-right: 1px solid var(--border-cream); border-top: 1.5px solid var(--border-cream); padding-top: 36px; }
  .pillar:nth-child(4)  { border-right: none; border-top: 1.5px solid var(--border-cream); padding-top: 36px; }

  /* Timeline */
  .timeline-inner { grid-template-columns: 1fr; }
  .timeline-left  { padding: 72px 32px; max-width: 100%; }
  .timeline-right { height: 320px; }

  /* Program */
  .program { padding: 80px 0; }
  .program-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .program-photo-col {
    grid-column: 1 / -1;
    align-self: auto;
  }
  .program-photo { height: 360px; min-height: unset; }

  /* CTA */
  .cta-heading { font-size: 44px; }
}

/* ============================================================
   RESPONSIVE  — Mobile  < 768px
============================================================ */
@media (max-width: 767px) {
  .container { padding: 0 20px; }

  /* Navbar */
  .navbar { padding: 16px 20px; }
  .navbar-meta { display: none; }

  /* Hero */
  .hero { min-height: auto; padding-top: 72px; }
  .hero-inner {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 36px;
    padding: 48px 20px 56px;
  }
  .hero-center { display: block; min-height: unset; height: 280px; }
  .hero-center::before, .hero-center::after { display: none; }
  .hero-heading { font-size: 38px; }
  .hero-desc    { font-size: 14px; margin-bottom: 36px; max-width: 100%; }
  .hero-right   { max-width: 100%; }
  .hero-stats   { gap: 28px; }
  .stat-number  { font-size: 34px; }

  /* Framework */
  .framework { padding: 64px 0; }
  .framework-intro-left .section-heading { font-size: 36px; }
  .framework-intro { margin-bottom: 40px; }

  .pillars-grid { grid-template-columns: 1fr; }
  .pillar {
    padding: 28px 0 !important;
    border-right: none !important;
    border-top: 1.5px solid var(--border-cream) !important;
  }
  .pillar:first-child { border-top: none !important; }
  .pillar + .pillar { padding-left: 0 !important; }

  /* Timeline */
  .timeline-left { padding: 56px 20px; }
  .timeline-left .section-heading { font-size: 30px; margin-bottom: 36px; }
  .timeline-right { height: 260px; }

  /* Program */
  .program { padding: 64px 0; }
  .program-grid { grid-template-columns: 1fr; gap: 48px; }
  .program-col .section-heading { font-size: 30px; margin-bottom: 24px; }
  .program-photo-col { grid-column: auto; }
  .program-photo { height: 280px; min-height: unset; }

  /* Testimonial */
  .testimonial { padding: 64px 0; }
  .testimonial-text { font-size: 19px; }

  /* CTA */
  .cta { padding: 64px 0; }
  .cta-heading { font-size: 34px; }
  .cta-form {
    flex-direction: column;
    max-width: 100%;
  }
  .cta-input {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: none;
  }
  .btn-primary--sm {
    display: block;
    width: 100%;
    text-align: center;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 14px 20px; }
}
