/* =========================================================
   Progressive AI Lab - shared stylesheet
   Branding ported from Higher Ground Institute / AI Campaign Stack
   ========================================================= */

:root {
  --navy: #0A2540;
  --navy-light: #0F3557;
  --sky: #6ECDE8;
  --sky-dark: #4BB8D4;
  --ice: #E8F7FC;
  --ice-mid: #D0EFF8;
  --white: #FFFFFF;
  --offwhite: #F7F9FB;
  --gray-100: #F0F2F5;
  --gray-200: #E2E6EB;
  --gray-400: #9AA5B4;
  --gray-600: #5A6978;
  --text: #1A2B3D;
  --text-light: #4A5B6E;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sky-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }

img { max-width: 100%; height: auto; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(10,37,64,0.08); }
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-brand { display: flex; align-items: center; gap: 0.7rem; }
.nav-mark { width: 34px; height: 34px; flex-shrink: 0; }
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-top {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
}
.nav-logo-bottom {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
}
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--navy); }
.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--navy-light) !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---- HERO ---- */
.hero {
  padding: 10rem 0 6rem;
  background: var(--offwhite);
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 2;
}
.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Inner-page (short) hero */
.hero.compact { padding: 9rem 0 4rem; }
.hero.compact h1 { font-size: 2.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-200);
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }

/* Chevron decoration */
.hero-chevrons {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.07;
  z-index: 1;
}
.hero-chevrons svg { width: 500px; height: 400px; }

/* ---- SECTION SHARED ---- */
section { padding: 6rem 0; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  line-height: 1.7;
}
.section-header { margin-bottom: 3.5rem; }

/* Prose blocks for content-heavy pages */
.prose { max-width: 720px; }
.prose h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin: 2.75rem 0 1rem;
  line-height: 1.25;
}
.prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}
.prose p { color: var(--text-light); margin-bottom: 1.15rem; line-height: 1.75; }
.prose ul { margin: 0 0 1.15rem 1.25rem; color: var(--text-light); }
.prose li { margin-bottom: 0.5rem; line-height: 1.7; }
.prose strong { color: var(--text); }

/* ---- STAT BAND ---- */
.stat-band { background: var(--white); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-card {
  background: var(--offwhite);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: center;
}
.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-top: 0.6rem;
}

/* ---- CARD GRIDS (generic) ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }

.card {
  background: var(--offwhite);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 2.25rem;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--sky);
  box-shadow: 0 8px 30px rgba(10,37,64,0.06);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--ice);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.card-icon svg { width: 24px; height: 24px; color: var(--sky-dark); }
.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.65; flex: 1; }
.card-link {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sky-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
}
.card-link:hover { color: var(--navy); }
.card-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.card-link:hover svg { transform: translateX(3px); }
.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ice);
  color: var(--sky-dark);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.alt { background: var(--offwhite); }

/* ---- DARK PROGRAMS-STYLE SECTION ---- */
.dark { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.dark .section-label { color: var(--sky); }
.dark .section-title { color: var(--white); }
.dark .section-subtitle { color: rgba(255,255,255,0.7); }
.dark .card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.dark .card:hover { background: rgba(255,255,255,0.1); border-color: var(--sky); }
.dark .card h3 { color: var(--white); }
.dark .card p { color: rgba(255,255,255,0.65); }
.dark .card-tag { background: rgba(110,205,232,0.15); color: var(--sky); }
.dark .card-link { color: var(--sky); }
.dark .card-link:hover { color: var(--white); }
.card.featured {
  grid-column: 1 / -1;
  background: rgba(110,205,232,0.08);
  border-color: rgba(110,205,232,0.2);
}
.co-host { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 0.75rem; }
.inline-stats { display: flex; gap: 3rem; margin-top: 1.5rem; }
.inline-stat-number { font-size: 2.4rem; font-weight: 800; color: var(--sky); line-height: 1; }
.inline-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 0.25rem;
}
.dark-chevrons {
  position: absolute;
  right: -40px; bottom: -40px;
  opacity: 0.04;
}
.dark-chevrons svg { width: 350px; height: 280px; }

/* ---- FRAMING CALLOUT ---- */
.framing {
  background: var(--offwhite);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--sky);
  border-radius: 0 14px 14px 0;
  padding: 2rem 2.25rem;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 760px;
}
.framing strong { color: var(--text); }
.dark .framing {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  border-left-color: var(--sky);
  color: rgba(255,255,255,0.8);
}
.dark .framing strong { color: var(--white); }

/* ---- FEATURE SPLIT ---- */
.split-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split-visual {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(10,37,64,0.08);
}
.split-visual-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-dark);
  margin-bottom: 1rem;
}
.jump-links { display: flex; flex-direction: column; gap: 0.5rem; }
.jump-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  background: var(--offwhite);
  border: 1px solid var(--gray-200);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  transition: all 0.2s;
}
.jump-links a:hover { border-color: var(--sky); background: var(--ice); }
.jump-links a span { font-size: 1.1rem; color: var(--sky-dark); }

/* ---- FAQ ---- */
.faq { background: var(--white); }
.faq-list { max-width: 800px; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 1.75rem 0;
}
.faq-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.faq-item p { color: var(--text-light); line-height: 1.75; }

/* ---- CTA ---- */
.cta-section { background: var(--ice); text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-inner .section-title { margin-bottom: 1rem; }
.cta-inner p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 2.5rem; line-height: 1.7; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--sky-dark); }
.breadcrumb span { color: var(--gray-400); margin: 0 0.4rem; }

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 2.5rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .nav-logo-top { color: var(--sky); }
.footer-brand .nav-logo-bottom { color: var(--white); }
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.85rem;
  max-width: 300px;
  line-height: 1.6;
}
.footer-links { display: flex; gap: 4rem; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.6rem;
}
.footer-col a:hover { color: var(--sky); }
.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}
.footer-bottom a { color: var(--sky); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.15); }
.footer-social svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.7); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .split-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.4rem; }
  .hero.compact h1 { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 2rem; }
  .inline-stats { gap: 2rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  }
  .mobile-toggle { display: block; }
  .hero { padding: 8rem 0 4rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.05rem; }
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .stat-grid { grid-template-columns: 1fr; }
}
