@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --color-primary: #2563BE;
  --color-accent:  #F59E0B;
  --color-text:    #1E293B;
  --color-muted:   #64748B;
  --color-bg:      #F8FAFC;
  --radius:        0.75rem;
}

/* Custom Utilities that Tailwind can't handle out of the box or for cleaner HTML */

/* Fallback Classes in case optimization plugins block inline Tailwind config */
.bg-primary { background-color: var(--color-primary) !important; }
.text-primary { color: var(--color-primary) !important; }
.border-primary { border-color: var(--color-primary) !important; }

.bg-accent { background-color: var(--color-accent) !important; }
.text-accent { color: var(--color-accent) !important; }
.border-accent { border-color: var(--color-accent) !important; }


/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slider Custom CSS */
#home {
  position: relative;
}

.hero-slider-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero-slider-slide.active {
  display: block;
  opacity: 1;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-dot.active {
  background-color: var(--color-accent);
  transform: scale(1.3);
}

/* Testimonial Carousel */
.testimonial-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  padding-bottom: 2rem;
}

.testimonial-carousel::-webkit-scrollbar { 
  display: none; /* WebKit */
}

.testimonial-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  min-width: 100%;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 1rem);
    min-width: calc(50% - 1rem);
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    flex: 0 0 calc(25% - 1rem);
    min-width: calc(25% - 1rem);
  }
}

/* FAQ Accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 300px; /* arbitrary large value */
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active {
  border-left: 4px solid var(--color-primary);
  background-color: white;
}

/* Partner Logo Infinite Scroll */
@keyframes scroll-to-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes scroll-to-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.logo-scroll-wrapper {
  overflow: hidden;
  position: relative;
}

.logo-track-left {
  display: flex;
  width: max-content;
  animation: scroll-to-left 30s linear infinite;
}

.logo-track-right {
  display: flex;
  width: max-content;
  animation: scroll-to-right 35s linear infinite;
}

.logo-track-left:hover,
.logo-track-right:hover {
  animation-play-state: paused;
}

.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 72px;
  padding: 0 20px;
}

.logo-item img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: transform 0.3s ease;
}

/* Hotel logos are naturally squarer, so we increase their max-height to match airline logos visually */
.logo-track-right .logo-item img {
  max-height: 52px;
}

.logo-item img:hover {
  transform: scale(1.08);
}

/* Image Placeholders Label */
.img-placeholder-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-muted);
  font-weight: 500;
  text-align: center;
}

/* Continuous Zoom Animation for Hero Banner */
@-webkit-keyframes hero-zoom-in {
  0% { -webkit-transform: scale(1); transform: scale(1); }
  100% { -webkit-transform: scale(1.15); transform: scale(1.15); }
}

@keyframes hero-zoom-in {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.animate-hero-zoom {
  -webkit-animation: hero-zoom-in 15s ease-in-out infinite alternate;
  animation: hero-zoom-in 15s ease-in-out infinite alternate;
  will-change: transform;
}
