/* ============================================================
   HEADER.CSS — Navigation & Mobile Menu
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  --header-h: 72px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-base);
  display: flex;
  align-items: center;
}

.site-header .container {
  width: 100%;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 28px;
}

/* ── Logo ───────────────────────────────────────────────── */
.header-logo {
  justify-self: start;
  display: flex;
  align-items: center;
}
.header-logo img {
  max-width: 155px;
  height: auto;
  display: block;
}
/* ── Primary nav ────────────────────────────────────────── */
.header-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--blue);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.nav-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--t-fast);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 190px;
  padding: 6px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--t-base), transform var(--t-base);
  z-index: 10;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: var(--text-sm);
  color: var(--text-mid);
  transition: background var(--t-fast), color var(--t-fast);
}

.nav-dropdown a:hover {
  background: var(--blue-tint);
  color: var(--blue);
}

/* ── Header right ───────────────────────────────────────── */
.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-soft);
  transition: color var(--t-fast);
}

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

.header-phone svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Mobile burger ──────────────────────────────────────── */
.header-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
}

.burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
  transform-origin: center;
}

.header-burger.is-open .burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header-burger.is-open .burger-bar:nth-child(2) {
  opacity: 0;
}

.header-burger.is-open .burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile menu ────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  padding: var(--space-md) var(--container-px);
  flex-direction: column;
  gap: 2px;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  transition: color var(--t-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-menu a:hover {
  color: var(--blue);
}

.mobile-menu a:last-of-type {
  border-bottom: none;
}

.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}