/* ==========================================================================
   CTA Banner Block
   ========================================================================== */

/* --- Section --- */
.ctab-section {
  padding: 2.5rem 0;
}

/* --- Inner Container --- */
.ctab-inner {
  border-radius: 45px;
  border: 1px solid var(--color-dark);
  border-bottom-width: 6px;
  padding: 60px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 347px;
}

/* --- Left Content --- */
.ctab-content {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 500px;
  flex-shrink: 0;
}

/* --- Title --- */
.ctab-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #000000;
  margin: 0;
}

/* --- Description --- */
.ctab-desc {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: #000000;
  margin: 0;
}

/* --- Button --- */
.ctab-btn {
  display: inline-block;
  border-radius: 14px;
  padding: 20px 35px;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 400;
  font-family: "SpaceGrotesk-Regular", sans-serif;
  text-decoration: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.ctab-btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

/* --- Right Image --- */
/* Width lives on the wrapper, not the img: SVGs with only a viewBox have no
   intrinsic width and collapse to 0 inside a shrink-to-fit box. */
.ctab-image {
  flex-shrink: 0;
  width: 380px;
  max-width: 100%;
}

.ctab-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* --- Mobile Layout --- */
.ctab-inner--mobile {
  flex-direction: column;
  align-items: stretch;
  gap: 30px;
  padding: 50px;
  min-height: auto;
}

.ctab-content--mobile {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  text-align: center;
  max-width: 100%;
}

.ctab-btn--full {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
}

.ctab-image--mobile {
  width: 297px;
  max-width: 100%;
  margin: 0 auto;
}

.ctab-image--mobile img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1279px) {
  .ctab-title {
    font-size: 1.875rem;
  }

  .ctab-image {
    width: 300px;
  }
}

@media (max-width: 1023px) {
  .ctab-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px;
    gap: 30px;
    min-height: auto;
  }

  .ctab-content {
    align-items: center;
    max-width: 100%;
  }

  .ctab-btn {
    display: block;
    text-align: center;
  }

  .ctab-title {
    font-size: 1.75rem;
  }

  .ctab-image {
    width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .ctab-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px;
    border-radius: 35px;
    min-height: auto;
    gap: 30px;
  }

  .ctab-content {
    align-items: center;
    max-width: 100%;
  }

  .ctab-btn {
    display: block;
    text-align: center;
  }

  .ctab-image {
    width: 297px;
    margin: 0 auto;
  }
}

@media (max-width: 575px) {
  .ctab-inner {
    padding: 28px;
    border-radius: 30px;
  }

  .ctab-inner--mobile {
    padding: 40px 28px;
    border-radius: 30px;
  }

  .ctab-title {
    font-size: 1.5rem;
  }

  .ctab-btn {
    padding: 16px 28px;
    font-size: 1.125rem;
  }
}

/* ==========================================================================
   Button Pulse Dot
   Declared after the media queries above so the flex display wins over the
   `display: block` the responsive rules put on .ctab-btn.
   ========================================================================== */

.ctab-btn--pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ctab-btn--pulse.ctab-btn--full {
  display: flex;
  width: 100%;
}

.ctab-dot {
  position: relative;
  display: flex;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.ctab-dot__ping {
  position: absolute;
  display: inline-flex;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background-color: var(--ctab-dot-color, #00b2ca);
  opacity: 0.75;
  animation: ctab-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ctab-dot__core {
  position: relative;
  display: inline-flex;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background-color: var(--ctab-dot-color, #00b2ca);
}

@keyframes ctab-ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ctab-dot__ping {
    animation: none;
  }
}
