/* Shared site header + side navigation drawer */

.site-header-main {
  position: relative;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: var(--header-height);
  padding: 10px 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-left {
  justify-self: start;
}

.header-right {
  justify-self: end;
}

.header-logo {
  justify-self: center;
  text-align: center;
  line-height: 0;
}

.header-logo img {
  height: 78px;
  width: auto;
  margin: 0 auto;
}

.menu-btn {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
}

.menu-btn:hover {
  background: var(--color-surface-alt);
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  border-radius: 1px;
}

.header-cart-link {
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  white-space: nowrap;
}

.header-cart-link:hover {
  border-color: var(--color-primary);
}

/* Side navigation drawer */

.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 200;
}

.nav-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--color-surface);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 201;
  padding: 24px 20px;
  overflow-y: auto;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.12);
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer-close {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-primary);
  margin-bottom: 24px;
  padding: 0;
}

.nav-drawer a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
}

.nav-drawer a:hover {
  color: var(--color-primary);
}

/* Service page sub-navigation (assembly, installation, other services) */

.service-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 12px 20px;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
}

.service-page-nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.service-page-nav a:hover {
  border-color: var(--color-primary);
}

.service-page-nav a[aria-current="page"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

@media (min-width: 768px) {
  .site-header-inner {
    padding: 12px 24px;
  }

  .header-logo img {
    height: 90px;
  }
}
