/* ===========================
   Funnel Landing Page - Styles
   =========================== */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Global body */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Hero background image
   --------------------------------------------------
   Replace the url('') below with your Florence hero image.
   Example: url('your-image.jpg')
   -------------------------------------------------- */
.hero-bg {
  background: url('./florence-hero-BgZNSqTx.jpg') center center / cover no-repeat;
  /* Fallback warm gradient while no image is set */
  background-color: #8B6F4E;
}

/* Language toggle buttons */
.lang-btn {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  user-select: none;
  min-width: 38px;
  text-align: center;
}
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.32);
}
.lang-btn.active-lang {
  background: #D4603A;
  color: #fff;
  border-color: #D4603A;
}

/* Calendar cells */
.cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  font-weight: 500;
  color: #1C1917;
  font-size: 0.7rem;
}
@media (min-width: 640px) {
  .cal-day {
    font-size: 0.75rem;
  }
}
.cal-booked {
  background: #E8734A;
  color: #fff !important;
  border-radius: 0.5rem;
}

/* Form input focus glow */
input:focus {
  box-shadow: 0 0 0 3px rgba(212, 96, 58, 0.15);
}

/* Floating WhatsApp pulse */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
a[aria-label="Chat on WhatsApp"] {
  animation: pulse-ring 2.5s ease-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #FAF8F5;
}
::-webkit-scrollbar-thumb {
  background: #D4C8BA;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B8A999;
}

/* Selection colour */
::selection {
  background: rgba(212, 96, 58, 0.2);
  color: inherit;
}

/* Loading spinner on form submit */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Fade-in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure touch targets are large enough on mobile */
@media (max-width: 639px) {
  button, a {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Make sure the hero takes full viewport height on mobile Safari */
@supports (-webkit-touch-callout: none) {
  #hero {
    min-height: -webkit-fill-available;
  }
}
