/* ============================================================
   NAVBAR, DRAWER, TOP TRUST BADGES, FOOTER
   All values from Lovable spec §2.1, §2.2, §2.3
   ============================================================ */

/* ============================================================
   §2.1  NAVBAR
   Fixed, transparent → white/95 + blur on scroll > 50px
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
}

.navbar {
  padding: 1.5rem 1rem;            /* py-6 px-4 — default transparent state */
  background: transparent;
  transition: all 500ms ease-in-out;
}
@media (min-width: 768px) {
  .navbar { padding-left: 3rem; padding-right: 3rem; }  /* md:px-12 */
}

/* Scrolled state — JS adds .is-scrolled to .site-header */
.site-header.is-scrolled .navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.navbar__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── LOGO ────────────────────────────────────────────────── */
.navbar__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  z-index: 50;
  flex-shrink: 0;
}

/* h1 inside the logo link */
.navbar__logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;            /* text-2xl */
  font-weight: 400;
  letter-spacing: 0.05em;       /* tracking-wider */
  color: #ffffff;               /* default: white over transparent navbar */
  transition: all 500ms ease-in-out;
  white-space: nowrap;
  line-height: 1;
  margin: 0;
}
@media (min-width: 768px) { .navbar__logo-text { font-size: 1.875rem; } }  /* md:text-3xl */

/* "NECTAR" = plain weight 400 / "SAFARIS" = .gold-gradient font-light (300) */
.navbar__logo-safaris {
  font-weight: 300;
  /* gold-gradient applied via class */
}

/* When scrolled: logo goes dark */
.site-header.is-scrolled .navbar__logo-text { color: #121212; }

/* ── INLINE TRUST BADGES (hidden below lg, per §2.1) ─────── */
.navbar__trust {
  display: none;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;               /* white when transparent */
  transition: color 500ms ease-in-out;
  flex: 1;
  justify-content: center;
}
@media (min-width: 1024px) { .navbar__trust { display: flex; } }
.site-header.is-scrolled .navbar__trust { color: #121212; }

.navbar__trust-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;           /* text-xs */
  text-decoration: none;
  color: inherit;
  transition: opacity 150ms;
}
.navbar__trust-link:hover { opacity: 0.8; }
.navbar__trust-link svg   { width: 1rem; height: 1rem; flex-shrink: 0; }
.navbar__trust-rating { font-weight: 500; }
.navbar__trust-count  { color: #64748B; }        /* muted-foreground */
.navbar__trust-sep    { color: #64748B; }

/* ── RIGHT GROUP: CTA button + hamburger ─────────────────── */
.navbar__right {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Plan Your Safari CTA — hidden below md */
.navbar__cta {
  display: none;
}
@media (min-width: 768px) { .navbar__cta { display: inline-flex; } }

/* ── HAMBURGER ───────────────────────────────────────────── */
/* 3 staggered bars, no animated X (per §2.1 — "no animated X transformation") */
.navbar__hamburger {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;                   /* gap-1 */
  align-items: flex-end;
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  background: none;
  border: none;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  transition: background-color 150ms;
  flex-shrink: 0;
}
@media (min-width: 768px) { .navbar__hamburger { gap: 6px; } }   /* md:gap-1.5 */
.navbar__hamburger:hover { background: rgba(243,244,246,0.2); }

.hamburger-bar {
  display: block;
  height: 2px;                /* h-0.5 */
  border-radius: 9999px;
  background: #ffffff;        /* white when transparent */
  transition: background-color 500ms ease-in-out;
}
/* Staggered widths: 20/14/16px (md: 24/16/20px) */
.hamburger-bar:nth-child(1) { width: 20px; }
.hamburger-bar:nth-child(2) { width: 14px; }
.hamburger-bar:nth-child(3) { width: 16px; }
@media (min-width: 768px) {
  .hamburger-bar:nth-child(1) { width: 24px; }
  .hamburger-bar:nth-child(2) { width: 16px; }
  .hamburger-bar:nth-child(3) { width: 20px; }
}
.site-header.is-scrolled .hamburger-bar { background: #121212; }

/* ============================================================
   §2.1  SLIDE-OUT DRAWER (Sheet)
   100% width mobile / 384px ≥ 640px
   bg white/95 + blur, slides in from right 500ms
   ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms, visibility 200ms;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 50;
  width: 100%;
  max-width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 1px solid #E2E8F0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  transform: translateX(100%);
  transition: transform 500ms ease-in-out;   /* 500ms open */
  overflow-y: auto;
}
@media (min-width: 640px) { .drawer { max-width: 24rem; } }  /* sm:w-96 = 384px */
.drawer.is-open { transform: translateX(0); }
/* Close is 300ms reverse — handled by removing .is-open and the transition runs reverse */

.drawer__close {
  position: absolute;
  right: 1rem; top: 1rem;
  border-radius: 0.25rem;
  opacity: 0.7;
  border: none; background: none; cursor: pointer;
  transition: opacity 150ms;
  padding: 2px;
}
.drawer__close:hover { opacity: 1; }
.drawer__close svg { width: 1rem; height: 1rem; display: block; }

/* Drawer logo */
.drawer__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #121212;
  text-decoration: none;
  margin-bottom: 1rem;
  display: block;
}

/* Nav links — Playfair 18px weight 500 */
/* wp_nav_menu outputs <ul class="drawer__menu"> containing <li><a> items */
.drawer__nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}
.drawer__nav > nav,
.drawer__menu,
.drawer__menu ul {
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.drawer__menu li { list-style: none !important; }
/* Fallback links when no menu assigned use .drawer__link directly */
.drawer__link,
.drawer__menu li a {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #121212;
  text-decoration: none;
  padding: 0.625rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-left: 3px solid transparent;
  padding-left: 1.5rem;
  transition: color 300ms, border-left-color 300ms, background 300ms;
}
.drawer__link:hover,
.drawer__menu li a:hover,
.drawer__link.is-current,
.drawer__menu li.current-menu-item > a,
.drawer__menu li.current_page_item > a {
  color: #9E7E2D;
  border-left-color: #D4AF37;
  background: rgba(212,175,55,0.06);
}
.drawer__menu .sub-menu { list-style: none !important; padding: 0; margin: 0; }
.drawer__menu .sub-menu li a { font-size: 0.95rem; color: #4B5563; padding-left: 2.5rem; min-height: 36px; border-left: none; }

/* Drawer footer — CTA full-width */
.drawer__footer {
  margin-top: auto;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}
.drawer__footer .btn { width: 100%; justify-content: center; }

/* ============================================================
   §2.2  FOOTER
   bg #282828, 4-col grid, white/70 text
   ============================================================ */
.site-footer {
  background: #282828;
  color: rgba(255,255,255,0.7);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* 4-column grid */
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px)  { .footer__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

/* Column 1 — Brand */
.footer__logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-decoration: none;
  display: block;
  margin-bottom: 1.5rem;
}

.footer__tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.625;
  margin-bottom: 1rem;
}

.footer__contact-links { display: flex; flex-direction: column; gap: 0.25rem; }
.footer__contact-link {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 300ms;
}
.footer__contact-link:hover { color: #F4E9C1; }

/* Social icons row */
.footer__socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 300ms;
}
.footer__social-link svg { width: 1rem; height: 1rem; fill: currentColor; }
.footer__social-link:hover { border-color: #F4E9C1; color: #F4E9C1; }

/* Columns 2 & 3 — link lists */
.footer__col-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #F4E9C1;
  margin-bottom: 1.5rem;
}

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

.footer__links li { margin-bottom: 0.75rem; }
.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 300ms;
  display: block;
}
.footer__links a:hover { color: #F4E9C1; }

/* Column 4 — Newsletter */
.footer__newsletter-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
  line-height: 1.625;
}
.footer__newsletter-form { display: flex; margin-top: 1rem; }
.footer__newsletter-input {
  flex: 1;
  height: 2.5rem;
  background: #3F3F3F;
  border: 1px solid #1A1A1A;
  color: #fff;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  border-radius: 0.375rem 0 0 0.375rem;
  min-width: 0;
}
.footer__newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.footer__newsletter-input:focus { outline: none; border-color: #9E7E2D; }

.footer__newsletter-btn {
  height: 2.5rem;
  padding: 0 1rem;
  background: #9E7E2D;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 0 0.375rem 0.375rem 0;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 300ms;
}
.footer__newsletter-btn:hover { background: #D4AF37; }

/* Footer bottom bar */
.footer__bottom {
  border-top: 1px solid #1A1A1A;
  margin-top: 3rem;
  padding-top: 2rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

.footer__copyright { margin: 0; }

.footer__legal { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer__legal a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 300ms; }
.footer__legal a:hover { color: #F4E9C1; }

/* Body padding-top to clear fixed navbar (approx 74px default) */
body { padding-top: 0; }  /* pages handle their own top spacing */

/* ============================================================
   §6  RESPONSIVE — overall page
   ============================================================ */
@media (max-width: 639px) {
  .navbar { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 767px) {
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (min-width: 480px) and (max-width: 639px) {
  /* sm breakpoint adjustments */
  .footer__grid { grid-template-columns: 1fr; }
}
