/* ============================================
   Sound Technologies - Navigation
   Mobile-first
   ============================================ */

.st-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--st-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.st-header-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.st-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

/* --- Logo --- */
.st-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.st-logo img {
  height: 36px;
  width: auto;
}

/* --- Desktop Nav --- */
.st-nav {
  display: none;
}

.st-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.st-nav-link {
  display: block;
  color: var(--st-mid);
  text-decoration: none;
  font-family: var(--st-font);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.st-nav-link:hover,
.st-nav-link:focus {
  color: var(--st-navy);
}

.st-nav-active {
  color: var(--st-navy);
  font-weight: 500;
}

/* --- Right side group (phone + login) --- */
.st-header-right {
  display: none;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

/* --- Client Login Button --- */
.st-nav-login {
  display: none;
  padding: 9px 22px;
  background: var(--st-green);
  color: var(--st-white);
  text-decoration: none;
  font-family: var(--st-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.st-nav-login:hover {
  background: var(--st-green-hover);
  transform: translateY(-1px);
}

/* --- Phone --- */
.st-header-phone {
  display: flex;
  align-items: center;
  color: var(--st-mid);
  text-decoration: none;
  font-family: var(--st-font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.st-header-phone:hover {
  color: var(--st-navy);
}

.st-phone-icon {
  margin-right: 6px;
  font-size: 16px;
}

/* --- Hamburger Toggle --- */
.st-mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.st-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--st-dark);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================
   Mobile Menu Overlay
   ============================================ */

.st-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  background: var(--st-white);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.st-mobile-menu.st-mobile-menu-open {
  transform: translateX(0);
}

/* --- Overlay backdrop --- */
.st-mobile-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.st-mobile-backdrop.st-mobile-backdrop-visible {
  opacity: 1;
  pointer-events: auto;
}

/* --- Header (logo + close) --- */
.st-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.st-mobile-menu-logo img {
  height: 34px;
  width: auto;
}

.st-mobile-close {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.st-mobile-close span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--st-dark);
  border-radius: 1px;
  position: absolute;
  top: 50%;
  left: 50%;
}

.st-mobile-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.st-mobile-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* --- Body (nav links + CTA) --- */
.st-mobile-menu-body {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.st-mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.st-mobile-menu-list li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.st-mobile-menu-list a {
  display: block;
  padding: 16px 24px;
  color: var(--st-dark);
  text-decoration: none;
  font-family: var(--st-font);
  font-size: 1rem;
  font-weight: 400;
  transition: color 0.2s ease, background 0.2s ease;
}

.st-mobile-menu-list a:hover {
  color: var(--st-navy);
  background: rgba(0, 0, 0, 0.02);
}

.st-mobile-menu-list .st-mobile-active {
  color: var(--st-navy);
  font-weight: 600;
}

.st-mobile-menu-cta {
  display: block;
  margin: 20px 24px 0;
  padding: 14px;
  background: var(--st-green);
  color: var(--st-white);
  text-decoration: none;
  font-family: var(--st-font);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.st-mobile-menu-cta:hover {
  background: var(--st-green-hover);
}

/* --- Footer (contact info) --- */
.st-mobile-menu-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.st-mobile-menu-phone,
.st-mobile-menu-email {
  display: block;
  color: var(--st-mid);
  text-decoration: none;
  font-family: var(--st-font);
  font-size: 0.9rem;
  line-height: 1.8;
  transition: color 0.2s ease;
}

.st-mobile-menu-phone:hover,
.st-mobile-menu-email:hover {
  color: var(--st-navy);
}

/* Prevent body scroll when menu open */
body.st-body-locked {
  overflow: hidden;
}

/* ============================================
   Tablet (600px+)
   ============================================ */
@media (min-width: 600px) {
  .st-header-inner {
    padding: 18px 24px;
  }

  .st-logo img {
    height: 42px;
  }
}

/* ============================================
   Desktop (960px+)
   ============================================ */
@media (min-width: 960px) {
  .st-header-inner {
    padding: 0 24px;
    min-height: 80px;
  }

  .st-logo {
    align-self: center;
  }

  .st-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
  }

  .st-nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .st-nav-list li {
    border-bottom: none;
  }

  .st-nav-link {
    padding: 30px 20px;
    font-size: 14px;
    position: relative;
    white-space: nowrap;
  }

  .st-nav-link::after {
    content: '';
    position: absolute;
    bottom: 22px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--st-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

  .st-nav-link:hover::after,
  .st-nav-active::after {
    transform: scaleX(1);
  }

  .st-nav-link:hover {
    background: none;
  }

  .st-header-right {
    display: flex;
  }

  .st-nav-login {
    display: inline-block;
  }

  .st-mobile-toggle {
    display: none;
  }

  .st-mobile-menu,
  .st-mobile-backdrop {
    display: none;
  }

  .st-logo img {
    height: 46px;
  }
}

/* ============================================
   Large Desktop (1200px+)
   ============================================ */
@media (min-width: 1200px) {
  .st-header-inner {
    padding: 0 32px;
  }

  .st-nav-list {
    gap: 12px;
  }

  .st-nav-link {
    padding: 30px 24px;
    font-size: 15px;
  }

  .st-nav-link::after {
    bottom: 22px;
    left: 24px;
    right: 24px;
  }

  .st-nav-login {
    padding: 10px 26px;
    font-size: 14px;
  }
}
