* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  color: #222;
  background: #fff;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* make sure header doesn't clip the absolutely positioned toggle */
.navbar { overflow: visible; }

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #1b1b1b;
}
.logo span {
  color: #ff6600;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.navbar a:hover {
  color: #ff6600;
}

/* Hero */
.hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}
.btn {
  padding: 0.8rem 2rem;
  background: #ff6600;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

/* Sections */
section {
  padding: 5rem 10%;
  text-align: center;
}

.tour-grid, .team-grid, .features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tour-card, .member, .feature {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform .3s;
}
.tour-card:hover, .member:hover, .feature:hover {
  transform: translateY(-5px);
}

.tour-card img, .member img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

footer {
  background: #111;
  color: #fff;
  padding: 2rem;
  text-align: center;
}

footer .social img {
  width: 24px;
  margin: 0 10px;
}

/* WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  z-index: 200;
}
.whatsapp-float img {
  width: 35px;
  margin-top: 12px;
}

/* Better interactive affordance and accessibility */
.whatsapp-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}
.whatsapp-float:active { transform: translateY(-2px) scale(0.99); }
.whatsapp-float:focus-visible {
  outline: 3px solid rgba(37,211,102,0.25);
  outline-offset: 4px;
}
.whatsapp-float img { width: 34px; height: 34px; }

/* Make the button slightly smaller on very small screens to avoid overlap */
@media (max-width: 420px) {
  .whatsapp-float { width:50px; height:50px; bottom:14px; right:14px; }
  .whatsapp-float img { width:28px; height:28px; }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  section { padding: 3rem 5%; }
}


.page-hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('../images/hero2.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 6rem 5%;
}
.page-hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }

.tour-filter {
  padding: 2rem 10%;
  text-align: center;
  background: #fafafa;
}
.filter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.filter-form input, .filter-form select {
  padding: 0.7rem 1rem;
  border-radius: 5px;
  border: 1px solid #ddd;
  min-width: 200px;
}
.filter-form button {
  background: #ff6600;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
}
.filter-form button:hover {
  background: #e25b00;
}

.tours-list {
  padding: 4rem 10%;
}

/* ---------------------------
   SCROLL ANIMATIONS
----------------------------*/
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-in-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional subtle parallax for hero (use with caution on mobile)
.hero {
  background-attachment: fixed;
}
*/

/* Mobile navigation toggle + responsive tweaks */
.nav-toggle {
  display: none;
  /* keep the button background untouched; make the icon (bars) black */
  background: transparent;
  border: none;
  border-radius: 6px;
  box-shadow: none;
  color: inherit;
  width: 44px;
  height: 44px; /* larger hit area */
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  /* place the toggle absolutely in the header so it's always visible */
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
}
.nav-toggle span {
  display: block;
  height: 3px;
  background: #000 !important; /* black bars so the icon itself is visible on white */
  border-radius: 3px;
  transition: transform .3s, opacity .3s;
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset;
}

.nav-toggle:focus { outline: 2px solid rgba(0,0,0,0.12); }
.nav-menu ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .nav-toggle { display:flex !important; align-items:center; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    /* slightly opaque background to make it visible over light sections */
    background: rgba(255,255,255,0.98);
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -6px 0 24px rgba(0,0,0,0.12);
    padding-top: 80px;
  z-index: 9998;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
  body.nav-open .nav-menu { transform: translateX(0%); }
  .nav-menu ul { flex-direction: column; gap: 1rem; padding: 0 1.5rem; }
  .nav-menu a { display:block; padding:.75rem 0; border-bottom:1px solid #eee; color: #111; }

  /* general mobile adjustments */
  .navbar { padding: 1rem 4%; }
  .logo { font-size: 1.25rem; }
  .hero { height: 60vh; padding: 2rem 0; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; }
  .hero-content { padding: 0 1rem; }
  .tour-card img, .member img { height: 160px; }
  .filter-form input, .filter-form select { min-width: 100%; flex: 1 1 100%; }
  .filter-form { gap: .5rem; align-items: stretch; }
  .whatsapp-float { width:48px; height:48px; bottom:18px; right:18px; }
  .whatsapp-float img { width:28px; margin-top:10px; }
}

/* stronger visibility rules for the toggle on small screens */
@media (max-width: 768px) {
  .nav-toggle {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    padding: 8px;
    background: #000 !important; /* black button */
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 10001 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .nav-toggle span {
    height: 4px !important; /* thicker bars */
    width: 22px !important;
    background: #fff !important; /* white bars */
  }
}

/* toggle transform when nav is open */
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width:480px) {
  .hero h1 { font-size:1.4rem; }
  .hero p { font-size:0.9rem; }
  section { padding: 2rem 4%; }
  .page-hero h1 { font-size:1.6rem; }
  .tour-card img, .member img { height: 140px; }
  .nav-menu { width: 80%; }
}

/* Booking modal styles */
.booking-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.booking-modal.open { display: flex; }
.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}
.modal-content h3 { margin-bottom: 12px; text-align: center; }
.modal-content input,
.modal-content textarea { width:100%; margin-bottom:10px; padding:10px; border:1px solid #ddd; border-radius:6px; }
.modal-content button { width:100%; padding:10px; background:#ffcc00; border:none; border-radius:6px; font-weight:700; cursor:pointer; }
.modal-content button:hover { background:#222; color:#fff; }
.close { float:right; font-size:20px; cursor:pointer; }

@keyframes fadeIn { from {opacity:0; transform:scale(0.96);} to {opacity:1; transform:scale(1);} }

@media (max-width:600px) {
  .modal-content { width:95%; padding:20px; }
}
