/* Burke Williams — Header Styles
   Class names match header.php (kebab-case bw- prefix)
*/

.bw-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(
    to bottom,
    rgba(15, 12, 10, 0.55) 0%,
    rgba(15, 12, 10, 0.0) 100%
  );
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.bw-header.scrolled {
  background: rgba(255, 253, 248, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

/* ── Nav bar ─────────────────────────────────────────────── */
.bw-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding-inline: 40px;
  max-width: 1440px;
  margin: 0 auto;
}

/* ── Nav groups ──────────────────────────────────────────── */
.bw-nav-group {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bw-nav-left  { flex: 1; justify-content: flex-start; }
.bw-nav-right { flex: 1; justify-content: flex-end; gap: 24px; }

/* ── Nav links ───────────────────────────────────────────── */
.bw-nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.90);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.bw-nav-link:hover { color: #fff; text-decoration: none; }

.bw-header.scrolled .bw-nav-link       { color: var(--color-charcoal); }
.bw-header.scrolled .bw-nav-link:hover { color: var(--color-blue); }

/* ── Logo ────────────────────────────────────────────────── */
.bw-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.bw-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  transition: filter 0.2s;
  filter: brightness(0) invert(1);
}

.bw-header.scrolled .bw-logo-img { filter: none; }

/* ── Book button ─────────────────────────────────────────── */
.bw-book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 20px;
  background: var(--color-sand);
  color: var(--color-charcoal) !important;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.bw-book-btn:hover {
  background: var(--color-charcoal);
  color: #fff !important;
  text-decoration: none;
}

/* ── Login button ────────────────────────────────────────── */
.bw-login-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.bw-login-btn:hover { color: #fff; text-decoration: none; }

.bw-header.scrolled .bw-login-btn       { color: var(--color-charcoal); }
.bw-header.scrolled .bw-login-btn:hover { color: var(--color-blue); }

/* ── Mobile hamburger ────────────────────────────────────── */
.bw-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.bw-burger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1px;
  transition: background 0.2s;
  position: relative;
}

.bw-burger-bar::before,
.bw-burger-bar::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: inherit;
  border-radius: 1px;
  position: absolute;
  left: 0;
}

.bw-burger-bar::before { top: -6px; }
.bw-burger-bar::after  { top:  6px; }

.bw-header.scrolled .bw-burger-bar { background: var(--color-charcoal); }

/* ── Mobile drawer ───────────────────────────────────────── */
.bw-drawer {
  display: none;
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 90vw);
  background: var(--color-cream);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  padding: 100px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 999;
  overflow-y: auto;
}

.bw-drawer.open { transform: translateX(0); }

.bw-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bw-drawer-link {
  display: block;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: color 0.2s;
}

.bw-drawer-link:hover { color: var(--color-blue); text-decoration: none; }

.bw-drawer-book-btn {
  display: block;
  margin-top: 24px;
  padding: 14px 24px;
  background: var(--color-sand);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
}

.bw-drawer-book-btn:hover { background: var(--color-charcoal); color: #fff; }

/* ── Backdrop ────────────────────────────────────────────── */
.bw-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bw-nav { padding-inline: 24px; }
  .bw-nav-group { gap: 20px; }
  .bw-nav-right { gap: 16px; }
}

@media (max-width: 768px) {
  .bw-nav-group { display: none; }
  .bw-burger    { display: flex; }
  .bw-drawer    { display: block; }
  .bw-nav       { padding-inline: 20px; }
}
