/*
Theme Name: Dune Buggy Dubai Custom
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Custom theme for dune buggy dubai style website.
Version: 1.0
Text Domain: dune-buggy-dubai
*/

/* --------------------------------------------
   COLOR VARIABLES — Updated to real dune buggy colors
--------------------------------------------- */
:root {
  --dbd-brown: #3b2413;
  --dbd-brown-dark: #2d180b;   /* updated */
  --dbd-gold: #d89c47;         /* updated */
  --dbd-sand: #fff3e2;         /* updated */
  --dbd-text: #2a1a10;         /* updated */
  --dbd-white: #ffffff;
}

/* --------------------------------------------
   BASE RESET
--------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dbd-text);
  background-color: #ffffff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --------------------------------------------
   HEADER
--------------------------------------------- */
.site-header {
  border-bottom: 1px solid #eee;
}

.top-bar {
  background-color: var(--dbd-brown-dark);
  color: var(--dbd-white);
  font-size: 13px;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* MAIN HEADER */
.header-main {
  background-color: #ffffff;
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo-text {
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dbd-brown);
}

/* NAVIGATION */
.main-nav {
  flex: 1;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-weight: 500;
}

.main-nav a {
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--dbd-gold);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* HEADER CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  font-size: 14px;
}

.header-phone-label {
  font-size: 12px;
  opacity: 0.8;
}

.header-phone-number {
  font-weight: 700;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--dbd-brown);
  color: var(--dbd-white);
}

.btn-primary:hover {
  background-color: var(--dbd-brown-dark);
}

/* --------------------------------------------
   MOBILE MENU TOGGLE — UPDATED + ANIMATED
--------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  width: 34px;
  height: 26px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background-color: var(--dbd-brown);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* TOGGLE → X ANIMATION */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* BACKGROUND OVERLAY */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  z-index: 900;
}

.mobile-nav-overlay.show {
  display: block;
}

/* --------------------------------------------
   HERO SECTION
--------------------------------------------- */
.hero {
  position: relative;
  color: #ffffff;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.hero-kicker {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  font-size: 13px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  max-width: 560px;
  margin-bottom: 18px;
}

.hero-sub {
  max-width: 520px;
  font-size: 15px;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------
   RESPONSIVE — MOBILE FIRST
--------------------------------------------- */
@media (max-width: 900px) {

  .header-main-inner {
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  /* RIGHT SLIDE MENU */
  .main-nav {
    position: fixed;
    top: 0;
    right: -260px;
    bottom: 0;
    width: 260px;
    background-color: var(--dbd-brown-dark);
    padding: 100px 24px 24px;
    display: block;
    z-index: 1001;
    transition: right 0.3s ease;
  }

  .main-nav.is-open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .main-nav a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
  }

  /* HERO */
  .hero {
    min-height: 350px;
  }

  .hero-inner {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* PACKAGES GRID */
  #packages .container > div {
    grid-template-columns: 1fr !important;
  }
}
