/* =========================================
   TESTSPIRE LAB
   Main Stylesheet
========================================= */

:root {
  --bg: #f5f7f8;
  --bg-soft: #eef6f1;
  --bg-blue: #edf4fb;
  --bg-ink: #101827;
  --panel: #ffffff;
  --panel-alt: #f8fafc;
  --text: #111827;
  --text-soft: #4a586d;
  --muted: #69788d;
  --line: #dfe7ee;
  --primary: #0d7a5d;
  --primary-deep: #0a5d47;
  --primary-soft: #ebf8f1;
  --secondary: #1d5fa8;
  --secondary-soft: #edf5ff;
  --teal: #0f9d8a;
  --indigo: #5964d8;
  --purple: #7654c9;
  --amber: #d89418;
  --sand: #f5ead7;
  --mist: #eef2f7;
  --max-width: 1200px;
  --shadow-sm:
    0 8px 24px rgba(16, 24, 39, 0.06);
  --shadow-md:
    0 18px 45px rgba(16, 24, 39, 0.09);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
}


/* =========================================
   RESET
========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* =========================================
   COMMON
========================================= */

.container {
  width: min(
    var(--max-width),
    calc(100% - 2rem)
  );
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

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

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 3rem;
}

.section-heading h2 {
  margin: 0 0 1rem;
  font-size: clamp(
    2rem,
    4vw,
    3rem
  );
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}


/* =========================================
   BUTTONS
========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 750;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow:
    0 10px 24px rgba(13, 122, 93, 0.2);
}

.btn-primary:hover {
  background: var(--primary-deep);
}

.btn-secondary {
  background: #fff;
  color: var(--secondary);
  border: 1px solid #cbdced;
}

.btn-secondary:hover {
  background: var(--secondary-soft);
}

.btn-light {
  background: #fff;
  color: var(--primary-deep);
}

.btn-whatsapp {
  background: #138a62;
  color: #fff;
  box-shadow:
    0 10px 24px rgba(19, 138, 98, 0.18);
}

.btn-whatsapp:hover {
  background: #0d704f;
}


/* =========================================
   HEADER
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background:
    rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid
    rgba(223, 231, 238, 0.85);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  justify-self: start;
  display: flex;
  align-items: center;
}

.brand-logo {
  width: clamp(260px, 28vw, 420px);
  height: auto;
  margin-left: 0;
  margin-top: 4px;
  transform: translateY(1px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  white-space: nowrap;
}

.site-nav a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 650;
  transition:
    color 0.2s ease;
}

.site-nav a:hover {
  color: var(--primary);
}

.header-cta {
  justify-self: end;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 750;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.header-cta:hover {
  background: var(--primary-deep);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero {
  padding-top: 6.5rem;
  padding-bottom: 6rem;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(29, 95, 168, 0.08),
      transparent 28%
    ),
    radial-gradient(
      circle at 10% 20%,
      rgba(13, 122, 93, 0.07),
      transparent 25%
    );
}

.hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(360px, 0.95fr);
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(
    2.8rem,
    5.2vw,
    5rem
  );
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-content h1 span {
  display: block;
  color: var(--primary);
}

.hero-text {
  max-width: 650px;
  margin: 1.5rem 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.hero-badges span {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 650;
}


/* =========================================
   ROADMAP
========================================= */

.hero-visual {
  display: flex;
  justify-content: center;
}

.roadmap-card {
  width: 100%;
  max-width: 500px;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.roadmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.roadmap-label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roadmap-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.roadmap-step {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 0.9rem;
  align-items: center;
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 850;
}

.roadmap-step strong {
  display: block;
  font-size: 1rem;
}

.roadmap-step p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.roadmap-line {
  width: 2px;
  height: 22px;
  margin-left: 21px;
  background: var(--line);
}


/* =========================================
   ABOUT
========================================= */

.about-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.about-story h3 {
  margin-top: 0;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.about-story p {
  color: var(--text-soft);
}

.about-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.info-card {
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card-icon {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
}

.info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}


/* =========================================
   TRUST
========================================= */

.trust-section {
  padding-top: 2rem;
}

.trust-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  background:
    linear-gradient(
      135deg,
      #ffffff,
      #f2f8f5
    );
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.trust-number {
  color: var(--primary);
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: 0.9;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.trust-content h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(
    1.8rem,
    3vw,
    2.6rem
  );
  letter-spacing: -0.035em;
}

.trust-content > p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--text-soft);
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.trust-tags span {
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 650;
}


/* =========================================
   COURSES
========================================= */

#courses .section-heading h2 {
  width: max-content;
  max-width: 100%;
}

.course-grid {
  display: grid;
  grid-template-columns:
    repeat(3, 1fr);
  gap: 1.2rem;
}

.course-card {
  position: relative;
  padding: 2rem;
  min-height: 390px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.course-number {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  font-size: 0.8rem;
  font-weight: 850;
  color: var(--muted);
}

.course-label {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.course-card h3 {
  margin: 0 0 1rem;
  font-size: 1.65rem;
  letter-spacing: -0.025em;
}

.course-card > p:not(.course-label) {
  color: var(--text-soft);
}

.course-card ul {
  margin: 1.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.course-card li + li {
  margin-top: 0.4rem;
}

.course-green {
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #eff9f4
    );
}

.course-green .course-label {
  color: var(--primary);
}

.course-blue {
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #eef5fd
    );
}

.course-blue .course-label {
  color: var(--secondary);
}

.course-purple {
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f3effc
    );
}

.course-purple .course-label {
  color: var(--purple);
}


/* =========================================
   WHY TESTSPIRE
========================================= */

.why-grid {
  display: grid;
  grid-template-columns:
    repeat(3, 1fr);
  gap: 1rem;
}

.why-card {
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.why-card:nth-child(4),
.why-card:nth-child(5) {
  grid-column: span 1;
}

.why-icon {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
}

.why-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}

.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}


/* =========================================
   LEARNING JOURNEY
========================================= */

.journey-grid {
  display: grid;
  grid-template-columns:
    1fr auto 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.journey-step {
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.journey-step span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
}

.journey-step h3 {
  margin: 0.4rem 0 0.35rem;
  font-size: 1.05rem;
}

.journey-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.journey-arrow {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
}


/* =========================================
   CTA
========================================= */

.cta-section {
  padding: 2rem 0 6rem;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem;
  background:
    linear-gradient(
      135deg,
      #0a5d47,
      #0d7a5d
    );
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow:
    0 20px 50px rgba(13, 122, 93, 0.2);
}

.cta-card .eyebrow {
  color: #b9f2dc;
}

.cta-card h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(
    1.9rem,
    3vw,
    2.8rem
  );
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.cta-card p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}


/* =========================================
   CONTACT
========================================= */

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-item a {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
  padding: 2.5rem 0 1.4rem;
  background: #0c1422;
  color: rgba(255, 255, 255, 0.85);
}

.footer-grid {
  display: grid;

  /*
    Three columns:
    Brand | All footer links | Email
  */

  grid-template-columns:
    minmax(240px, 1fr)
    auto
    minmax(220px, 1fr);

  gap: 2rem;
  align-items: center;
}

.site-footer h3 {
  margin: 0 0 0.45rem;
  color: #fff;
  font-size: 1.15rem;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;

  /*
    IMPORTANT:
    Keep every footer link on ONE LINE.
  */

  flex-wrap: nowrap;
  gap: 1rem;
  white-space: nowrap;
}

.footer-nav a {
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  transition:
    color 0.2s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-mail {
  text-align: right;
  white-space: nowrap;
}

.footer-mail a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  white-space: nowrap;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid
    rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}


/* =========================================
   REVEAL ANIMATION
========================================= */

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

  .site-nav {
    gap: 0.8rem;
  }

  .site-nav a {
    font-size: 0.84rem;
  }

  .header-cta {
    padding-inline: 0.8rem;
    font-size: 0.82rem;
  }

  .brand-logo {
    width: 300px;
  }

  .footer-grid {
    grid-template-columns:
      minmax(210px, 1fr)
      auto
      minmax(190px, 1fr);

    gap: 1.2rem;
  }

  .footer-nav {
    gap: 0.75rem;
  }

  .footer-nav a {
    font-size: 0.76rem;
  }

  .footer-mail a {
    font-size: 0.76rem;
  }
}


/* =========================================
   TABLET / MOBILE NAV
========================================= */

@media (max-width: 900px) {

  .nav-wrap {
    grid-template-columns:
      1fr auto;
  }

  .brand-logo {
    width: 270px;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0.8rem;
  }

  .header-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    max-width: 800px;
  }

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

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

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

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

  .journey-arrow {
    display: none;
  }

  .cta-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-card {
    align-items: flex-start;
    flex-direction: column;
  }

  /*
    At this width there may not be enough horizontal
    room for the entire footer. Keep it clean and responsive.
  */

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .footer-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .footer-nav a {
    white-space: nowrap;
  }

  .footer-mail {
    text-align: left;
  }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

  .container {
    width: min(
      100% - 1.5rem,
      var(--max-width)
    );
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .brand-logo {
    width: 220px;
    margin-left: 0;
  }

  .hero-content h1 {
    font-size: clamp(
      2.4rem,
      10vw,
      3.5rem
    );
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-badges {
    gap: 0.5rem;
  }

  .hero-badges span {
    font-size: 0.75rem;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .trust-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem;
  }

  .trust-number {
    font-size: 4.5rem;
  }

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

  .course-card {
    min-height: auto;
  }

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

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

  .cta-card {
    padding: 2rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-actions {
    width: 100%;
    flex-direction: column;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .footer-nav {
    gap: 0.7rem 1rem;
  }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

  .nav-wrap {
    min-height: 72px;
  }

  .brand-logo {
    width: 195px;
  }

  .site-nav {
    top: 72px;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .roadmap-card {
    padding: 1.2rem;
  }

  .journey-step {
    padding: 1.2rem;
  }

  .footer-nav {
    gap: 0.55rem 0.85rem;
  }

  .footer-nav a {
    font-size: 0.78rem;
  }

  /*
    The mobile header is 72px tall.
    This affects only anchor scrolling,
    not the page layout.
  */

  html {
    scroll-padding-top: 72px;
  }
}