/* Header styles for UrbanMaintenancePL */

.um-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(5, 16, 37, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #f5f7fb;
}

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

.um-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.um-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.um-header__logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 20%, #4ade80, #16a34a 45%, #0b192f 100%);
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.25);
}

.um-header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.um-header__brand-name {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.um-header__brand-tagline {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #cbd5f5;
  white-space: nowrap;
}

/* Navigation */

.um-header__nav {
  margin-left: auto;
}

.um-header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.um-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #e5edff;
  text-decoration: none;
  padding: 0.25rem 0;
}

.um-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  transition: width 0.18s ease-out;
}

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

.um-header__nav-link:hover,
.um-header__nav-link:focus-visible {
  color: #ffffff;
}

.um-header__nav-item--cta .um-header__nav-link--cta {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #04101f;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}

.um-header__nav-item--cta .um-header__nav-link--cta::after {
  display: none;
}

.um-header__nav-item--cta .um-header__nav-link--cta:hover,
.um-header__nav-item--cta .um-header__nav-link--cta:focus-visible {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  border-color: rgba(190, 242, 100, 0.9);
}

/* Mobile nav toggle */

.um-header__nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #e5edff;
}

.um-header__nav-toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: currentColor;
  transition: transform 0.16s ease-out, opacity 0.12s ease-out, width 0.16s ease-out;
}

.um-header__nav-toggle-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.um-header__nav-toggle:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
}

/* Mobile menu state */

.um-header--menu-open .um-header__nav-toggle-bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
  width: 22px;
}

.um-header--menu-open .um-header__nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.um-header--menu-open .um-header__nav-toggle-bar:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 22px;
}

/* Focus styles for links */

.um-header a:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 3px;
}

/* Responsive layout */

@media (max-width: 768px) {
  .um-header__inner {
    padding: 0.6rem 1rem;
  }

  .um-header__brand-tagline {
    display: none;
  }

  .um-header__nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .um-header__nav {
    position: fixed;
    inset: 64px 0 auto 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(5, 16, 37, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    transition: max-height 0.2s ease-out;
  }

  .um-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 1rem;
    gap: 0.35rem;
  }

  .um-header__nav-link {
    padding: 0.6rem 0.25rem;
  }

  .um-header__nav-item--cta .um-header__nav-link--cta {
    width: 100%;
    justify-content: center;
    margin-top: 0.35rem;
  }

  .um-header--menu-open .um-header__nav {
    max-height: 280px;
  }
}

@media (min-width: 769px) {
  .um-header__nav {
    display: block;
  }
}
