/* Shared site header styles */
.site-header {
  background: rgba(11, 11, 13, 0.92);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242, 182, 50, 0.15);
  padding-top: env(safe-area-inset-top, 0px);
  transition: filter 0.25s ease;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  position: relative;
  width: 100%;
  flex-wrap: nowrap;
}

.site-header .phone-button {
  order: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  min-width: 150px;
  background: linear-gradient(135deg, var(--highlight), var(--accent-hover));
  color: #0b0b0d;
  border-radius: 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: filter 0.2s ease-in-out;
  border: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(242, 182, 50, 0.25);
}

.site-header .phone-button:hover,
.site-header .phone-button:focus-visible {
  filter: brightness(1.1);
}

.site-header .logo-center {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  order: 1;
  flex-shrink: 0;
}

.site-header .logo {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--highlight);
  transition: color var(--transition, 0.2s ease-in-out);
  white-space: nowrap;
}

.site-header .logo:hover,
.site-header .logo:focus-visible {
  color: var(--accent-hover);
}

.site-header .nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  width: auto;
  flex: 1;
  order: 2;
}

.site-header .nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  align-items: center;
}

.site-header .nav-links a {
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition, 0.2s ease-in-out),
    color var(--transition, 0.2s ease-in-out);
}

.site-header .nav-links a:hover,
.site-header .nav-links a:focus-visible {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

.site-header .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.site-header .hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--highlight);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header .hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header .hamburger.active span:nth-child(2) {
  opacity: 0;
}

.site-header .hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .site-header nav {
    gap: 0.75rem;
  }

  .site-header .nav-links {
    gap: 1rem;
  }
}

@media (max-width: 900px) {
  .site-header .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .site-header .phone-button {
    min-width: 120px;
    font-size: 0.78rem;
    padding: 0.42rem 0.85rem;
    letter-spacing: 0.06em;
  }

  .site-header .logo {
    font-size: 1rem;
  }

  .site-header .logo-center {
    justify-content: center;
  }

  .site-header .nav-right {
    justify-content: flex-end;
    width: auto;
  }

  .site-header .hamburger {
    display: flex;
  }

  .site-header .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 11, 13, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(242, 182, 50, 0.15);
    border-radius: 0.85rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    z-index: 1001;
  }

  .site-header .nav-links.active {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    padding: 0.4rem 0;
  }

  .site-header .nav-links a {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-bottom: none;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
  }

  .site-header .nav-links a + a {
    border-top: 1px solid rgba(242, 182, 50, 0.12);
  }

  .site-header .nav-links a:hover,
  .site-header .nav-links a:focus-visible {
    border-left-color: var(--accent-hover);
    background: rgba(242, 182, 50, 0.08);
  }
}

@media (max-width: 600px) {
  .site-header nav {
    gap: 0.45rem;
  }

  .site-header .nav-right {
    order: 1;
    flex: 0;
    margin-right: auto;
    justify-content: flex-start;
  }

  .site-header .logo-center {
    order: 2;
    flex: 1;
    justify-content: center;
    min-width: 0;
  }

  .site-header .phone-button {
    order: 3;
  }
}

@media (max-width: 540px) {
  .site-header nav {
    gap: 0.35rem;
  }

  .site-header .phone-button {
    min-width: 100px;
    font-size: 0.68rem;
    padding: 0.35rem 0.65rem;
    letter-spacing: 0.04em;
  }

  .site-header .logo {
    font-size: 0.93rem;
  }
}
