/* =========================
   ROOT
========================= */

:root {
  --bg: #f5f7f8;
  --bg-soft: #eef6f1;
  --panel: #ffffff;

  --text: #111827;
  --text-soft: #4a586d;
  --muted: #69788d;

  --line: #dfe7ee;

  --primary: #0d7a5d;
  --primary-deep: #0a5d47;
  --primary-soft: #ebf8f1;

  --secondary: #1d5fa8;
  --secondary-soft: #edf5ff;

  --purple: #7654c9;

  --whatsapp: #25d366;
  --whatsapp-dark: #075e54;

  --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-md: 18px;
  --radius-lg: 26px;
}


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

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

html {
  scroll-behavior: smooth;
}

/* Prevent sticky header from covering anchor targets */
[id] {
  scroll-margin-top: 95px;
}


body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: var(--bg);
  color: var(--text);
  line-height: 1.6;

  overflow-x: hidden;
}

img {
  max-width: 100%;
}

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


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

.container {
  width: min(
    calc(100% - 40px),
    var(--max-width)
  );

  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

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

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

.section-heading {
  max-width: 760px;
  margin-bottom: 45px;
}

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

.section-heading > p:last-child {
  color: var(--text-soft);
}


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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.94);

  border-bottom: 1px solid var(--line);

  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 2rem;
}

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

.brand-logo {
  width: clamp(260px, 28vw, 420px);
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.site-nav a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;

  border: 0;
  background: transparent;

  font-size: 1.7rem;
  cursor: pointer;

  color: var(--text);
}


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

.hero {
  padding-top: 105px;
  padding-bottom: 100px;

  background:
    radial-gradient(
      circle at top right,
      rgba(29, 95, 168, 0.08),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f5f7f8 100%
    );
}

.hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(360px, 0.95fr);

  gap: 70px;

  align-items: center;
}

.hero-content h1 {
  max-width: 760px;

  font-size: clamp(
    3rem,
    6vw,
    5.3rem
  );

  line-height: 0.98;
  letter-spacing: -0.055em;

  margin-bottom: 25px;
}

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

.hero-intro {
  max-width: 680px;

  color: var(--text-soft);

  font-size: 1.12rem;
  line-height: 1.75;

  margin-bottom: 30px;
}

.hero-audience {
  display: grid;
  gap: 8px;

  margin-bottom: 34px;
}

.hero-audience p {
  color: var(--text-soft);
}

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


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

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding:
    0.78rem
    1.25rem;

  border-radius: 999px;

  font-size: 0.94rem;
  font-weight: 750;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 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-light:hover {
  background: #f1f5f3;
}


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

.btn-whatsapp {
  background: var(--whatsapp);
  color: #075e54;

  box-shadow:
    0 10px 24px
    rgba(37, 211, 102, 0.22);
}

.btn-whatsapp:hover {
  background: #20c95f;
  color: #075e54;
}

.btn-whatsapp-icon {
  width: 24px;
  height: 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-right: 8px;

  flex-shrink: 0;
}

.btn-whatsapp-icon img {
  width: 24px;
  height: 24px;

  display: block;
  object-fit: contain;
}


/* WhatsApp button inside dark CTA */

.btn-cta-whatsapp {
  background: var(--whatsapp);
  color: #075e54;

  border: 1px solid var(--whatsapp);

  box-shadow:
    0 10px 24px
    rgba(0, 0, 0, 0.12);
}

.btn-cta-whatsapp:hover {
  background: #20c95f;
  color: #075e54;
}


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

.roadmap-card {
  background: #ffffff;

  border: 1px solid var(--line);

  border-radius: var(--radius-lg);

  padding: 30px;

  box-shadow: var(--shadow-md);
}

.roadmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 30px;
}

.roadmap-label {
  font-size: 0.82rem;
  font-weight: 800;

  color: var(--muted);

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.roadmap-dot {
  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: var(--primary);
}

.roadmap {
  display: grid;
  gap: 0;
}

.roadmap-step {
  display: flex;
  align-items: center;

  gap: 18px;
}

.step-number {
  width: 52px;
  height: 52px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius: 16px;

  background: var(--primary-soft);
  color: var(--primary);

  font-size: 0.82rem;
  font-weight: 850;
}

.roadmap-step strong {
  display: block;

  font-size: 1rem;

  margin-bottom: 2px;
}

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

.roadmap-line {
  width: 2px;
  height: 28px;

  background: #d9e9e2;

  margin-left: 25px;
}


/* =========================
   AUDIENCE
========================= */

.audience-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 18px;
}

.audience-card {
  background: #fff;

  border: 1px solid var(--line);

  border-radius: var(--radius-md);

  padding: 28px;

  box-shadow: var(--shadow-sm);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

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

.audience-number {
  display: inline-block;

  color: var(--primary);

  font-size: 0.78rem;
  font-weight: 850;

  margin-bottom: 18px;
}

.audience-card h3 {
  font-size: 1.25rem;

  margin-bottom: 12px;
}

.audience-card p {
  color: var(--text-soft);

  font-size: 0.92rem;
}


/* =========================
   POSITIONING
========================= */

.positioning-card {
  display: grid;

  grid-template-columns:
    120px
    minmax(0, 1fr);

  gap: 35px;

  align-items: center;

  margin-top: 25px;

  padding: 38px;

  background: #fff;

  border:
    1px solid
    var(--line);

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-sm);
}

.positioning-number {
  font-size: 4.5rem;
  font-weight: 900;

  line-height: 1;

  color: var(--primary);
}

.positioning-content h3 {
  font-size: 1.65rem;

  margin-bottom: 12px;
}

.positioning-content > p:not(.eyebrow) {
  color: var(--text-soft);

  max-width: 850px;
}

.positioning-tags {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin-top: 20px;
}

.positioning-tags span {
  padding:
    7px
    12px;

  border-radius: 999px;

  background: var(--primary-soft);
  color: var(--primary);

  font-size: 0.78rem;
  font-weight: 750;
}


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

.course-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 20px;
}

.course-card {
  position: relative;

  padding: 30px;

  border-radius: var(--radius-lg);

  border: 1px solid var(--line);

  background: #fff;

  box-shadow: var(--shadow-sm);

  overflow: hidden;
}

.course-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 5px;
}

.course-green::before {
  background: var(--primary);
}

.course-blue::before {
  background: var(--secondary);
}

.course-purple::before {
  background: var(--purple);
}

.course-top {
  display: flex;

  align-items: center;
  justify-content: space-between;

  margin-bottom: 28px;
}

.course-number {
  font-size: 0.8rem;
  font-weight: 850;

  color: var(--muted);
}

.course-label {
  font-size: 0.68rem;
  font-weight: 850;

  letter-spacing: 0.08em;

  padding:
    6px
    9px;

  border-radius: 999px;

  background: var(--bg);
  color: var(--muted);
}

.course-card h3 {
  font-size: 1.55rem;

  margin-bottom: 12px;
}

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

  margin-bottom: 22px;
}

.course-card ul {
  list-style: none;

  display: grid;
  gap: 11px;
}

.course-card li {
  position: relative;

  padding-left: 22px;

  color: var(--text-soft);

  font-size: 0.9rem;
}

.course-card li::before {
  content: "✓";

  position: absolute;

  left: 0;

  color: var(--primary);

  font-weight: 900;
}

.courses-cta {
  display: flex;

  align-items: center;
  justify-content: center;

  flex-wrap: wrap;

  gap: 18px;

  margin-top: 35px;
}

.courses-cta p {
  color: var(--text-soft);
  font-weight: 650;
}


/* =========================
   QUICK VALUE
========================= */

.quick-value-section {
  padding:
    35px
    0
    90px;
}

.quick-value-card {
  display: grid;

  grid-template-columns:
    0.8fr
    1.7fr;

  gap: 40px;

  padding: 38px;

  background: #fff;

  border:
    1px solid
    var(--line);

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-sm);
}

.quick-value-heading h2 {
  font-size: 2rem;

  line-height: 1.15;
}

.quick-value-items {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 20px;
}

.quick-value-item {
  display: grid;

  gap: 4px;
}

.quick-value-item strong {
  font-size: 0.96rem;
}

.quick-value-item span {
  color: var(--muted);

  font-size: 0.84rem;
}


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

.cta-section {
  padding:
    0
    0
    90px;
}

.cta-card {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 35px;

  padding: 45px;

  border-radius: var(--radius-lg);

  background:
    linear-gradient(
      135deg,
      #0a5d47,
      #0d7a5d
    );

  color: #fff;

  box-shadow: var(--shadow-md);
}

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

.cta-card h2 {
  font-size: clamp(
    2rem,
    4vw,
    3rem
  );

  line-height: 1.1;

  margin-bottom: 12px;
}

.cta-card p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.8);

  max-width: 650px;
}

.cta-actions {
  display: flex;

  flex-wrap: wrap;

  justify-content: flex-end;

  gap: 10px;
}


/* =========================
   FLOATING WHATSAPP
========================= */

.floating-whatsapp {
  position: fixed !important;

  right: 24px !important;
  bottom: 24px !important;
  left: auto !important;
  top: auto !important;

  z-index: 2147483647 !important;

  display: inline-flex !important;

  align-items: center;
  justify-content: center;

  gap: 0.6rem;

  padding:
    0.7rem
    1rem
    0.7rem
    0.7rem;

  width: auto !important;
  height: auto !important;

  border-radius: 999px;

  background: var(--whatsapp);
  color: #075e54;

  box-shadow:
    0 12px 30px
    rgba(0, 0, 0, 0.18);

  font-size: 0.88rem;
  font-weight: 750;

  visibility: visible !important;
  opacity: 1 !important;

  pointer-events: auto !important;

  overflow: visible !important;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px);

  background: #20c95f;

  color: #075e54;

  box-shadow:
    0 16px 35px
    rgba(0, 0, 0, 0.22);
}

.whatsapp-icon {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  border-radius: 50%;

  background: transparent;
}

.whatsapp-icon img {
  width: 30px;
  height: 30px;

  display: block;

  object-fit: contain;
}

.floating-whatsapp-text {
  white-space: nowrap;
}


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

.site-footer {
  background: #0d1720;

  color: #fff;

  padding-top: 55px;
}

.footer-grid {
  display: grid;

  grid-template-columns:
    1.2fr
    1fr
    1fr;

  gap: 35px;

  padding-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.3rem;

  margin-bottom: 8px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.62);

  font-size: 0.88rem;
}

.footer-nav {
  display: flex;

  align-items: center;

  justify-content: center;

  flex-wrap: wrap;

  gap: 18px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.72);

  font-size: 0.85rem;

  transition: color 0.2s ease;
}

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

.footer-mail {
  display: flex;

  align-items: center;

  justify-content: flex-end;
}

.footer-mail a {
  color: rgba(255, 255, 255, 0.72);

  font-size: 0.85rem;

  word-break: break-word;
}

.footer-bottom {
  padding:
    20px
    0
    25px;

  border-top:
    1px solid
    rgba(255, 255, 255, 0.1);

  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);

  font-size: 0.78rem;
}


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

.reveal {
  opacity: 0;

  transform: translateY(18px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;

  transform: translateY(0);
}


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

@media (max-width: 1000px) {

  .hero-grid {
    grid-template-columns: 1fr;

    gap: 45px;
  }

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

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

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

  .quick-value-card {
    grid-template-columns: 1fr;
  }

  .cta-card {
    flex-direction: column;

    align-items: flex-start;
  }

  .cta-actions {
    justify-content: flex-start;
  }

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

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-mail {
    justify-content: flex-start;
  }

  /* Restore the previous large logo sizing */
  .brand-logo {
    width: 300px;
  }

}


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

@media (max-width: 768px) {

  .container {
    width: min(
      calc(100% - 28px),
      var(--max-width)
    );
  }

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

  /* Restore previous mobile logo size */
  .brand-logo {
    width: 220px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;

    top: 70px;
    left: 0;
    right: 0;

    display: none;

    flex-direction: column;

    align-items: flex-start;

    gap: 0;

    padding:
      10px
      20px
      20px;

    background: #fff;

    border-bottom:
      1px solid
      var(--line);

    box-shadow:
      0 12px 25px
      rgba(0, 0, 0, 0.08);
  }

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

  .site-nav a {
    width: 100%;

    padding: 12px 0;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-content h1 {
    font-size: clamp(
      2.7rem,
      13vw,
      4rem
    );
  }

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

  .hero-actions {
    flex-direction: column;

    align-items: stretch;
  }

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

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

  .positioning-card {
    grid-template-columns: 1fr;

    gap: 20px;

    padding: 30px;
  }

  .positioning-number {
    font-size: 3.5rem;
  }

  .quick-value-items {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 32px 25px;
  }

  .cta-actions {
    width: 100%;

    flex-direction: column;

    align-items: stretch;
  }

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


  /* MOBILE FLOATING WHATSAPP */

  .floating-whatsapp {
    position: fixed !important;

    display: flex !important;

    right: 14px !important;
    bottom: 14px !important;
    left: auto !important;
    top: auto !important;

    width: max-content !important;
    height: auto !important;

    min-height: 50px;

    z-index: 2147483647 !important;

    padding:
      0.5rem
      0.85rem
      0.5rem
      0.55rem;

    gap: 0.45rem;

    font-size: 0.82rem;

    visibility: visible !important;
    opacity: 1 !important;

    pointer-events: auto !important;

    transform: none;
  }

  .floating-whatsapp .whatsapp-icon {
    width: 32px;
    height: 32px;
  }

  .floating-whatsapp .whatsapp-icon img {
    width: 28px;
    height: 28px;
  }

  .floating-whatsapp-text {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: nowrap;
  }

}


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

@media (max-width: 480px) {

  .container {
    width: min(
      calc(100% - 24px),
      var(--max-width)
    );
  }

  /* Restore previous small-mobile logo size */
  .brand-logo {
    width: 195px;
  }

  .hero {
    padding-top: 55px;
  }

  .hero-content h1 {
    font-size: 2.55rem;
  }

  .roadmap-card {
    padding: 22px;
  }

  .step-number {
    width: 46px;
    height: 46px;
  }

  .positioning-card {
    padding: 25px;
  }

  .course-card {
    padding: 25px;
  }

  .quick-value-card {
    padding: 25px;
  }

  .cta-card {
    padding: 28px 20px;
  }


  /* SMALL MOBILE FLOATING WHATSAPP */

  .floating-whatsapp {
    position: fixed !important;

    display: flex !important;

    right: 10px !important;
    bottom: 10px !important;
    left: auto !important;
    top: auto !important;

    width: max-content !important;
    height: auto !important;

    z-index: 2147483647 !important;

    visibility: visible !important;
    opacity: 1 !important;

    pointer-events: auto !important;

    padding:
      0.45rem
      0.7rem
      0.45rem
      0.5rem;

    transform: none;
  }

  .floating-whatsapp-text {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;

    font-size: 0.78rem;
  }

}


/* =========================
   ACCESSIBILITY
========================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

}

/* =========================
   WHY TESTSPIRE - COLORFUL
========================= */

.quick-value-items {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 18px;

}

.quick-value-item {

  position: relative;

  padding: 24px 22px;

  border: 1px solid var(--line);

  border-radius: 16px;

  background: var(--panel);

  overflow: hidden;

  transition: transform 0.2s ease, box-shadow 0.2s ease;

}

/* Color accent bar */

.quick-value-item::before {

  content: "";

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  height: 5px;

}

/* Violet */

.quick-value-item:nth-child(1)::before {

  background: #7654c9;

}

/* Blue */

.quick-value-item:nth-child(2)::before {

  background: #1d5fa8;

}

/* Green */

.quick-value-item:nth-child(3)::before {

  background: #0d7a5d;

}

/* Amber */

.quick-value-item:nth-child(4)::before {

  background: #d97706;

}

.quick-value-item:hover {

  transform: translateY(-3px);

  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);

}

.quick-value-item strong {

  display: block;

  margin-bottom: 8px;

  font-size: 18px;

  font-weight: 700;

}

.quick-value-item span {

  display: block;

  color: var(--text-soft);

  line-height: 1.6;

}

/* Colored headings */

.quick-value-item:nth-child(1) strong {

  color: #7654c9;

}

.quick-value-item:nth-child(2) strong {

  color: #1d5fa8;

}

.quick-value-item:nth-child(3) strong {

  color: #0d7a5d;

}

.quick-value-item:nth-child(4) strong {

  color: #d97706;

}

/* =========================
   WHY TESTSPIRE - MOBILE
========================= */

@media (max-width: 900px) {
  .quick-value-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .quick-value-items {
    grid-template-columns: 1fr;
  }

  .quick-value-item {
    padding: 22px 20px;
  }
}