/* ═══════════════════════════════════════════════════════════════
   EZYWAY Tour and Travels
   Palette: Deep Navy · Champagne Gold · Warm White · Slate
   ═══════════════════════════════════════════════════════════════ */

:root {
  --navy:        #0A1628;   /* Deep Navy */
  --navy-mid:    #152340;   /* Mid Navy */
  --navy-light:  #1E3A5F;   /* Light Navy */
  --gold:        #C8A951;   /* Champagne Gold */
  --gold-light:  #DFC06E;   /* Light Gold */
  --gold-pale:   #F5EDD0;   /* Pale Gold */
  --cream:       #FDFCF8;   /* Warm Cream */
  --cream-dark:  #F2EFE6;   /* Darker Cream */
  --slate:       #2D3748;   /* Dark Slate text */
  --gray-mid:    #718096;   /* Mid Gray */
  --gray-light:  #E2E8F0;   /* Light Gray */
  --white:       #FFFFFF;
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
/* ── Body hidden until loader ready ──────────────────────────────── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--slate);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  visibility: hidden;
}
body.ready { visibility: visible; }
img { display: block; }
a { text-decoration: none; }

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar {
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200,169,81,0.15);
  transition: background 0.3s, box-shadow 0.3s;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
.navbar.scrolled {
  background: rgba(10,22,40,1);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

/* Desktop nav links */
.nav-link {
  position: relative;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.25s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.nav-active { color: var(--gold); }
.nav-link:hover::after, .nav-link.nav-active::after { width: 100%; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #0c1e38;
  border: 1px solid rgba(200,169,81,0.25);
  border-radius: 10px;
  min-width: 190px;
  z-index: 200;
  padding: 6px 0;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(200,169,81,0.3);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 9px 18px;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover { background: rgba(200,169,81,0.1); color: var(--gold); }

/* ── Mobile Menu ─────────────────────────────────────────────────── */
#mobile-menu {
  display: none;
  position: fixed;
  top: 90px;
  left: 0;
  right: 0;
  z-index: 49;
  width: 100%;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}
#mobile-menu.mob-open { display: block; }

.mob-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
  user-select: none;
}
.mob-link:hover, .mob-link.nav-active { color: var(--gold); }
.mob-chevron { flex-shrink: 0; color: rgba(200,169,81,0.6); transition: transform 0.25s ease; }
.mob-sub { display: none; margin: 2px 0 4px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,0.04); }
.mob-sub.mob-sub-open { display: block; }
.mob-sub-link { display: block; padding: 9px 14px; font-size: 0.82rem; color: rgba(200,169,81,0.8); transition: color 0.2s, background 0.2s; text-decoration: none; }
.mob-sub-link:hover { color: var(--gold); background: rgba(200,169,81,0.07); }
#menu-btn { cursor: pointer; transition: background 0.2s, border-color 0.2s; }
#menu-btn:hover { background: rgba(255,255,255,0.12) !important; border-color: rgba(200,169,81,0.4) !important; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 6px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(200,169,81,0.45); }

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 6px;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  background: transparent;
}
.btn-outline:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }

.ripple { position: relative; overflow: hidden; }
.ripple::after { content:''; position:absolute; border-radius:50%; background:rgba(255,255,255,0.25); width:0; height:0; top:50%; left:50%; transform:translate(-50%,-50%); transition:width 0.4s, height 0.4s, opacity 0.4s; opacity:0; }
.ripple:active::after { width:220px; height:220px; opacity:1; transition:0s; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero-overlay { background: linear-gradient(135deg, rgba(10,22,40,0.88) 0%, rgba(10,22,40,0.5) 60%, rgba(10,22,40,0.2) 100%); }

/* ── Glass Card ──────────────────────────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(200,169,81,0.2);
  border-radius: 14px;
}

/* ── Typography ──────────────────────────────────────────────────── */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.section-title span { color: var(--gold); }
.section-subtitle { color: var(--gray-mid); font-size: 1rem; line-height: 1.6; font-family: 'DM Sans', sans-serif; }
.gold-line { width: 56px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 2px; }

/* ── Cards ───────────────────────────────────────────────────────── */
.tour-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(10,22,40,0.08);
  transition: transform 0.35s, box-shadow 0.35s;
  background: var(--white);
}
.tour-card:hover { transform: translateY(-6px); box-shadow: 0 14px 44px rgba(10,22,40,0.15); }
.tour-card img { transition: transform 0.5s; width: 100%; }
.tour-card:hover img { transform: scale(1.06); }

.highlight-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(200,169,81,0.15), rgba(200,169,81,0.05));
  border: 1px solid rgba(200,169,81,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer { background: var(--navy); }
.footer-link { color: rgba(255,255,255,0.5); transition: color 0.3s; text-decoration: none; }
.footer-link:hover { color: var(--gold); }

/* ── Scroll Animations ───────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(36px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left { opacity: 0; transform: translateX(-36px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right { opacity: 0; transform: translateX(36px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-right.visible { opacity: 1; transform: translateX(0); }

/* ── Gallery / Masonry ───────────────────────────────────────────── */
.masonry { columns: 3; column-gap: 14px; }
.masonry-item { break-inside: avoid; margin-bottom: 14px; border-radius: 10px; overflow: hidden; cursor: pointer; }
.masonry-item img { width: 100%; display: block; transition: transform 0.4s; }
.masonry-item:hover img { transform: scale(1.05); }
@media(max-width:768px){ .masonry { columns: 2; } }
@media(max-width:480px){ .masonry { columns: 1; } }

/* ── Lightbox ────────────────────────────────────────────────────── */
#lightbox { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.93); z-index:9999; align-items:center; justify-content:center; }
#lightbox.active { display:flex; }
#lightbox img { max-width:92vw; max-height:90vh; border-radius:10px; box-shadow:0 0 60px rgba(200,169,81,0.25); }
#lightbox-close { position:absolute; top:20px; right:24px; color:#fff; font-size:2.5rem; cursor:pointer; line-height:1; }

/* ── Forms ───────────────────────────────────────────────────────── */
.form-input {
  background: rgba(10,22,40,0.04);
  border: 1.5px solid rgba(10,22,40,0.15);
  border-radius: 8px;
  padding: 12px 16px;
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  color: var(--slate);
}
.form-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,169,81,0.15); }

/* ── Misc ────────────────────────────────────────────────────────── */
.stat-card { border-left: 3px solid var(--gold); }

.amenity-badge {
  background: rgba(200,169,81,0.1);
  border: 1px solid rgba(200,169,81,0.3);
  color: var(--navy);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.78rem;
  display: inline-block;
  font-weight: 500;
}

.itinerary-day { border-left: 2px solid var(--gold); padding-left: 20px; position: relative; }
.itinerary-day::before { content:''; position:absolute; left:-7px; top:4px; width:12px; height:12px; background:var(--gold); border-radius:50%; }

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ── Page Hero ───────────────────────────────────────────────────── */
.page-hero {
  min-height: clamp(240px, 38vw, 360px);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.9), rgba(10,22,40,0.55));
}

/* ── Testimonial ─────────────────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 20px rgba(10,22,40,0.07);
  border-top: 3px solid var(--gold);
}

/* ── Service Box ─────────────────────────────────────────────────── */
.service-box {
  border-radius: 14px;
  border: 1px solid rgba(200,169,81,0.15);
  transition: all 0.35s;
  background: var(--white);
}
.service-box:hover { border-color: var(--gold); box-shadow: 0 8px 32px rgba(200,169,81,0.15); transform: translateY(-4px); }

/* ── Active Nav ──────────────────────────────────────────────────── */
.nav-active { color: var(--gold) !important; }

/* ── Premium Font Styling ────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
.font-serif-display { font-family: 'Playfair Display', serif; }
.font-cinzel { font-family: 'Cinzel', serif; letter-spacing: 0.12em; }
.nav-link { font-family: 'DM Sans', sans-serif; }
.btn-gold, .btn-outline { font-family: 'DM Sans', sans-serif; }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-item { border: 1px solid rgba(200,169,81,0.15); border-radius: 12px; overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; background: var(--white); }
.faq-item:hover { border-color: rgba(200,169,81,0.4); box-shadow: 0 4px 20px rgba(200,169,81,0.1); }
.faq-btn:focus { outline: none; }
.faq-body { border-top: 1px solid rgba(200,169,81,0.12); }

/* ── Page Loader ─────────────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow: hidden;
  pointer-events: all;
}
.loader-panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--navy);
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 1;
}
.left-panel  { left: 0; }
.right-panel { right: 0; }
#page-loader.loader-exit .left-panel  { transform: translateX(-100%); }
#page-loader.loader-exit .right-panel { transform: translateX(100%); }
.loader-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#page-loader.loader-exit .loader-content { opacity: 0; transform: scale(0.9); }
.ldr-logo { width: 100px; height: auto; object-fit: contain; margin-bottom: 24px; animation: ldrFadeUp 0.6s ease 0.1s both; }
.ldr-percent { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(3.5rem, 10vw, 6rem); font-weight: 700; color: var(--gold); line-height: 1; letter-spacing: -0.02em; animation: ldrFadeUp 0.6s ease 0.3s both; min-width: 5ch; text-align: center; }
.ldr-text { font-size: 0.6rem; letter-spacing: 0.35em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-top: 10px; animation: ldrFadeUp 0.6s ease 0.45s both; text-align: center; transition: opacity 0.3s ease, transform 0.3s ease; }
.ldr-text.changing { opacity: 0; transform: translateY(-4px); }
.ldr-bar-track { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.06); z-index: 3; }
.ldr-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width 0.04s linear; }
@keyframes ldrFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — Fix overflow / shifting on all pages
   ══════════════════════════════════════════════════════════════════ */

/* Prevent horizontal scroll — only on body and sections, NOT navbar */
body { overflow-x: hidden; }
section, main, footer, .footer {
  max-width: 100%;
  overflow-x: hidden;
}

/* Images never overflow their container */
img { max-width: 100%; height: auto; }
video { max-width: 100%; }

/* Fluid section padding */
.section-pad { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }

/* Responsive typography */
@media (max-width: 640px) {
  .section-title { font-size: 1.65rem; }
  .page-hero { min-height: 200px; }
  .whatsapp-float { width: 48px; height: 48px; bottom: 16px; right: 14px; }
  .tour-card:hover { transform: none; box-shadow: 0 2px 20px rgba(10,22,40,0.08); }
  .service-box:hover { transform: none; }
}

@media (max-width: 768px) {
  .masonry { columns: 2; }
  .section-title { font-size: 1.85rem; }
  /* Fix about page image overflow */
  .fade-right.relative { overflow: visible; }
  .fade-right .absolute { position: relative !important; bottom: auto !important; left: auto !important; margin-top: 1rem; }
}

/* Fix sticky elements on mobile */
@media (max-width: 1024px) {
  .sticky { position: relative !important; top: auto !important; }
}
