/* ---------------------------
   BushDrive Safaris - styles
   --------------------------- */

/* Root / color tokens */

*{
  scroll-behavior: smooth !important;
}
:root{
  --header-h: 72px;
  --bg: #ffffff;
  --card: #ffffff;
  --muted: #6b7280;
  --text: #0b1320;
  --primary: #174b2e;
  --accent: #f7c04a;
  --glass: rgba(255,255,255,0.7);
  --shadow-sm: 0 6px 18px rgba(12,16,20,0.06);
  --shadow-lg: 0 20px 50px rgba(12,16,20,0.12);
  --wa: #25D366;
  --phone: #0b6b3a;
  --max-w: 1200px;
  --radius: 12px;
  --gap: 1rem;
}

/* Base */
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:Inter,system-ui,-apple-system,'Segoe UI',Roboto,Arial;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.container{width:92%;max-width:var(--max-w);margin:0 auto}

/* Topbar */
.topbar{background:var(--primary);color:white}
.topbar-inner{display:flex;justify-content:space-between;align-items:center;padding:.45rem 0;font-size:.95rem}
.topbar a{color:var(--accent);text-decoration:underline}

/* Header (fixed) */
.site-header{position:fixed;top:0;left:0;right:0;height:var(--header-h);display:flex;align-items:center;z-index:60;transition:background .22s,box-shadow .22s}
.site-header .header-inner{display:flex;align-items:center;gap:1rem;padding:0  .6rem;width:100%}
.brand{font-weight:700;font-size:1.15rem;color:var(--primary);text-decoration:none}
.brand .accent{color:var(--accent)}

/* header controls */
.header-controls{display:flex;align-items:center;gap:.5rem;margin-left:auto}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;border:1px solid rgba(0,0,0,0.06);background:transparent;cursor:pointer}
.icon-btn svg{display:block}

/* menu toggle */
.menu-toggle{display:none;border:0;background:transparent;padding:.2rem;cursor:pointer}
.menu-toggle svg rect{fill:var(--text)}

/* main nav */
.main-nav ul{display:flex;gap:.5rem;list-style:none;margin:0;padding:0;align-items:center}
.main-nav a{display:inline-block;padding:.5rem .75rem;border-radius:999px;font-weight:600;letter-spacing:.02em;color:var(--text)}
.main-nav a:hover{background:linear-gradient(90deg, rgba(0,0,0,0.03), rgba(0,0,0,0.02))}

/* scrolled header appearance */
.site-header.scrolled{background:var(--bg);box-shadow:0 6px 20px rgba(12,16,20,0.08);border-bottom:1px solid rgba(0,0,0,0.04)}
.site-header:not(.scrolled){background:transparent}

/* ensure content isn't hidden behind fixed header */
main.main{padding-top:calc(var(--header-h) + 16px)}

/* hero */
.hero{padding:3rem 0}
.hero-grid{display:grid;grid-template-columns:1fr;gap:1.25rem;align-items:stretch}
.hero-left h1{font-size:2rem;margin:0 0 .6rem}
.lead{color:var(--muted);font-size:1rem}
.cta-group{display:flex;gap:.75rem;margin:.75rem 0}
.btn{cursor:pointer;border:0;padding:.6rem 1rem;border-radius:10px;font-weight:700}
.btn-primary{background:linear-gradient(90deg,var(--primary),rgba(12,60,32,0.95));color:white;box-shadow:var(--shadow-sm)}
.btn-outline{background:transparent;border:1px solid rgba(0,0,0,0.08);color:var(--text)}

/* trustline */
.trustline{list-style:none;padding:0;display:flex;gap:1rem;margin-top:1rem;color:var(--muted)}

/* hero right card */
.hero-card{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-lg);background:var(--card)}
.hero-placeholder{min-height:220px;display:flex;align-items:center;justify-content:center;color:var(--muted)}

/* sections */
.section{padding:2rem 0}
.section.alt{background:linear-gradient(180deg, rgba(0,0,0,0.02), transparent)}
.grid{display:grid;gap:var(--gap)}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.grid-4{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
.service-card{padding:1.2rem;border-radius:12px;background:var(--card);box-shadow:var(--shadow-sm);font-weight:600}

/* contact layout */
/* .contact-section{padding:2.25rem 0}
.contact-grid{display:grid;grid-template-columns:1fr 360px;gap:1rem;align-items:start}
.contact-card{padding:1.1rem;border-radius:12px}
.contact-info{padding:1rem;border-radius:12px;background:var(--card);box-shadow:var(--shadow-sm)} */

/* form floating label */
.form{display:flex;flex-direction:column;gap:.8rem}
.form-row{display:flex;gap:.8rem}
.field{position:relative;display:block}
.field input,.field textarea,.field select{
  width:100%;padding:.85rem .9rem;border-radius:10px;border:1px solid rgba(0,0,0,0.08);background:transparent;font-size:1rem;color:var(--text);
  transition:box-shadow .12s, border-color .12s, transform .08s;
}
.field textarea{resize:vertical;min-height:120px}
.field .label{
  position:absolute;left:12px;top:10px;pointer-events:none;transition:all .16s;font-size:.95rem;color:var(--muted)
}
.field input:focus + .label,
.field input:not(:placeholder-shown) + .label,
.field textarea:focus + .label,
.field textarea:not(:placeholder-shown) + .label,
.field select:focus + .label{
  transform:translateY(-28px) scale(.95);
  background:transparent;padding:0 6px;color:var(--accent);
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline: none;box-shadow:0 8px 30px rgba(12,16,20,0.06);
  border-color: rgba(0,0,0,0.12);
}

/* buttons */
.form-actions{display:flex;gap:.5rem;align-items:center}
.btn-ghost{background:transparent;border:1px solid rgba(0,0,0,0.06);padding:.55rem .9rem;border-radius:10px}

/* socials */
.socials{display:flex;gap:.5rem;margin:.6rem 0}
.social{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:8px;background:rgba(0,0,0,0.04);text-decoration:none;font-weight:800}

/* map */
.map iframe{width:100%;height:220px;border:0;border-radius:8px;display:block}

/* footer */
.site-footer{padding:1rem 0;border-top:1px solid rgba(0,0,0,0.04);background:transparent}
.footer-container{display:flex;justify-content:space-between;align-items:center;gap:1rem}

/* Floating Book Online */
.floating-wrapper{position:fixed;right:18px;bottom:16px;z-index:120;display:none;flex-direction:column;align-items:center;gap:.6rem;pointer-events:auto}
.floating-btn{background:var(--accent);border:0;padding:.55rem .9rem;border-radius:30px;box-shadow:var(--shadow-lg);cursor:pointer;font-weight:800;display:flex;align-items:center;gap:.5rem}
.floating-btn.open{background:#eee}
.floating-options{display:flex;flex-direction:column;gap:.5rem;align-items:center;transform:translateY(6px) scale(.98);opacity:0;pointer-events:none;transition:all .18s ease}
.floating-options.show{transform:translateY(0) scale(1);opacity:1;pointer-events:auto}
.float-icon{width:52px;height:52px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:white;text-decoration:none;font-size:1.15rem;box-shadow:var(--shadow-sm)}
.float-icon.wa{background:var(--wa)}
.float-icon.phone{background:var(--phone)}

/* overlay + modal */
.overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:rgba(3,6,10,0.25);backdrop-filter:blur(6px);z-index:200;opacity:1}
.overlay.hidden{opacity:0;pointer-events:none}
.modal{width:100%;max-width:760px;border-radius:14px;padding:1.25rem;background:var(--card);box-shadow:var(--shadow-lg);transform:translateY(12px) scale(.98);opacity:0;transition:all .22s cubic-bezier(.2,.9,.2,1)}
.overlay.show .modal{transform:none;opacity:1}
.modal h3{margin:.2rem 0 .4rem}
.modal .muted{margin:0 0 .6rem}
.modal-close{position:absolute;right:14px;top:14px;background:transparent;border:0;font-size:1.05rem;cursor:pointer;padding:.25rem;border-radius:8px}

/* cancel button visible / white on dark */
.btn-cancel{background:#f5f5f5;color:var(--text);border-radius:10px;padding:.5rem .85rem;border:0;cursor:pointer}
body.dark .btn-cancel{background:white;color:var(--text)}

/* responsive */
@media (max-width:900px){
  .main-nav{position:absolute;right:14px;top:62px}
  .main-nav ul{display:none;flex-direction:column;padding:.9rem;gap:.5rem;width:220px;border-radius:10px;background:var(--card);box-shadow:var(--shadow-lg)}
  .main-nav ul.show{display:flex}
  .menu-toggle{display:inline-block}
  .header-controls{order:2}
  .brand{order:1}
  .main-nav{order:3}
  .hero-grid{grid-template-columns:1fr}
  /* .contact-grid{grid-template-columns:1fr} */
  .modal{margin:0 12px;max-height:calc(100vh - 120px);overflow:auto}
  .floating-wrapper{right:12px;bottom:12px}
}

.hero-left {
  margin-bottom: -60px !important;
  margin-top: -10px !important;
}

.hero-left .lead{
  margin-bottom: 20px !important;
}



/* dark theme variables (applied when body.dark) */
body.dark{
  --bg: #07121a;
  --card: linear-gradient(180deg,#041018,#051722);
  --muted: #9aa9bf;
  --text: #e6eef6;
  --primary: #60b77a;
  --accent: #f7c04a;
  --glass: rgba(5,10,14,0.6);
  --shadow-sm: 0 10px 30px rgba(0,0,0,0.6);
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.6);
  --wa: #25D366;
  --phone: #198754;
  color:var(--text);
}


/* Prevent horizontal overflow site-wide */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Make images & videos shrink on mobile */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive iframes (like Google Maps) */
iframe {
  max-width: 100%;
  border: none;
}

/* Fix grid items forcing overflow */
.services-grid,
.trustline {
  width: 100%;
  box-sizing: border-box;
 
  
}


/* Hero Slider */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slider .swiper-slide {
  background-size: cover;
  background-position: center;
  height: 100%;
}


.hero-text h1 {
  text-align: left !important;
}






/* =======================
   TRUSTLINE SECTION
======================= */
/* Remove extra space on wrapper */
.newtrustline {
  margin: 0;
  padding: 0;
  margin-top: -120px !important;
}

/* Heading */
.trustline-heading {
  text-align: center;
  font-size: 2rem;
  margin: 20px 0;
  color: var(--text, #0b1320);
}

/* Grid container */
.trustline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  padding: 0;
  margin: 0;
  width: 100%;
  background: var(--bg, #fff);
  color: var(--text, #0b1320);
}

/* Each card */
.trust-item {
  font-size: 1.1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-radius: 10px;
  background: #f9f9f9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Icons */
.trust-item i {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #F28C28;
}

/* Counter number */
.trust-item .count {
  font-weight: bold;
  font-size: 2rem;
  margin: 5px 0;
}

/* Text */
.trust-item p {
  font-size: 1rem;
  margin: 0;
  color: #333;
}

/* Responsive layouts */
@media (max-width: 1200px) {
  .trustline {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .trustline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .trustline {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .trust-item i {
    font-size: 2.5rem;
  }

  .trust-item .count {
    font-size: 1.8rem;
  }
}













/*card section*/
/* === Services Section Layout === */
.services-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 60px auto;
  padding: 0 40px;
  max-width: 1300px;
  margin-top: -100px !important;
  color: inherit; /* adapt to theme */
}

/* Header Text */
.services-header {
  max-width: 600px;
  margin-bottom: 30px;
}

.services-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  animation: fadeInLeft 1s ease forwards;
}

.services-header p {
  font-size: 16px;
  line-height: 1.6;
  animation: fadeInLeft 1.2s ease forwards;
}

/* === Services Grid Layout === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
}

/* Smaller cards on big screens */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .service-box {
    height: 200px; /* smaller */
  }
}

/* === Service Box === */
.service-box {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease;

  /* 🚫 Kill blur once and for all */
  filter: none !important;
  backdrop-filter: none !important;
}

.service-box:hover {
  transform: scale(1.05);
}

/* === Overlay (text container) === */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
  text-align: center;

  /* 🔥 Gradient ensures text visible on light/dark images */
  background: linear-gradient(to top, rgba(0,0,0,0.65) 25%, rgba(0,0,0,0) 100%);
  transition: background 0.6s ease;
}

.service-box:hover .overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.75) 30%, rgba(0,0,0,0) 100%);
}

/* === Title (always visible, animated on load) === */
.overlay h3 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0,0,0,0.85); /* stronger contrast */
  opacity: 0;
  transform: translateY(40px);
  animation: titleLoad 1.2s ease forwards;
}

/* === Paragraph (shows on hover) === */
.overlay p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.service-box:hover .overlay p {
  opacity: 1;
  transform: translateY(0);
  animation: slideUpFade 1s ease forwards;
}

/* === Animations === */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes titleLoad {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUpFade {
  0%   { opacity: 0; transform: translateY(40px); }
  60%  { opacity: 1; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* === Safari Slideshow Example === */
.slideshow-safari {
  animation: safariSlide 20s infinite alternate ease-in-out;
}
@keyframes safariSlide {
  0%   { background-image: url('assets/Cards/safari1.jpg'); }
  33%  { background-image: url('assets/Cards/city1.jpg'); }
  66%  { background-image: url('assets/Cards/safari2.jpg'); }
  100% { background-image: url('assets/Cards/city2.jpg'); }
}

/* === Responsive === */
@media (max-width: 768px) {
  .services-header h2 { font-size: 24px; }
  .services-header p { font-size: 14px; }
  .service-box { height: 180px; }
}

/* === FINAL ANTI-BLUR FIX === */
.service-box,
.service-box *,
.services-grid,
.services-grid * {
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


/* --- Hero Slider Fix --- */
.hero-slider img {
  width: 100%;
  height: 100vh;   /* desktop: full screen */
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .hero-slider img {
    height: 70vh;   /* mobile: shorter so no white gap + no overlap */
  }
}



/* Booking Section */
.booking-section {
  text-align: center;
  margin: 3rem 0;
}

.popup-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.popup-btn {
  padding: 0.8rem 1.5rem;
  background: #174d2a;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
  font-weight: 600;
}

.popup-btn.secondary {
  background: #444;
}

.popup-btn:hover {
  opacity: 0.85;
}

/* Popup Overlay */
.popup-form {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-form.active {
  display: flex;
}

/* Popup Box */
.popup-content {
  background: #fff;
  padding: 2rem;
  width: 90%;
  max-width: 480px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.popup-content h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #174d2a;
  text-align: center;
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Form Styles */
.popup-form-inner .form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.popup-form-inner label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #333;
}

.popup-form-inner input,
.popup-form-inner select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.services-field select {
  height: 80px;
}

/* Buttons */
.button-wrapper {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.btn-submit {
  background: #174d2a;
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
}

.btn-cancel {
  background: #ccc;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
}


/* Hero buttons container */
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero-buttons.left-align {
  justify-content: flex-start;
}

/* Common button style */
.hero-buttons .btn {
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
}

/* Primary (Discover) – navbar gradient fill */
.hero-buttons .btn.primary {
  background: linear-gradient(90deg, #F28C28, #7B1E1E);
  color: #fff;
  border: 1px solid #7B1E1E;
}

.hero-buttons .btn.primary:hover {
  opacity: 0.9;
}

/* Secondary (Get Quote) – outlined with navbar colors */
.hero-buttons .btn.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #F28C28;
}

.hero-buttons .btn.secondary:hover {
  background: linear-gradient(90deg, #F28C28, #7B1E1E);
  color: #fff;
}

/* Dark mode adjustments */
body.dark .hero-buttons .btn.primary {
  background: #fff;
  color: #7B1E1E;
  border: 2px solid #fff;
}

body.dark .hero-buttons .btn.primary:hover {
  background: #eee;
  color: #7B1E1E;
}

body.dark .hero-buttons .btn.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

body.dark .hero-buttons .btn.secondary:hover {
  background: #fff;
  color: #7B1E1E;
}




/* Testimonials Section */
#testimonials {
  text-align: center;
  padding: 4rem 2rem;
  cursor: pointer;
}

#testimonials h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #F28C28 !important;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: rgba(255,255,255,0.05);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
  border: 3px solid var(--primary, #F28C28) !important;
  border-color: #F28C28 !important;
}

.testimonial p {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
}



.testimonial h4 {
  font-weight: bold;
  font-size: 0.95rem;
  color: #F28C28 !important;
  color: var(--primary, #F28C28);
}



/* Why Choose Us */
#why {
  padding: 4rem 1rem;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.why-card {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.why-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}


.about-card {
  background: #fff;
  padding: 2rem 1.5rem;
  margin-top: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  line-height: 1.6;
  color: #444;
}
.about-card p {
  margin-bottom: 1rem;
}



.site-logo {
  height: 50px;
  width: auto;
  display: block;
}






