/*
Theme Name: Visit Rungwe
Theme URI: https://visitrungwe.com
Author: Rungwe District Tourism Board
Author URI: https://visitrungwe.com
Description: A premium WordPress theme for Visit Rungwe - Discover the Land of Ancient Volcanoes. v1.0.2 - Mega menu, UKWISA Festival, Invest in Rungwe, Book a Trip, Elementor support.
Version: 1.0.2
License: GPL v2 or later
Text Domain: visit-rungwe
*/

:root {
  --primary: #171717;
  --secondary: #F7F4EE;
  --accent: #C89B3C;
  --support: #365B45;
  --forest: #365B45;
  --moss: #365B45;
  --sage: #5a8a6a;
  --mist: #a8c4a8;
  --earth: #7a5c3a;
  --gold: #C89B3C;
  --cream: #F7F4EE;
  --white: #ffffff;
  --dark: #171717;
  --text: #2a2a2a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(23,23,23,0.92), transparent);
  backdrop-filter: blur(2px);
  transition: background 0.4s;
  min-height: 64px;
}
nav.scrolled { background: rgba(23,23,23,0.97); }

.nav-logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 42px; width: auto;
  display: block;
}
.nav-logo:hover { opacity: 0.9; }

.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; align-items: center; }
.nav-links li { margin: 0; position: relative; }
.nav-links > li > a {
  color: rgba(255,255,255,0.88); text-decoration: none;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; transition: color 0.2s;
  padding: 6px 0;
  white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--gold); }

.nav-cta a {
  background: var(--gold) !important; color: var(--dark) !important;
  padding: 8px 20px !important; border-radius: 2px; font-weight: 600 !important;
}
.nav-cta a:hover { background: #d4a94a !important; color: var(--dark) !important; }

/* ─── MEGA DROPDOWN ─── */
.mega-menu-item,
.dropdown-vertical { position: relative; }

.mega-dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 480px;
  background: rgba(23,23,23,0.97);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--gold);
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
  pointer-events: none;
}
.mega-menu-item:hover .mega-dropdown,
.mega-menu-item.open .mega-dropdown {
  opacity: 1; visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-content { display: grid; grid-template-columns: 360px 375px; min-height: 262px; }
.mega-links { padding: 24px 20px; display: flex; flex-direction: column; gap: 2px; }

.mega-link {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.08em !important;
  padding: 8px 14px !important;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s !important;
  text-decoration: none; display: block;
}
.mega-link:hover { background: rgba(200,168,85,0.1) !important; color: var(--gold) !important; }

.mega-image { position: relative; overflow: hidden; width: 375px; height: 262px; min-height: unset; }
.mega-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mega-image-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(transparent, rgba(23,23,23,0.8));
  color: white;
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
}

/* ─── VERTICAL DROPDOWN ─── */
.vertical-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  background: rgba(23,23,23,0.97);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--gold);
  list-style: none; margin: 0; padding: 6px 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
  pointer-events: none;
}
.dropdown-vertical:hover .vertical-dropdown,
.dropdown-vertical.open .vertical-dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.vertical-dropdown li { margin: 0; }
.vertical-dropdown a {
  display: block; padding: 8px 20px !important;
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.08em !important;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s !important;
}
.vertical-dropdown a:hover { background: rgba(200,168,85,0.1) !important; color: var(--gold) !important; }

/* ─── FESTIVAL NAV LINK ─── */
.festival-nav-link {
  background: linear-gradient(135deg, #2a1a0a, #1a1a1a) !important;
  border: 1px solid var(--gold) !important;
  padding: 6px 16px !important;
  border-radius: 3px !important;
  color: var(--gold) !important;
  font-weight: 600 !important;
}

/* ─── HERO VIDEO SLIDER ─── */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 0 72px 90px;
  overflow: hidden;
}

.hero-video-slider {
  position: absolute; inset: 0;
  overflow: hidden;
}

.hero-video-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-video-slide.active {
  opacity: 1;
}
.hero-video-slide video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(23,23,23,0.7) 0%, rgba(23,23,23,0.2) 60%, rgba(23,23,23,0.05) 100%),
    linear-gradient(to top, rgba(23,23,23,0.6) 0%, transparent 50%);
  z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 680px; }

.hero-eyebrow {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
  opacity: 0; animation: fadeUp 0.9s 0.4s forwards;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300; line-height: 1.08;
  color: var(--white); margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.9s 0.65s forwards;
}
.hero-title em { font-style: italic; color: var(--mist); }
.hero-desc {
  font-size: 1.05rem; font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,0.82); margin-bottom: 42px; max-width: 520px;
  opacity: 0; animation: fadeUp 0.9s 0.85s forwards;
}
.hero-btns { display: flex; gap: 16px; opacity: 0; animation: fadeUp 0.9s 1.05s forwards; }

/* Video slider indicators */
.video-indicators {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 10px;
}
.video-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer; transition: 0.3s;
}
.video-dot.active { background: var(--gold); border-color: var(--gold); }

.btn-primary {
  background: var(--gold); color: var(--dark);
  padding: 14px 36px; text-decoration: none;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; border-radius: 2px; transition: 0.25s;
  display: inline-block; border: none; cursor: pointer;
}
.btn-primary:hover { background: #d4a94a; transform: translateY(-2px); color: var(--dark); }

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.5); color: var(--white);
  padding: 14px 36px; text-decoration: none;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; border-radius: 2px; transition: 0.25s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }

/* ─── OTHER STYLES (unchanged from v1.0) ─── */
.stats-bar { background: var(--forest); padding: 32px 72px; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid rgba(255,255,255,0.05); }
.stat { text-align: center; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; font-weight: 300; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist); margin-top: 6px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,0.08); }

.page-content { background: var(--cream); }
.section-intro { padding: 96px 72px 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.section-tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--moss); display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-tag::before { content: ''; width: 32px; height: 1px; background: var(--moss); }
.section-heading { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; line-height: 1.2; color: var(--dark); margin-bottom: 24px; }
.section-heading em { font-style: italic; color: var(--moss); }
.section-body { font-size: 1rem; line-height: 1.8; color: #4a4a4a; font-weight: 300; }
.section-img-wrap { position: relative; border-radius: 4px; overflow: hidden; }
.section-img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 0.6s ease; }
.section-img-wrap:hover img { transform: scale(1.04); }
.section-img-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(23,23,23,0.75)); padding: 28px 20px 16px; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.page-header-section { position: relative; height: 50vh; min-height: 400px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.page-header-bg { position: absolute; inset: 0; background: linear-gradient(to right, rgba(23,23,23,0.7) 0%, rgba(23,23,23,0.3) 100%), url('https://images.unsplash.com/photo-1516026672322-bc52d61a55d5?w=1920&q=80') center/cover no-repeat; }
.page-header-content { position: relative; z-index: 2; text-align: center; }
.page-header-content .section-heading { color: white; font-size: clamp(2.5rem, 5vw, 4rem); }
.page-header-content .page-breadcrumb { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }

/* Highlight Grid */
.highlights { background: var(--dark); padding: 80px 72px; }
.highlights-header { margin-bottom: 48px; }
.highlights-header .section-tag { color: var(--gold); }
.highlights-header .section-tag::before { background: var(--gold); }
.highlights-header .section-heading { color: var(--white); }
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.highlight-card { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 3/4; display: block; color: white; text-decoration: none; }
.highlight-card:hover { color: white; }
.highlight-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: brightness(0.78); }
.highlight-card:hover img { transform: scale(1.06); filter: brightness(0.65); }
.highlight-card:first-child { grid-row: span 2; aspect-ratio: unset; grid-column: 1; }
.highlight-overlay { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(transparent 40%, rgba(23,23,23,0.85) 100%); }
.highlight-cat { font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.highlight-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; color: white; line-height: 1.2; }

/* ─── VIDEO MODAL ─── */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-inner { position: relative; width: 90vw; max-width: 960px; }
.modal-close { position: absolute; top: -44px; right: 0; background: none; border: none; color: white; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; }
.modal-close svg { width: 16px; height: 16px; stroke: white; fill: none; stroke-width: 1.5; }
.video-frame { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 4px; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: none; }

/* ─── FOOTER ─── */
footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,0.06); padding: 64px 72px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand .nav-logo { margin-bottom: 18px; display: inline-flex; }
.footer-tagline { font-size: 0.9rem; line-height: 1.8; color: rgba(255,255,255,0.4); font-weight: 300; max-width: 280px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; transition: 0.2s; text-decoration: none; }
.social-btn:hover { border-color: var(--gold); background: rgba(200,168,85,0.1); }
.social-btn svg { width: 14px; height: 14px; stroke: rgba(255,255,255,0.6); fill: none; stroke-width: 1.5; }
.footer-col h4 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.5); text-decoration: none; font-weight: 300; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin: 0; }

/* ─── ELEMENTOR COMPATIBILITY ─── */
.elementor-page .page-content,
.elementor-page .page-content-section {
  background: transparent;
  padding: 0;
}
.elementor-page .page-content-section {
  max-width: 100%;
}
.elementor-page.elementor-edit-mode .page-header-section + .page-content {
  padding-top: 0;
}

/* ─── CONTENT AREA (Elementor friendly) ─── */
.page-content-section {
  padding: 80px 72px;
  background: var(--cream);
}
.page-content-section .section-body { max-width: 800px; }
.page-content-section p { margin-bottom: 1.2rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 10px 20px; }
  .nav-links { display: none; }
  .hero { padding: 0 24px 72px; }
  .stats-bar { grid-template-columns: repeat(2,1fr); padding: 28px 24px; gap: 16px; }
  .stat + .stat { border-left: none; }
  .section-intro { grid-template-columns: 1fr; padding: 56px 24px; gap: 40px; }
  .highlights { padding: 56px 24px; }
  .highlights-grid { grid-template-columns: repeat(2,1fr); }
  .highlight-card:first-child { grid-row: span 1; }
  footer { padding: 48px 24px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-content-section { padding: 56px 24px; }
  .page-header-section { min-height: 300px; height: 40vh; }
  .mega-dropdown { min-width: auto; }
  .mega-content { grid-template-columns: 1fr; }
  .mega-image { display: none; }

  /* Mobile dropdowns - toggle on click */
  .mega-dropdown, .vertical-dropdown {
    position: static; opacity: 1; visibility: visible;
    transform: none; pointer-events: auto;
    background: transparent; border: none;
    display: none; padding-left: 16px;
  }
  .mega-menu-item.open .mega-dropdown,
  .dropdown-vertical.open .vertical-dropdown {
    display: block;
  }
  .mega-links { padding: 8px 0; }
  .mega-link { padding: 8px 14px !important; font-size: 0.8rem !important; }
  .vertical-dropdown { position: static; transform: none; min-width: auto; background: transparent; border: none; padding: 0 0 0 16px; display: none; }
  .dropdown-vertical.open .vertical-dropdown { display: block; }
  .vertical-dropdown a { padding: 8px 14px !important; }
}

/* Weather badge */
.weather-badge {
  position: fixed; bottom: 28px; right: 28px; z-index: 50;
  background: rgba(23,23,23,0.92); border: 1px solid rgba(200,168,85,0.3);
  border-radius: 8px; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(8px);
}
.weather-temp { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 300; color: white; line-height: 1; }
.weather-info { font-size: 0.7rem; color: rgba(255,255,255,0.5); line-height: 1.5; }
.weather-info strong { color: var(--gold); display: block; font-size: 0.75rem; }

/* Mobile toggle */
.mobile-menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 101;
}
.mobile-menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: white; margin: 5px 0; transition: 0.3s;
}
@media (max-width: 900px) {
  .mobile-menu-toggle { display: block; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(23,23,23,0.98);
    align-items: flex-start; justify-content: flex-start;
    padding: 80px 30px 30px; gap: 4px;
    z-index: 99; overflow-y: auto;
  }
  .nav-links.active > li > a { font-size: 0.95rem; padding: 10px 0; }
  .nav-links.active > li { width: 100%; }
  .weather-badge { display: none; }
}

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* WordPress editor styles */
.wp-block { max-width: 100%; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.alignwide { margin-left: -72px; margin-right: -72px; max-width: calc(100% + 144px); }

/* Admin bar */
.admin-bar nav { top: 32px; }
@media (max-width: 782px) { .admin-bar nav { top: 46px; } }
