/* ============================================================
   EXPLOREO TRAVELS — Global CSS
   Design System, Reset, Typography, Nav, Footer, Cursor
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Design Tokens ────────────────────────────────────── */
:root {
  --color-bg:           #0F0D0A;
  --color-bg-2:         #1A1610;
  --color-bg-3:         #242018;
  --color-cream:        #F5EDD6;
  --color-cream-muted:  #B8A98A;
  --color-saffron:      #E8820C;
  --color-saffron-light:#F5A535;
  --color-gold:         #C9A84C;
  --color-green-deep:   #1C3A2E;
  --color-green-accent: #2D6A4F;
  --color-border:       rgba(200,168,76,0.15);
  --color-border-hover: rgba(232,130,12,0.4);

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-glow: 0 0 40px rgba(232,130,12,0.15);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);

  --transition-fast:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   0.7s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 80px;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-cream);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* ── Typography ───────────────────────────────────────── */
.h1 { font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 8rem); font-weight: 300; line-height: 1.0; letter-spacing: -0.02em; }
.h2 { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 300; line-height: 1.1; }
.h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 400; }
.h4 { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 500; }
.body-lg  { font-size: 1.125rem; line-height: 1.7; }
.body-md  { font-size: 1rem;     line-height: 1.6; }
.body-sm  { font-size: 0.875rem; line-height: 1.5; }
.label    { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; }

/* ── Utilities ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-pad { padding: 100px 0; }
@media (max-width: 768px) { .section-pad { padding: 64px 0; } }

.text-saffron { color: var(--color-saffron); }
.text-gold    { color: var(--color-gold); }
.text-muted   { color: var(--color-cream-muted); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-saffron);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-saffron);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--color-cream-muted);
  font-size: 1.1rem;
  max-width: 560px;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--transition-smooth);
  cursor: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-saffron);
  color: #fff;
  box-shadow: 0 4px 20px rgba(232,130,12,0.3);
}
.btn-primary:hover {
  background: var(--color-saffron-light);
  box-shadow: 0 6px 32px rgba(232,130,12,0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-cream);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-border-hover);
  color: var(--color-saffron);
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}
.btn-outline-gold:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  background: #20BA58;
  box-shadow: 0 6px 32px rgba(37,211,102,0.4);
  transform: translateY(-1px);
}

/* Shimmer animation for primary CTA */
.btn-shimmer {
  background: linear-gradient(135deg, var(--color-saffron) 0%, var(--color-saffron-light) 50%, var(--color-saffron) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Custom Cursor ────────────────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition-property: width, height, background, border-color, opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.25s;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--color-saffron);
  will-change: transform;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-saffron);
  background: transparent;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-ring.hovered {
  width: 60px;
  height: 60px;
  background: rgba(232,130,12,0.15);
  border-color: var(--color-saffron);
}

.cursor-ring.hovered .cursor-dot-inner { opacity: 0; }

.cursor-ring.image-hover {
  width: 72px;
  height: 72px;
  background: rgba(232,130,12,0.12);
  border-color: rgba(232,130,12,0.6);
}

.cursor-ring-text {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cream);
  opacity: 0;
  transition: opacity var(--transition-fast);
  user-select: none;
}

.cursor-ring.image-hover .cursor-ring-text { opacity: 1; }

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── Page Curtain ─────────────────────────────────────── */
.page-curtain {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 9000;
  transform-origin: top;
  pointer-events: none;
}

/* ── Progress Bar ─────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--color-saffron);
  z-index: 9998;
  width: 0%;
  transition: width 0.4s ease;
}

/* ── Navigation ───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-smooth), backdrop-filter var(--transition-smooth), border-color var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(15,13,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-cream);
  letter-spacing: 0.15em;
}

.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--color-saffron);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-cream-muted);
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-saffron);
  transition: width var(--transition-smooth);
}

.nav-link:hover { color: var(--color-cream); }
.nav-link:hover::after { width: 100%; }

.nav-link.active {
  color: var(--color-saffron);
}

.nav-link.active::after { width: 100%; }

.nav-cta {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-cream);
  transition: all var(--transition-smooth);
  transform-origin: left center;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(40deg) translateY(-1px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-40deg) translateY(1px); }

/* Mobile Nav Overlay */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-mobile-overlay .nav-link {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--color-cream-muted);
  transform: translateY(30px);
  opacity: 0;
  transition: all var(--transition-smooth);
}

.nav-mobile-overlay.open .nav-link {
  transform: translateY(0);
  opacity: 1;
}

.nav-mobile-overlay.open .nav-link:nth-child(1) { transition-delay: 0.1s; }
.nav-mobile-overlay.open .nav-link:nth-child(2) { transition-delay: 0.15s; }
.nav-mobile-overlay.open .nav-link:nth-child(3) { transition-delay: 0.2s; }
.nav-mobile-overlay.open .nav-link:nth-child(4) { transition-delay: 0.25s; }
.nav-mobile-overlay.open .nav-link:nth-child(5) { transition-delay: 0.3s; }
.nav-mobile-overlay.open .nav-link:nth-child(6) { transition-delay: 0.35s; }
.nav-mobile-overlay.open .nav-link:nth-child(7) { transition-delay: 0.4s; }

.nav-mobile-overlay .nav-link:hover { color: var(--color-saffron); }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 80px 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 4rem;
  padding-bottom: 60px;
}

.footer-logo-main {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-cream);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
}

/* Image logo in footer */
.footer > * img[alt="Exploreo Travels"],
.footer-grid img[alt="Exploreo Travels"] {
  display: block;
  width: auto;
  height: 50px;
  object-fit: contain;
  margin-bottom: 8px;
}

.footer-logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-cream-muted);
  display: block;
  margin-bottom: 16px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-cream-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream-muted);
  transition: all var(--transition-smooth);
}

.footer-social-link:hover {
  border-color: var(--color-saffron);
  color: var(--color-saffron);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--color-cream-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover { color: var(--color-cream); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--color-cream-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-contact-icon {
  color: var(--color-saffron);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-newsletter {
  margin-top: 20px;
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.footer-newsletter input {
  flex: 1;
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 10px 16px;
  color: var(--color-cream);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.footer-newsletter input:focus { border-color: var(--color-saffron); }
.footer-newsletter input::placeholder { color: var(--color-cream-muted); }

.footer-newsletter button {
  padding: 10px 20px;
  background: var(--color-saffron);
  color: #fff;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: none;
}

.footer-newsletter button:hover { background: var(--color-saffron-light); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--color-cream-muted);
  font-size: 0.8rem;
}

.footer-bottom .made-with {
  color: var(--color-cream-muted);
  font-size: 0.8rem;
}

.footer-bottom .made-with span { color: var(--color-saffron); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── WhatsApp Float Button ────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 120px;
  right: 32px;
  z-index: 900;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition-smooth);
  cursor: none;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: wa-pulse 2.5s ease-out infinite;
}

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

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.55);
}

.whatsapp-float svg { color: #fff; }

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-bg-2);
  color: var(--color-cream);
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  border: 1px solid var(--color-border);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--color-border);
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ── Scroll Animations ────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible { opacity: 1; }

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ── Divider ──────────────────────────────────────────── */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  width: 80px;
  margin: 20px 0;
}

/* ── Card Base ────────────────────────────────────────── */
.card {
  background: var(--color-bg-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ── Badge ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-saffron { background: rgba(232,130,12,0.2); color: var(--color-saffron); }
.badge-gold    { background: rgba(201,168,76,0.2);  color: var(--color-gold); }
.badge-green   { background: rgba(45,106,79,0.3);   color: #4ade80; }
.badge-blue    { background: rgba(59,130,246,0.2);  color: #93c5fd; }
.badge-pink    { background: rgba(236,72,153,0.2);  color: #f9a8d4; }
.badge-purple  { background: rgba(83,74,183,0.25);  color: #a78bfa; }
.badge-season  { background: rgba(255,255,255,0.1); color: var(--color-cream-muted); }

/* ── Section Intro ────────────────────────────────────── */
.section-intro {
  margin-bottom: 60px;
}

.section-intro.centered {
  text-align: center;
}

.section-intro.centered .section-label {
  justify-content: center;
}

.section-intro.centered .section-label::before { display: none; }
.section-intro.centered .section-label::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-saffron);
}

.section-intro.centered .section-sub { margin: 0 auto; }

/* ── Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-bg-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gold); }

/* ── Selection ────────────────────────────────────────── */
::selection { background: rgba(232,130,12,0.3); color: var(--color-cream); }

/* ═══════════════════════════════════════════════════════════
   CINEMATIC ANIMATION ENGINE — css/animations additions
   ═══════════════════════════════════════════════════════════ */

/* ── HERO VIDEO ──────────────────────────────────────────── */
.hero-video-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  filter: saturate(1.15) brightness(0.82);
  will-change: filter;
}

.hero-video-overlay-1 {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 25%, rgba(15,13,10,0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-video-overlay-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(15,13,10,1) 0%, rgba(15,13,10,0.45) 55%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-video-toggle {
  position: absolute;
  bottom: 28px;
  left: 28px;
  z-index: 10;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
  color: #fff;
  font-size: 13px;
}

.hero-video-toggle:hover {
  background: rgba(232,130,12,0.25);
  border-color: rgba(232,130,12,0.5);
  transform: scale(1.1);
}

/* ── TEXT SPLIT ANIMATIONS ───────────────────────────────── */
.anim-word {
  display: inline-block;
}

.anim-char {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.anim-char-inner {
  display: inline-block;
  transform: translateY(110%) rotate(8deg);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1),
              opacity 0.6s ease;
}

.anim-char-inner.revealed {
  transform: translateY(0) rotate(0deg);
  opacity: 1;
}

.anim-word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.anim-word-inner {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(0.16,1,0.3,1),
              opacity 0.6s ease;
}

.anim-word-inner.revealed {
  transform: translateY(0);
  opacity: 1;
}

/* ── MAGNETIC BUTTONS ────────────────────────────────────── */
[data-magnetic="true"] {
  will-change: transform;
}

[data-magnetic="true"]:active {
  transform: scale(0.96) !important;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  transform: scale(0);
  animation: btn-ripple-out 0.7s ease-out forwards;
  pointer-events: none;
}

@keyframes btn-ripple-out {
  to { transform: scale(1); opacity: 0; }
}

.btn-primary[data-magnetic="true"]:hover,
.btn-book-primary[data-magnetic="true"]:hover {
  box-shadow:
    0 0 24px rgba(232,130,12,0.35),
    0 0 48px rgba(232,130,12,0.15),
    0 10px 32px rgba(0,0,0,0.35);
}

/* ── DATA-REVEAL SCROLL SYSTEM ───────────────────────────── */
[data-reveal="fade-up"] {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.8s ease, transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal="fade-up"].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="fade-in"] {
  opacity: 0;
  transition: opacity 1s ease;
}
[data-reveal="fade-in"].is-revealed {
  opacity: 1;
}

[data-reveal="slide-left"] {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal="slide-left"].is-revealed {
  opacity: 1;
  transform: translateX(0);
}

[data-reveal="slide-right"] {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal="slide-right"].is-revealed {
  opacity: 1;
  transform: translateX(0);
}

[data-reveal="scale-up"] {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal="scale-up"].is-revealed {
  opacity: 1;
  transform: scale(1);
}

[data-reveal="clip-h"] {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal="clip-h"].is-revealed {
  clip-path: inset(0 0% 0 0);
}

/* Stagger delay utilities */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }
[data-delay="7"] { transition-delay: 0.7s; }
[data-delay="8"] { transition-delay: 0.8s; }

/* ── PARTICLES ───────────────────────────────────────────── */
.anim-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-gold, #C9A84C);
  pointer-events: none;
  z-index: 4;
  will-change: transform, opacity;
}

/* ── PAGE CURTAIN LOGO (enhancement over global.js curtain) ─ */
.page-curtain {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.curtain-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(12px);
  animation: curtain-logo-in 0.5s cubic-bezier(0.16,1,0.3,1) 0.15s forwards;
}

@keyframes curtain-logo-in {
  to { opacity: 1; transform: translateY(0); }
}

.curtain-logo-main {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--color-cream);
  letter-spacing: 0.35em;
}

.curtain-logo-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.45em;
  color: var(--color-saffron);
  text-transform: uppercase;
}

.curtain-line {
  width: 0;
  height: 1px;
  background: var(--color-saffron);
  margin-top: 16px;
  box-shadow: 0 0 10px rgba(232,130,12,0.5);
  animation: curtain-line-expand 0.6s ease 0.35s forwards;
}

@keyframes curtain-line-expand {
  to { width: 120px; }
}

/* ── PARALLAX LAYER UTILITIES ────────────────────────────── */
.parallax-img-wrap {
  overflow: hidden;
  position: relative;
}

.parallax-img-wrap img {
  transform: scale(1.12);
  will-change: transform;
}

/* ── NAV HIDE ON SCROLL (enhance global.js's scrolled class) */
.nav {
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

/* ── REDUCED MOTION OVERRIDES ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .anim-char-inner,
  .anim-word-inner,
  .curtain-logo,
  .curtain-line,
  .anim-particle,
  [data-magnetic="true"],
  .hero-video,
  .parallax-img-wrap img {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    clip-path: none !important;
  }
}

/* ── IMAGE PICKER ──────────────────────────────────────────── */
.image-picker { width: 100%; }

.image-picker-search { position: relative; margin-bottom: 12px; }
.image-picker-input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  background: var(--color-bg-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.image-picker-input:focus {
  outline: none;
  border-color: var(--color-saffron);
}
.image-picker-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-cream-muted);
  pointer-events: none;
}
.image-picker-status {
  font-size: 0.75rem;
  color: var(--color-cream-muted);
  margin-top: 4px;
  height: 16px;
}
.image-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}
.image-picker-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
  color: var(--color-cream-muted);
  font-size: 0.875rem;
}
.image-picker-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}
.image-picker-item:hover {
  border-color: var(--color-saffron);
  transform: scale(1.02);
}
.image-picker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-picker-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(232,130,12,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s;
}
.image-picker-item:hover .image-picker-item-overlay { opacity: 1; }
.image-picker-selected {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--color-bg-3);
  border: 1px solid var(--color-saffron);
  border-radius: var(--radius-md);
  padding: 12px;
}
.image-picker-selected img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.image-picker-selected-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.image-picker-selected-info span { font-size: 0.75rem; color: var(--color-cream-muted); }
.image-picker-selected-info a { color: var(--color-saffron); }
.image-picker-selected-info button {
  font-size: 0.8rem;
  color: var(--color-saffron);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  text-decoration: underline;
}
.step-image-search-section {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--color-bg-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.step-image-search-label {
  font-size: 0.875rem;
  color: var(--color-cream-muted);
  margin-bottom: 12px;
}

/* ════════════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON — replaces Tidio
   ════════════════════════════════════════════════════════════ */

.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  border-radius: 50px;
  padding: 13px 20px 13px 16px;
  text-decoration: none;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow:
    0 4px 20px rgba(37,211,102,0.4),
    0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  overflow: hidden;
  max-width: 220px;
}
.wa-float:hover {
  background: #20BA5A;
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 32px rgba(37,211,102,0.5),
    0 4px 12px rgba(0,0,0,0.25);
}
.wa-float-icon { flex-shrink: 0; }
.wa-float-label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.wa-float-pulse {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(37,211,102,0.3);
  animation: wa-pulse 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%   { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

@media (max-width: 768px) {
  .wa-float {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    max-width: 56px;
  }
  .wa-float-label { display: none; }
  .wa-float-pulse { left: 50%; top: 50%; }
}

/* ════════════════════════════════════════════════════════════
   GLOBAL MOBILE FIXES
   ════════════════════════════════════════════════════════════ */

/* ── NAVBAR ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* The site's own nav (.nav) already handles mobile via @media (max-width: 1024px).
     Only override padding here so it doesn't feel too wide. */
  .nav {
    padding: 0 16px !important;
  }
}

/* ── HERO SECTION ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero, .hero-section,
  [class*="hero-wrap"],
  [class*="hero-container"] {
    min-height: 100svh !important;
    padding-top: 60px !important;
  }
  .hero-title, .hero h1, [class*="hero-title"] {
    font-size: clamp(2.8rem, 10vw, 4rem) !important;
    line-height: 1.1 !important;
    text-align: center !important;
  }
  .hero-subtitle, .hero p, [class*="hero-sub"] {
    font-size: 1rem !important;
    text-align: center !important;
    max-width: 100% !important;
    padding: 0 16px !important;
  }
  .hero-cta, .hero-btns, [class*="hero-actions"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 24px !important;
    width: 100% !important;
  }
  .hero-cta a, .hero-cta button,
  [class*="hero-actions"] a, [class*="hero-actions"] button {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    max-width: 320px !important;
  }
  .hero-search, [class*="search-bar"], [class*="search-widget"] {
    margin: 16px !important;
    border-radius: 16px !important;
    width: calc(100% - 32px) !important;
  }
  .search-tabs, [class*="search-tab"] {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 4px !important;
    padding-bottom: 4px !important;
  }
  .scroll-indicator, [class*="scroll-down"] { display: none !important; }
}

/* ── SECTION HEADINGS ───────────────────────────────────────── */
@media (max-width: 768px) {
  /* Sections: vertical padding only — let .container handle horizontal */
  section { padding: 48px 0 !important; }
  /* Container: single source of horizontal padding on mobile */
  .container { padding-left: 20px !important; padding-right: 20px !important; }
  h1 { font-size: clamp(2rem, 8vw, 3rem) !important; }
  h2 { font-size: clamp(1.6rem, 6vw, 2.2rem) !important; }
  h3 { font-size: clamp(1.2rem, 4vw, 1.6rem) !important; }
  .section-title, [class*="section-head"] h2 {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
    text-align: center !important;
  }
  .section-subtitle, [class*="section-sub"] {
    text-align: center !important;
    font-size: 0.9rem !important;
  }
}

/* ── PACKAGE CARDS GRID ─────────────────────────────────────── */
@media (max-width: 768px) {
  .packages-grid, .packages-list,
  [class*="packages-grid"], [class*="pkg-grid"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 !important;
  }
  .package-card, [class*="pkg-card"] { max-width: 100% !important; }
  .filter-tabs, [class*="filter-tab"] {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 8px !important;
    gap: 8px !important;
    justify-content: flex-start !important;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 8px 16px !important;
    font-size: 0.82rem !important;
  }
}

/* ── PACKAGE DETAIL PAGE ────────────────────────────────────── */
@media (max-width: 768px) {
  .pkg-detail-layout, .pkg-layout, [class*="pkg-detail-grid"] {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .pkg-sidebar, [class*="pkg-booking-sidebar"] {
    position: static !important;
    top: auto !important;
    order: -1 !important;
    margin: 0 0 24px !important;
    border-radius: 16px !important;
  }
  .pkg-hero, [class*="pkg-hero"] {
    height: 55vw !important;
    min-height: 240px !important;
    max-height: 380px !important;
  }
  .pkg-gallery-grid, [class*="gallery-grid"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
}

/* ── HOMEPAGE SECTIONS ──────────────────────────────────────── */
@media (max-width: 768px) {
  .stats-bar, .trust-bar,
  [class*="stats-grid"], [class*="trust-grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .how-it-works-steps, [class*="how-steps"], [class*="steps-grid"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .testimonials-track, [class*="testimonials-slider"] {
    flex-direction: column !important;
  }
  .testimonial-card {
    min-width: unset !important;
    width: 100% !important;
  }
  .instagram-grid, [class*="insta-grid"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
  }
  .cta-section, [class*="cta-wrap"] {
    padding: 40px 20px !important;
    text-align: center !important;
  }
  .cta-section h2 { font-size: 1.8rem !important; }
  .cta-section .cta-btns {
    flex-direction: column !important;
    align-items: center !important;
  }
}

/* ── FOOTER ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  footer, .footer, .site-footer {
    padding: 40px 20px 100px !important;
  }
  .footer-grid, .footer-inner,
  [class*="footer-col"], [class*="footer-grid"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .footer-logo { text-align: center !important; }
  .footer-bottom, [class*="footer-bottom"] {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
    font-size: 0.78rem !important;
  }
}

/* ── CONTACT PAGE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .contact-grid, [class*="contact-layout"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px !important;
  }
  .contact-form-grid, [class*="form-row"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── GALLERY PAGE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .gallery-masonry, .gallery-grid, [class*="masonry"] {
    columns: 2 !important;
    column-gap: 8px !important;
  }
  .gallery-filter-tabs {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    padding: 0 16px 8px !important;
    justify-content: flex-start !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
  }
  .gallery-filter-tabs::-webkit-scrollbar { display: none; }
}

/* ── BLOG PAGE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-grid, [class*="blog-grid"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* ── BUILD PACKAGE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .builder-layout, [class*="builder-grid"] {
    grid-template-columns: 1fr !important;
  }
  .step-tabs, [class*="step-nav"] {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
    gap: 4px !important;
  }
  .step-tabs::-webkit-scrollbar { display: none; }
  .destinations-grid, [class*="dest-grid"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
}

/* ── ABOUT PAGE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .team-grid, [class*="team-grid"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
  .about-story-layout, [class*="about-grid"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── 404 PAGE ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .error-404 h1, .not-found h1 {
    font-size: clamp(6rem, 25vw, 10rem) !important;
  }
  .error-btns, [class*="404-btns"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 0 24px !important;
  }
  .error-btns a, .error-btns button {
    width: 100% !important;
    text-align: center !important;
  }
}

/* ── GENERAL UTILITY ────────────────────────────────────────── */
@media (max-width: 768px) {
  html { overflow-x: hidden; }
  body { overflow-x: hidden; width: 100%; }
  img, video, canvas, svg, iframe, table, pre { max-width: 100% !important; }
  img { height: auto; }
  .particles, .particle, [class*="particle"],
  .cursor-dot, .cursor-ring { display: none !important; }
  [data-reveal], [class*="reveal"], [class*="animate"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  a, button { min-height: 44px; min-width: 44px; }
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="number"], input[type="date"], select, textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 375px) {
  section { padding: 36px 0 !important; }
  .container { padding-left: 14px !important; padding-right: 14px !important; }
  .wa-float {
    bottom: 16px !important;
    right: 16px !important;
    width: 50px !important;
    height: 50px !important;
  }
}
