/* ==========================================================================
   HearMeWA — Header Styles
   No build step. Edit this file directly, save, refresh.
   ========================================================================== */

/* -------------------------------------------------------------------------
   Fixed wrapper
   ------------------------------------------------------------------------- */
.hmw-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: #fff;
}

/* WordPress admin bar is 32px tall on desktop, 46px on mobile */
.admin-bar .hmw-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .hmw-header {
    top: 46px;
  }
}

/* -------------------------------------------------------------------------
   Top Bar
   ------------------------------------------------------------------------- */
.hmw-header-inner {
  padding: 0 2.7rem;
}

#hmw-top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.5rem 0 0.25rem;
}

.hmw-topbar-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hmw-header-rule {
  border-top: 1px solid #e9ecef;
}

/* Language links (desktop top bar) */
.hmw-lang-links {
  gap: 0.5rem;
}

.hmw-lang-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.1rem 0.4rem;
}
.hmw-lang-link.active {
  font-weight: 700;
  background-color: #f3f3f3;
}
.hmw-lang-link:hover {
  color: var(--hmw-dark-green);
}

/* Safety message */
.hmw-safety-msg {
  color: var(--hmw-violet);
  font-size: 1rem;
}
.hmw-safety-msg .hmw-arrow-down {
  display: inline-block;
}

/* -------------------------------------------------------------------------
   Navbar
   ------------------------------------------------------------------------- */
#hmw-main-nav {
  background: #fff;
}

.hmw-nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.5rem 1.25rem 0.75rem;
}

/* Logo — in normal flex flow on mobile, absolute-centered on desktop */
.hmw-nav-logo {
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.hmw-nav-logo img {
  width: 90px;
  display: block;
}

/* Desktop nav links */
.hmw-nav-desktop {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  padding-right: 1rem;
}

.hmw-nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

/* Desktop CTA + Close actions */
.hmw-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Nav link styles */
.hmw-nav-link {
  color: #222 !important;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  transition: color 0.2s;
  white-space: nowrap;
}
.hmw-nav-link:hover {
  color: var(--hmw-dark-green) !important;
}
.nav-link.active .hmw-nav-link {
  font-weight: 700;
}

/* Get Help button */
.hmw-btn-get-help {
  background-color: var(--hmw-light-green);
  color: var(--hmw-dark-green);
  border: none;
  border-radius: 6px;
  font-size: 1.5rem;
  padding: 0.5rem 1.5rem;
  margin: 0 2rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s;
  white-space: nowrap;
}
.hmw-btn-get-help:hover {
  background-color: var(--hmw-light-green-hover);
  color: var(--hmw-dark-green);
}

/* Close/exit button */
.hmw-close-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--hmw-violet);
  border-radius: 50%;
  text-decoration: none;
  color: white;
  line-height: 1;
  transition: background-color 0.2s;
  flex-shrink: 0;
}
.hmw-close-btn:hover {
  background-color: var(--hmw-violet-hover);
  color: white;
}
.hmw-close-btn .hmw-close-x {
  font-size: 2rem;
  font-weight: 300;
  line-height: 0.57;
}
.hmw-close-btn .hmw-close-text {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
}

/* -------------------------------------------------------------------------
   Mobile Actions (language dropdown + Get Help + hamburger)
   Visible only at ≤991px.
   ------------------------------------------------------------------------- */
.hmw-nav-mobile-actions {
  display: none; /* hidden on desktop by default */
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Language dropdown button */
.hmw-lang-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #e8e8e8;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.hmw-lang-dropdown-btn:hover {
  background: #d4d4d4;
}
.hmw-lang-dropdown-btn .material-symbols-outlined {
  font-size: 1.5rem;
  color: #333;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

/* Compact Get Help button for mobile bar */
.hmw-btn-get-help--compact {
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  margin-right: 0;
  margin-left: 0;
  border-radius: 8px;
}

/* Hamburger toggle */
.hmw-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #e8e8e8;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.hmw-nav-toggle:hover {
  background: #d4d4d4;
}

/* Hamburger icon — three lines drawn with CSS */
.hmw-hamburger-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: #333;
  position: relative;
}
.hmw-hamburger-icon::before,
.hmw-hamburger-icon::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: #333;
  position: absolute;
  left: 0;
}
.hmw-hamburger-icon::before {
  top: -6px;
}
.hmw-hamburger-icon::after {
  top: 6px;
}

/* -------------------------------------------------------------------------
   Offcanvas Nav
   ------------------------------------------------------------------------- */
.hmw-offcanvas-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hmw-offcanvas-nav-list {
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 0;
  padding-bottom: 1rem;
}

.hmw-offcanvas-nav-list .hmw-nav-link {
  font-size: 1.25rem;
}

.hmw-offcanvas-divider {
  border: none;
  border-top: 1px solid #dee2e6;
  width: 100%;
  margin: 1rem 0;
}

.hmw-btn-get-help--full {
  width: 100%;
  text-align: center;
  margin-bottom: 0.75rem;
  margin-right: 0;
  margin-left: 0;
  display: block;
}

.hmw-offcanvas-lang {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hmw-offcanvas-exit {
  margin-top: 1rem;
}

.hmw-exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--hmw-violet);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: background 0.2s;
}
.hmw-exit-btn:hover {
  background: var(--hmw-violet-hover);
  color: #fff;
}
.hmw-exit-btn-x {
  font-size: 1.2rem;
  line-height: 1;
}

/* -------------------------------------------------------------------------
   Fixed Mobile Exit Button (bottom-right corner)
   ------------------------------------------------------------------------- */
.hmw-mobile-exit-btn {
  display: none; /* hidden by default (desktop) */
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1020; /* below offcanvas (1045) so menu overlays it */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--hmw-violet);
  border-radius: 50%;
  text-decoration: none;
  color: white;
  line-height: 1;
  transition: background-color 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.hmw-mobile-exit-btn:hover {
  background-color: var(--hmw-violet-hover);
  color: white;
}
.hmw-mobile-exit-btn .hmw-close-x {
  font-size: 2rem;
  font-weight: 300;
  line-height: 0.57;
}
.hmw-mobile-exit-btn .hmw-close-text {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
}

/* Offcanvas close button — snug in top right */
#offCanvasNav .offcanvas-header {
  padding: 0.75rem 0.75rem 0.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
#offCanvasNav .btn-close {
  margin: 0;
  padding: 0.5rem;
}

/* -------------------------------------------------------------------------
   Responsive — Mobile (≤991px)
   ------------------------------------------------------------------------- */
@media (max-width: 991px) {
  /* Top bar: hide desktop-only elements */
  #hmw-top-bar {
    display: none;
  }

  /* Navbar padding */
  .hmw-header-inner {
    padding: 0;
  }
  .hmw-nav-inner {
    padding: 0.5rem 0.75rem;
  }

  /* Logo — smaller on mobile */
  .hmw-nav-logo {
    margin-right: auto;
  }
  .hmw-nav-logo img {
    width: 70px;
  }

  /* Show mobile actions, hide desktop nav */
  .hmw-nav-mobile-actions {
    display: flex;
  }
  .hmw-nav-desktop,
  .hmw-nav-actions {
    display: none;
  }

  /* Show fixed exit button on mobile */
  .hmw-mobile-exit-btn {
    display: flex;
  }
}

/* -------------------------------------------------------------------------
   Responsive — Desktop (≥992px)
   ------------------------------------------------------------------------- */
@media (min-width: 992px) {
  /* Hide mobile actions on desktop */
  .hmw-nav-mobile-actions {
    display: none;
  }

  /* Logo — vertically centered across the full header height */
  .hmw-nav-logo {
    position: absolute;
    top: 50%;
    left: 1.25rem;
    transform: translateY(-50%);
  }

  /* Reserve left space for the absolute logo so nav can't overlap it */
  .hmw-nav-inner {
    padding-left: calc(90px + 2.5rem); /* logo width + spacing */
  }

  /* Show desktop topbar elements */
  .hmw-lang-links {
    display: flex;
  }
  .hmw-topbar-divider {
    display: block;
  }
  .hmw-safety-msg {
    display: inline;
  }
}
