/* ========== HEADER ========== */
.site-header {
  background: var(--brand);
  color: var(--light);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 1rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.header-wrapper {
  align-items: center;
  gap: 1rem;
}

.nav-desktop {
  display: flex;
  flex-grow: 1;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links li a:hover {
  color: var(--accent);
}

.cta-btn {
  background: var(--accent);
  color: var(--light);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.cta-btn:hover {
  background: var(--accent2);
}

/* ========== NAV TOGGLE ========== */
/* Burger Base */
.nav-toggle {
    color: var(--light);
    width: 30px;
    height: 22px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    display: none;
}
.nav-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: var(--light);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

/* ========== MOBILE NAV ========== */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--brand);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease-in-out;
  transform: translateX(100%);
  z-index: 998;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav ul {
  list-style: none;
  text-align: center;
}

.mobile-nav ul li {
  margin: 1rem 0;
}

.mobile-nav ul li a {
  color: var(--light);
  font-size: 1.5rem;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .nav-desktop,
  .cta-btn {
    display: none;
  }

  .nav-toggle {
    display: flex;

  }
}

/* Prevent scroll burger menu */
/* .no-scroll {
  overflow: hidden;
  height: 100vh;
} */

/* Animate into X */
.nav-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
