/* ==========================================================================
   Header — Corporate Editorial
   ========================================================================== */

.topbar {
  background: var(--navy-deep);
  color: var(--white);
}

.topbar__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 40px;
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.topbar__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  opacity: 0.95;
}

.topbar__phone .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

.topbar__offices {
  display: flex;
  gap: 22px;
}

.topbar__offices a {
  color: var(--white);
  opacity: 0.65;
  text-decoration: none;
  font-weight: 400;
}

.topbar__offices a:hover {
  opacity: 1;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px -14px rgba(28, 30, 34, 0.22);
  border-bottom-color: transparent;
}

.site-header__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

/* editorial: drop the geometric mark, let a thin rule + serif wordmark do the work */
.brand__mark {
  display: none;
}

.brand img {
  height: 32px;
  width: auto;
  display: block;
}

/* primary nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav__link .caret {
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4.5px solid currentColor;
  opacity: 0.45;
  margin-top: 2px;
}

.nav__item:hover .nav__link,
.nav__item:focus-within .nav__link {
  color: var(--navy-deep);
  border-color: var(--red);
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  box-shadow: 0 12px 24px -8px rgba(28, 30, 34, 0.14);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: 9px 20px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink);
  opacity: 0.8;
  text-decoration: none;
  border-left: 2px solid transparent;
}

.nav__dropdown a:hover {
  border-left-color: var(--red);
  background: var(--paper);
  opacity: 1;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.header__phone {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.85;
}

.header__phone:hover { opacity: 1; }

.btn-quote {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--navy-deep);
  background: transparent;
  border: 1px solid var(--navy-deep);
  padding: 11px 22px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-quote:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line-strong);
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  display: block;
}

@media (max-width: 1100px) {
  .topbar__offices { display: none; }
}

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

  .site-header__inner { padding: 16px 24px; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav.is-open {
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav__link { padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .nav__link .caret { margin-left: auto; }
  .nav__dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-top: none;
    background: var(--paper);
    transform: none;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    padding: 0;
  }
  .nav__item.is-open .nav__dropdown {
    max-height: 500px;
    padding: 6px 0;
  }
  .header__phone { display: none; }
}

@media (max-width: 640px) {
  .topbar__inner { padding: 8px 20px; }
  .site-header__inner { padding: 14px 20px; }
  .brand img { height: 24px; }
  .btn-quote { padding: 9px 16px; font-size: 12px; }
}
