/* Header — matches live Accurate Custom site */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-solid {
  background: #ffffff;
  box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.1);
}

.header-inner {
  width: min(100% - 40px, 1170px);
  margin: 0 auto;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  flex: 0 0 auto;
  max-width: 180px;
}

.site-logo img {
  width: 160px;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15px;
  text-transform: uppercase;
  color: #4d4d4d;
  transition: color 0.2s ease;
}

.site-header:not(.is-solid) .nav-link {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.nav-link:hover,
.nav-link.is-active {
  color: #eeac26 !important;
}

.header-call {
  background: #eeac26;
  color: #ffffff !important;
  border: 1px solid #cc9955;
  border-radius: 8px;
  padding: 12px 26px;
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15px;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header-call:hover {
  background: #ffffff;
  color: #111111 !important;
  border-color: #111111;
  transform: scale(1.05);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #4d4d4d;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.2s ease;
}

.site-header:not(.is-solid) .nav-toggle span {
  background: #ffffff;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Inner pages: always solid header */
body:not(.page-home) .site-header {
  background: #ffffff;
  box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.1);
  position: sticky;
}

body:not(.page-home) .nav-link {
  color: #4d4d4d;
  text-shadow: none;
}

body:not(.page-home) .nav-toggle span {
  background: #4d4d4d;
}

body.page-home {
  padding-top: 0;
}

@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
  }

  .header-call {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: 90px 0 auto 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 12px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    color: #4d4d4d !important;
    text-shadow: none;
    padding: 14px 8px;
    border-bottom: 1px solid #f0f0f0;
  }

  .site-nav .header-call {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .site-logo img {
    width: 140px;
  }
}
