/* ============================================
   Swahili Expeditions - Main Stylesheet
   Used by: index.php, privacy-policy.php, 
   terms-of-service.php, and all other pages
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: #fafaf8;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:root {
  --gold: #ca9b33;
  --black: #000000;
  --dark: #0a0a0a;
  --light-bg: #fafaf8;
  --gold-light: #f7efdf;
  --text-dark: #1a1a1a;
  --text-gray: #555;
  --border-light: #e8e8e8;
  --white: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--black);
  color: #ddd;
  font-size: 0.82rem;
  padding: 10px 0;
  border-bottom: 1px solid #222;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.top-bar a {
  color: #ddd;
  text-decoration: none;
  transition: 0.2s;
  font-weight: 500;
}
.top-bar a:hover {
  color: var(--gold);
}
.top-bar i {
  color: var(--gold);
  margin-right: 5px;
  font-size: 0.85rem;
}
.trust-badge {
  background: var(--gold);
  color: #000;
  padding: 4px 12px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.top-bar-divider {
  width: 1px;
  height: 16px;
  background: #444;
}

/* ========== MAIN NAVIGATION ========== */
.main-nav {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}
.logo {
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.5px;
  color: var(--black);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.logo span {
  color: var(--gold);
}
.logo-icon {
  font-size: 1.5rem;
  color: var(--gold);
}
.nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 100%;
  list-style: none;
}
.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-item.mega-trigger {
  position: static;
}
.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 4px;
  transition: 0.25s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.93rem;
  height: 100%;
}
.nav-link i {
  font-size: 0.65rem;
  transition: transform 0.3s;
  color: #999;
}
.nav-link:hover {
  color: var(--gold);
  background: rgba(202, 155, 51, 0.06);
}
.nav-item:hover .nav-link i {
  transform: rotate(180deg);
  color: var(--gold);
}
.nav-cta {
  background: var(--gold);
  color: #000 !important;
  padding: 12px 24px !important;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 8px;
  font-size: 0.93rem;
}
.nav-cta:hover {
  background: #d4a53c;
  color: #fff !important;
}
.simple-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  min-width: 240px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 8px 8px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  list-style: none;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--gold);
  z-index: 1001;
}
.nav-item.dropdown-trigger:hover .simple-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.simple-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.88rem;
}
.simple-dropdown li a:hover {
  background: #f9f6f0;
  color: var(--gold);
}
.mega-menu-fullwidth {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  background: var(--white);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid var(--border-light);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.35s;
  z-index: 1000;
}
.nav-item.mega-trigger:hover .mega-menu-fullwidth {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-menu-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.mega-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 700;
  border-bottom: 2px solid var(--gold-light);
  padding-bottom: 12px;
}
.mega-col ul {
  list-style: none;
}
.mega-col ul li {
  margin-bottom: 8px;
}
.mega-col ul li a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.88rem;
}
.mega-col ul li a:hover {
  background: #f9f6f0;
  color: var(--gold);
}
.mega-highlight-box {
  background: linear-gradient(135deg, var(--gold-light), #fdf8f0);
  padding: 20px;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--black);
  padding: 8px;
}

/* ========== HERO / PAGE HERO ========== */
.hero,
.page-hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
    url("https://images.pexels.com/photos/247376/pexels-photo-247376.jpeg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: white;
}
.hero {
  min-height: 90vh;
}
.page-hero {
  padding: 70px 0;
  text-align: center;
  justify-content: center;
}
.hero-content {
  max-width: 800px;
}
.hero h1,
.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.page-hero h1 {
  font-size: 2.2rem;
}
.hero .subheadline {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}
.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ========== CONTENT SECTIONS ========== */
section {
  padding: 80px 0;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--black);
  text-align: center;
}
.section-subtitle {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  color: #555;
}

.content-section {
  padding: 50px 0;
}
.content-section h2 {
  font-size: 1.5rem;
  color: var(--gold);
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.content-section h3 {
  font-size: 1.15rem;
  margin: 20px 0 8px;
  color: #333;
}
.content-section p {
  margin-bottom: 15px;
  color: #555;
  line-height: 1.8;
}
.content-section ul,
.content-section ol {
  margin: 10px 0 20px 20px;
  color: #555;
}
.content-section ul li,
.content-section ol li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.content-section a {
  color: var(--gold);
  text-decoration: underline;
}
.content-section a:hover {
  color: #b8872a;
}
.content-section strong {
  color: #333;
}
.last-updated {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 30px;
  font-style: italic;
  background: #f9f9f9;
  padding: 10px 15px;
  border-radius: 4px;
  border-left: 3px solid var(--gold);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 4px;
  border: 2px solid var(--gold);
  transition: 0.3s;
  font-size: 0.95rem;
  cursor: pointer;
}
.btn:hover {
  background: #d4a53c;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(202, 155, 51, 0.3);
}
.btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}
.btn-outline:hover {
  background: white;
  color: #000;
}

/* ========== CARDS & GRIDS ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.feature-item {
  text-align: center;
  padding: 24px 16px;
  transition: 0.3s;
  border-radius: 8px;
}
.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.feature-icon {
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 18px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.testimonial {
  background: #fff;
  padding: 35px 28px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  border-left: 5px solid var(--gold);
}
.stars {
  color: var(--gold);
  margin-bottom: 18px;
  font-size: 1.1rem;
}

/* ========== SAFARI CARDS ========== */
.safari-section-full {
  background: #fcfcfc;
  padding: 80px 0;
}
.tour-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: 0.35s;
  border: 1px solid #f0f0f0;
}
.tour-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}
.tour-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.tour-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: #000;
  padding: 5px 12px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.tour-details {
  padding: 18px 16px;
}
.tour-details h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: var(--black);
}
.tour-duration {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.highlights {
  list-style: none;
  margin: 8px 0;
}
.highlights li {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: #555;
}
.highlights i {
  color: var(--gold);
  margin-right: 6px;
  font-size: 0.7rem;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.price {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--black);
}
.price small {
  font-weight: 400;
  font-size: 0.75rem;
  color: #777;
}
.btn-card {
  background: var(--black);
  color: white;
  border: none;
  padding: 8px 16px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.8rem;
}
.btn-card:hover {
  background: var(--gold);
  color: #000;
}

/* ========== TRUST BAR ========== */
.trust-bar {
  background: #fafafa;
  padding: 30px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  font-weight: 600;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.trust-bar i {
  color: var(--gold);
  margin-right: 6px;
}
.consultation {
  background: var(--black);
  color: white;
  text-align: center;
  padding: 75px 25px;
  border-radius: 14px;
  margin: 40px 0 60px;
}

/* ========== FOOTER ========== */
footer {
  background: #0a0a0a;
  color: #bbb;
  padding: 50px 0 20px;
  font-size: 0.88rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-col h4:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.footer-col p {
  margin-bottom: 14px;
  line-height: 1.7;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col a {
  color: #bbb;
  text-decoration: none;
  transition: 0.2s;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-contact-item i {
  color: var(--gold);
}
.footer-newsletter input {
  width: 100%;
  padding: 11px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #ddd;
  border-radius: 4px;
  margin-bottom: 8px;
}
.footer-newsletter button {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 11px 20px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}
.footer-bottom {
  border-top: 1px solid #1a1a1a;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #777;
  font-size: 0.85rem;
}
.footer-bottom-links {
  display: flex !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}
.footer-bottom-links a {
  color: #777 !important;
  text-decoration: none !important;
  transition: 0.2s !important;
}
.footer-bottom-links a:hover {
  color: var(--gold);
}
.social-icons {
  display: flex;
  gap: 14px;
}
.social-icons a {
  color: #999;
  font-size: 1.2rem;
  background: #1a1a1a;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.2s;
}
.social-icons a:hover {
  color: #000;
  background: var(--gold);
}
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
}
.floating-whatsapp:hover {
  transform: scale(1.1);
}

/* ========== IMPORTANT BOX ========== */
.important-box {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 20px 25px;
  margin: 25px 0;
}
.important-box h4 {
  color: #856404;
  margin-bottom: 8px;
}
.important-box p {
  color: #856404;
  margin: 0;
}
.quick-links {
  background: #fdf6ea;
  border: 1px solid #f0e8d5;
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 30px;
}
.quick-links h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}
.quick-links ul {
  margin: 0;
  list-style: none;
}
.quick-links ul li {
  margin-bottom: 6px;
}
.quick-links ul li a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}
.quick-links ul li a:hover {
  text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 968px) {
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eee;
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-item {
    width: 100%;
  }
  .nav-item.mega-trigger {
    position: relative;
  }
  .simple-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    display: none;
    transform: none;
  }
  .nav-item.dropdown-trigger:hover .simple-dropdown {
    display: block;
  }
  .mega-menu-fullwidth {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    display: none;
  }
  .nav-item.mega-trigger:hover .mega-menu-fullwidth {
    display: block;
  }
  .mega-menu-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
}
@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    text-align: center;
  }
  .hero {
    min-height: 70vh;
  }
  .hero h1,
  .page-hero h1 {
    font-size: 1.8rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  section {
    padding: 40px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .content-section {
    padding: 30px 0;
  }
  .content-section h2 {
    font-size: 1.2rem;
  }
}
@media (max-width: 480px) {
  .logo {
    font-size: 1.4rem;
  }
  .hero h1,
  .page-hero h1 {
    font-size: 1.5rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
}
