/* =========================================================
   TravelNexus — Main Stylesheet
   Palette:
   #1E2A38 Deep Navy   | #C8A86B Gold/Sand | #F5F2EB Cream
   #4A6B82 Steel Blue  | #758368 Olive     | #EFECE6 Off-white
   ========================================================= */

:root {
  --navy: #1E2A38;
  --gold: #C8A86B;
  --cream: #F5F2EB;
  --steel: #4A6B82;
  --olive: #758368;
  --offwhite: #EFECE6;
  --font-head: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-toggle-off { display: none !important; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #b6935a; transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--offwhite); color: var(--offwhite); }
.btn-outline:hover { background: var(--offwhite); color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--offwhite); }
.btn-dark:hover { background: #10171f; }
.btn-small { padding: 8px 16px; font-size: 0.82rem; }
.btn-block { width: 100%; justify-content: center; }

/* -------------------- Section heading -------------------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section-heading {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--navy);
  margin-bottom: 14px;
}
.section-sub {
  color: #5a6672;
  max-width: 620px;
  margin-bottom: 40px;
}
.section-header-center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header-center .section-sub { margin-left: auto; margin-right: auto; }

.section-pad { padding: 90px 0; }
.bg-offwhite { background: var(--offwhite); }
.bg-navy { background: var(--navy); color: var(--offwhite); }
.bg-navy .section-heading { color: var(--offwhite); }

/* -------------------- Top bar -------------------- */
.topbar {
  background: var(--navy);
  color: var(--offwhite);
  font-size: 0.82rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar-links { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; opacity: 0.9; }
.topbar-socials { display: flex; gap: 14px; }
.topbar-socials a { opacity: 0.85; }
.topbar-socials a:hover { color: var(--gold); opacity: 1; }

/* -------------------- Navbar -------------------- */
.navbar {
  background: rgba(30, 42, 56, 0.97);
  position: sticky; top: 0; z-index: 500;
  padding: 14px 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-head); font-size: 1.6rem; color: var(--offwhite); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--offwhite); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; color: var(--offwhite); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh; background: var(--navy); flex-direction: column; padding: 90px 30px; gap: 24px; transition: right 0.3s ease; z-index: 600; }
  .nav-links.open { right: 0; box-shadow: -6px 0 20px rgba(0,0,0,0.3); }
  .nav-toggle { display: block; }
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(30,42,56,0.72), rgba(30,42,56,0.55)), var(--hero-img, linear-gradient(135deg, #1E2A38, #4A6B82));
  background-size: cover;
  background-position: center;
  color: var(--offwhite);
}
.hero-content { max-width: 680px; }
.hero h1 { font-family: var(--font-head); font-size: 3.2rem; line-height: 1.15; margin-bottom: 20px; }
.hero p { font-size: 1.1rem; margin-bottom: 32px; color: var(--offwhite); opacity: 0.92; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
}

/* -------------------- Icon badges -------------------- */
.icon-badge {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.icon-badge.light { background: rgba(255,255,255,0.15); color: var(--gold); }

/* -------------------- About -------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image-wrap { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(30,42,56,0.25); }
.about-image-wrap img { height: 460px; width: 100%; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -1px; right: -1px;
  background: var(--gold); color: var(--navy);
  padding: 18px 26px; border-top-left-radius: 12px;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
}
.about-list { margin-top: 22px; display: grid; gap: 14px; }
.about-list li { display: flex; align-items: flex-start; gap: 10px; color: #445; }
.about-list i { color: var(--olive); margin-top: 4px; }

@media (max-width: 850px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* -------------------- Service cards -------------------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(30,42,56,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(30,42,56,0.16); }
.service-card-img { height: 180px; position: relative; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; }
.service-card-icon {
  position: absolute; bottom: -26px; left: 22px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; border: 4px solid #fff;
}
.service-card-body { padding: 38px 22px 26px; }
.service-card-body h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 10px; }
.service-card-body p { font-size: 0.92rem; color: #5a6672; margin-bottom: 16px; }

/* -------------------- Package cards (sliding bg) -------------------- */
.package-card {
  position: relative;
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 15px 40px rgba(30,42,56,0.2);
}
.package-slides { position: absolute; inset: 0; }
.package-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.5s ease-in-out;
}
.package-slide.active { opacity: 1; }
.package-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,42,56,0.05) 20%, rgba(30,42,56,0.92) 100%); }
.package-body { position: relative; padding: 30px; z-index: 2; }
.package-body .tag { display: inline-block; background: var(--gold); color: var(--navy); padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.package-body h3 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 6px; }
.package-body p.subtitle { opacity: 0.9; margin-bottom: 14px; font-size: 0.92rem; }
.package-price { font-weight: 700; color: var(--gold); margin-bottom: 16px; }
.package-dots { position: absolute; top: 20px; right: 20px; display: flex; gap: 6px; z-index: 3; }
.package-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.package-dots span.active { background: var(--gold); }

/* -------------------- Gallery / Blog -------------------- */
.gallery-grid { columns: 4 260px; column-gap: 22px; }
.gallery-item { break-inside: avoid; margin-bottom: 22px; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 8px 24px rgba(30,42,56,0.1); cursor: pointer; }
.gallery-item img, .gallery-item video { width: 100%; display: block; }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(30,42,56,0.9));
  color: #fff; padding: 30px 16px 14px; font-size: 0.85rem;
  opacity: 0; transition: opacity 0.25s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption strong { color: var(--gold); display: block; margin-bottom: 3px; }
.video-badge { position: absolute; top: 12px; right: 12px; background: var(--navy); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2; }

@media (max-width: 900px) { .gallery-grid { columns: 2 220px; } }
@media (max-width: 500px) { .gallery-grid { columns: 1; } }

/* -------------------- Team -------------------- */
.team-card { background: #fff; border-radius: 12px; overflow: hidden; text-align: center; box-shadow: 0 8px 24px rgba(30,42,56,0.08); }
.team-photo { height: 260px; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 24px 18px; }
.team-body h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 4px; }
.team-role { color: var(--olive); font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; }

/* -------------------- Quotation Calculator -------------------- */
.calc-box { background: #fff; border-radius: 14px; box-shadow: 0 15px 45px rgba(30,42,56,0.12); padding: 40px; }
.calc-category { margin-bottom: 26px; }
.calc-category h4 { font-family: var(--font-head); color: var(--steel); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.calc-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border: 1px solid var(--offwhite); border-radius: 8px; margin-bottom: 10px; }
.calc-item label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 0.92rem; }
.calc-item .price { color: var(--gold); font-weight: 700; }
.calc-item input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold); }
.calc-qty { width: 55px; padding: 4px; border: 1px solid #ddd; border-radius: 4px; text-align: center; margin-left: 10px; display: none; }
.calc-total-bar {
  position: sticky; bottom: 0; background: var(--navy); color: #fff;
  border-radius: 12px; padding: 24px 30px; margin-top: 10px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.calc-total-bar .total-amount { font-family: var(--font-head); font-size: 1.8rem; color: var(--gold); }

/* -------------------- Forms -------------------- */
.form-control { width: 100%; padding: 13px 16px; border: 1px solid #ddd; border-radius: 8px; font-family: var(--font-body); margin-bottom: 16px; font-size: 0.95rem; }
.form-control:focus { outline: none; border-color: var(--gold); }
label.form-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.form-card { background: #fff; border-radius: 14px; padding: 40px; box-shadow: 0 15px 45px rgba(30,42,56,0.12); max-width: 480px; margin: 0 auto; }

/* -------------------- Modal -------------------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(30,42,56,0.7); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 14px; max-width: 520px; width: 100%; padding: 34px; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 16px; right: 18px; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--navy); }

/* -------------------- Footer -------------------- */
.footer { background: var(--navy); color: var(--offwhite); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer h4 { font-family: var(--font-head); color: var(--gold); margin-bottom: 20px; font-size: 1.05rem; }
.footer-about p { opacity: 0.8; font-size: 0.9rem; margin: 16px 0 20px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.footer-socials a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer-links li { margin-bottom: 12px; }
.footer-links a { opacity: 0.82; font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold); opacity: 1; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 16px; font-size: 0.9rem; opacity: 0.88; }
.footer-contact i { color: var(--gold); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 0; text-align: center; font-size: 0.82rem; opacity: 0.7; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 550px) { .footer-grid { grid-template-columns: 1fr; } }

/* -------------------- WhatsApp float -------------------- */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 900;
  width: 62px; height: 62px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: 0 8px 24px rgba(37,211,102,0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* -------------------- Misc -------------------- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.badge-soft { background: var(--offwhite); color: var(--navy); padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #e6f4ea; color: #1e7e34; }
.alert-error { background: #fde8e8; color: #c0392b; }

/* Print styles for invoice */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}
