/* =============================================
   MODERN STICKY NAVBAR – white bg on scroll
   ============================================= */
:root {
  --primary: #0066cc;
  --dark: #1a1a1a;
  --light: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: var(--transition);
  background-color: white !important;
}

.navbar {
  background: transparent;
  transition: var(--transition);
  padding: 1.2rem 0;
}

.navbar.scrolled {
  background: var(--light);
  box-shadow: var(--shadow);
  padding: 0.9rem 0;           /* slightly smaller when scrolled */
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo img {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.navbar.scrolled .logo img {
  height: 36px;
}

/* Menu links */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.2rem;
}

.nav-links li a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: var(--transition);
  position: relative;
  font-weight: bolder;
}

.navbar.scrolled .nav-links li a {
  color: var(--dark);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary) !important;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 1.4rem;
}

.social-icons a {
  color: white;
  font-size: 1.4rem;
  transition: var(--transition);
}

.navbar.scrolled .social-icons a {
  color: #555;
}

.social-icons a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger {
  display: none;                /* hidden by default (desktop) */
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.navbar.scrolled .hamburger span {
  background: var(--dark);
}

/* Mobile menu overlay */
@media (max-width: 992px) {
  .hamburger span {
    width: 100%;
    height: 3px;
    background: rgb(12, 12, 12);
    border: 2px solid  white !important;   /* green border around button */
    padding: 2px;
  }

  .navbar.scrolled .hamburger span {
    background: var(--dark);
  }
  .nav-links,
  .social-icons { display: none; }

  /* Mobile menu (slides in from right) */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--light);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li a {
    color: var(--dark);
    font-size: 1.4rem;
    margin: 1.2rem 0;
  }

  .social-icons {
    position: absolute;
    bottom: 3rem;
    display: flex;
    gap: 2.5rem;
  }

  .social-icons a {
    color: #555;
    font-size: 1.8rem;
  }

  /* Hamburger animation → X */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .logo img { height: 36px; }
}

.mobile-close-btn{
  display: none;
}


/* ────────────────────────────────────────────────
   MOBILE MENU – single, clean version
───────────────────────────────────────────────── */
@media (max-width: 992px) {

  .hamburger {
    display: flex !important;
  }

  .nav-links,
  .social-icons {
    display: none !important;
  }

  .nav-links {
    position: fixed !important;
    inset: 0 0 0 auto;               /* top right bottom left */
    width: 82%;
    max-width: 340px;
   
 background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)),
              url('/assets/img/background/clans-bg.jpg') center/cover no-repeat;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    display: flex !important;        /* important for when .active is added */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: -12px 0 40px rgba(0,0,0,0.28);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li a {
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.4rem 0;
    text-decoration: none;
  }

  .social-icons {
    position: absolute;
    bottom: 5rem;
    display: flex !important;
    gap: 3rem;
  }

  .social-icons a {
    color: #333;
    font-size: 2rem;
  }

  /* ── Hamburger → X ── */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .mobile-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.4rem;
    color: #222;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
  }

  .mobile-close-btn:hover {
    background: rgba(0, 0, 0, 0.07);
    color: #0066cc;           /* or your --primary color */
  }

  /* Make touch target larger */
  .mobile-close-btn::before {
    content: '';
    position: absolute;
    inset: -12px;             /* invisible larger hit area */
  }
}