/* CTA SECTION STYLES */

.cta-section {
  padding: 5rem 1rem;
  background-color: rgb(36, 94, 96);
  position: relative;
  overflow: hidden;
}

/* Optional decorative elements */
.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
}

.cta-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
}

/* Container */
.cta-container {
  max-width: 56rem; /* 4xl = 56rem */
  margin: 0 auto;
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

/* Title */
.cta-title {
  font-size: 2.25rem;
  font-family: serif;
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Subtitle */
.cta-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  opacity: 0.95;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Button */
.cta-button {
  display: inline-block;
  padding: 10px 26px;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  text-decoration: none;
  background-color: rgb(217, 182, 143);
  color: white;
  border: 2px solid transparent;
  font-size: 1.125rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cta-button:hover {
  transform: scale(1.05);
  background-color: rgb(202, 164, 122);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.cta-button:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

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

/* Ripple effect (optional) */
.cta-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.cta-button:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (min-width: 640px) {
  .cta-section {
    padding: 5rem 1.5rem;
  }

  .cta-title {
    font-size: 2.5rem;
  }

  .cta-subtitle {
    font-size: 1.375rem;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .cta-section {
    padding: 5rem 2rem;
  }

  .cta-title {
    font-size: 1.6rem;
  }

  .cta-subtitle {
    font-size: 1.15rem;
  }

  .cta-button {
    padding: 14px 35px;
  }
}

@media (min-width: 1024px) {
  .cta-section {
    padding: 5rem 2rem;
  }

  .cta-title {
    font-size: 2.5rem;
  }

  .cta-subtitle {
    font-size: 1.25rem;
    max-width: 42rem;
  }
}

@media (min-width: 1280px) {
  .cta-section {
    padding: 5rem 0;
  }
}

/* Animation for entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-title {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-subtitle {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-button {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}
