/* ==========================================================================
   STVISION Marketing - Header & Navigation Styles
   ========================================================================== */

.st-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: transform 0.3s ease;
}

/* Safe offset for WordPress Admin Bar when logged in */
body.admin-bar .st-site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .st-site-header {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  /* On small mobile screens, WordPress admin bar scrolls off the page */
  body.admin-bar .st-site-header {
    top: 0;
  }
}

/* Top Information Bar */
.st-topbar {
  background-color: var(--st-navy-dark);
  color: var(--st-text-dim);
  font-size: 0.815rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.5rem 0;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease;
  max-height: 50px;
  overflow: hidden;
}

/* When sticky, seamlessly collapse the topbar to keep header sleek */
.st-site-header.is-sticky .st-topbar {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-bottom: none;
}

.st-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.st-topbar-left,
.st-topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.st-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.st-topbar-item svg {
  color: var(--st-cyan-signal);
}

.st-topbar-link {
  color: var(--st-text-dim);
  font-weight: 500;
}

.st-topbar-link:hover {
  color: var(--st-blue-accent);
}

.st-topbar-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 1rem;
}

.st-social-icon {
  color: var(--st-text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--st-transition);
}

.st-social-icon:hover {
  color: var(--st-blue-accent);
  transform: translateY(-2px);
}

/* Main Navigation Bar */
.st-navbar {
  background-color: #ffffff;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  width: 100%;
}

.st-site-header.is-sticky .st-navbar {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.12);
  padding: 0.2rem 0;
}

.st-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  gap: 1.5rem;
}

/* Brand Logo */
.st-brand-wrapper {
  display: flex;
  align-items: center;
}

.st-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.st-main-logo {
  height: 50px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
}

.st-brand-divider {
  width: 1px;
  height: 28px;
  background-color: rgba(15, 23, 42, 0.16);
  display: inline-block;
  flex-shrink: 0;
}

.st-broadband-logo {
  height: 38px;
  width: auto;
  max-width: 115px;
  object-fit: contain;
  display: block;
}

.st-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.st-logo-text {
  display: flex;
  flex-direction: column;
}

.st-logo-title {
  font-family: var(--st-font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--st-navy-dark);
  line-height: 1.1;
}

.st-logo-sub {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--st-blue-primary);
  text-transform: uppercase;
  margin-top: 0.15rem;
}

/* Desktop Navigation Menu */
.st-main-navigation {
  display: flex;
  align-items: center;
}

.st-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.st-nav-menu li {
  position: relative;
}

.st-nav-menu a {
  font-family: var(--st-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--st-text-main);
  padding: 0.5rem 0;
  display: inline-block;
  position: relative;
}

.st-nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--st-blue-primary), var(--st-cyan-signal));
  transition: width 0.25s ease;
  border-radius: 2px;
}

.st-nav-menu a:hover,
.st-nav-menu .current-menu-item > a {
  color: var(--st-blue-primary);
}

.st-nav-menu a:hover::after,
.st-nav-menu .current-menu-item > a::after {
  width: 100%;
}

/* Nav Actions */
.st-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.st-nav-cta {
  display: inline-flex;
}

/* Mobile Hamburger Button */
.st-hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--st-text-main);
  outline: none;
}

.st-hamburger-box {
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.st-hamburger-line {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--st-navy-dark);
  border-radius: 2px;
  transition: var(--st-transition);
}

/* Mobile Drawer Overlay & Panel */
.st-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99998;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

/* Account for WordPress Admin Bar on logged-in users */
body.admin-bar .st-mobile-drawer {
  top: 46px;
  height: calc(100% - 46px);
}

@media screen and (min-width: 783px) {
  body.admin-bar .st-mobile-drawer {
    top: 32px;
    height: calc(100% - 32px);
  }
}

.st-mobile-drawer.is-open {
  visibility: visible;
  opacity: 1;
}

.st-drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.st-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background-color: #0b1329 !important; /* 100% SOLID OPAQUE DARK NAVY */
  border-left: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.7);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  z-index: 2001;
}

.st-mobile-drawer.is-open .st-drawer-panel {
  transform: translateX(0);
}

.st-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background-color: #070d1e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.st-drawer-header .st-logo-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.st-drawer-header .st-logo-sub {
  color: #38bdf8;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  display: block;
}

.st-drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  padding: 0.45rem;
  color: #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--st-transition);
}

.st-drawer-close:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.st-drawer-body {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #0b1329;
}

.st-mobile-menu-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.st-mobile-menu-items li {
  list-style: none;
}

.st-mobile-menu-items a {
  font-family: var(--st-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: #f8fafc; /* Crisp clean white */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: var(--st-transition);
  border-radius: 6px;
}

.st-mobile-menu-items a:hover {
  color: #38bdf8;
  background-color: rgba(255, 255, 255, 0.05);
  padding-left: 1rem;
}

.st-mobile-menu-items li.current-menu-item a {
  color: #38bdf8;
  font-weight: 700;
  border-left: 3px solid #38bdf8;
  padding-left: 0.75rem;
  background: rgba(2, 132, 199, 0.15);
}

.st-drawer-footer {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.5rem;
}

.st-btn-block {
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Hide floating WhatsApp action button while mobile drawer is open to prevent overlapping */
body.drawer-is-open .st-float-whatsapp,
.st-mobile-drawer.is-open ~ .st-float-whatsapp {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 576px) {
  .st-main-logo {
    height: 38px;
    max-width: 160px;
  }
}

