/* ============================================================
   BRAAI & BEYOND — STICKY HEADER + SCROLLSPY
   ============================================================ */

/* ── Make header sticky ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* ── Scrolled state — added by JS when user scrolls down ── */
.site-header.scrolled {
  background-color: #ffffff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.10);
}

/* ── At the very top — slightly transparent so hero shows through ── */
.site-header:not(.scrolled) {
  background-color: rgba(255, 255, 255, 0.97);
}

/* ── Push page content down so it doesn't hide under the fixed header ── */
body {
  padding-top: 80px;
}

/* ── Scrollspy: active nav link style ── */
.main-nav a.active {
  color: #4b3619fa;
  font-weight: 800;
}

/* ── Smooth underline indicator on active link ── */
.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #5c3a21;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  width: 100%;
}

/* ── Responsive: remove underline on mobile (stacked nav) ── */
@media (max-width: 768px) {
  .main-nav a::after {
    display: none;
  }

  body {
    padding-top: 60px;
  }
}

/* ── Mobile header dropdown fix ── */
@media (max-width: 768px) {

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .header-container {
    position: relative; /* anchor for the dropdown */
    height: auto;
    padding: 12px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 2px solid #5c3a21;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 1050;
    display: none;
    padding: 0;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    width: 100%;
  }

  .main-nav ul li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 1px solid #f0f0f0;
  }

  .main-nav a.active,
  .main-nav a:hover {
    color: #5c3a21;
    background-color: #fdf6f0;
    padding-left: 28px;
  }

 .auth-actions {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 24px 18px;
    background-color: #fafafa;
    border-top: 2px solid #f0f0f0;
    width: 100%;
  }

  .auth-actions.open {
    display: flex;
  }

  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    flex-shrink: 0;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
}