@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500&family=Inter:wght@400;500&display=swap");

/* =========================================================
   CTA SECTION
   Rebuilt to match the design reference:
   assets/cta/Screenshot 2026-09-24 164555.webp

   Full-width 315px banner:
   - left column : eyebrow + heading (two lines)
   - right column: paragraph (three lines) + contact link under it
   ========================================================= */

.cta {
  box-sizing: border-box;
  width: 100%;
  height: 200px;

  /* fallback tone while the image loads */
  background-color: #59b3e4;
  background-image: url("../assets/cta/8.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: #ffffff;
}

.cta *,
.cta *::before,
.cta *::after {
  box-sizing: border-box;
}

.cta .cta-container {
  width: 100%;
  height: 100%;

  padding: 40px 80px 0 90px;
  gap: 250px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* ---------- Left column ---------- */

.cta .cta-eyebrow {
  margin: 0 0 11px;
  padding: 0;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 400;
  color: #ffffff;
}

.cta .cta-title {
  margin: 0;
  padding: 0;
  font-family: "Geist", "Inter", sans-serif;
  font-size: 26px;
  line-height: 1.31;
  font-weight: 400;
  letter-spacing: -0.9px;
  color: #ffffff;

  /* Keep the heading on exactly two lines:
     the <br> marks the split, and nowrap stops either
     line from re-wrapping into more lines. */
  white-space: nowrap;
}

/* ---------- Right column ---------- */

.cta .cta-right {
  width: 755px;
  padding-top: 0;

  /* Nudge the right column down a little relative to the left column */
  margin-top: 24px;
}

.cta .cta-text {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.27;
  font-weight: 400;
  color: #ffffff;
}

/* ---------- Contact link (under the paragraph) ---------- */
/* Animates like "Read More" in the blog section:
   underline swipes in (scaleX), arrow nudges up-right, color shifts */

.cta .cta-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 26px;
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.cta .cta-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.cta .cta-link .cta-arrow {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.cta .cta-link:hover {
  color: #0e7490;
}

.cta .cta-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.cta .cta-link:hover .cta-arrow {
  transform: translate(4px, -4px);
}

/* =========================================================
   Tablets / mobile: stack the columns
   ========================================================= */

@media (max-width: 1100px) {
  .cta {
    height: auto;
    min-height: 250px;
    padding: 44px 0;
  }

  .cta .cta-container {
    width: 100%;
    max-width: 100%;
    height: auto;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 0 6vw;
  }

  .cta .cta-right {
    width: 100%;
    max-width: 755px;
    padding-top: 18px;
  }

  .cta .cta-text {
    max-width: 100%;
  }

  .cta .cta-right br {
    display: none;
  }
}

@media (max-width: 640px) {
  .cta {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 36px 0;
    overflow: hidden;
  }

  .cta .cta-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cta .cta-left,
  .cta .cta-right {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .cta .cta-title {
    font-size: 28px;
    line-height: 1.25;
    white-space: normal;
  }

  .cta .cta-text {
    font-size: 18px;
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta .cta-link,
  .cta .cta-link::after,
  .cta .cta-link .cta-arrow { transition: none; }
}
