/* =========================================================
 * HexitHive marketing site - base styles
 * Location: assets/css/app.css
 * =======================================================*/

/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --hh-ink: #020611;
  --hh-text: #e5f0ff;
  --hh-accent: #3aa0ff;
  --hh-accent-soft: rgba(122, 214, 255, 0.45);
  --hh-header-left: #051326;
  --hh-header-mid: #071f3a;
  --hh-header-right: #051326;
}

/* Full-height body */
html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background: radial-gradient(circle at top left, #071824, #020611 55%, #000 100%);
  color: #e5f0ff;
  line-height: 1.6;
}

/* Make all regular text links white and bold by default */
a:link,
a:visited {
  color: #ffffff;
  font-weight: 600;
}

/* Page wrapper (leave space for fixed header) */
.hh-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 80px; /* matches tall header state */
}

/* Simple max-width container */
.hh-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* On large screens, widen the layout to ~80% of the viewport */
@media (min-width: 1280px) {
  .hh-container {
    width: 80%;
    max-width: none;
  }
}

/* =========================================================
 * Header / nav - brandbar
 * =======================================================*/

.hh-header.brandbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 80px; /* tall at top of page */
  z-index: 20000;
  background: linear-gradient(
    90deg,
    var(--hh-header-left),
    var(--hh-header-mid) 55%,
    var(--hh-header-right)
  );
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  transition:
    height 0.25s ease,
    box-shadow 0.25s ease;
}

/* Scrolled / sticky state: slightly transparent glass bar */
.hh-header.brandbar.hh-header--sticky {
  height: 80px;
  background: linear-gradient(
    90deg,
    rgba(5, 19, 38, 0.6),
    rgba(7, 31, 58, 0.6) 55%,
    rgba(5, 19, 38, 0.6)
  );
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.65);
}

/* Container inside brandbar */
.hh-header.brandbar .hh-container {
  padding-top: 0;
  padding-bottom: 0;
  height: 100%;
}

/* Flex row for header contents */
.hh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%; /* fill the header vertically */
}

/* Main nav (generic styles kept for reuse elsewhere if needed) */
.hh-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

/* Completely hide inline header nav: drawer will be used instead */
.brandbar .hh-nav {
  display: none;
}

/* Force nav links to use our colour and no underline in all states */
.hh-nav a:link,
.hh-nav a:visited {
  color: #c3d8ff;
  text-decoration: none;
}

/* Base link styling */
.hh-nav a {
  position: relative;
  padding-bottom: 0.25rem;
}

/* Underline stripe on hover */
.hh-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #7ad6ff, #ffeec0);
  transition: width 0.2s ease;
}

.hh-nav a:hover::after {
  width: 100%;
}

/* ================= NAV DROPDOWNS (for any future use) ================= */

.hh-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* Base dropdown panel (hidden by default) */
.hh-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 0.55rem 0.75rem 0.65rem;
  border-radius: 12px;
  background: radial-gradient(circle at top, rgba(12, 29, 60, 0.98), rgba(2, 8, 24, 0.98));
  border: 1px solid rgba(120, 165, 235, 0.85);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(2, 10, 30, 0.9);
  z-index: 40;
  display: none;
}

.hh-nav-item--has-dropdown:hover > .hh-nav-dropdown {
  display: block;
}

.hh-nav-dropdown a {
  display: block;
  font-size: 0.85rem;
  color: #d4e2ff;
  white-space: nowrap;
  padding: 0.25rem 0.1rem;
}

.hh-nav-dropdown a::after {
  height: 1px;
}

.hh-nav-dropdown a + a {
  margin-top: 0.1rem;
}

/* Buttons (global) */
.hh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease,
    border-color 0.12s ease;
}

.hh-btn-primary {
  background: radial-gradient(circle at 0% 0%, #3aa0ff, #0075ff 55%, #0034a5);
  color: #ffffff;
  border-color: rgba(122, 214, 255, 0.9);
  box-shadow: 0 14px 30px rgba(0, 180, 255, 0.35);
}

.hh-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 180, 255, 0.45);
}

.hh-btn-secondary {
  background: transparent;
  color: #d4e2ff;
  border-color: rgba(136, 170, 222, 0.7);
}

.hh-btn-secondary:hover {
  background: rgba(11, 30, 60, 0.9);
}

/* Header CTA pill – if reused somewhere else */
.hh-header .hh-nav-cta {
  display: inline-block;
  height: 40px;
  line-height: 40px;
  padding: 0 2.4rem;
  margin-left: 1.5rem;
}

/* Burger / menu button for drawer */
.menu-btn {
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(122, 214, 255, 0.4);
  background: rgba(5, 16, 42, 0.86);
  cursor: pointer;
  position: relative;
  z-index: 20001;
  flex-shrink: 0;
}

.menu-btn:hover {
  filter: brightness(1.07);
}

.menu-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--hh-accent-soft);
}

.menu-btn svg {
  width: 18px;
  height: 18px;
  fill: #e5f0ff;
}

/* =========================================================
 * Hero section
 * =======================================================*/

.hh-hero {
  position: relative;
  padding: 3.5rem 0 3rem;
  min-height: 600px;
  background-image: url("/assets/img/hexithive_hero1.png"); /* fallback image */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  overflow: hidden;
}

/* Dark overlay over the hero background image */
.hh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 25% 0,
    rgba(0, 32, 80, 0.6),
    rgba(0, 0, 0, 0.6)
  );
  pointer-events: none;
  z-index: 0;
}

/* Make sure content sits above the overlay */
.hh-hero .hh-container {
  position: relative;
  z-index: 1;
}

/* Smaller screens: keep height, adjust position */
@media (max-width: 900px) {
  .hh-hero {
    min-height: 600px;
    background-position: center top;
  }
}

.hh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hh-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hh-hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #7ad6ff;
  margin-bottom: 0.75rem;
}

.hh-hero-title {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hh-hero-subtitle {
  font-size: 1rem;
  color: #a4b9d8;
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

/* Text shadow for readability */
.hh-hero-kicker,
.hh-hero-title,
.hh-hero-subtitle {
  text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.7);
}

.hh-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Simple "card" for a hero mockup placeholder */
.hh-hero-card {
  border-radius: 18px;
  border: 1px solid rgba(117, 151, 216, 0.4);
  background: radial-gradient(circle at top, rgba(16, 54, 98, 0.95), #050b14);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(4, 12, 32, 0.9);
  padding: 1.5rem;
}

/* Generic section spacing */
.hh-section {
  padding: 2.5rem 0;
}

/* =========================================================
 * Footer
 * =======================================================*/

.hh-footer {
  margin-top: auto;
  padding: 1.5rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #7f93b2;
  font-size: 0.85rem;
}

.hh-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Left column: copyright text */
.hh-footer-left {
  flex: 1 1 220px;
  min-width: 0;
}

/* Middle column: Synergetix block */
.hh-footer-powered {
  flex: 0 0 auto;
  text-align: center;
}

.hh-footer-powered-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ab5e6;
  margin-bottom: 0.35rem;
}

.hh-footer-powered-link {
  display: inline-block;
  text-decoration: none;
}

.hh-footer-powered-logo {
  display: block;
  height: 50px;
  width: auto;
  margin: 0 auto;
}

/* Right column: footer nav styled like header nav */
.hh-footer-nav {
  flex: 0 1 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  font-size: 0.85rem;
}

.hh-footer-nav a {
  text-decoration: none;
  color: #c3d8ff;
  position: relative;
  padding-bottom: 0.18rem;
}

.hh-footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #7ad6ff, #ffeec0);
  transition: width 0.2s ease;
}

.hh-footer-nav a:hover::after {
  width: 100%;
}

/* Footer stacking on small screens */
@media (max-width: 768px) {
  .hh-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hh-footer-nav {
    justify-content: flex-start;
  }

  .hh-footer-powered {
    margin-top: 0.5rem;
  }
}

/* =========================================================
 * Player section styles
 * =======================================================*/

.hh-section-header {
  margin-bottom: 1.75rem;
}

.hh-section-title {
  font-size: 1.6rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
}

.hh-section-lead {
  font-size: 0.95rem;
  color: #a4b9d8;
  max-width: 44rem;
}

/* Generic 2-column grid */
.hh-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.25rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .hh-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Headings and text helpers */
.hh-h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hh-text-sm {
  font-size: 0.9rem;
  color: #a4b9d8;
}

.hh-text-xs {
  font-size: 0.8rem;
  color: #8da2c2;
}

/* Lists inside the content blocks */
.hh-list {
  margin: 0.4rem 0 0.2rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #c3d8ff;
}

.hh-list li {
  margin-bottom: 0.25rem;
}

/* Player diagram box */
.hh-player-diagram {
  border-radius: 18px;
  padding: 1.25rem 1.3rem;
  background: radial-gradient(circle at top, rgba(25, 66, 132, 0.95), #050814);
  border: 1px solid rgba(117, 151, 216, 0.55);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(4, 10, 24, 0.9);
}

.hh-player-diagram-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fdfff;
  margin-bottom: 0.8rem;
}

/* Horizontal rail of nodes */
.hh-player-diagram-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.hh-player-diagram-node {
  position: relative;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, rgba(47, 210, 255, 0.18), rgba(6, 18, 44, 0.95));
  border: 1px solid rgba(130, 181, 255, 0.7);
  min-width: 130px;
  flex: 0 0 auto;
}

.hh-player-diagram-node::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.6rem;
  width: 10px;
  height: 2px;
  background: linear-gradient(90deg, rgba(116, 181, 255, 0.0), rgba(153, 206, 255, 0.9));
}

.hh-player-diagram-node:first-child::before {
  display: none;
}

.hh-player-diagram-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e6f2ff;
}

.hh-player-diagram-note {
  font-size: 0.75rem;
  color: #b5c7e4;
}

.hh-player-diagram-footer {
  border-top: 1px solid rgba(143, 193, 255, 0.35);
  padding-top: 0.6rem;
}

/* Feature cards below the diagram */
.hh-feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.hh-feature-card {
  flex: 1 1 240px;
  min-width: 0;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(96, 131, 201, 0.6);
  background: linear-gradient(145deg, rgba(10, 26, 52, 0.96), rgba(2, 8, 24, 0.98));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
}

/* =========================================================
 * Portal section styles
 * =======================================================*/

.hh-portal-hierarchy {
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  background: radial-gradient(circle at top, rgba(23, 54, 116, 0.95), #050714);
  border: 1px solid rgba(117, 151, 216, 0.6);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(5, 12, 30, 0.9);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hh-portal-lane {
  padding: 0.5rem 0.55rem;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(7, 21, 51, 0.9),
    rgba(4, 12, 30, 0.96)
  );
  border: 1px solid rgba(94, 134, 210, 0.7);
}

.hh-portal-lane + .hh-portal-lane {
  margin-top: 0.4rem;
}

.hh-portal-lane-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8fdfff;
  margin-bottom: 0.35rem;
}

.hh-portal-node {
  display: inline-block;
  margin: 0.15rem 0.25rem 0.15rem 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 190, 255, 0.6);
  background: radial-gradient(circle at 0% 0%, rgba(47, 210, 255, 0.16), rgba(5, 16, 42, 0.98));
}

.hh-portal-node-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e6f2ff;
}

.hh-portal-node-note {
  font-size: 0.74rem;
  color: #b5c7e4;
}

/* Metric / feature cards below the hierarchy */
.hh-metric-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.2rem;
}

.hh-metric-card {
  flex: 1 1 240px;
  min-width: 0;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(96, 131, 201, 0.7);
  background: linear-gradient(145deg, rgba(8, 20, 44, 0.96), rgba(2, 7, 24, 0.98));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
}

.hh-metric-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8fdfff;
  margin-bottom: 0.2rem;
}

.hh-metric-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: #e6f2ff;
  margin-bottom: 0.35rem;
}

/* =========================================================
 * FAQ section styles
 * =======================================================*/

.hh-faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.hh-faq-item {
  flex: 1 1 260px;
  min-width: 0;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(96, 131, 201, 0.7);
  background: radial-gradient(circle at top left, rgba(16, 44, 92, 0.96), rgba(3, 8, 20, 0.98));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.7);
}

.hh-faq-question {
  font-size: 0.96rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #e6f2ff;
}

/* =========================================================
 * Contact form alerts
 * =======================================================*/

.hh-alert {
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1.1rem;
  font-size: 0.88rem;
  border: 1px solid;
}

.hh-alert p {
  margin: 0;
}

.hh-alert--success {
  border-color: rgba(46, 204, 113, 0.7);
  background: rgba(39, 174, 96, 0.12);
  color: #c7f9dd;
}

.hh-alert--warning {
  border-color: rgba(241, 196, 15, 0.7);
  background: rgba(243, 156, 18, 0.12);
  color: #ffeec0;
}

.hh-alert--error {
  border-color: rgba(231, 76, 60, 0.7);
  background: rgba(192, 57, 43, 0.15);
  color: #ffd2cf;
}

/* =========================================================
 * Contact form styles
 * =======================================================*/

.hh-form {
  margin-top: 1rem;
  max-width: 720px;
}

.hh-form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hh-form-field {
  flex: 1 1 220px;
  min-width: 0;
  margin-bottom: 0.6rem;
}

.hh-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #c3d8ff;
}

.hh-required {
  color: #ffb3b3;
  margin-left: 0.15rem;
}

/* Inputs & textarea re-using your dark aesthetic */
.hh-input,
.hh-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(126, 162, 222, 0.7);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  color: #e5f0ff;
  background: rgba(5, 14, 32, 0.96);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.hh-input:focus,
.hh-textarea:focus {
  border-color: #2fd2ff;
  box-shadow: 0 0 0 1px rgba(47, 210, 255, 0.5);
  background: rgba(6, 18, 44, 0.98);
}

.hh-input::placeholder,
.hh-textarea::placeholder {
  color: rgba(164, 185, 216, 0.7);
}

.hh-textarea {
  resize: vertical;
  min-height: 140px;
}

.hh-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

/* =========================================================
 * Logo + tag + sticky resize
 * =======================================================*/

.brandbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hh-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--hh-text);
}

/* Sticky resize: logo shrinks when .hh-header--sticky is applied */
.hh-header .hh-logo img {
  height: 150px;
  width: auto;
  display: block;
  transition: height 0.25s ease;
}

.hh-header.hh-header--sticky .hh-logo img {
  height: 75px;
}

@media (max-width: 768px) {
  .hh-header .hh-logo img {
    height: 44px;
  }

  .hh-header.hh-header--sticky .hh-logo img {
    height: 28px;
  }
}

.hh-logo-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

/* First line: CLOUD POWERED MEDIA */
.hh-logo-text-main {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #e9f4ff;
}

/* Second line: Digital signage platform */
.hh-logo-text-sub {
  font-weight: 400;
  letter-spacing: 0.14em;   /* a bit more spacing so width visually matches */
  text-transform: uppercase;
  font-size: 0.65rem;
  color: rgba(233, 244, 255, 0.75);
  margin-top: 0.12rem;
}


.brandbar .divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.18);
}

.brandbar .tag {
  font-size: 0.75rem;
  color: #c3d8ff;
  opacity: 0.85;
  white-space: nowrap;
}

/* Honeypot field - keep it out of sight */
.hh-hp-wrapper {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================================================
 * Drawer / off-canvas menu
 * =======================================================*/

/* Lock background scroll when open */
body.drawer-open {
  overflow: hidden;
}

/* Blur page content when drawer is open */
.drawer-open main,
.drawer-open .hh-footer {
  filter: blur(4px);
}

/* Drawer container */
.drawer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 25000;
}

.drawer--open {
  pointer-events: auto;
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(6, 24, 60, 0.55),
    rgba(2, 8, 24, 0.9)
  );
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.drawer--open .drawer__overlay {
  opacity: 1;
}


.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(92vw, 360px);
  background: linear-gradient(
    180deg,
    rgba(12, 29, 60, 0.88),
    rgba(2, 8, 24, 0.94)
  );
  border-left: 1px solid rgba(122, 214, 255, 0.35);
  backdrop-filter: blur(18px);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.7);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  color: var(--hh-text);
}

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


/* Drawer header */
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(143, 193, 255, 0.3);
}

.drawer__title {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #e5f0ff;
}

.drawer__close {
  background: transparent;
  border: 0;
  color: #e5f0ff;
  cursor: pointer;
  font-size: 18px;
}

.drawer__close:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--hh-accent-soft);
}

/* Menu list + items */
.menu-list {
  padding: 8px 8px 16px;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8fdfff;
  padding: 8px 4px 2px;
  margin-top: 4px;
}
.menu-item {
  width: 100%;
  text-align: left;
  background: rgba(4, 12, 30, 0.9);
  border: 1px solid rgba(143, 193, 255, 0.4);
  color: #e7eaf0;
  padding: 7px 11px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.18px;
  font-size: 0.85rem;
  text-decoration: none;
  display: block;
}


.menu-item:hover {
  filter: brightness(1.06);
}

.menu-item--sub {
  padding-left: 20px;
  font-size: 0.86rem;
  opacity: 0.95;
}

.menu-item--primary {
  border-color: rgba(122, 214, 255, 0.8);
  background: linear-gradient(
    135deg,
    rgba(58, 160, 255, 0.95),
    rgba(0, 53, 165, 0.98)
  );
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 180, 255, 0.5);
}

/* Header-level View Simulation CTA (uses drawer primary styles, but inline) */
.brandbar .brandbar-cta {
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.6rem;
  margin-left: auto;          /* push CTA + burger to the right */
  border-radius: 999px;
  text-decoration: none;
}

/* =========================================================
 * Back to top button
 * =======================================================*/

.hh-back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(144, 224, 255, 0.7);
  background: radial-gradient(circle at top, #0f365f, #04101f);
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.85);

  opacity: 0;
  transform: translateY(10px) scale(0.9);
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.hh-back-to-top:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
  border-color: rgba(144, 224, 255, 1);
  background: radial-gradient(circle at top, #14507f, #07172a);
}

.hh-back-to-top--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@media (max-width: 768px) {
  .hh-back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* =========================================================
 * Global scrollbar styling – brand aligned
 * =======================================================*/

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--hh-accent) rgba(2, 6, 17, 0.96);
}

/* Chromium, Edge, Safari */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(2, 6, 17, 0.96); /* near --hh-ink */
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--hh-accent),
    var(--hh-accent-soft)
  );
  border-radius: 999px;
  border: 2px solid #020611; /* --hh-ink */
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--hh-accent-soft),
    var(--hh-accent)
  );
}
