/* ==========================================================================
   12_cta.css — CTA Button & Banner Styles
   ========================================================================== */

/* ---------- Keyframes ---------- */

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }
  50%      { box-shadow: 0 4px 30px rgba(0, 128, 128, 0.35); }
}

@keyframes ctaShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes ctaBannerGlow {
  0%, 100% { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); }
  50%      { box-shadow: 0 10px 50px rgba(0, 128, 128, 0.3); }
}

@keyframes arrowNudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}

/* ---------- Hero Reservation Button (front-page.php) ---------- */

.hero-reservation-btn span {
  position: relative;
  overflow: hidden;
  animation: ctaGlow 3s ease-in-out infinite;
}

.hero-reservation-btn span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%
  );
  animation: ctaShimmer 4s ease-in-out 2s infinite;
  pointer-events: none;
}

.hero-reservation-btn:hover span,
.hero-link:hover .hero-reservation-btn span {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 128, 128, 0.4);
}

.hero-reservation-btn span .material-symbols-outlined {
  font-size: 1.2rem;
}

.hero-reservation-btn span .material-symbols-outlined:last-child {
  transition: transform 0.3s ease;
}

.hero-link:hover .hero-reservation-btn span .material-symbols-outlined:last-child {
  animation: arrowNudge 0.6s ease-in-out;
}

/* ---------- Subpage Hero Button (content-hero.php, page-room, etc.) ---------- */

.subpage-hero-btn {
  position: relative;
  overflow: hidden;
  animation: ctaGlow 3s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.subpage-hero-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%
  );
  animation: ctaShimmer 4s ease-in-out 2s infinite;
  pointer-events: none;
}

.subpage-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 128, 128, 0.4);
  background-color: var(--color-primary-dark, #006666);
}

.subpage-hero-btn .material-symbols-outlined {
  font-size: 1.2rem;
}

.subpage-hero-btn .material-symbols-outlined:last-child {
  transition: transform 0.3s ease;
}

.subpage-hero-btn:hover .material-symbols-outlined:last-child {
  animation: arrowNudge 0.6s ease-in-out;
}

/* ---------- CTA Banner (content-cta.php) ---------- */

.cta-banner {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: rgba(0, 128, 128, 0.9);
  padding: 2rem 1rem;
  text-align: center;
  color: white;
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-width: 42rem;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  animation: ctaBannerGlow 3s ease-in-out infinite;
}

.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 60%
  );
  animation: ctaShimmer 4s ease-in-out 2s infinite;
  pointer-events: none;
}

@media (min-width: 768px) {
  .cta-banner {
    padding: 3rem 4rem;
  }
}

.cta-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  background-color: var(--color-primary);
}

.cta-banner__title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

@media (min-width: 768px) {
  .cta-banner__title {
    font-size: 1.875rem;
  }
}

.cta-banner__text {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.75;
  letter-spacing: 0.05em;
  font-family: var(--font-sans, sans-serif);
}

.cta-banner__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
}

.cta-banner:hover .cta-banner__button {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.9);
}

.cta-banner__button .material-symbols-outlined {
  font-size: 1.1rem;
}

.cta-banner__button .material-symbols-outlined:last-child {
  transition: transform 0.3s ease;
}

.cta-banner:hover .cta-banner__button .material-symbols-outlined:last-child {
  animation: arrowNudge 0.6s ease-in-out;
}

/* ---------- Accessibility: Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero-reservation-btn span,
  .subpage-hero-btn,
  .cta-banner {
    animation: none;
  }

  .hero-reservation-btn span::after,
  .subpage-hero-btn::after,
  .cta-banner::after {
    animation: none;
  }

  .hero-link:hover .hero-reservation-btn span .material-symbols-outlined:last-child,
  .subpage-hero-btn:hover .material-symbols-outlined:last-child,
  .cta-banner:hover .cta-banner__button .material-symbols-outlined:last-child {
    animation: none;
  }
}
