/*
Theme Name: Etosha National Park
Theme URI: https://etoshanationalpark.com.na
Author: Etosha National Park
Description: Etosha National Park — luxury safari theme
Version: 1.0.0
*/

/* ============================================
   ETOSHA — GLOBAL STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --bg:        #0c0b09;
  --bg2:       #141210;
  --bg3:       #1c1a16;
  --gold:      #c9ad74;
  --gold-lt:   #dfc897;
  --gold-dk:   #a8904f;
  --cream:     #f0ebe0;
  --muted:     #9a8f7e;
  --border:    rgba(201,173,116,.18);
  --nav-h:     72px;
  --radius:    4px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: #fff;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: #1a1a1a;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- Utility ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-top: 12px;
}

.section-sub {
  margin-top: 16px;
  color: var(--muted);
  max-width: 560px;
  font-size: 1rem;
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 20px 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg);
}
.btn-gold:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(201,173,116,.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201,173,116,.08);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 9999;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(12,11,9,0.80) 0%, rgba(12,11,9,0) 100%);
}

.nav.scrolled {
  background: rgba(12,11,9,0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

/* Push page content below fixed nav */
body > main,
body > .site-main,
.elementor-location-main {
  padding-top: 0;
}

/* First Elementor section should not have extra gap */
.elementor-section:first-child {
  margin-top: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.nav-logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--cream);
  line-height: 1.1;
}
.nav-logo-sub {
  font-size: 8px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: .75rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(240,235,224,0.75);
  transition: color var(--transition);
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a.active { color: var(--cream); }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  transition: var(--transition);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(12,11,9,.98);
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 9998;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--cream);
  transition: color var(--transition);
  text-decoration: none;
}
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile .btn { font-family: 'Inter', sans-serif; font-size: .875rem; }

/* ============================================
   ELEMENTOR INTEGRATION
   ============================================ */

/* Ensure Elementor sections use our design tokens */
.elementor-section,
.e-con,
.e-con-inner {
  position: relative;
}

/* Headings inside Elementor */
.elementor-widget-heading .elementor-heading-title {
  font-family: 'Playfair Display', serif;
}

/* Override Elementor's body font */
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-widget-button .elementor-button {
  font-family: 'Inter', sans-serif;
}

/* Elementor buttons: gold style */
.elementor-widget-button .elementor-button.elementor-button-link {
  transition: var(--transition);
}

/* Announcement bar (if still present from old theme) */
.elementor-location-header > .elementor-section:first-child,
.etosha-announcement-bar {
  display: none !important;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 64px 0 36px;
  font-family: 'Inter', sans-serif;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--cream);
}

.footer-brand-tagline {
  font-size: .875rem;
  color: var(--muted);
  max-width: 260px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  transition: var(--transition);
  text-decoration: none;
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-col-title {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-links a {
  font-size: .875rem;
  color: var(--muted);
  transition: color var(--transition);
  text-decoration: none;
}
.footer-col-links a:hover { color: var(--cream); }

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}
.footer-contact-label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.footer-contact-val {
  font-size: .875rem;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 32px auto 0;
  padding: 32px 24px 0;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   ELEMENTOR HEADER OVERRIDES — dark Alux-style nav
   ============================================ */

/* Make the Elementor header template dark */
.elementor-location-header {
  background: linear-gradient(to bottom, rgba(12,11,9,0.92) 0%, rgba(12,11,9,0.70) 100%) !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .35s ease;
}

/* Inner Elementor sections must be transparent so our gradient shows */
.elementor-location-header .elementor-section,
.elementor-location-header .elementor-element,
.elementor-location-header .e-con {
  background: transparent !important;
  background-color: transparent !important;
}

/* Scrolled state — injected by JS via .scrolled class on body or header */
.elementor-location-header.scrolled {
  background: rgba(12,11,9,0.97) !important;
  border-bottom: 1px solid rgba(201,173,116,.18) !important;
}

/* Nav text should be light on dark bg */
.elementor-location-header a,
.elementor-location-header .elementor-nav-menu a,
.elementor-location-header .elementor-widget-text-editor,
.elementor-location-header .elementor-heading-title {
  color: #f0ebe0 !important;
}

.elementor-location-header a:hover,
.elementor-location-header .elementor-nav-menu a:hover {
  color: #c9ad74 !important;
}

/* Hamburger / toggle icon */
.elementor-location-header .elementor-nav-menu--toggle,
.elementor-location-header .ekit-menu-hamburger-icon {
  color: #f0ebe0 !important;
}

/* Push page content down so it's not hidden under fixed header */
body {
  padding-top: 80px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .nav-logo-main { font-size: 1.1rem; }
}
