/* Header & Sticky Navigation Styling */
.site-header {
  background-color: rgba(249, 246, 240, 0.95);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(140, 74, 50, 0.1);
}

.site-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
}


/* ==========================================================
   Tablet / iPad header fix
   Problem: between 768px and ~1200px the logo, 5 links and the
   "Book a Class" button do not fit on one row, so text wrapped
   and the button overlapped "Contact Us".
   ========================================================== */

/* Never wrap nav text or the CTA button; keep them from shrinking */
.site-header nav a,
.site-header > div > a.rounded-full {
  white-space: nowrap;
}
.site-header > div > a.rounded-full,
.site-header [data-menu-toggle] {
  flex-shrink: 0;
}
.site-header > div:first-child {
  min-width: 0;            /* lets the logo block shrink instead of pushing others */
}
.site-header > div:first-child a {
  white-space: nowrap;
}

/* Make every nav link look the same (the "Contact Us" link on some pages has no class) */
.site-header nav li a {
  color: #2C2523;
  font-weight: 500;
  text-decoration: none;
}
.site-header nav li a:hover,
.site-header nav li a.active {
  color: #8C4A32;
}
.site-header nav li a.active {
  font-weight: 600;
}

/* iPad landscape & small laptops: 1024px - 1279px -> compact single row */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-header {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    gap: 1rem;
  }
  .site-header > div:first-child a {
    font-size: 1.05rem;     /* logo text slightly smaller */
  }
  .site-header nav ul {
    gap: 1.25rem;
  }
  .site-header nav ul > li {
    margin: 0 !important;   /* cancels Tailwind space-x-8 so only gap is used */
  }
  .site-header nav li a {
    font-size: 0.9rem;
  }
  .site-header > div > a.rounded-full {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* iPad portrait & small tablets: 768px - 1023px -> use the hamburger menu,
   because the full menu physically cannot fit on one row here */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-header nav[aria-label="Main Navigation"],
  .site-header > div.md\:block {
    display: none !important;
  }
  .site-header [data-menu-toggle] {
    display: block !important;
  }
  /* mobile menu is "md:hidden" in the markup; re-enable it here (JS still toggles .hidden) */
  #mobile-menu:not(.hidden) {
    display: block !important;
  }
}
