/* Plan My Yatra — landing page styles */

:root {
  /* Core colors */
  --background: hsl(0 0% 100%);
  --foreground: hsl(0 0% 4%);
  --primary: hsl(25 95% 53%);

  /* Carousel dark overlay base */
  --slide-dark: hsl(20 14% 4%);

  /* Typography */
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

img {
  display: block;
}

/* ── Hero carousel ─────────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 480px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
  z-index: 0;
  pointer-events: none;
}

.slide.prev {
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slide-specific background crop */
.slide-solo .slide-bg       { object-position: center 20%; }
.slide-houseboat .slide-bg  { object-position: center 45%; }
.slide-adventure .slide-bg  { object-position: center 30%; }
.slide-family .slide-bg     { object-position: center 35%; }
.slide-honeymoon .slide-bg  { object-position: center 50%; }

.slide-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    hsl(20 14% 4% / 0.75) 0%,
    hsl(20 14% 4% / 0.1) 38%,
    hsl(20 14% 4% / 0.1) 52%,
    hsl(20 14% 4% / 0.85) 100%
  );
}

/* Brand name — top */
.slide-brand {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  padding-top: clamp(2.5rem, 12vh, 4rem);
}

.brand-name {
  margin: 0;
  font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 3.5vw, 1.5rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.brand-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.brand-meta .rule {
  width: 1.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.brand-meta .since {
  font-size: clamp(7px, 1.2vw, 8px);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

/* Slide content — bottom; text animates in when the slide is .text-ready */
.slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
  padding: 0 1.25rem;
  padding-bottom: clamp(3rem, 10vh, 4rem);
}

.slide-content > * {
  pointer-events: auto;
}

.anim {
  opacity: 0;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.slide.text-ready .anim {
  opacity: 1;
  transform: none;
}

.anim-badge {
  transform: translateY(8px);
  transition-duration: 0.45s;
  margin: 0 0 0.5rem;
}

.anim-headline {
  transform: translateY(18px);
  transition-duration: 0.65s;
  transition-delay: 0.08s;
}

.anim-ornament {
  transform: scaleX(0);
  transition-duration: 0.5s;
  transition-delay: 0.2s;
}

.anim-body {
  transform: translateY(10px);
  transition-duration: 0.55s;
  transition-delay: 0.28s;
}

.badge {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.65);
  border-radius: 9999px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: clamp(7px, 1.2vw, 9px);
  padding: 0.25rem 1rem;
  font-weight: 400;
}

.hero-headline {
  margin: 0 auto;
  font-family: 'IM Fell English', 'Palatino Linotype', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  font-size: clamp(1.15rem, 5.5vw, 3.2rem);
  line-height: 1.25;
  color: #fff;
  max-width: 88vw;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  transform-origin: center;
}

.ornament .line {
  width: 1.25rem;
  height: 1px;
  background: hsl(25 95% 53% / 0.6);
}

.ornament .dot {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 9999px;
  background: hsl(25 95% 53% / 0.8);
}

.hero-body {
  margin: 0 auto;
  font-family: 'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
  font-size: clamp(12px, 3.2vw, 18px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  max-width: 82vw;
}

/* Hide carousel body copy on very short screens (landscape phones) */
@media (max-height: 580px) {
  .hero-body { display: none; }
}

/* Dot indicators */
.dots {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: env(safe-area-inset-bottom);
}

.dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: hsl(20 14% 4% / 0.35);
  opacity: 0.6;
  transition: all 0.3s;
  cursor: pointer;
}

.dot.active {
  width: 20px;
  background: var(--primary);
  opacity: 1;
}
