/* ============================================
   CTA SECTION COMPONENT
   Standalone component for call-to-action sections
   
   Dependencies:
   - CSS Variables (from base.css):
     * --container-max-width-wide: Container max width
     * --container-side-margin: Side margins for containers (auto = centered)
     * --amp-yellow: Brand yellow color (#fcb825)
     * --amp-gray: Brand gray color (#30303d)
   ============================================ */

/* Section Container */
.cta-section {
  background-color: var(--amp-yellow);
  padding: 80px 30px;
  width: 100%;
  position: relative;
  overflow: visible;
  margin-bottom: 80px;
  margin-top: 80px;
  box-sizing: border-box;
}

/* Wave SVG background */
.cta-section::before {
  content: '';
  background-color: transparent;
  width: 100%;
  height: 64%;
  position: absolute;
  inset: auto 0% -4%;
  background-image: url('/assets/svg/wave.svg');
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

/* Container */
.cta-section-container {
  max-width: var(--container-max-width-wide);
  margin-left: var(--container-side-margin);
  margin-right: var(--container-side-margin);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 60px;
  grid-row-gap: 40px;
  align-items: center;
}

/* Content */
.cta-section-content {
  text-align: right;
}

.cta-section-heading {
  color: var(--amp-gray);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  font-family: 'Gotham', Arial, sans-serif;
}

.cta-section-description {
  letter-spacing: -0.02em;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--amp-gray);
  font-family: 'Gotham Book', Arial, sans-serif;
}

/* Button Wrapper */
.cta-section-button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Button */
.cta-section-button {
  background-color: var(--amp-gray);
  color: var(--amp-yellow);
  border: 2px solid transparent;
  border-radius: 48px;
  padding: 16px 48px;
  font-size: 18px;
  font-family: 'Gotham', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.cta-section-button:hover {
  background-color: var(--amp-yellow);
  color: var(--amp-gray);
  border-color: var(--amp-gray);
}

.cta-section-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.cta-section-button:active {
  transform: scale(0.98);
}

/* Button Character Spans (for animation) */
.cta-section-button .cta-button-char {
  display: inline-block;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.cta-section-button-description {
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--amp-gray);
  font-family: 'Gotham Book', Arial, sans-serif;
}

/* Responsive Design - Tablet */
@media screen and (max-width: 991px) {
  .cta-section {
    padding: 60px 30px;
    margin-bottom: 60px;
    margin-top: 60px;
  }

  .cta-section-container {
    grid-template-columns: 1fr;
    grid-column-gap: 40px;
    grid-row-gap: 40px;
  }

  .cta-section-content {
    text-align: center;
  }

  .cta-section-heading {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .cta-section-description {
    font-size: 16px;
  }

  .cta-section-button {
    padding: 16px 44px;
    font-size: 17px;
  }
}

/* Responsive Design - Mobile */
@media screen and (max-width: 767px) {
  .cta-section {
    padding: 48px 20px;
    margin-bottom: 48px;
    margin-top: 48px;
  }

  .cta-section-container {
    grid-template-columns: 1fr;
    grid-column-gap: 32px;
    grid-row-gap: 32px;
  }

  .cta-section-content {
    text-align: center;
  }

  .cta-section-heading {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .cta-section-description {
    font-size: 15px;
    line-height: 1.5;
  }

  .cta-section-button-wrapper {
    width: 100%;
  }

  .cta-section-button {
    padding: 14px 36px;
    font-size: 16px;
    width: 100%;
    max-width: 280px;
    white-space: normal;
    word-wrap: break-word;
  }

  .cta-section-button-description {
    font-size: 13px;
    padding: 0 16px;
  }

  /* Adjust wave background on mobile */
  .cta-section::before {
    height: 50%;
    inset: auto 0% -2%;
  }
}

/* Responsive Design - Small Mobile */
@media screen and (max-width: 479px) {
  .cta-section {
    padding: 40px 16px;
    margin-bottom: 40px;
    margin-top: 40px;
  }

  .cta-section-container {
    grid-column-gap: 24px;
    grid-row-gap: 24px;
  }

  .cta-section-heading {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .cta-section-description {
    font-size: 14px;
  }

  .cta-section-button {
    padding: 12px 32px;
    font-size: 15px;
    max-width: 100%;
  }

  .cta-section-button-description {
    font-size: 12px;
  }
}
