/* 
    Najwa Travel Design System
    Theme: Premium Navy & Gold
*/

:root {
  --primary-navy: #002b5b;
  --primary-gold: #c5a022;
  --accent-red: #8b0000;
  --text-dark: #333333;
  --bg-light: #f4f4f4;
  --white: #ffffff;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
  padding-bottom: 60px; /* Space for bottom bar */
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9990;
  transition: var(--transition);
  padding: 8px 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

/* Navbar Poni (Tab) - Mobile Only */
.nav-poni {
  position: absolute;
  top: 0;
  right: 5%;
  background: var(--primary-gold);
  color: var(--white);
  padding: 5px 20px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: none; /* Hidden on desktop */
  align-items: center;
  gap: 10px;
  z-index: 1001;
  transition: var(--transition);
  cursor: pointer;
}

.nav-poni:hover {
  background: var(--primary-navy);
}

header.scrolled .nav-poni {
  top: -5px; /* Subtle lift when scrolled */
}

header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 8px 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

/* Search Bar in Navbar */
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 20px;
  flex: 0 1 350px;
  z-index: 1002;
}

.nav-search input {
  width: 100%;
  padding: 10px 40px 10px 18px;
  border: 2px solid var(--primary-gold);
  border-radius: 25px;
  background: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.nav-search input:focus {
  border-color: var(--primary-navy);
  box-shadow: 0 4px 15px rgba(0, 43, 91, 0.3);
}

.nav-search input::placeholder {
  color: #999;
}

.nav-search button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-gold);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.nav-search button:hover {
  background: var(--primary-navy);
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 10px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 9999;
}

.search-results.active {
  display: block;
}

.search-results a {
  display: block;
  padding: 12px 15px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--bg-light);
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-results a:hover {
  background: var(--bg-light);
  color: var(--primary-gold);
}

.search-results a:last-child {
  border-bottom: none;
}

/* Mobile: Hide search in navbar */
@media (max-width: 992px) {
  .nav-search {
    display: none;
  }
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: auto;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-navy);
  position: relative;
  padding: 8px 0;
  display: block;
  white-space: nowrap;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 15px 0;
}

.nav-links li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  color: var(--text-dark) !important;
  padding: 10px 20px !important;
  font-size: 0.9rem !important;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary-gold) !important;
}

.dropdown-menu a::after {
  display: none;
}

/* Nested Submenu Level 2 */
.dropdown-menu li {
  position: relative;
}

.dropdown-menu .dropdown-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--white);
  min-width: 180px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  padding: 10px 0;
  z-index: 1001;
}

.dropdown-menu li:hover > .dropdown-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dropdown-submenu a {
  padding: 8px 18px !important;
  font-size: 0.85rem !important;
}

.dropdown-submenu a::before {
  content: "— ";
  color: var(--primary-gold);
  margin-right: 5px;
}

/* Dropdown with submenu indicator */
.dropdown-menu li:has(.dropdown-submenu) > a::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7rem;
  margin-left: 8px;
  display: inline-block;
}

.cta-nav {
  background: var(--primary-gold);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.cta-nav:hover {
  background: var(--primary-navy);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(0, 43, 91, 0.4), rgba(0, 43, 91, 0.4)),
    url("images/hero.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 80px;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 40px;
  font-style: italic;
  opacity: 0.9;
}

.btn-primary {
  background: var(--primary-gold);
  color: var(--white);
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 10px 25px rgba(197, 160, 34, 0.3);
}

.btn-primary:hover {
  transform: scale(1.05);
  background: var(--accent-gold);
}

/* Service Sections */
.section-padding {
  padding: 100px 0;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-navy);
  position: relative;
  display: inline-block;
}

/* Animation Classes */
.card,
.section-title {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.card.visible,
.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title.no-after h2::after {
  display: none;
}

/* Travel Grid */
.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
}

.card-img {
  height: 200px;
  background: #ddd;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 30px;
}

.price-tag {
  color: var(--primary-gold);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 10px;
  display: block;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 1001;
  transition: var(--transition);
}

.wa-float:hover {
  transform: scale(1.1);
}

/* Footer */
footer {
  background: var(--primary-navy);
  color: var(--white);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-info h3 {
  margin-bottom: 25px;
  color: var(--primary-gold);
}

.footer-info p {
  margin-bottom: 15px;
  opacity: 0.8;
}

.copyright {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
}
/* Bottom Mobile Bar */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-navy);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  z-index: 2000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.bottom-bar a {
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.bottom-bar a span {
  font-size: 0.6rem;
  font-weight: 400;
}

.scroll-up {
  background: var(--primary-gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: -5px;
  border: 2px solid var(--white);
}

@media (max-width: 768px) {
  .nav-poni {
    display: flex; /* Show on mobile */
  }

  .wa-float {
    bottom: 80px; /* Offset for bottom bar */
  }

  .nav-links {
    display: none; /* Hide standard nav for mobile if not handled by JS yet */
  }

  .menu-btn {
    display: block !important;
  }

  /* Mobile Menu Overlay */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-navy);
    z-index: 9999;
    display: none;
    flex-direction: column;
    padding: 80px 20px 20px;
    overflow-y: auto;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
  }

  .mobile-menu ul {
    list-style: none;
  }

  .mobile-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu a {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 0;
    display: block;
    text-decoration: none;
  }

  .mobile-menu a:hover {
    color: var(--primary-gold);
  }

  /* Mobile Accordion Dropdown */
  .mobile-accordion {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    cursor: pointer;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
  }

  .mobile-accordion-header i:first-child {
    margin-right: 12px;
    width: 24px;
    text-align: center;
  }

  .mobile-accordion-header .accordion-title {
    flex: 1;
  }

  .mobile-accordion-header .accordion-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
  }

  .mobile-accordion.active .accordion-arrow {
    transform: rotate(180deg);
  }

  .mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 36px;
  }

  .mobile-accordion.active .mobile-accordion-content {
    max-height: 300px;
  }

  .mobile-accordion-content a {
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mobile-accordion-content a:last-child {
    border-bottom: none;
  }

  .mobile-accordion-content a:hover {
    color: var(--primary-gold);
  }

  .mobile-cta {
    margin-top: 30px;
    text-align: center;
  }

  .mobile-cta a {
    background: var(--primary-gold);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    display: inline-block;
  }

  /* Mobile Search in Menu */
  .mobile-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
    z-index: 10000;
  }

  .mobile-search input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid var(--primary-gold);
    border-radius: 30px;
    background: var(--white);
    font-size: 1rem;
    outline: none;
    color: var(--text-dark);
  }

  .mobile-search input::placeholder {
    color: #999;
  }

  .mobile-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gold);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-search-results {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    margin-top: 5px;
    margin-bottom: 20px;
    max-height: 550px;
    overflow-y: auto;
    display: none;
    z-index: 10001;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--primary-gold);
  }

  .mobile-search-results.active {
    display: block;
  }

  .mobile-search-results a {
    display: block;
    padding: 10px 14px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--bg-light);
    font-size: 0.95rem;
    font-weight: 500;
  }

  .mobile-search-results a:hover {
    background: var(--bg-light);
    color: var(--primary-navy);
  }

  .mobile-search-results a:last-child {
    border-bottom: none;
  }
}

/* Desktop: Hide mobile menu completely */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}
