/* ==========================================================================
   Masafa Simba Tours — stylesheet
   Palette:  forest #1F3D2B / sunset #E8622C / gold #D9A441 / cream #FBF6EE
   Type:     Fraunces (display) + Work Sans (body/UI)
   ========================================================================== */

:root {
  --forest: #1f3d2b;
  --forest-2: #142a1e;
  --forest-3: #2b5039;
  --sunset: #e8622c;
  --sunset-dark: #c94f20;
  --sunset-light: #f4915c;
  --gold: #d9a441;
  --cream: #fbf6ee;
  --sand: #f3e9d8;
  --sand-2: #ece0c9;
  --charcoal: #26241f;
  --muted: #756d5e;
  --white: #ffffff;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Work Sans", -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(31, 61, 43, 0.08);
  --shadow-md: 0 10px 30px rgba(31, 61, 43, 0.14);
  --shadow-lg: 0 24px 60px rgba(20, 42, 30, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.01em;
}

a { text-decoration: none; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sunset-dark);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--sunset);
  display: inline-block;
}

.section-heading {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
}

.section-head-center { text-align: center; margin-bottom: 3rem; }
.section-head-center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Signature element: sunrise arc divider ---------- */
.sunrise-divider {
  display: flex;
  justify-content: center;
  padding: 10px 0 34px;
}
.sunrise-divider svg { width: 130px; height: auto; }

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-body); font-weight: 600; border-radius: 999px; padding: 13px 30px; border: none; display: inline-flex; align-items: center; gap: 8px; transition: all .25s ease; cursor: pointer; font-size: 0.96rem; }

.btn-sunset { background: var(--sunset); color: var(--white); box-shadow: 0 8px 22px rgba(232, 98, 44, 0.35); }
.btn-sunset:hover { background: var(--sunset-dark); transform: translateY(-2px); color: var(--white); box-shadow: 0 12px 28px rgba(232, 98, 44, 0.45); }

.btn-outline-forest { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn-outline-forest:hover { background: var(--forest); color: var(--white); }

.btn-ghost-white { background: rgba(255,255,255,0.12); color: var(--white); border: 1.5px solid rgba(255,255,255,0.6); backdrop-filter: blur(4px); }
.btn-ghost-white:hover { background: var(--white); color: var(--forest); }

.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Navigation ---------- */
#mainNav {
  background: transparent;
  padding: 22px 0;
  transition: all 0.35s ease;
  z-index: 1000;
}
#mainNav.scrolled {
  background: rgba(20, 42, 30, 0.96);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand .brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sunset), var(--gold));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: 0 4px 14px rgba(232,98,44,0.4);
}
.navbar-brand .brand-sub { display:block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.16em; font-weight: 500; text-transform: uppercase; color: var(--gold); }

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
  font-size: 0.94rem;
  margin: 0 4px;
  padding: 8px 12px !important;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.navbar .nav-link:hover { color: var(--white) !important; background: rgba(255,255,255,0.1); }
.navbar .nav-link.active { color: var(--white) !important; background: var(--sunset); }

/* ---------- Page sections (SPA-style routing) ---------- */
.page-section { display: none; min-height: 100vh; }
.page-section.active { display: block; animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px);} to { opacity: 1; transform: translateY(0);} }

.page-hero {
  padding: 168px 0 90px;
  background: linear-gradient(155deg, var(--forest-2), var(--forest));
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero p.section-sub { color: rgba(255,255,255,0.78); }

/* ---------- Hero (home) ---------- */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero-section::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,42,30,0.72) 0%, rgba(20,42,30,0.5) 45%, rgba(20,42,30,0.92) 100%);
  z-index: -1;
}
.hero-content { padding: 190px 0 80px; position: relative; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35);
  padding: 8px 18px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; margin-bottom: 26px; backdrop-filter: blur(6px);
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sunset); box-shadow: 0 0 0 4px rgba(232,98,44,0.3); }

.hero-content h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 22px;
  max-width: 850px;
}
.hero-content h1 em { font-style: italic; color: var(--sunset-light); }

.hero-content p.lead {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-stats { display: flex; gap: 46px; margin-top: 64px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-display); font-size: 2.1rem; display: block; color: var(--gold); }
.hero-stats .stat span { font-size: 0.85rem; color: rgba(255,255,255,0.7); letter-spacing: 0.02em; }

/* sunrise svg motif behind hero copy */
.hero-sun {
  position: absolute; right: -60px; bottom: -60px; width: 420px; height: 420px;
  opacity: 0.16; z-index: -1; pointer-events: none;
}

/* ---------- Booking bar ---------- */
.booking-bar {
  background: var(--white);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  margin-top: -64px;
  position: relative;
  z-index: 20;
  border-radius: var(--radius);
  border-top: 4px solid var(--sunset);
}
.booking-bar label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; display:block; }
.form-control, .form-select {
  border: 1.5px solid var(--sand-2);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font-body);
  color: var(--charcoal);
}
.form-control:focus, .form-select:focus {
  border-color: var(--sunset);
  box-shadow: 0 0 0 0.2rem rgba(232, 98, 44, 0.15);
}

/* ---------- Cards: tours ---------- */
.tour-card {
  border: none; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
  height: 100%; background: var(--white);
}
.tour-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.tour-image { height: 240px; background-size: cover; background-position: center; position: relative; }
.tour-image::after { content:""; position:absolute; inset:0; background: linear-gradient(0deg, rgba(20,42,30,0.55) 0%, transparent 55%); }
.tour-badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--sunset); color: var(--white); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; }
.tour-price-pill { position: absolute; bottom: 14px; left: 14px; z-index: 2; background: rgba(255,255,255,0.95); color: var(--forest); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: 0.95rem; }
.tour-card .card-body { padding: 24px; }
.tour-card .card-title { font-weight: 600; color: var(--forest); margin-bottom: 8px; font-size: 1.15rem; }
.tour-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; display: flex; gap: 14px; flex-wrap: wrap;}
.tour-meta span { display:flex; align-items:center; gap:5px; }
.rating i { color: var(--gold); font-size: 0.85rem; }

/* ---------- Feature cards ---------- */
.feature-icon {
  padding: 34px 26px; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: all .3s ease; height: 100%;
  border-bottom: 3px solid transparent;
}
.feature-icon:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-bottom-color: var(--sunset); }
.feature-icon .icon-wrap {
  width: 58px; height: 58px; border-radius: 16px; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--sunset), var(--gold)); color: var(--white); font-size: 1.5rem; margin-bottom: 18px;
}
.feature-icon h5 { margin-bottom: 8px; }
.feature-icon p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white); border-radius: var(--radius); padding: 34px;
  box-shadow: var(--shadow-sm); height: 100%; position: relative;
}
.testimonial-card .quote-mark { font-family: var(--font-display); font-size: 3.4rem; color: var(--sand-2); line-height: 0.5; display:block; margin-bottom: 14px; }
.testimonial-avatar {
  width: 50px; height: 50px; border-radius: 50%; display:flex; align-items:center; justify-content:center;
  font-weight: 700; color: var(--white); font-family: var(--font-display);
}

/* ---------- Stats box ---------- */
.stat-box { text-align: center; padding: 34px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-number { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--sunset); margin-bottom: 6px; }
.stat-box span { color: var(--muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Gallery ---------- */
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-sm); cursor: pointer; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,42,30,0.85), transparent 60%); display:flex; align-items:flex-end; padding: 18px; opacity: 0; transition: opacity .3s ease; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h6 { color: var(--white); margin: 0; font-family: var(--font-body); font-weight: 600; }

/* ---------- Newsletter ---------- */
.newsletter-section { background: var(--forest); color: var(--white); padding: 60px 0; position: relative; overflow: hidden; }
.newsletter-section h3 { color: var(--white); }
.newsletter-section .form-control { border-radius: 999px 0 0 999px; border: none; }
.newsletter-section .btn { border-radius: 0 999px 999px 0; }

/* ---------- Footer ---------- */
footer { background: var(--forest-2); color: rgba(255,255,255,0.75); padding: 64px 0 24px; }
footer h5, footer h6 { color: var(--white); }
footer a { color: rgba(255,255,255,0.68); transition: color .2s ease; }
footer a:hover { color: var(--sunset-light); }
footer li { margin-bottom: 8px; list-style:none; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display:inline-flex; align-items:center; justify-content:center; margin-right: 10px; }
.social-links a:hover { background: var(--sunset); color: var(--white); }
footer hr { border-color: rgba(255,255,255,0.12); margin: 40px 0 20px; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; background: #25D366; color: white;
  width: 58px; height: 58px; border-radius: 50%; display:flex; align-items:center; justify-content:center;
  font-size: 1.7rem; z-index: 1000; box-shadow: 0 8px 20px rgba(37,211,102,0.45);
  animation: pulse 2.4s infinite;
}
.whatsapp-float:hover { color: white; transform: scale(1.08); }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,0.55);} 70%{box-shadow:0 0 0 16px rgba(37,211,102,0);} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0);} }

/* ---------- Contact ---------- */
.contact-info-item { display:flex; gap: 18px; margin-bottom: 24px; align-items:flex-start; }
.contact-info-item .icon-badge {
  width: 46px; height: 46px; border-radius: 12px; background: var(--sand); color: var(--sunset);
  display:flex; align-items:center; justify-content:center; font-size: 1.15rem; flex-shrink:0;
}

/* ---------- Team ---------- */
.team-avatar { width: 130px; height: 130px; border-radius: 50%; display:inline-flex; align-items:center; justify-content:center; color:white; font-family: var(--font-display); font-size: 2.4rem; font-weight:700; box-shadow: var(--shadow-md); border: 4px solid var(--white); }

/* ---------- Destination / blog cards ---------- */
.dest-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--white); transition: box-shadow .3s ease, transform .3s ease; }
.dest-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.dest-image { height: 280px; background-size: cover; background-position: center; }
.blog-image { height: 190px; background-size: cover; background-position: center; }

/* ---------- Misc ---------- */
.bg-sand { background: var(--sand); }
.text-sunset { color: var(--sunset); }
.map-block {
  height: 400px; border-radius: var(--radius); position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--forest), var(--forest-3));
  display:flex; align-items:center; justify-content:center; color: white;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero-content { padding: 150px 0 60px; }
  .hero-stats { gap: 28px; }
  .booking-bar { margin-top: -40px; }
  .newsletter-section .form-control, .newsletter-section .btn { border-radius: 999px; }
  .newsletter-section form { flex-direction: column; gap: 10px; }
}

@media (max-width: 576px) {
  .hero-content h1 { font-size: 2.1rem; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, .nav-link:focus-visible {
  outline: 2px solid var(--sunset);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
