/*
Theme Name: Travel Why Not
Theme URI: https://travelwhynot.com
Author: Travel Why Not
Author URI: https://travelwhynot.com
Description: A bold, immersive adventure travel brand website for Travel Why Not — curated small group adventures across India led by a Himalayan specialist. Safe, fun and community-driven travel experiences.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: travelwhynot
Tags: one-column, custom-menu, featured-images, full-width-template, travel, adventure
*/

/* ═══════════════════════════════════════════
   TRAVEL WHY NOT — CUSTOM STYLES
   ═══════════════════════════════════════════ */

:root {
  --mountain: #1a365d;
  --mountain-light: #2c5282;
  --forest: #276749;
  --forest-light: #38a169;
  --adventure: #dd6b20;
  --adventure-light: #ed8936;
  --warmwhite: #faf8f5;
  --cream: #f7f3ed;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--warmwhite);
  overflow-x: hidden;
}

.font-heading {
  font-family: 'Playfair Display', serif;
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, #dd6b20, #ed8936, #f6ad55);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(3deg); }
  75% { transform: translateY(10px) rotate(-2deg); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(221,107,32,0.3); }
  50% { box-shadow: 0 0 40px rgba(221,107,32,0.6); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(-10px) translateX(-50%); }
}
@keyframes slideDown {
  from { max-height: 0; opacity: 0; }
  to { max-height: 500px; opacity: 1; }
}

.anim-fadeInUp { animation: fadeInUp 0.8s ease-out both; }
.anim-fadeIn { animation: fadeIn 1s ease-out both; }
.anim-float { animation: float 6s ease-in-out infinite; }
.anim-floatSlow { animation: floatSlow 8s ease-in-out infinite; }
.anim-spinSlow { animation: spinSlow 20s linear infinite; }
.anim-pulseGlow { animation: pulseGlow 2s ease-in-out infinite; }
.anim-wiggle { animation: wiggle 2s ease-in-out infinite; }
.anim-bounce { animation: bounce 2s ease-in-out infinite; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }

/* ── Parallax Background ── */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* ── Card Hover ── */
.card-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* ── Image Reveal ── */
.img-reveal { overflow: hidden; }
.img-reveal img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-reveal:hover img {
  transform: scale(1.1);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--warmwhite); }
::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a0aec0; }

/* ── Noise Overlay ── */
.noise-overlay { position: relative; }
.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ── Topographic Pattern ── */
.topo-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 10 Q70 30 50 50 Q30 70 50 90' fill='none' stroke='%231a365d' stroke-width='0.5' opacity='0.08'/%3E%3Cpath d='M20 0 Q40 20 20 40 Q0 60 20 80' fill='none' stroke='%231a365d' stroke-width='0.5' opacity='0.06'/%3E%3Cpath d='M80 20 Q100 40 80 60 Q60 80 80 100' fill='none' stroke='%231a365d' stroke-width='0.5' opacity='0.06'/%3E%3C/svg%3E");
}

/* ── Scroll Reveal ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Nav Styles ── */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--adventure);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Navigation Scroll State (JS-toggled) ── */
#main-nav {
  transition: all 0.5s ease;
}
#main-nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
#main-nav.scrolled .nav-logo-text { color: var(--mountain); }
#main-nav.scrolled .nav-link-item { color: #4a5568; }
#main-nav.scrolled .nav-link-item:hover { color: var(--adventure); }
#main-nav.scrolled .hamburger-line { background: #2d3748; }
#main-nav.scrolled .logo-icon-bg { background: linear-gradient(135deg, var(--mountain), var(--mountain-light)); }

/* ── Testimonial Carousel ── */
.testimonial-slide {
  display: none;
  animation: fadeIn 0.6s ease-out;
}
.testimonial-slide.active {
  display: block;
}

/* ── Tour urgency pulse ── */
.urgency-badge {
  animation: pulseGlow 1.5s ease-in-out infinite;
}

/* ── WhatsApp tooltip ── */
.whatsapp-btn .tooltip {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.whatsapp-btn:hover .tooltip {
  opacity: 1;
}

/* ── Masonry-ish gallery ── */
.gallery-grid {
  columns: 2;
  column-gap: 1rem;
}
@media (min-width: 768px) { .gallery-grid { columns: 3; } }
@media (min-width: 1024px) { .gallery-grid { columns: 4; } }
.gallery-grid .gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

/* ── Mobile menu ── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* ── Dot indicators ── */
.dot-indicator {
  transition: all 0.3s ease;
}
.dot-indicator.active {
  width: 2.5rem;
  background: var(--adventure);
}

/* ── Back to top ── */
#back-to-top {
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s ease;
  pointer-events: none;
}
#back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
