/* Header styles for Home Aquya */
.ha-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(15, 98, 120, 0.06);
  backdrop-filter: blur(10px);
}

.ha-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ha-header__brand {
  display: flex;
  align-items: center;
}

.ha-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.ha-header__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e6fbff 0, #c5f3ff 35%, #0b7285 80%);
  box-shadow: 0 4px 8px rgba(11, 114, 133, 0.25);
}

.ha-header__logo-text {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
  color: #084c61;
}

.ha-header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ha-header__nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ha-header__nav-link {
  position: relative;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: #145a72;
  padding: 0.25rem 0;
}

.ha-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0b7285, #20c997);
  transition: width 0.18s ease-out;
}

.ha-header__nav-link:hover::after,
.ha-header__nav-link:focus-visible::after {
  width: 100%;
}

.ha-header__nav-link:focus-visible {
  outline: 2px solid #0b7285;
  outline-offset: 3px;
  border-radius: 2px;
}

.ha-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  background: linear-gradient(135deg, #0b7285, #1cb59b);
  color: #ffffff;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(11, 114, 133, 0.3);
  white-space: nowrap;
}

.ha-header__cta:hover {
  filter: brightness(1.05);
}

.ha-header__cta:focus-visible {
  outline: 2px solid #0b7285;
  outline-offset: 3px;
}

/* Mobile menu toggle */
.ha-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(8, 76, 97, 0.15);
  background-color: #ffffff;
}

.ha-header__toggle:focus-visible {
  outline: 2px solid #0b7285;
  outline-offset: 3px;
}

.ha-header__toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: #084c61;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ha-header__toggle-bar + .ha-header__toggle-bar {
  margin-top: 4px;
}

/* Open state */
.ha-header--menu-open .ha-header__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.ha-header--menu-open .ha-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.ha-header--menu-open .ha-header__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile layout */
@media (max-width: 768px) {
  .ha-header__inner {
    padding-block: 0.5rem;
  }

  .ha-header__toggle {
    display: inline-flex;
  }

  .ha-header__nav {
    position: fixed;
    inset-inline: 0;
    top: 56px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 98, 120, 0.06);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
  }

  .ha-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .ha-header__nav-link {
    font-size: 1rem;
  }

  .ha-header__cta {
    margin-top: 0.75rem;
    width: 100%;
  }

  .ha-header--menu-open .ha-header__nav {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ha-header__nav,
  .ha-header__toggle-bar {
    transition: none !important;
  }
}
