/* =========================================================
   Atrangi Trails — Custom CSS
   ========================================================= */

/* ── Google Fonts fallback (loaded via <link> in header) ── */
:root {
  --saffron:       #FF6F00;
  --saffron-light: #FFB347;
  --gold:          #C9A84C;
  --gold-light:    #F0D080;
  --navy:          #0D1B2A;
  --navy-mid:      #152232;
  --cream:         #FDF6EC;
  --green:         #1A6B3C;
  --white:         #FFFFFF;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
}

/* ── Typography helpers ── */
.font-playfair { font-family: 'Playfair Display', serif; }
.font-cinzel    { font-family: 'Cinzel', serif; }
.font-outfit    { font-family: 'Outfit', sans-serif; }

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes bounceIn {
  0%   { transform: scale(0.7) translateY(30px); opacity: 0; }
  60%  { transform: scale(1.05) translateY(-8px); opacity: 1; }
  80%  { transform: scale(0.97); }
  100% { transform: scale(1) translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

@keyframes tricolor-slide {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Animation utility classes ── */
.animate-fadeUp    { animation: fadeUp    0.7s ease both; }
.animate-bounceIn  { animation: bounceIn  0.8s ease both; }
.animate-float     { animation: float     3s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 12s linear infinite; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Tricolor stripe ── */
.tricolor-stripe {
  display: flex;
  height: 6px;
  width: 100%;
}
.tricolor-stripe .stripe-saffron { flex: 1; background: #FF9933; }
.tricolor-stripe .stripe-white   { flex: 1; background: #FFFFFF; }
.tricolor-stripe .stripe-green   { flex: 1; background: #138808; }

.tricolor-stripe-sm {
  display: flex;
  height: 3px;
  width: 60px;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
}
.tricolor-stripe-sm .stripe-saffron { flex: 1; background: #FF9933; }
.tricolor-stripe-sm .stripe-white   { flex: 1; background: #DDDDDD; }
.tricolor-stripe-sm .stripe-green   { flex: 1; background: #138808; }

/* ── Section divider ── */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 9999px;
  margin: 0 auto 1rem;
}

/* ── Section eyebrow ── */
.eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--saffron);
}

/* ── Shimmer text effect ── */
.shimmer-text {
  background: linear-gradient(90deg,
    var(--gold) 0%, var(--gold-light) 40%,
    var(--saffron-light) 60%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ── Gold corner decorations ── */
.gold-corner {
  position: relative;
}
.gold-corner::before,
.gold-corner::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.7;
}
.gold-corner::before {
  top: -4px; left: -4px;
  border-width: 2px 0 0 2px;
}
.gold-corner::after {
  bottom: -4px; right: -4px;
  border-width: 0 2px 2px 0;
}

.gold-frame {
  position: relative;
  display: inline-block;
}
.gold-frame::before,
.gold-frame::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold);
  border-style: solid;
  z-index: 2;
}
.gold-frame::before {
  top: -6px; left: -6px;
  border-width: 2px 0 0 2px;
}
.gold-frame::after {
  bottom: -6px; right: -6px;
  border-width: 0 2px 2px 0;
}
.gold-frame span.corner-tr,
.gold-frame span.corner-bl {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold);
  border-style: solid;
  z-index: 2;
}
.gold-frame span.corner-tr {
  top: -6px; right: -6px;
  border-width: 2px 2px 0 0;
}
.gold-frame span.corner-bl {
  bottom: -6px; left: -6px;
  border-width: 0 0 2px 2px;
}

/* ── Navbar ── */
#navbar {
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
  background: rgba(13, 27, 42, 0.97) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
#navbar .nav-link {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
#navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}
#navbar .nav-link:hover {
  color: var(--gold);
}
#navbar .nav-link:hover::after {
  width: 100%;
}

/* ── Hero ── */
.hero-bg {
  background:
    radial-gradient(ellipse at 70% 40%, rgba(255,111,0,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(201,168,76,0.06) 0%, transparent 50%),
    linear-gradient(160deg, #050d17 0%, #0D1B2A 50%, #0a1520 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(201,168,76,0.07) 1px, transparent 0);
  background-size: 36px 36px;
  pointer-events: none;
}

/* ── Cards ── */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(201,168,76,0.2);
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18), 0 0 0 1px rgba(201,168,76,0.3);
}

/* ── State card gradient classes ── */
.bg-gradient-amber  { background: linear-gradient(135deg, #92400e, #b45309); }
.bg-gradient-blue   { background: linear-gradient(135deg, #1e3a5f, #1d4ed8); }
.bg-gradient-teal   { background: linear-gradient(135deg, #0f4c45, #0d9488); }
.bg-gradient-green  { background: linear-gradient(135deg, #14532d, #16a34a); }
.bg-gradient-rose   { background: linear-gradient(135deg, #881337, #e11d48); }
.bg-gradient-purple { background: linear-gradient(135deg, #4c1d95, #7c3aed); }
.bg-gradient-orange { background: linear-gradient(135deg, #7c2d12, #ea580c); }
.bg-gradient-indigo { background: linear-gradient(135deg, #312e81, #4f46e5); }
.bg-gradient-cyan   { background: linear-gradient(135deg, #164e63, #0891b2); }
.bg-gradient-navy   { background: linear-gradient(135deg, #0D1B2A, #1e3a5f); }
.bg-gradient-gold   { background: linear-gradient(135deg, #78350f, #C9A84C); }
.bg-gradient-forest { background: linear-gradient(135deg, #052e16, #1A6B3C); }
.bg-gradient-pink   { background: linear-gradient(135deg, #831843, #db2777); }
.bg-gradient-slate  { background: linear-gradient(135deg, #1e293b, #475569); }
.bg-gradient-lime   { background: linear-gradient(135deg, #365314, #65a30d); }
.bg-gradient-sky    { background: linear-gradient(135deg, #0c4a6e, #0284c7); }

/* ── SVG Map ── */
#india-map-svg path,
#india-map-svg polygon,
#india-map-svg rect {
  cursor: pointer;
  transition: fill 0.25s ease, filter 0.25s ease;
  stroke: rgba(255,255,255,0.15);
  stroke-width: 0.5;
}
#india-map-svg path:hover,
#india-map-svg polygon:hover,
#india-map-svg rect:hover,
#india-map-svg path.active,
#india-map-svg polygon.active {
  fill: var(--saffron) !important;
  filter: drop-shadow(0 0 8px rgba(255,111,0,0.6));
  stroke: var(--gold);
  stroke-width: 1;
}

/* Map tooltip */
#map-tooltip {
  pointer-events: none;
  position: fixed;
  z-index: 9999;
  background: rgba(13,27,42,0.96);
  border: 1px solid rgba(201,168,76,0.5);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: opacity 0.2s;
  display: none;
}
#map-tooltip.visible { display: block; }
#map-tooltip h4 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 0.95rem;
  margin: 0 0 2px;
}
#map-tooltip p {
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  margin: 0;
  line-height: 1.5;
}

/* ── Package tab pills ── */
.tab-pill {
  cursor: pointer;
  padding: 0.45rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid rgba(201,168,76,0.3);
  color: rgba(255,255,255,0.7);
  background: transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.tab-pill:hover  { border-color: var(--gold); color: var(--gold); }
.tab-pill.active {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255,111,0,0.35);
}

/* ── Chat bubble preview ── */
.chat-bubble {
  max-width: 75%;
  padding: 0.6rem 1rem;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.chat-bubble.agent {
  background: rgba(255,111,0,0.12);
  border: 1px solid rgba(255,111,0,0.25);
  color: rgba(255,255,255,0.9);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-bubble.user {
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  color: rgba(255,255,255,0.9);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  margin-left: auto;
}

/* ── WhatsApp floating button ── */
#wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  text-decoration: none;
  animation: pulse-dot 2.5s ease-in-out infinite;
  cursor: pointer;
}
#wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.5);
  animation: pulse-ring 2s ease-out infinite;
}
#wa-float svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
}

/* ── Package cards ── */
.pkg-card {
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pkg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.22);
  border-color: rgba(201,168,76,0.45);
}

/* ── Compare table ── */
.compare-table th {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
}
.compare-table td {
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.compare-table tr:nth-child(even) td {
  background: rgba(201,168,76,0.04);
}

/* ── Contact form ── */
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.35); }
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-input option { background: #0D1B2A; color: #fff; }

/* ── Buttons ── */
.btn-saffron {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--saffron), #FF8C00);
  color: #fff;
  padding: 0.75rem 1.8rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-saffron:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,111,0,0.45);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: rgba(255,255,255,0.9);
  padding: 0.75rem 1.8rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border: 1.5px solid rgba(201,168,76,0.6);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
  color: var(--gold);
}

/* ── Stats counter ── */
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ── Scroll hint ── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.6;
  animation: float 2s ease-in-out infinite;
}
.scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ── Mobile menu ── */
#mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(13,27,42,0.98);
  padding: 1.5rem;
  gap: 1rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  transition: color 0.2s;
}
#mobile-menu a:hover { color: var(--gold); }

/* ── Heritage card ── */
.heritage-card {
  background: #fff;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 14px;
  padding: 1.8rem 1.4rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.heritage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.1);
  border-color: var(--gold);
}
.heritage-card .icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* ── Tip card ── */
.tip-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 14px;
  padding: 1.8rem 1.4rem;
  transition: transform 0.3s, border-color 0.3s;
}
.tip-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,111,0,0.4);
}
.tip-num {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  color: var(--saffron);
  opacity: 0.35;
  line-height: 1;
  font-weight: 700;
}

/* ── Responsive helpers ── */
@media (max-width: 768px) {
  .hero-bg { min-height: 100svh; }
  .stat-number { font-size: 1.8rem; }
}

/* ── Neon Gen-Z accents ── */
.neon-saffron { box-shadow: 0 0 18px rgba(255,111,0,0.4); }
.neon-gold    { box-shadow: 0 0 18px rgba(201,168,76,0.4); }
.neon-green   { box-shadow: 0 0 18px rgba(26,107,60,0.5);  }

/* ── Loading spinner ── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin-slow 0.8s linear infinite;
}

/* ── Luxury dark cards ── */
.luxury-card {
  background: linear-gradient(135deg, #0a1018, #111d2b);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.luxury-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.4);
}
.luxury-card .gold-ribbon {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  height: 3px;
}

/* ── Form success/error ── */
.alert-success {
  background: rgba(26,107,60,0.15);
  border: 1px solid rgba(26,107,60,0.4);
  color: #6ee7b7;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
}
.alert-error {
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.35);
  color: #fca5a5;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
}
