/* =========================================================
   Helios shared header styles
   File: css/header.css

   Controls:
   .top-banner, .shared-header, .shared-nav, dropdowns,
   mobile menu, and mobile telehealth links
   ========================================================= */


/* =========================
   TOP BANNER
========================= */

.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100000;
  background: #fcbb28;
  color: #fff;
  padding: 8px 15px;
  transition: transform 0.3s ease;
  font-family: "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.top-banner.hide-banner {
  transform: translateY(-100%);
}

.top-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.top-banner a {
  color: #fff;
  text-decoration: none;
}

.top-banner-social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-banner-facebook {
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-banner-facebook i {
  font-size: 22px;
  line-height: 1;
}

.top-banner-psychology {
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.pt-logo-text {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1;
}

.top-banner-telehealth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.telehealth-text {
  font-weight: bold;
}

.top-banner-btn {
  background: #fff;
  color: #765507 !important;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.top-banner-btn:hover,
.top-banner-btn:focus {
  background: #2b2b2b;
  color: #fff !important;
  text-decoration: none;
}


/* =========================
   SHARED HEADER
========================= */

.shared-header,
.shared-header * {
  box-sizing: border-box;
}

.shared-header {
  position: fixed;
  top: 42px;
  left: 0;
  width: 100%;
  z-index: 99999;
  padding: 0 15px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  transition: top 0.3s ease;
}

.shared-header.banner-hidden {
  top: 0;
}

.shared-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 82px;
  background: #fff;
  border-radius: 0 0 16px 16px;
  border: 1px solid rgba(231, 215, 187, 0.75);
  border-top: 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
}

.shared-logo-link {
  display: flex;
  align-items: center;
  padding: 10px 10px;
}

.shared-logo {
  max-height: 62px;
  width: auto;
  display: block;
}

.shared-nav {
  display: flex;
  align-items: stretch;
  margin-left: auto;
  margin-right: 45px;
  text-transform: uppercase;
}

.shared-nav a,
.shared-dropdown-toggle {
  display: flex;
  align-items: center;
  min-height: 82px;

  /* adjusts with screen size */
  padding-left: clamp(6px, 0.75vw, 12px);
  padding-right: clamp(6px, 0.75vw, 12px);
  font-size: clamp(12px, 0.9vw, 14px);

  color: #666;
  background: transparent;
  border: 0;
  text-decoration: none;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Dropdown arrow/caret positioning */
.shared-dropdown-toggle {
  gap: 5px;
}

.shared-caret {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.2s ease;
}

/* Right arrow turns down when dropdown is open */
.shared-dropdown.open > .shared-dropdown-toggle .shared-caret {
  transform: rotate(90deg);
}

.shared-nav a:hover,
.shared-nav a:focus,
.shared-dropdown-toggle:hover,
.shared-dropdown-toggle:focus,
.shared-dropdown.open > .shared-dropdown-toggle {
  background: #fcbb28;
  color: #fff;
  text-decoration: none;
  outline: none;
}

.shared-dropdown {
  position: relative;
}

.shared-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid #e7d7bb;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  z-index: 100000;
  overflow: hidden;
}

.shared-dropdown.open .shared-dropdown-menu {
  display: block;
}

.shared-dropdown-menu a {
  display: block;
  min-height: 0;
  padding: 12px 16px;
  color: #666;
  background: #fff;
  white-space: nowrap;
  font-size: 14px;
}

.shared-dropdown-menu a:hover,
.shared-dropdown-menu a:focus {
  background: #fcbb28;
  color: #fff;
}

.shared-menu-toggle {
  display: none;
  margin-right: 15px;
  background: #fff6e4;
  border: 1px solid #e7d7bb;
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
}

.shared-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #765507;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}


/* =========================
   MOBILE TELEHEALTH
========================= */

.mobile-telehealth-menu {
  display: none;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {
  .shared-nav a,
  .shared-dropdown-toggle {
    letter-spacing: 0;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {

  .top-banner {
    display: none;
  }

  .shared-header {
    top: 0;
    padding: 0 10px;
  }

  .shared-header.banner-hidden {
    top: 0;
  }

  .shared-header-inner {
    display: block;
    min-height: 70px;
    border-radius: 0 0 14px 14px;
  }

  .shared-logo-link {
    min-height: 70px;
  }

  .shared-logo {
    max-height: 50px;
  }

  .shared-menu-toggle {
    display: block;
    position: absolute;
    top: 16px;
    right: 15px;
  }

  .shared-nav {
    display: block;
    width: 100%;
    margin-left: 0;
    border-top: 1px solid #e7d7bb;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .shared-header.nav-open .shared-nav {
    max-height: 800px;
  }

  /* Hamburger to X animation */
  .shared-header.nav-open .shared-menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .shared-header.nav-open .shared-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .shared-header.nav-open .shared-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .shared-nav a,
  .shared-dropdown-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 0;
    padding: 13px 20px;
    text-align: left;
    font-size: 14px;
  }

  .shared-dropdown-toggle {
    justify-content: space-between;
  }

  .shared-dropdown-toggle .shared-caret {
    margin-left: auto;
  }

  .shared-dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .shared-dropdown-menu a {
    padding-left: 38px;
  }

  .mobile-telehealth-menu {
    display: block;
    padding: 15px 20px;
    border-top: 1px solid #e7d7bb;
    background: #fff6e4;
  }

  .mobile-telehealth-menu span {
    display: block;
    color: #777;
    font-weight: bold;
    margin-bottom: 10px;
  }

  .mobile-telehealth-menu a {
    display: block;
    padding: 10px 0;
    color: #999;
    text-transform: uppercase;
  }

}
