/* ========== Afritrail Safaris — styles ========== */

:root {
  --green-900: #1c3826;
  --green-800: #234833;
  --green-700: #2d5a3f;
  --green-050: #eef4ef;
  --mustard: #d6a531;
  --mustard-dark: #b9861d;
  --orange: #e2833c;
  --orange-dark: #c96a2b;
  --cream: #faf6ec;
  --white: #ffffff;
  --ink: #1c2620;
  --muted: #5b6b60;
  --border: #e7e1d2;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 45px -20px rgba(28, 56, 38, 0.35);
  --shadow-card: 0 12px 30px -14px rgba(28, 56, 38, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--green-900);
}

p { margin: 0 0 1em; color: var(--muted); }

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

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

ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-900);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--orange-dark);
  margin-bottom: 10px;
}
.eyebrow-light { color: var(--mustard); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-pill { border-radius: 999px; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { box-shadow: 0 16px 30px -12px rgba(201, 106, 43, 0.55); }

.btn-dark {
  background: var(--green-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--green-800); }

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.18); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 18px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; }
.logo { height: 40px; width: auto; }
.logo-dark { display: none; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}
.main-nav a:hover { opacity: 0.75; }
.main-nav .nav-cta {
  padding: 11px 22px;
  font-size: 0.9rem;
}
.main-nav .nav-cta:hover { opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 2px;
  transition: background 0.2s ease;
}

.site-header.scrolled {
  background: rgba(250, 246, 236, 0.96);
  box-shadow: 0 10px 30px -18px rgba(28,56,38,0.4);
  padding: 12px 0;
}
.site-header.scrolled .logo-white { display: none; }
.site-header.scrolled .logo-dark { display: block; }
.site-header.scrolled .main-nav a { color: var(--green-900); }
.site-header.scrolled .nav-toggle { background: var(--green-050); }
.site-header.scrolled .nav-toggle span { background: var(--green-900); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 90px;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 35, 24, 0.55) 0%, rgba(20, 35, 24, 0.35) 45%, rgba(20, 35, 24, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  color: var(--white);
}
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 0.4em;
}
.hero-content p {
  color: rgba(255,255,255,0.92);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 1.6em;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.trip-finder {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  z-index: 5;
  width: min(980px, calc(100% - 48px));
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.trip-field {
  flex: 1 1 160px;
  padding: 6px 16px;
  border-right: 1px solid var(--border);
}
.trip-field:last-of-type { border-right: none; }
.trip-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}
.trip-field select,
.trip-field input {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  width: 100%;
  background: transparent;
}
.trip-submit {
  flex: 0 0 auto;
  margin-left: 4px;
}

/* ---------- Top destinations ---------- */
.top-destinations {
  background: var(--cream);
  padding: 140px 0 90px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}
.section-head.center p { max-width: 620px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.section-head p { margin-bottom: 0; }

.carousel-controls { display: flex; gap: 10px; }
.round-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--green-900);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.round-btn-dark {
  background: var(--green-900);
  color: var(--white);
  border-color: var(--green-900);
}
.round-btn:hover { background: var(--green-050); }
.round-btn-dark:hover { background: var(--green-800); }

.dest-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.dest-track::-webkit-scrollbar { display: none; }

.dest-card {
  position: relative;
  flex: 0 0 260px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 320px;
  box-shadow: var(--shadow-card);
}
.dest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.dest-card:hover img { transform: scale(1.06); }
.dest-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-900);
  font-weight: 700;
}
.dest-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px;
  background: linear-gradient(0deg, rgba(15,25,18,0.85), transparent);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dest-label span { font-size: 0.85rem; opacity: 0.85; }

/* ---------- About ---------- */
.about { padding: 100px 0; background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.about-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.about-copy p { font-size: 1.05rem; }

/* ---------- Packages ---------- */
.packages { padding: 100px 0; background: var(--green-050); }

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.package-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.package-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -18px rgba(28,56,38,0.35);
}

.package-media { position: relative; height: 210px; }
.package-media img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}
.badge-safari { background: var(--green-800); }
.badge-beach { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.badge-combo { background: var(--mustard-dark); }

.package-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.package-body h3 { font-size: 1.25rem; margin-bottom: 4px; }
.package-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange-dark);
  margin-bottom: 12px;
}
.package-body > p:not(.package-meta) { font-size: 0.95rem; }

.highlights {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.highlights li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--ink);
}
.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mustard);
}

.package-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Why us ---------- */
.why-us { padding: 100px 0; background: var(--white); }
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.reason-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--border);
}
.reason-icon {
  font-size: 1.8rem;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}
.reason-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.reason-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Custom trips ---------- */
.custom-trips {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
}
.custom-media { position: absolute; inset: 0; z-index: 0; }
.custom-media img { width: 100%; height: 100%; object-fit: cover; }
.custom-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(28,56,38,0.92), rgba(28,56,38,0.55));
}
.custom-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  color: var(--white);
}
.custom-content h2 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.custom-content p { color: rgba(255,255,255,0.9); font-size: 1.05rem; margin-bottom: 1.8em; }

/* ---------- Contact ---------- */
.contact { padding: 100px 0; background: var(--cream); }
.contact-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 50px;
  align-items: center;
}
.contact-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.contact-copy p { font-size: 1.05rem; max-width: 480px; }
.contact-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

.contact-card {
  background: var(--green-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.contact-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mustard), var(--orange-dark));
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.contact-card h3 { color: var(--white); margin-bottom: 4px; }
.contact-card p { color: rgba(255,255,255,0.8); margin-bottom: 4px; }
.contact-phone { font-weight: 700; color: var(--mustard) !important; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,0.85); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: center;
  padding: 56px 24px 40px;
}
.footer-logo { height: 42px; width: auto; margin-bottom: 10px; }
.footer-tag {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--mustard);
  line-height: 1.2;
  margin: 0;
}
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-weight: 600; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--mustard); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-contact a { font-weight: 600; }
.footer-contact a:hover { color: var(--mustard); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
}
.footer-bottom p { margin: 0; font-size: 0.82rem; text-align: center; color: rgba(255,255,255,0.6); }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.4);
  z-index: 400;
  transition: transform 0.2s ease, background 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); background: var(--whatsapp-dark); }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .package-grid { grid-template-columns: repeat(2, 1fr); }
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-card { max-width: 380px; margin: 0 auto; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 18px 22px;
    gap: 4px;
  }
  .main-nav.open a {
    color: var(--green-900);
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open a:nth-last-child(2) { border-bottom: none; }
  .main-nav.open a.nav-cta {
    color: var(--white);
    border-bottom: none;
    justify-content: center;
    margin-top: 10px;
  }

  .about-grid { grid-template-columns: 1fr; }
  .about-media img { height: 320px; }

  .trip-finder { flex-direction: column; align-items: stretch; }
  .trip-field { flex: 0 0 auto; border-right: none; border-bottom: 1px solid var(--border); padding: 12px 16px; }
  .trip-field:last-of-type { border-bottom: none; }
  .trip-submit { width: 100%; justify-content: center; margin-left: 0; margin-top: 4px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 120px 0 220px; min-height: auto; }
  .hero-content p { font-size: 1.02rem; }
  .top-destinations { padding-top: 60px; }
  .package-grid { grid-template-columns: 1fr; }
  .reason-grid { grid-template-columns: 1fr; }
  .dest-card { flex-basis: 220px; height: 280px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-contact { align-items: center; }
  .contact-actions { justify-content: center; }
  .whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .header-actions .btn { padding: 10px 16px; font-size: 0.85rem; }
}
