﻿/* =====================================================
   BSS GLOBAL — design tokens, reset, header, footer
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

.bss-page {
  font-family: 'DM Sans', sans-serif;
  background: #F2EAE0;
  color: #2C2215;
  overflow-x: hidden;
}
.bss-page a { text-decoration: none; color: inherit; }
.bss-page input::placeholder { opacity: 0.45; }
.bss-page button { font-family: inherit; cursor: pointer; }

/* ── HEADER ─────────────────────────────────────────────── */
.bss-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
}
.bss-header:hover { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.bss-logo-link { display: flex; align-items: center; }
.bss-logo { height: 40px; }

.bss-nav { display: flex; align-items: center; }
.bss-nav-list { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.bss-nav-li { position: relative; }

.bss-nav-item {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 20px; border-radius: 24px;
  font-size: 14px; font-weight: 600; color: #2C2215;
  transition: all 0.3s; white-space: nowrap;
}
.bss-nav-item.active { background: #1B3A5C; color: #fff; }
.bss-nav-item:not(.active):hover { background: rgba(27,58,92,0.08); }

/* Dropdown sub-menu */
.bss-sub-menu {
  display: none;
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #fff; border-radius: 14px; list-style: none;
  padding: 8px; margin: 0; min-width: 210px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 1px 6px rgba(0,0,0,0.06);
  z-index: 200;
}
.bss-nav-li:hover > .bss-sub-menu,
.bss-nav-li.dropdown-open > .bss-sub-menu {
  display: block;
  animation: bssDropIn 0.18s ease both;
}
@keyframes bssDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bss-sub-menu li { display: block; }
.bss-sub-menu li a {
  display: block; padding: 9px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: #2C2215;
  transition: background 0.18s; white-space: nowrap;
}
.bss-sub-menu li a:hover,
.bss-sub-menu li.active a { background: rgba(27,58,92,0.07); color: #1B3A5C; }
/* Transparent bridge fills the gap so hover stays alive as mouse moves down */
.bss-nav-li::after {
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 12px;
}
/* Caret above dropdown */
.bss-sub-menu::before {
  content: ''; position: absolute; top: -5px; right: 24px;
  width: 10px; height: 10px; background: #fff;
  transform: rotate(45deg);
  box-shadow: -1px -1px 3px rgba(0,0,0,0.05);
  border-radius: 2px;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.bss-footer {
  background: rgba(255,255,255,0.85); padding: 40px 48px;
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.bss-footer-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; text-align: center; color: #5A4E42; font-size: 13px;
}
.bss-footer-logo { height: 36px; }

/* ── HERO GRADIENT (shared) ─────────────────────────────── */
.hp-hero, .rt-hero, .bd-hero {
  background: linear-gradient(145deg, #0F2136 0%, #1B3A5C 40%, #1E4570 70%, #1B3A5C 100%);
  overflow: hidden; position: relative;
}

/* ── INFO BAR (shared by region + detail) ───────────────── */
.rt-info-bar, .bd-info-bar { padding: 0 48px; }
.rt-info-inner, .bd-info-inner {
  max-width: 900px; margin: 0 auto;
  background: #fff; border-radius: 16px; padding: 20px 20px;
  display: flex; align-items: flex-start; gap: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.rt-info-inner p, .bd-info-inner p { font-size: 14px; color: #5A4E42; line-height: 1.6; }
.rt-info-inner a, .bd-info-inner a {
  color: #1B3A5C; font-weight: 600;
  border-bottom: 1px solid rgba(27,58,92,0.2);
  transition: border-color 0.2s;
}
.rt-info-inner a:hover, .bd-info-inner a:hover { border-color: #1B3A5C; }
.rt-info-inner svg, .bd-info-inner svg { flex-shrink: 0; margin-top: 2px; }

/* ── HAMBURGER BUTTON ────────────────────────────────────── */
.bss-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 9px;
  background: none; border: none; cursor: pointer;
  border-radius: 8px; transition: background 0.2s;
  position: relative; z-index: 110;
}
.bss-hamburger:hover { background: rgba(27,58,92,0.08); }
.bss-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #1B3A5C; border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}
.bss-header.nav-open .bss-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bss-header.nav-open .bss-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.bss-header.nav-open .bss-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .bss-header { padding: 0 20px; height: 64px; }
  .bss-logo   { height: 32px; }
  .bss-footer { padding: 32px 24px; }
  .rt-info-bar, .bd-info-bar { padding: 0 24px; }
  .rt-info-inner, .bd-info-inner { gap: 10px; padding: 18px 20px; }

  /* Show hamburger */
  .bss-hamburger { display: flex; }

  /* Mobile nav drawer */
  .bss-nav {
    position: fixed; top: 64px; left: 0; right: 0;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    background: #1B3A5C;
    z-index: 99; overflow-y: auto; padding: 16px 20px 40px;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .bss-header.nav-open .bss-nav { transform: translateX(0); }

  /* Vertical nav list */
  .bss-nav-list { flex-direction: column; gap: 0; align-items: stretch; }
  .bss-nav-li   { position: static; }

  /* Disable desktop hover bridge */
  .bss-nav-li::after { display: none; }

  /* Hide Home / Contact top-level labels — not needed on mobile */
  .bss-nav-li:not(.has-dropdown) { display: none; }
  /* Hide the "Book Lists" parent trigger — show children directly */
  .has-dropdown > .bss-nav-item { display: none; }

  /* Always show sub-menu fully expanded (no accordion tap needed) */
  .has-dropdown > .bss-sub-menu { display: block !important; }
  .bss-nav-li:hover > .bss-sub-menu { display: block !important; }

  /* Sub-menu as the primary list */
  .bss-sub-menu {
    position: static !important; box-shadow: none !important;
    animation: none !important; background: transparent !important;
    border-radius: 0; padding: 0 !important;
    min-width: 0; margin: 0;
  }
  .bss-sub-menu::before { display: none; }
  .bss-sub-menu li { display: block; }
  .bss-sub-menu li a {
    color: rgba(255,255,255,0.9) !important;
    font-size: 16px !important; font-weight: 600 !important;
    padding: 13px 20px !important; border-radius: 10px !important;
    display: block !important;
  }
  .bss-sub-menu li a:hover,
  .bss-sub-menu li.active a {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
  }
}
@media (max-width: 480px) {
  .bss-header { padding: 0 16px; }
}

/* ── CUSTOM CURSOR ────────────────────────────────────────────────
   Native `cursor: url()` PNG images (not inline SVG data URIs — those
   silently fail to invisible in some browsers, e.g. Safari — and not
   a JS-tracked overlay, which broke under Quirks Mode/blend-mode
   compositing). Ringed dot by default, bolder brand-orange ring over
   anything clickable. */
.bss-page {
  cursor: url("../img/cursors/cursor-default.png") 14 14, auto;
}
.bss-page a,
.bss-page button,
.bss-page select,
.bss-page label,
.bss-page [role="button"],
.bss-page .hp-card,
.bss-page .hp-chip,
.bss-page .rt-grade-card,
.bss-page .bd-download-btn,
.bss-page .bd-back-btn,
.bss-page .bss-install-btn,
.bss-page .bss-hamburger {
  cursor: url("../img/cursors/cursor-hover.png") 16 16, pointer;
}
.bss-page input,
.bss-page textarea {
  cursor: text;
}

