/* ==========================================================================
   IndiePro — design tokens & base (dark theme)
   ========================================================================== */

:root {
  --navy: #4c8dff;
  --navy-dark: #0b2f5c;
  --ink: #eef2f6;
  --slate: #a9b8c9;
  --slate-light: #7c8ba0;
  --green: #199a00;
  --green-dark: #147a00;
  --green-tint: rgba(25, 154, 0, 0.18);
  --bg: #070c14;
  --bg-alt: #0c1524;
  --surface: #101a2c;
  --surface-2: #16233a;
  --border: rgba(255, 255, 255, 0.1);
  --white: #ffffff;

  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 1px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--slate); }
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; display: block; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9f0a8;
  background: var(--green-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.eyebrow.on-dark {
  color: #b9f0a8;
  background: rgba(25, 154, 0, 0.16);
}

.lede {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 62ch;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(25, 154, 0, 0.28);
}
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 8px 20px rgba(25, 154, 0, 0.35); }

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

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline-navy:hover { border-color: var(--navy); background: var(--bg-alt); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 12, 20, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.brand-mark {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
  flex: none;
}
.brand-mark img {
  position: absolute;
  top: 8px; left: 8px;
  width: 46px;
  height: 46px;
  max-width: none;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-name span { color: var(--green); }
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--slate);
  padding: 10px 16px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--navy); background: var(--bg-alt); }
.main-nav a.active { color: var(--navy); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: radial-gradient(1100px 520px at 82% -10%, #0d5aad 0%, transparent 60%), linear-gradient(160deg, var(--bg) 0%, var(--navy-dark) 55%, var(--navy) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 108px 0 96px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero h1 em { color: #7fd8ff; font-style: normal; }
.hero p.lede { color: rgba(255,255,255,0.78); font-size: 1.15rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(6px);
}
.stat-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--white);
}
.stat-card span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}

.page-hero {
  background: linear-gradient(160deg, var(--bg) 0%, var(--navy-dark) 60%, var(--navy) 100%);
  color: var(--white);
  padding: 84px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 300px at 20% 0%, rgba(0,0,0,0.6), transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); max-width: 20ch; }
.page-hero p.lede { color: rgba(255,255,255,0.78); }

/* ==========================================================================
   Sections
   ========================================================================== */

section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; background: var(--surface-2); }

.icon-badge {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  flex: none;
}
.icon-badge.green { background: var(--green); }
.icon-badge svg { width: 24px; height: 24px; stroke: currentColor; }

.service-card h3 { margin-bottom: 10px; }
.service-card ul { margin: 16px 0 0; padding: 0; list-style: none; }
.service-card li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.92rem; color: var(--slate);
  padding: 6px 0;
  border-top: 1px dashed var(--border);
}
.service-card li:first-child { border-top: none; padding-top: 0; }
.service-card li svg { flex: none; width: 16px; height: 16px; margin-top: 3px; stroke: var(--green); }

.pillar-card { position: relative; padding-top: 36px; }
.pillar-number {
  position: absolute; top: -18px; left: 32px;
  font-family: var(--font-head);
  font-size: 0.8rem; font-weight: 700;
  color: var(--white);
  background: var(--navy-dark);
  padding: 5px 12px;
  border-radius: 999px;
}

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--slate);
}
.check-list li svg {
  flex: none; width: 20px; height: 20px; margin-top: 2px;
  stroke: var(--green);
}
.check-list li strong { color: var(--ink); }
.check-list.two-col { grid-template-columns: 1fr 1fr; column-gap: 28px; }
@media (max-width: 700px) { .check-list.two-col { grid-template-columns: 1fr; } }

/* Training level cards */
.level-card { display: grid; grid-template-columns: 220px 1fr; gap: 36px; padding: 40px; }
.level-side { border-right: 1px solid var(--border); padding-right: 36px; }
.level-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 14px;
}
.level-duration { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--ink); }
.level-duration span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; color: var(--slate-light); text-transform: uppercase; letter-spacing: 0.06em; }
.level-audience { margin-top: 16px; font-size: 0.88rem; color: var(--slate); }
@media (max-width: 760px) {
  .level-card { grid-template-columns: 1fr; padding: 28px; }
  .level-side { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 24px; }
}

/* Timeline (About) */
.timeline { position: relative; margin-left: 8px; }
.timeline::before {
  content: "";
  position: absolute; left: 11px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding: 0 0 40px 44px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--navy);
}
.timeline-item.milestone .timeline-dot { border-color: var(--green); background: var(--green); }
.timeline-year {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 6px;
  display: block;
}
.timeline-item.milestone .timeline-year { color: var(--green); }

/* Team */
.team-card { text-align: left; }
.team-avatar {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.3rem;
  margin-bottom: 18px;
}
.team-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.team-bio { font-size: 0.92rem; }
.team-bio.placeholder { font-style: italic; color: var(--slate-light); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.team-avatar.has-photo { background: var(--surface-2); }

.team-linkedin {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.8rem;
  color: var(--navy);
  border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px;
  margin-top: 12px;
  transition: border-color .15s ease, background .15s ease;
}
.team-linkedin:hover { border-color: var(--navy); background: var(--bg-alt); }
.team-linkedin svg { width: 14px; height: 14px; }

/* Photo band (wide content image, not a background) */
.photo-band {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.photo-band img { width: 100%; height: auto; display: block; }
.photo-band-caption {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-top: 14px; flex-wrap: wrap;
}
.photo-band-caption span { font-size: 0.85rem; color: var(--slate-light); }

/* Pillar card media thumbnail */
.pillar-media {
  margin: -36px -32px 20px;
  height: 160px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.pillar-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: 24px;
  padding: 56px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.75); margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.15fr; gap: 48px; }
.contact-info-card {
  background: var(--navy-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card p { color: rgba(255,255,255,0.7); }
.contact-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.contact-row:first-of-type { border-top: none; }
.contact-row svg { flex: none; width: 20px; height: 20px; stroke: #7fd8ff; margin-top: 2px; }
.contact-row a, .contact-row span { color: var(--white); font-weight: 500; }
.contact-row small { display: block; color: rgba(255,255,255,0.55); font-size: 0.78rem; margin-top: 2px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-alt);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--surface-2);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note {
  font-size: 0.8rem;
  color: var(--slate-light);
  margin-top: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #04070d;
  color: rgba(255,255,255,0.65);
  padding: 64px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand-chip {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--white);
  position: relative;
  overflow: hidden;
  flex: none;
}
.footer-brand-chip img {
  position: absolute;
  top: 6px; left: 6px;
  width: 28px; height: 28px;
  max-width: none;
}
.footer-brand-name { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: 1.05rem; }
.footer-desc { font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
.footer-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
}
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */

.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.pre { opacity: 0; transform: translateY(18px); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { max-width: 460px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-actions .btn-sm.desktop-only { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .main-nav {
    display: flex;
    position: absolute;
    top: 92px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    box-shadow: var(--shadow-md);
  }
  .site-header.open .main-nav a { padding: 14px 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px; }
  section { padding: 64px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
