/* =============================================
   EROS SAFARIS KENYA - Main Stylesheet
   ============================================= */

:root {
  --green:        #1a5c2a;
  --green-light:  #2a7a3e;
  --green-dark:   #0f3a1a;
  --orange:       #e87722;
  --orange-light: #f5983d;
  --orange-dark:  #c45f10;
  --cream:        #fdf8f2;
  --dark:         #1a1a1a;
  --text:         #333;
  --text-light:   #666;
  --white:        #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-accent:  'Bebas Neue', sans-serif;
  --font-body:    'Nunito', sans-serif;
  --shadow:       0 8px 32px rgba(0,0,0,0.12);
  --shadow-hover: 0 16px 48px rgba(0,0,0,0.2);
  --radius:       12px;
  --transition:   0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3 { font-family: var(--font-display); }
.section-label {
  font-family: var(--font-accent);
  letter-spacing: 4px;
  font-size: 0.85rem;
  color: var(--orange);
  display: block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green-dark);
  font-weight: 900;
  line-height: 1.15;
}
.section-sub {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
}

/* =============================================
   NAVBAR
   ============================================= */
#mainNav {
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 1.2rem 0;
}
#mainNav.scrolled {
  background: var(--green-dark) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  padding: 0.6rem 0;
}
#mainNav .navbar-brand img { transition: height var(--transition); }
#mainNav.scrolled .navbar-brand img { height: 42px; }
.navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0.4rem 0.8rem !important;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,0.15);
  color: var(--white) !important;
}
.lang-btn {
  background: var(--orange);
  color: var(--white) !important;
  border-radius: 20px !important;
  padding: 0.35rem 0.9rem !important;
  font-size: 0.82rem;
}
.lang-btn:hover { background: var(--orange-dark); }
.lang-dropdown {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 110px;
}
.lang-dropdown .dropdown-item.active {
  background: var(--green);
  color: var(--white);
}

/* =============================================
   HERO CAROUSEL
   ============================================= */
#heroCarousel { margin-top: 0; }
.carousel-item {
  height: 100vh;
  min-height: 600px;
}
.hero-slide {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 40, 15, 0.55) 0%,
    rgba(10, 40, 15, 0.35) 40%,
    rgba(10, 40, 15, 0.72) 100%
  );
  z-index: 1;
}
.hero-slide img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.carousel-item.active .hero-bg {
  transform: scale(1);
}
.hero-slide .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1.5rem;
  max-width: 760px;
}
.hero-eyebrow {
  font-family: var(--font-accent);
  letter-spacing: 6px;
  font-size: 1rem;
  color: var(--orange-light);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s 0.3s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s 0.5s forwards;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.87);
  margin-bottom: 2rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s 0.7s forwards;
}
.hero-btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(232,119,34,0.4);
  opacity: 0;
  animation: fadeUp 0.7s 0.9s forwards;
}
.hero-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,119,34,0.5);
  color: var(--white);
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  z-index: 10;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(255,255,255,0.2);
  border-radius: 50%;
  padding: 1.5rem;
  background-size: 50%;
}
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  border: none;
}
.carousel-indicators .active {
  background-color: var(--orange);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   ABOUT SECTION
   ============================================= */
#about {
  background: var(--cream);
  padding: 100px 0;
}
.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.about-badge .num {
  font-family: var(--font-accent);
  font-size: 2.5rem;
  line-height: 1;
  display: block;
}
.about-badge .lbl {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.about-text { padding-left: 3rem; }
.about-features { list-style: none; padding: 0; margin: 1.5rem 0; }
.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.97rem;
}
.about-features li i {
  color: var(--orange);
  margin-top: 3px;
  flex-shrink: 0;
}
.btn-primary-es {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  display: inline-block;
}
.btn-primary-es:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  color: var(--white);
}
.btn-outline-es {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}
.btn-outline-es:hover {
  background: var(--green);
  color: var(--white);
}

/* =============================================
   PACKAGE SECTIONS
   ============================================= */
#safaris, #excursions {
  padding: 100px 0;
}
#safaris { background: var(--white); }
#excursions { background: var(--cream); }

.section-header { margin-bottom: 3.5rem; }
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--green), var(--orange));
  border-radius: 4px;
  margin: 1rem 0;
}

/* Package Cards */
.pkg-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  background: var(--white);
}
.pkg-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.pkg-card .card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.pkg-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.pkg-card:hover .card-img-wrap img {
  transform: scale(1.08);
}
.pkg-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-accent);
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}
.pkg-parks {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(10,40,15,0.75));
  padding: 1rem 1rem 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.park-tag {
  background: rgba(255,255,255,0.22);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.pkg-card .card-body { padding: 1.4rem 1.5rem; }
.pkg-card .card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.pkg-card .card-text {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.pkg-card .card-footer {
  background: transparent;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pkg-duration {
  font-family: var(--font-accent);
  font-size: 1rem;
  color: var(--green);
  letter-spacing: 1px;
}
.btn-card {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.3rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition);
}
.btn-card:hover { background: var(--orange); color: var(--white); }

/* =============================================
   GALLERY
   ============================================= */
#gallery {
  padding: 100px 0;
  background: var(--green-dark);
}
#gallery .section-title { color: var(--white); }
#gallery .section-sub { color: rgba(255,255,255,0.7); }
#gallery .section-label { color: var(--orange-light); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 12px;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(5) { grid-column: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 92, 42, 0);
  transition: background var(--transition);
}
.gallery-item:hover::after { background: rgba(26, 92, 42, 0.25); }

/* =============================================
   TESTIMONIALS
   ============================================= */
#testimonials {
  padding: 100px 0;
  background: var(--cream);
}
.testi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: 100%;
  position: relative;
}
.testi-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--orange);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
}
.testi-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testi-stars { color: var(--orange); font-size: 0.9rem; margin-bottom: 0.7rem; }
.testi-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.testi-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange-light);
}
.testi-name { font-weight: 700; font-size: 0.95rem; color: var(--green-dark); }
.testi-country { font-size: 0.78rem; color: var(--text-light); }

/* =============================================
   CONTACT
   ============================================= */
#contact {
  padding: 100px 0;
  background: var(--white);
}
.contact-form-wrap {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-form-wrap .form-control,
.contact-form-wrap .form-select {
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}
.contact-form-wrap .form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,92,42,0.12);
}
.contact-form-wrap label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 46px;
  height: 46px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item h6 { font-weight: 700; color: var(--green-dark); margin-bottom: 0.2rem; }
.contact-info-item a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.contact-info-item a:hover { color: var(--orange); }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}
.map-wrap iframe { display: block; width: 100%; border: none; }

/* =============================================
   WHATSAPP FLOAT
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: #25D366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  animation: waBounce 2s infinite;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  color: var(--white);
  transform: scale(1.1);
  animation: none;
}
@keyframes waBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}
.footer-tagline { font-size: 0.9rem; opacity: 0.7; }
.footer-heading {
  font-family: var(--font-accent);
  letter-spacing: 2px;
  color: var(--orange-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a, .site-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover, .site-footer a:hover { color: var(--orange-light); }
.social-icons { display: flex; gap: 0.8rem; }
.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}
.social-icons a:hover { background: var(--orange); color: var(--white); }
.footer-hr { border-color: rgba(255,255,255,0.12); margin: 2rem 0 1rem; }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.45); text-align: center; }

/* =============================================
   PACKAGE DETAIL PAGE
   ============================================= */
.page-hero {
  height: 45vh;
  min-height: 320px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 2.5rem;
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, rgba(10,40,15,0.8));
  z-index: 1;
}
.page-hero .hero-inner {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem,4vw,3rem); color: var(--white); }
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.breadcrumb-item.active { color: var(--orange-light); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

.detail-content { padding: 70px 0; }
.highlight-list { list-style: none; padding: 0; }
.highlight-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
}
.highlight-list li i { color: var(--orange); }
.sidebar-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}
.sidebar-card h5 {
  font-family: var(--font-display);
  color: var(--green-dark);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}
.sidebar-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid #ddd;
  font-size: 0.9rem;
}
.sidebar-stat span:first-child { color: var(--text-light); }
.sidebar-stat span:last-child { font-weight: 700; color: var(--green-dark); }

/* =============================================
   UTILITIES
   ============================================= */
.bg-green { background: var(--green) !important; }
.text-green { color: var(--green) !important; }
.text-orange { color: var(--orange) !important; }

/* Responsive */
@media (max-width: 991px) {
  .about-text { padding-left: 0; margin-top: 3rem; }
  .about-badge { bottom: -10px; right: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .gallery-item:nth-child(5) { grid-column: span 2; }
  .navbar-collapse {
    background: var(--green-dark);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 0.5rem;
  }
}
@media (max-width: 576px) {
  /* Always give content room to breathe from edges */
  .container,
  .container-fluid {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .hero-content {
    padding-left: 0;
    padding-right: 0;
  }

  /* Tighter section padding on mobile */
  #about, #safaris, #excursions, #gallery,
  #testimonials, #contact, .detail-content {
    padding: 60px 0;
  }

  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .gallery-item:nth-child(5) { grid-column: span 2; }
  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: 0.95rem; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; font-size: 1.4rem; }
  .about-badge { right: 10px; bottom: -10px; }
  .contact-form-wrap { padding: 1.5rem; }
  .sidebar-card { position: static; margin-top: 1rem; }
  .pkg-card .card-footer { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .section-title { font-size: 1.8rem; }
  .page-hero { height: 35vh; min-height: 260px; }
  .page-hero h1 { font-size: 1.5rem; }
}