:root {
  --primary-color: #f13737;
  --text-color: #414141;
  --bg-light: #f3eceb;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 0.25rem;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background: var(--text-color);
}

/* Header Styles */
.header {
  background: var(--white);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-color);
}

.logo img {
  height: 50px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  height: 100%;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Hide mobile menu button on desktop */
.mobile-menu-btn {
  display: none;
}

/* Hide nav-menu by default on mobile */
@media (max-width: 768px) {
  .logo img {
    height: 50px;
  }
  .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; /* height of header */
    right: 0;
    width: 250px;
    height: calc(100% - 60px);
    background: var(--white);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    gap: 1rem;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    z-index: 1100;
  }

  /* Show nav-menu when active */
  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Show mobile menu button */
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1200;
  }

  .mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-color);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
}

/* Optional: Animate hamburger to X when active */
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  display: block;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background: var(--bg-light);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.hero-text span {
  color: var(--primary-color);
}
.hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 250px);
  grid-template-areas:
    "img1 img2"
    "img3 img2";
  gap: 1rem;
}

.hero-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-images .img1 {
  grid-area: img1;
}

.hero-images .img2 {
  grid-area: img2;
}

.hero-images .img3 {
  grid-area: img3;
}

@media (max-width: 768px) {
  .hero-content {
    text-align: center;
  }
}

/* Recent Trips Section */
.recent-trips {
  padding: 4rem 0;
  background: var(--white);
}
.recent-trips .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.recent-trips .cta-link {
  border-radius: 20px;
  padding: 6px 15px;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
}
.recent-trips .cta-link:hover {
  filter: brightness(60%);
}

.trips-grid {
  display: grid;
  grid-template-areas: "trip1 trip2" "trip1 trip3" "trip1 trip4";

  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.trip-card-1 {
  grid-area: trip1;
}
.trip-card-2 {
  grid-area: trip2;
}
.trip-card-3 {
  grid-area: trip3;
}
.trip-card-4 {
  grid-area: trip4;
}

.trip-card {
  background: var(--bg-light);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  gap: 1rem;
}
.trip-card > div p:first-child {
  margin-top: 0.6rem;
}
.trip-card:first-child {
  flex-direction: column;
}

.trip-card:hover {
  transform: translateY(-5px);
}

.trip-card img {
  width: 150px;
  height: 100%;
  object-fit: cover;
  display: block;
  /* border-bottom: 1px solid var(--white); */
}
.trip-card .image-one {
  width: 100%;
  height: unset;
}

.trip-card h3 {
  margin: 0 1rem;
  color: var(--primary-color);
}
.trip-card p:first-child {
  font-size: 0.8rem;
  font-weight: bold;
}

.trip-card p {
  margin: 0 1rem;
  color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 2rem;
  }
  .recent-trips .section-header {
    flex-direction: column;
    margin-bottom: 1rem;
    gap: 1rem;
  }
  .recent-trips .section-header .section-title {
    margin-bottom: 0;
  }
  .trips-grid {
    grid-template-areas:
      "trip1"
      "trip2"
      "trip3"
      "trip4";
  }
  .trip-card {
    flex-direction: column;
  }
  .trip-card img {
    width: 100%;
    height: 250px;
  }
  .trip-card .image-one {
    width: 100%;
    height: 250px;
  }
}

/* Services Section */
.services {
  padding: 4rem 0;
  background: var(--white);
  background-image: url("./images/mount-kenya.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: var(--primary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* About Section */
.about {
  padding: 4rem 0;
  background: var(--bg-light);
  text-align: start;
}
.about .container {
  display: flex;
  gap: 2rem;
}
.about .container > div {
  flex: 1;
}
.about .section-title {
  text-align: start;
}
.about .section-title span {
  color: var(--text-color);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  margin-left: 4rem;
}
.about-content p {
  padding-right: 3rem;
  margin-bottom: 2rem;
  line-height: 30px;
}
.about-img img {
  width: 100%;
}

@media (max-width: 768px) {
  .about {
    text-align: center;
  }
  .about .section-title {
    text-align: center;
  }
  .about .container {
    flex-direction: column;
    align-items: center;
  }
  .about-content {
    max-width: 100%;
    margin: 0;
    text-align: start;
  }
  .about-content p {
    margin: 1rem;
    padding-right: unset;
  }
  .about-card {
    margin-left: 0;
    margin-bottom: 1rem;
  }
}

/* Mission and Vision Section */
.mission-vision {
  padding: 4rem 0;
  background: var(--bg-white);
}

.values-grid {
  display: flex;
  min-height: 200px;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  background: var(--primary-color);
  padding: 1rem;
  border-radius: 0.5rem;
  width: 75%;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.value-card {
  text-align: center;
  color: var(--white);
}

.value-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.value-card p {
  margin: 0;
  font-weight: 500;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.mission-vision-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.mission-vision-card:hover {
  transform: translateY(-5px);
}

.mission-vision-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mission-vision-card .icon {
  font-size: 1.2rem;
}

.mission-vision-card p {
  color: var(--text-color);
  line-height: 1.6;
}

.cta-button {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .values-grid {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Section */
.contact {
  padding: 4rem 0;
  background: var(--bg-light);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
}
.contact-card a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  margin-top: 1rem;
  text-decoration: underline;
  text-decoration-color: var(--primary-color);
  text-underline-offset: 0.2rem;
}
.contact-card a:hover {
  color: var(--primary-color);
}

/* footer */
footer {
  padding: 1rem 0;
}
footer p {
  text-align: center;
}
footer p span {
  color: var(--primary-color);
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-overlay.hidden {
  display: none;
}

.popup-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: center;
}

.popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-color);
}

.popup-poster {
  max-width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.popup-text h2 {
  margin-bottom: 0.5rem;
}

.popup-text p {
  margin-bottom: 1rem;
}

.popup-book-btn {
  font-weight: bold;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 70px;
  right: 70px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
  overflow: visible;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #25d366;
  animation: wave 2s infinite;
  opacity: 0.6;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: -1;
}

@keyframes wave {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

.whatsapp-float:hover {
  background-color: #1ebe57;
  cursor: pointer;
}
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 60px;
    right: 60px;
  }
}
