/* Custom animations and styles for Lovelio Landing */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Gradient text (uses brand coral) */
.gradient-text {
  background: linear-gradient(135deg, #f24973, #db2e5d, #b8204c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero — solid soft tint as a fallback under the background video */
.hero-gradient {
  background: #fff1f4;
}

/* Pause hero video for users who request reduced motion — show poster instead */
@media (prefers-reduced-motion: reduce) {
  .hero-video video {
    display: none;
  }
  .hero-video {
    background-image: url('../videos/hero-poster.webp');
    background-size: cover;
    background-position: center;
  }
}

/* Dark gradient for CTA */
.cta-gradient {
  background: linear-gradient(135deg, #b8204c 0%, #4a0a22 100%);
}

/* Card hover effect */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(242, 73, 115, 0.15);
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-up-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in-up-delay-4 { animation-delay: 0.4s; opacity: 0; }
.fade-in-up-delay-5 { animation-delay: 0.5s; opacity: 0; }
.fade-in-up-delay-6 { animation-delay: 0.6s; opacity: 0; }

/* Pulse animation for CTA */
@keyframes pulse-brand {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 73, 115, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(242, 73, 115, 0); }
}

.pulse-cta {
  animation: pulse-brand 2s infinite;
}

/* Navbar transparent → solid on scroll */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Mobile menu transition */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.mobile-menu.open {
  max-height: 500px;
}

/* Feature icon circle */
.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffe1e8, #ffc6d3);
  color: #b8204c;
  flex-shrink: 0;
}

/* Swiper custom styles */
.swiper-button-next,
.swiper-button-prev {
  color: #f24973 !important;
}
.swiper-pagination-bullet-active {
  background: #f24973 !important;
}

/* Blog card image */
.blog-card-img {
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Step number circle */
.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f24973, #db2e5d);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Pricing card popular badge */
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f24973, #db2e5d);
  color: white;
  padding: 4px 16px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* YouTube facade — thumbnail + play button shown before clicking */
.youtube-facade {
  position: relative;
  width: 100%;
  max-width: 315px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  border: 0;
  background: #1f2937;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}
.youtube-facade:hover,
.youtube-facade:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(242, 73, 115, 0.3);
  outline: none;
}
.youtube-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.youtube-facade-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #f24973;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.youtube-facade-play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}
.youtube-facade:hover .youtube-facade-play,
.youtube-facade:focus-visible .youtube-facade-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #f24973;
  color: white;
}

/* Iframe injected after facade click — match facade dimensions */
.youtube-iframe {
  width: 100%;
  max-width: 315px;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: block;
}

/* Language switcher pill */
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4b5563;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.lang-pill:hover {
  color: #f24973;
  border-color: #ff9eb4;
  background: #fff1f4;
}
.lang-pill svg {
  width: 1rem;
  height: 1rem;
}

/* Greeting card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card image styling */
.card-grid img {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.card-grid img:hover {
  transform: scale(1.03);
}

/* -------------------------------------------------------------------------
 * Contact Form 7 — match Tailwind theme inputs/buttons.
 * Scope under .lovelio-cf7 so other CF7 instances on the site (if any)
 * aren't affected.
 * ---------------------------------------------------------------------- */
.lovelio-cf7 .wpcf7-form > p {
  margin-bottom: 1.25rem;
}
.lovelio-cf7 .wpcf7-form > p:last-of-type {
  margin-bottom: 0;
}
.lovelio-cf7 .wpcf7-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}
.lovelio-cf7 .wpcf7-form-control-wrap {
  display: block;
}
.lovelio-cf7 .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  background: #fff;
  color: #111827;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lovelio-cf7 .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):not([type="radio"]):focus {
  border-color: #f24973;
  box-shadow: 0 0 0 2px rgba(242, 73, 115, 0.25);
}
.lovelio-cf7 textarea.wpcf7-form-control {
  resize: vertical;
  min-height: 8rem;
}
.lovelio-cf7 .wpcf7-submit {
  width: 100%;
  background: #f24973;
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.15s;
}
.lovelio-cf7 .wpcf7-submit:hover {
  background: #db2e5d;
}
.lovelio-cf7 .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.lovelio-cf7 .wpcf7-spinner {
  margin: 0 0 0 0.5rem;
  vertical-align: middle;
}
/* Inline validation under each field */
.lovelio-cf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.375rem;
  color: #b91c1c;
  font-size: 0.875rem;
}
.lovelio-cf7 .wpcf7-form-control.wpcf7-not-valid {
  border-color: #f87171;
}
/* Response message bar (under the form) */
.lovelio-cf7 .wpcf7-response-output {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
}
.lovelio-cf7 .wpcf7 form.invalid .wpcf7-response-output,
.lovelio-cf7 .wpcf7 form.unaccepted .wpcf7-response-output,
.lovelio-cf7 .wpcf7-response-output.wpcf7-validation-errors,
.lovelio-cf7 .wpcf7-response-output.wpcf7-mail-sent-ng,
.lovelio-cf7 .wpcf7-response-output.wpcf7-aborted {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
.lovelio-cf7 .wpcf7 form.sent .wpcf7-response-output,
.lovelio-cf7 .wpcf7-response-output.wpcf7-mail-sent-ok {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}
