/* ===== CSS Custom Properties ===== */
:root {
  /* Colors - Light-Dominant Strategy */
  --primary: #2A9D8F;
  --primary-dark: #238377;
  --secondary: #E07A5F;
  --accent: #E9C46A;

  /* Backgrounds */
  --bg-cream: #FAF9F6;
  --bg-white: #FFFFFE;
  --bg-soft-teal: #E8F4F2;
  --bg-charcoal: #264653;

  /* Text */
  --text-primary: #2D3436;
  --text-secondary: #5D6D7E;
  --text-on-dark: #FAF9F6;

  /* Glows */
  --teal-glow: rgba(42, 157, 143, 0.15);
  --coral-glow: rgba(224, 122, 95, 0.12);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  /* Typography */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(45, 52, 54, 0.08);
  --shadow-md: 0 4px 20px rgba(45, 52, 54, 0.12);
  --shadow-lg: 0 8px 30px rgba(45, 52, 54, 0.15);
  --shadow-glow: 0 4px 20px var(--teal-glow);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background-color: rgba(42, 157, 143, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: var(--font-size-base);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn--primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(42, 157, 143, 0.35);
}

.btn--primary:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 157, 143, 0.45);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background-color: var(--bg-cream);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: var(--text-on-dark);
  transition: color 0.3s ease;
}

.header.scrolled .nav__logo {
  color: var(--text-primary);
}

.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--bg-white);
  padding: var(--space-2xl) var(--space-lg);
  box-shadow: var(--shadow-lg);
  transition: right 0.3s ease;
  z-index: 1001;
}

.nav__menu.active {
  right: 0;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.nav__link {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--text-primary);
  padding: var(--space-sm) 0;
  -webkit-tap-highlight-color: rgba(42, 157, 143, 0.2);
  cursor: pointer;
}

.nav__link:hover,
.nav__link:active {
  color: var(--primary);
}

.nav__cta {
  display: block;
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  margin-top: var(--space-sm);
  -webkit-tap-highlight-color: rgba(42, 157, 143, 0.3);
  cursor: pointer;
}

.nav__cta:hover,
.nav__cta:active {
  background-color: var(--primary-dark);
  color: white;
}

.nav__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: var(--space-sm);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  touch-action: manipulation;
}

.nav__toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-on-dark);
  padding: var(--space-sm);
  transition: color 0.3s ease;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
  touch-action: manipulation;
}

.header.scrolled .nav__toggle {
  color: var(--text-primary);
}

/* Mobile menu overlay */
.nav__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(38, 70, 83, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.nav__overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(38, 70, 83, 0.5) 0%,
    rgba(38, 70, 83, 0.7) 50%,
    rgba(38, 70, 83, 0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-2xl) 0;
  max-width: 800px;
  margin: 0 auto;
}

.hero__title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-on-dark);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-on-dark);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-lg);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-cream));
  z-index: 1;
}

.hero__partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hero__partner-label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__partner-link {
  display: block;
  transition: opacity 0.2s ease;
}

.hero__partner-link:hover {
  opacity: 0.8;
}

.hero__partner-logo {
  height: 70px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 8px 12px;
  border-radius: 8px;
}

.hero__partner-logo--hub {
  max-width: 120px;
}

/* ===== Sections ===== */
.section {
  padding: var(--space-2xl) 0;
}

.section--cream {
  background-color: var(--bg-cream);
}

.section--white {
  background-color: var(--bg-white);
}

.section--teal {
  background-color: var(--bg-soft-teal);
}

.section__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.section__title--left {
  text-align: left;
}

/* ===== Learn Section ===== */
.learn__grid {
  display: grid;
  gap: var(--space-md);
}

.learn__card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}

.learn__icon {
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.learn__text {
  color: var(--text-primary);
  line-height: 1.7;
}

/* ===== About Section ===== */
.about__block {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.about__block-content {
  flex: 1;
}

.about__block-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 40px var(--teal-glow);
}

.about__lead {
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  margin-bottom: 0;
  line-height: 1.7;
}

.about__text {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.about__image {
  width: 100%;
  height: auto;
}

.about__details {
  margin-bottom: var(--space-xl);
}

.about__details-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  margin-top: var(--space-lg);
}

.about__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.about__list li {
  position: relative;
  padding-left: var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

.about__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
}

.about__note {
  color: var(--text-primary);
  background-color: rgba(233, 196, 106, 0.2);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent);
  margin-top: var(--space-md);
}

/* ===== Outline Section ===== */
.outline__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.outline__item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(42, 157, 143, 0.15);
}

.outline__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.outline__number {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--primary);
  background-color: rgba(42, 157, 143, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.outline__item-content {
  flex: 1;
}

.outline__item-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.outline__item-text {
  color: var(--text-secondary);
  line-height: 1.7;
}

.outline__prework {
  background-color: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 2px dashed var(--secondary);
}

.outline__prework-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: var(--space-sm);
}

.outline__prework-text {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.outline__prework-note {
  color: var(--primary);
  font-weight: 600;
  background-color: rgba(42, 157, 143, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
}

.outline__prework-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.outline__prework-list li {
  position: relative;
  padding-left: var(--space-lg);
  color: var(--text-primary);
}

.outline__prework-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

/* ===== Instructors Section ===== */
.instructors__grid {
  display: grid;
  gap: var(--space-md);
}

.instructor__card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.instructor__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.instructor__initial {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: white;
}

.instructor__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.instructor__name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.instructor__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--primary);
  font-weight: 500;
}

.instructor__link:hover {
  color: var(--primary-dark);
}

/* ===== CTA Section ===== */
.cta {
  position: relative;
  padding: var(--space-2xl) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(38, 70, 83, 0.7) 0%,
    rgba(38, 70, 83, 0.85) 100%
  );
}

.cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta__title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: var(--space-md);
}

.cta__subtitle {
  font-size: var(--font-size-xl);
  color: white;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  font-weight: 600;
}

.cta__subtitle strong {
  font-weight: 700;
}

.cta__note {
  margin-top: var(--space-md);
}

.cta__seats {
  display: inline-block;
  font-size: var(--font-size-sm);
  color: var(--accent);
  font-weight: 500;
  font-style: italic;
}

.cta__partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cta__partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.cta__partner-label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cta__partner-link {
  display: block;
  transition: opacity 0.2s ease;
}

.cta__partner-link:hover {
  opacity: 0.8;
}

.cta__partner-logo {
  height: 70px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 8px 12px;
  border-radius: 8px;
}

.cta__partner-logo--hub {
  max-width: 120px;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--bg-charcoal);
  padding: var(--space-xl) 0;
}

.footer__content {
  text-align: center;
}

.footer__text {
  color: var(--text-on-dark);
  margin-bottom: var(--space-sm);
}

.footer__link {
  color: var(--accent);
  font-weight: 500;
}

.footer__link:hover {
  color: var(--secondary);
}

.footer__copyright {
  font-size: var(--font-size-sm);
  color: var(--text-on-dark);
  opacity: 0.7;
}

/* ===== Responsive: Tablet (768px+) ===== */
@media (min-width: 768px) {
  :root {
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3rem;
  }

  .learn__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__block {
    flex-direction: row;
    align-items: center;
  }

  .about__block--reverse {
    flex-direction: row-reverse;
  }

  .about__block-image {
    flex: 0 0 40%;
  }

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

  .hero__partners,
  .cta__partners {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-xl);
  }
}

/* ===== Responsive: Desktop (1024px+) ===== */
@media (min-width: 1024px) {
  :root {
    --font-size-3xl: 3rem;
    --font-size-4xl: 3.5rem;
  }

  /* Desktop nav */
  .nav__menu {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-lg);
  }

  .nav__link {
    font-size: var(--font-size-base);
    color: var(--text-on-dark);
    transition: color 0.3s ease;
  }

  .header.scrolled .nav__link {
    color: var(--text-primary);
  }

  .nav__link:hover {
    color: var(--primary);
  }

  .nav__cta {
    margin-top: 0;
    padding: 0.5rem 1rem;
  }

  .nav__close,
  .nav__toggle {
    display: none;
  }

  .hero__title {
    font-size: var(--font-size-4xl);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

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

  .outline__list {
    max-width: 800px;
  }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Skip link (for accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: 9999;
}

.skip-link:focus {
  top: var(--space-sm);
}
