/* Site header (includes/nav.php). Scoped to .bts-* so the legacy header rules in style.css don't apply. */
:root {
  --bts-ink: #111318;
  --bts-muted: #5b6170;
  --bts-line: #e7e8ec;
  --bts-soft: #f4f5f8;
  --bts-accent: #2a5298;
  --bts-radius: 10px;
}

.bts-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .96) !important;
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--bts-line);
  box-shadow: 0 1px 12px rgba(17, 19, 24, .06);
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.bts-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.bts-logo { display: flex; align-items: center; flex: 0 0 auto; }
.bts-logo img { display: block; width: 172px; height: auto; }

/* Desktop menu */
.bts-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.bts-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.bts-menu > li { position: relative; list-style: none; }
.bts-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--bts-ink) !important;
  position: relative;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-transform: none;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.bts-link:hover, .bts-has-drop.is-open > .bts-link { background: var(--bts-soft); color: var(--bts-ink) !important; }
.bts-link:focus, .bts-burger:focus { outline: none; }
.bts-link:focus-visible, .bts-drop a:focus-visible, .bts-cta:focus-visible, .lang-switcher a:focus-visible, .bts-burger:focus-visible {
  outline: 2px solid var(--bts-accent);
  outline-offset: 2px;
}
.bts-link[aria-current="page"], .bts-link.is-current { color: var(--bts-accent) !important; }
.bts-link[aria-current="page"]::after, .bts-link.is-current::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--bts-accent);
}
.bts-caret { font-size: 11px; color: var(--bts-muted); transition: transform .2s; }
.bts-has-drop.is-open .bts-caret { transform: rotate(180deg); }

/* Dropdown panels */
.bts-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 230px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--bts-line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(17, 19, 24, .14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .16s, transform .16s, visibility .16s;
  z-index: 20;
}
.bts-drop::before { /* hover bridge between button and panel */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.bts-drop-grid { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 2px; min-width: 520px; }
.bts-has-drop.is-open .bts-drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 992px) {
  .bts-has-drop:hover .bts-drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .bts-has-drop:hover .bts-caret { transform: rotate(180deg); }
  .bts-has-drop:hover > .bts-link { background: var(--bts-soft); }
}
.bts-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--bts-ink) !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none !important;
  white-space: nowrap;
}
.bts-drop-item:hover { background: var(--bts-soft); }
.bts-drop-item[aria-current="page"] { background: #eaf0fa; color: var(--bts-accent) !important; }
.bts-swatch {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(17, 19, 24, .18);
}
.bts-os {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--bts-soft);
  color: var(--bts-ink);
  font-size: 14px;
}
.bts-drop-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding: 10px;
  border-top: 1px solid var(--bts-line);
  color: var(--bts-accent) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}
.bts-drop-all:hover { background: #eaf0fa; border-radius: 8px; }

/* Right-hand actions */
.bts-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.lang-switcher { margin: 0; }
.lang-switcher a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--bts-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bts-ink) !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
  transition: border-color .15s, background-color .15s;
}
.lang-switcher a:hover { border-color: var(--bts-accent); background: #eaf0fa; }
.lang-switcher svg, .lang-switcher i { color: var(--bts-accent); }
.bts-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--bts-ink);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background-color .15s, transform .15s;
}
.bts-cta:hover { background: #2b2f38; transform: translateY(-1px); }

.bts-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--bts-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.bts-burger span { display: block; height: 2px; border-radius: 2px; background: var(--bts-ink); }

/* Mobile drawer (reuses .mobile-menu slide-in from style.css) */
.bts-drawer { width: min(340px, 88vw) !important; padding: 0 !important; overflow-y: auto; font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.bts-drawer { z-index: 10001 !important; visibility: hidden; transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s !important; }
.bts-drawer.mobile-view { visibility: visible; transition: transform .3s ease, opacity .3s ease !important; }
.bts-drawer-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid var(--bts-line);
}
.bts-drawer-head img { display: block; width: 150px; height: auto; }
.bts-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bts-soft);
  color: var(--bts-ink) !important;
  font-size: 18px;
  text-decoration: none !important;
}
.bts-drawer-body { padding: 8px 18px 28px; }
.bts-drawer-title {
  margin: 18px 0 8px;
  color: var(--bts-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.bts-drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bts-drawer-list, .bts-drawer-links { display: grid; gap: 4px; }
.bts-drawer-grid a, .bts-drawer-list a, .bts-drawer-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--bts-ink) !important;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none !important;
}
.bts-drawer-grid a { border: 1px solid var(--bts-line); font-size: 14px; }
.bts-drawer-grid a:hover, .bts-drawer-list a:hover, .bts-drawer-links a:hover { background: var(--bts-soft); }
.bts-drawer a[aria-current="page"] { background: #eaf0fa; color: var(--bts-accent) !important; border-color: #c9d6ee; }
.bts-drawer-links { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--bts-line); }
.bts-drawer .lang-switcher { margin-top: 18px; }
.bts-drawer .lang-switcher a { width: 100%; justify-content: center; padding: 11px 14px; }
.bts-backdrop { position: fixed; inset: 0; z-index: 10000; background: rgba(17, 19, 24, .45); }
.bts-backdrop[hidden] { display: none; }
html.bts-lock, html.bts-lock body { overflow: hidden; }

/* Breakpoints */
@media (max-width: 1199px) {
  .bts-bar { gap: 14px; }
  .bts-cta { display: none; }
  .bts-link { padding: 9px 10px; font-size: 14px; }
  .bts-logo img { width: 150px; }
}
@media (max-width: 991px) {
  .bts-nav { display: none; }
  .bts-bar { justify-content: space-between; min-height: 60px; }
  .bts-actions { gap: 8px; }
  .bts-burger { display: inline-flex; }
  .bts-header .lang-switcher a { padding: 7px 12px; font-size: 13px; }
}
@media (max-width: 400px) {
  .bts-logo img { width: 128px; }
  .bts-header .lang-switcher a { padding: 7px 10px; }
}

/* Spanish: keep natural sentence case in footer links */
html[lang="es"] body .footer-links a { text-transform: none !important; }
