/* =========================================================
   Madurai to Rameshwaram Taxi — custom styles
   (Tailwind handles utility classes; this file covers the
   bits Tailwind can't: slider mechanics, animations, and
   a few brand-specific touches.)
   ========================================================= */

:root {
  --brand-yellow: #FBBF24;
  --brand-yellow-dark: #F59E0B;
  --brand-navy: #0F172A;
  --brand-navy-light: #1E293B;
  --brand-green: #25D366; /* WhatsApp green */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.hero-dot.active {
  background: var(--brand-yellow);
  width: 28px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255,255,255,0.85);
  color: #111;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  border: none;
}

.hero-arrow:hover {
  background: var(--brand-yellow);
}

.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }

/* ---------- Sticky header shadow on scroll ---------- */
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ---------- Floating WhatsApp / Call buttons ---------- */
.float-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}

.float-btn:hover {
  transform: scale(1.08);
}

.float-btn.whatsapp {
  background: var(--brand-green);
}

.float-btn.call {
  background: var(--brand-navy);
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--brand-green);
  opacity: 0.6;
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- Mobile nav ---------- */
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-nav.open {
  max-height: 600px;
}

/* ---------- Card hover lift ---------- */
.lift-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lift-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.12);
}

/* ---------- Image placeholder (swap with real photos) ---------- */
.img-placeholder {
  background: linear-gradient(135deg, #FDE68A 0%, #FBBF24 50%, #F59E0B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 23, 42, 0.55);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

/* ---------- Fade-in on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Testimonial marquee-ish scroll (mobile) ---------- */
@media (max-width: 640px) {
  .hero-headline {
    font-size: 2rem;
    line-height: 1.2;
  }
}

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 49;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}
