/* LEIBAMA Tours & Travel - Global Styles */

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors (from logo) */
  --primary-teal: #0B3F46;
  --accent-orange: #FF9F3F;
  --light-neutral: #EDEDED;
  --dark-text: #1A1A1A;

  /* Legacy colors for smooth transitions */
  --gold: #c9a227;
  --gold-light: #e8d59a;
  --cream: #faf6ee;

  /* Spacing */
  --section-padding: 80px 20px;
  --container-max-width: 1200px;

  /* Transitions */
  --transition-smooth: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--light-neutral);
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-teal);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 63, 70, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  padding: 15px 0;
  background: rgba(11, 63, 70, 0.98);
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: var(--transition-smooth);
}

.nav-logo:hover img {
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(340deg);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-menu a {
  color: var(--light-neutral);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--accent-orange);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a.active {
  color: var(--accent-orange);
}

/* Social Links in Header */
.nav-social {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-left: 15px;
}

.nav-social a {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.nav-social a:hover {
  background: var(--accent-orange);
  transform: translateY(-3px);
}

.nav-social svg {
  width: 18px;
  height: 18px;
  fill: var(--light-neutral);
}

/* Currency & Language Selectors */
.nav-selectors-desktop {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-selectors-mobile {
  display: none; /* Hidden on desktop */
}

.nav-selector {
  position: relative;
}

.selector-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1rem;
  color: var(--light-neutral);
}

.selector-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-orange);
  transform: scale(1.05);
}

.selector-icon.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.selector-dropdown {
  position: absolute;
  top: 55px;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  min-width: 180px;
  display: none;
  z-index: 1001;
}

.selector-dropdown.active {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.selector-option {
  padding: 12px 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--dark-text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.selector-option:hover {
  background: var(--light-neutral);
  color: var(--accent-orange);
}

.selector-option.selected {
  background: var(--accent-orange);
  color: white;
  font-weight: 600;
}

.selector-option-icon {
  font-size: 1.3rem;
  width: 25px;
  text-align: center;
}

.nav-selector label {
  display: none;
}

/* Hide old selects */
.nav-selector select {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--light-neutral);
  transition: var(--transition-smooth);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 15px 40px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background: var(--accent-orange);
  color: white;
  border-color: var(--accent-orange);
}

.btn-primary::before {
  background: var(--primary-teal);
}

.btn-primary:hover {
  color: white;
  border-color: var(--primary-teal);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-teal);
  border-color: var(--primary-teal);
}

.btn-secondary::before {
  background: var(--primary-teal);
}

.btn-secondary:hover {
  color: white;
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-outline::before {
  background: var(--accent-orange);
}

.btn-outline:hover {
  border-color: var(--accent-orange);
}

/* ========== CONTAINER & SECTION ========== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  margin-bottom: 15px;
}

.section-title .divider {
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
  margin: 20px auto;
}

.section-title p {
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* ========== CARDS ========== */
/* ========== ENHANCED PACKAGE CARDS ========== */
.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
}

.card-image {
  position: relative;
  overflow: hidden;
  height: 280px;
  background: linear-gradient(135deg, #0B3F46 0%, #144E58 100%);
}

.card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover .card-image::after {
  opacity: 1;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover .card-image img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent-orange);
  color: white;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(255, 159, 63, 0.4);
  z-index: 2;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(255, 159, 63, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(255, 159, 63, 0.6);
  }
}

.card-content {
  padding: 28px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  margin-bottom: 12px;
  color: var(--primary-teal);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.card:hover .card-content h3 {
  color: var(--accent-orange);
}

.card-content .destination {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.card-content .destination svg {
  width: 14px;
  height: 14px;
  fill: var(--accent-orange);
}

.card-content .description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: auto;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(237, 237, 237, 0.8);
  gap: 12px;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #666;
  font-weight: 500;
}

.card-meta-item svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-orange);
  flex-shrink: 0;
}

.card-meta-item.price {
  margin-left: auto;
}

.card-meta-item.price strong {
  color: var(--primary-teal);
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ========== FOOTER ========== */
footer {
  background: var(--primary-teal);
  color: var(--light-neutral);
  padding: 60px 20px 30px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-orange), var(--gold), var(--accent-orange));
}

.footer-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-section h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-orange);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer-section p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(237, 237, 237, 0.85);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(237, 237, 237, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 300;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '→';
  color: var(--accent-orange);
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent-orange);
  padding-left: 5px;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 159, 63, 0.5);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.social-links a svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-orange);
  transition: var(--transition-smooth);
}

.social-links a:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.social-links a:hover svg {
  fill: white;
}

.footer-bottom {
  border-top: 1px solid rgba(237, 237, 237, 0.1);
  padding-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.footer-logo img {
  max-width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
}

.copyright {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(237, 237, 237, 0.7);
  text-align: center;
}

.copyright a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.copyright a:hover {
  color: var(--gold-light);
}

.created-by {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(237, 237, 237, 0.7);
}

.created-by a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.created-by a:hover {
  color: var(--gold-light);
}

/* ========== UTILITIES ========== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  /* Reduce navbar padding on mobile */
  .navbar {
    padding: 12px 0;
  }

  .navbar.scrolled {
    padding: 10px 0;
  }

  .nav-container {
    flex-wrap: nowrap;
    padding: 0 15px;
  }

  .nav-logo img {
    max-height: 40px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 80%;
    height: 100vh;
    background: var(--primary-teal);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 70px;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
    transition: right 0.4s ease;
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu li a {
    padding: 16px 25px;
    display: block;
    font-size: 0.95rem;
  }

  /* Hide desktop selectors on mobile */
  .nav-selectors-desktop {
    display: none !important;
  }

  /* Show mobile selectors in mobile menu */
  .nav-selectors-mobile {
    display: flex !important;
    position: relative;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 20px;
    margin-top: 10px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
  }

  .nav-selector {
    width: 100%;
  }

  .selector-icon {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
  }

  #currency-icon::before {
    content: 'Currency';
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
  }

  #language-icon::before {
    content: 'Language';
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
  }

  .selector-dropdown {
    position: static !important;
    width: 100%;
    margin-top: 10px;
    background: rgba(11, 63, 70, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none; /* Hidden by default */
    max-height: 250px;
    overflow-y: auto;
  }

  .selector-dropdown.active {
    display: block !important;
  }

  .selector-option {
    color: white !important;
    padding: 12px 20px;
  }

  .selector-option:hover {
    background: rgba(255, 159, 63, 0.3) !important;
  }

  .selector-option.selected {
    background: var(--accent-orange) !important;
  }

  /* Hide social links on mobile */
  .nav-social {
    display: none;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001; /* Above nav-menu */
    position: relative;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-logo img {
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 50px 15px;
  }

  .btn {
    padding: 12px 30px;
    font-size: 0.85rem;
  }
}
