/* ===== Brand tokens ===== */
:root {
  --navy:   #1A2A4A; /* ink / primary */
  --orange: #E8801A; /* accent */
  --cream:  #FAF7EF; /* page background */
  --muted:  #4A5670; /* body text */
}

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

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--muted);
  min-height: 100vh;
}

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

a {
  text-decoration: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 15px;
  border-radius: 7px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  padding: 12px 24px;
}

.btn-secondary {
  background: var(--cream);
  color: var(--navy);
  padding: 12px 24px;
  border: 1px solid rgba(26, 42, 74, 0.3);
}

/* ===== Announcement bar ===== */
.announcement-bar {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--cream);
  font-size: 13px;
  text-align: center;
  padding: 0 16px;
}

/* ===== Hero background ===== */
.hero-bg {
  position: relative;
  height: calc(100vh - 38px);
  display: flex;
  flex-direction: column;
  background-color: var(--cream);
  overflow: hidden;
}

/* ===== Top bar ===== */
.topbar {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 16px 0;
}

.topbar-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-image {
  height: 68px;
  width: auto;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--navy);
  font-weight: 400;
  font-size: 15px;
}

.topnav .btn-primary {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-left {
  flex: 0 0 55%;
  max-width: 55%;
}

.hero-headline {
  /* Base/fallback size; the inline script in index.html refines this so line 1 fills its column */
  font-size: clamp(32px, 7vw, 90px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}

.headline-line {
  display: block;
  width: fit-content;
}

.hero-subtitle {
  margin-top: 20px;
  font-size: clamp(15px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--muted);
  max-width: 430px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ===== Hero visual ===== */
.hero-right {
  flex: 0 0 45%;
  max-width: 45%;
}

.hero-illustration {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: -40px auto 0;
}

/* ===== Scroll indicator ===== */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 1;
  color: var(--navy);
  transform: translateX(-50%);
  animation: scroll-bounce 2.2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

/* ===== Curriculum timeline ===== */
.curriculum {
  background: var(--cream);
  padding: 80px 0;
}

.curriculum-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 26px;
}

.curriculum-heading {
  text-align: center;
  font-size: 48px;
  font-weight: 700;
  color: var(--navy);
}

.curriculum-subheading {
  margin-top: 8px;
  text-align: center;
  font-size: 24px;
  font-weight: 400;
  color: var(--navy);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0;
}

.timeline-line,
.timeline-line-progress {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}

.timeline-line {
  height: 100%;
  background: #E3E3E8;
  z-index: 0;
}

.timeline-line-progress {
  height: 0%;
  background: var(--navy);
  z-index: 1;
}

.timeline-track {
  position: relative;
  height: calc(8 * 210px);
}

.timeline-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 210px;
}

.timeline-item:nth-child(1) { top: calc(0 * 210px); }
.timeline-item:nth-child(2) { top: calc(1 * 210px); }
.timeline-item:nth-child(3) { top: calc(2 * 210px); }
.timeline-item:nth-child(4) { top: calc(3 * 210px); }
.timeline-item:nth-child(5) { top: calc(4 * 210px); }
.timeline-item:nth-child(6) { top: calc(5 * 210px); }
.timeline-item:nth-child(7) { top: calc(6 * 210px); }
.timeline-item:nth-child(8) { top: calc(7 * 210px); }

/* Circle and card are each centered on the item's own fixed height via
   top:50%/translateY(-50%) rather than grid/flex auto-centering, so a
   taller card on one side can never nudge its circle off the line. */
.timeline-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px #fff;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: 0.15s;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}

.timeline-circle-last {
  background: var(--orange);
}

.timeline-card {
  position: absolute;
  top: 50%;
  background: #fff;
  border: 1px solid #ECECEF;
  border-radius: 10px;
  padding: 14px;
  max-width: 380px;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item-left .timeline-card {
  right: calc(50% + 50px);
  text-align: right;
  opacity: 0;
  transform: translateY(-50%) translateX(24px);
}

.timeline-item-right .timeline-card {
  left: calc(50% + 50px);
  text-align: left;
  opacity: 0;
  transform: translateY(-50%) translateX(-24px);
}

.timeline-item.in-view .timeline-circle {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.timeline-item.in-view .timeline-card {
  opacity: 1;
}

.timeline-item.in-view.timeline-item-left .timeline-card {
  transform: translateY(-50%) translateX(0);
}

.timeline-item.in-view.timeline-item-right .timeline-card {
  transform: translateY(-50%) translateX(0);
}

.timeline-title {
  font-size: 22.5px;
  font-weight: 700;
  color: var(--navy);
}

.timeline-desc {
  margin-top: 4px;
  font-size: 19.5px;
  color: #5F6B7C;
}

/* ===== Get involved ===== */
.get-involved {
  background: var(--cream);
  border-top: 1px solid #EBE4D3;
  border-bottom: 1px solid #EBE4D3;
  padding: 80px 0;
}

.get-involved-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 26px;
}

.get-involved-header {
  text-align: center;
}

.get-involved-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
}

.get-involved-heading {
  margin-top: 8px;
  font-size: 27px;
  font-weight: 700;
  color: var(--navy);
}

.get-involved-columns {
  display: flex;
  align-items: stretch;
  margin-top: 40px;
}

.get-involved-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 32px;
}

.get-involved-col + .get-involved-col {
  border-left: 1px solid #E4DDCB;
}

.get-involved-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FBEDD9;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.get-involved-col-heading {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.get-involved-col-body {
  margin-top: 10px;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.get-involved-btn {
  margin-top: auto;
  gap: 8px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  padding: 26px 0;
}

.site-footer-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 14px;
  color: var(--cream);
}

.footer-contact {
  font-size: 14px;
  color: var(--cream);
  opacity: 0.85;
}

.footer-contact:hover {
  opacity: 1;
}

/* ===== Contact page ===== */
.contact {
  background: var(--cream);
  padding: 40px 0 80px;
}

.contact-inner {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 26px;
}

.contact-header {
  text-align: center;
}

.contact-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
}

.contact-heading {
  margin-top: 8px;
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
}

.contact-subheading {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.contact-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.contact-field input,
.contact-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(26, 42, 74, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.contact-submit {
  align-self: flex-start;
}

.contact-alt {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.contact-alt a {
  color: var(--navy);
  font-weight: 600;
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .hero-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .hero-left,
  .hero-right {
    flex: 1 1 auto;
    max-width: 100%;
  }

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

  .hero-subtitle {
    max-width: 100%;
  }

  .topnav {
    gap: 12px;
  }

  .features-inner {
    flex-direction: column;
  }

  .timeline {
    max-width: 100%;
  }

  .timeline-line,
  .timeline-line-progress {
    left: 20px;
    transform: none;
  }

  .timeline-track {
    height: calc(8 * 200px);
  }

  .timeline-item {
    height: 200px;
  }

  .timeline-item:nth-child(1) { top: calc(0 * 200px); }
  .timeline-item:nth-child(2) { top: calc(1 * 200px); }
  .timeline-item:nth-child(3) { top: calc(2 * 200px); }
  .timeline-item:nth-child(4) { top: calc(3 * 200px); }
  .timeline-item:nth-child(5) { top: calc(4 * 200px); }
  .timeline-item:nth-child(6) { top: calc(5 * 200px); }
  .timeline-item:nth-child(7) { top: calc(6 * 200px); }
  .timeline-item:nth-child(8) { top: calc(7 * 200px); }

  .timeline-circle {
    left: 20px;
  }

  .timeline-item-left .timeline-card,
  .timeline-item-right .timeline-card {
    left: 60px;
    right: auto;
    text-align: left;
    max-width: calc(100% - 60px);
    transform: translateY(-50%) translateX(24px);
  }

  .timeline-item.in-view.timeline-item-left .timeline-card,
  .timeline-item.in-view.timeline-item-right .timeline-card {
    transform: translateY(-50%) translateX(0);
  }

  .get-involved-columns {
    flex-direction: column;
  }

  .get-involved-col {
    padding: 32px 0;
  }

  .get-involved-col + .get-involved-col {
    border-left: none;
    border-top: 1px solid #E4DDCB;
  }
}
