/* =====================================================
   WILDPATH EXPLORERS — Global Stylesheet
   Theme: Luxury Safari | Earthy Gold + Deep Forest
   ===================================================== */

/* -------------------------------------------------
   CSS Variables (Colors, Shadows, Transitions, etc.)
   ------------------------------------------------- */
:root {
  /* Primary palette — vivid safari gold and deep emerald.
     Contrast-checked: --gold-dark is the only token safe for small text on
     light backgrounds (4.9:1). --gold is for fills and accents, where it
     carries dark ink text (8.2:1), never white. */
  --gold:          #E8A317;   /* Vivid safari gold — fills, accents, dividers */
  --gold-light:    #F5C748;   /* Bright gold for accents on dark */
  --gold-dark:     #9A6600;   /* Gold text on light backgrounds (4.9:1) */
  --gold-bright:   #FFB800;   /* Highlights and glow states */

  --earth:         #2A211C;   /* Deep earth/brown */
  --forest:        #0B5D45;   /* Deep emerald — primary dark surface */
  --forest-mid:    #107A5A;   /* Mid emerald for gradients */
  --forest-light:  #16A37A;   /* Emerald accent on dark */
  --ivory:         #FCFAF6;   /* Warm ivory background */
  --warm-grey:     #F5EFE5;   /* Warm sand for section fills */
  --white:         #ffffff;   /* Pure white */

  /* Supporting accents */
  --accent-sunset: #E2552B;   /* Badges, urgency, "Most Popular" */
  --accent-clay:   #C2724A;   /* Warm secondary */
  --border:        #EBE3D6;   /* Hairline borders on light */

  /* Text colors */
  --text-dark:     #1A1714;   /* Main body text (16.9:1) */
  --text-mid:      #4A443D;   /* Secondary text (9.9:1) */
  --text-light:    #6B645C;   /* Muted text (5.8:1) */
  --ink-900:       #141210;   /* Text on gold fills (8.2:1) */

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(26,23,20,0.08);
  --shadow-md:    0 6px 18px rgba(26,23,20,0.12);
  --shadow-lg:    0 14px 40px rgba(26,23,20,0.18);
  --shadow-gold:  0 8px 24px rgba(232,163,23,0.28);

  /* Transitions */
  --transition:   0.3s ease;
}

/* -------------------------------------------------
   Global Reset & Base Styles
   ------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* The navbar is position:sticky, so without this every scroll-into-view
     (anchor jumps, find-in-page, focus rings) parks its target underneath the
     header, where the header then swallows the click. */
  scroll-padding-top: 96px;
}

/* Primary fonts */
body {
  font-family: 'Outfit', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.5;
}

/* Headings that use Playfair Display */
h1, h2, h3, h4, h5, h6,
.section-title,
.hero-title,
.about-hero h1,
.about-hero h2,
.about-hero h3,
.about-hero h4,
.about-hero h5,
.about-hero h6 {
  font-family: 'Playfair Display', serif;
}

/* Links */
a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--gold);
}

/* Buttons */
button, .btn-primary, .btn-outline, .btn-outline:hover, .btn-primary:hover {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* Utility classes */
.section {
  padding: 80px 6%;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold-dark);
}
.section-title {
  font-size: 2rem;
  margin: 12px 0;
  color: var(--text-dark);
}
.gold-divider {
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 20px 0;
}

/* -------------------------------------------------
   Navbar
   ------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6%;
}
.navbar-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
}
.navbar-links a {
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
/* Uniform scale for the account utility entry (wp-ui.css sizes it 0.9rem). */
.navbar-links a.nav-utility {
  font-size: 0.85rem;
}
/* Gold hairline that draws itself in under the active / hovered link. */
.navbar-links a:not(.nav-book-btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right 0.3s ease;
}
.navbar-links a:not(.nav-book-btn):hover::after,
.navbar-links a.active::after {
  right: 0;
}
.navbar-links a.active,
.navbar-links a:hover {
  color: var(--gold-dark);
}
.nav-book-btn {
  background: var(--gold) !important;
  color: var(--ink-900) !important; /* dark ink on gold — premium and AA-legible */
  padding: 10px 24px !important;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: all var(--transition);
}
.nav-book-btn:hover {
  background: var(--gold-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-mid);
}

/* Mobile nav (hidden on desktop) */
.mobile-nav {
  display: none;
}
.mobile-nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.95);
  padding: 60px 6%;
  z-index: 150;
}
.mobile-nav a {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--text-dark);
}

/* -------------------------------------------------
   Toast (global notification)
   ------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 200;
}
.toast.show {
  opacity: 1;
  pointer-events: auto;
}

/* -------------------------------------------------
   Modal overlay
   ------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 180;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--white);
  border-radius: 16px;
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  font-size: 1.4rem;
  color: var(--text-mid);
}

/* -------------------------------------------------
   Forms (shared styling)
   ------------------------------------------------- */
.form-row, .form-row-3 {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}
.form-row {
  grid-template-columns: 1fr 1fr;
}
.form-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.form-group {
  display: flex;
  flex-direction: column;
  /* Grid/flex children default to min-width:auto, which lets a wide native
     <select> (long budget labels) push the whole page sideways on a phone. */
  min-width: 0;
}
.form-group label {
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text-mid);
}
.form-control {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #E5DDD0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.2);
}

/* Buttons */
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold-dark);
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}

/* -------------------------------------------------
   Floating Action Buttons
   ------------------------------------------------- */
.floating-btns {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 150;
}
.float-btn {
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), transform var(--transition);
}
.float-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

/* -------------------------------------------------
   Footer
   ------------------------------------------------- */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  background: var(--earth);
  color: var(--white);
  padding: 48px 6%;
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}
.footer-logo .logo-icon {
  font-size: 1.6rem;
}
.footer-desc {
  margin: 14px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--gold-light);
}
.footer-links {
  list-style: none;
}
.footer-links a {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
  transition: opacity var(--transition);
}
.footer-links a:hover {
  opacity: 0.85;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.footer-contact-item span:first-child {
  font-size: 1.2rem;
}
.footer-contact-item a {
  color: var(--white);
  transition: opacity var(--transition);
}
.footer-contact-item a:hover {
  opacity: 0.85;
}
.footer-social {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}
.footer-social a {
  color: var(--white);
  font-size: 1.2rem;
  transition: opacity var(--transition);
}
.footer-social a:hover {
  opacity: 0.85;
}
.footer-bottom {
  background: var(--gold-dark);
  color: var(--white);
  text-align: center;
  padding: 18px 6%;
  font-size: 0.85rem;
}

/* -------------------------------------------------
   Responsive utilities
   ------------------------------------------------- */
@media (max-width: 1024px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  .section { padding: 60px 4%; }
  .form-row, .form-row-3 {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
  }
}

/* -------------------------------------------------
   Testimonial Rotation (existing content)
   ------------------------------------------------- */
.testimonials-rotate .testimonial-card,
.testimonials-rotate .tdark-card {
  display: none;
}
.testimonials-rotate .testimonial-card.active,
.testimonials-rotate .tdark-card.active {
  display: block;
}

/* Optional hover pause */
.testimonials-rotate:hover .testimonial-card,
.testimonials-rotate:hover .tdark-card {
  animation-play-state: paused;
}
