/* Two-tier transport-style header, adapted to Riteway Movers. */
.site-header {
  --header-navy: #082a32;
  --header-ink: #12232a;
  --header-orange: #f28c18;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: clamp(240px, 24vw, 350px) minmax(0, 1fr);
  grid-template-rows: 44px 76px;
  overflow: visible;
  background: #fff;
  border-bottom: 1px solid rgba(9, 35, 43, 0.12);
  box-shadow: 0 6px 24px rgba(8, 42, 50, 0.08);
}

.site-header::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: clamp(240px, 24vw, 350px);
  height: 120px;
  background: var(--header-navy);
  clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
  pointer-events: none;
}

.header-utility-row {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  height: 44px;
  color: #f4f8f8;
  background: var(--header-navy);
}

.header-utility-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 32px);
  padding: 0 clamp(24px, 4vw, 64px);
}

.header-utility-item {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.header-utility-item > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}

.header-utility-item strong {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.header-utility-item > span:last-child > span {
  color: rgba(244, 248, 248, 0.76);
  font-size: 0.68rem;
}

.header-utility-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  color: #f8a14a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.header-utility-icon svg {
  width: 14px;
  height: 14px;
}

.header-utility-item--email:hover,
.header-utility-item--phone:hover {
  color: #ffc400;
}

.header-service-area {
  color: rgba(244, 248, 248, 0.7);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-service-area i {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 7px 2px;
  border-radius: 50%;
  background: #f28c18;
}

.header-main-row {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  grid-row: 2;
  height: 76px;
  background: #fff;
}

.header-main-row .brand-link {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 0;
  width: clamp(240px, 24vw, 350px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding-left: clamp(24px, 5vw, 70px);
  background: var(--header-navy);
  clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
  color: #172c31;
  text-decoration: none;
}

.header-main-row .brand-logo-img {
  width: 44px;
  height: 44px;
  max-width: none;
  flex: 0 0 44px;
  object-fit: contain;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-wordmark strong {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.brand-wordmark > span {
  margin-top: 4px;
  color: rgba(244, 248, 248, 0.72);
  font-family: var(--font-heading);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.header-main-row .header-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: none;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(24px, 4vw, 64px) 0 clamp(252px, 24vw, 362px);
}

.header-main-row .site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.header-main-row .nav-list {
  gap: clamp(0px, 0.55vw, 9px);
}

.header-main-row .nav-link {
  position: relative;
  padding: 12px clamp(8px, 0.85vw, 14px);
  color: #25373b;
  font-size: 0.84rem;
  font-weight: 650;
  white-space: nowrap;
}

.header-main-row .nav-link:hover,
.header-main-row .nav-item:hover > .nav-link,
.header-main-row .nav-link:focus-visible,
.header-main-row .nav-link.is-active {
  color: #d8512b;
  background: transparent;
}

.header-main-row .nav-link.is-active::after {
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 2px;
  background: #f28c18;
}

.header-main-row .header-actions {
  flex: 0 0 auto;
  gap: 10px;
}

.header-main-row .header-quote-btn {
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff642e, #f2532b);
  box-shadow: 0 7px 18px rgba(242, 83, 43, 0.2);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 750;
  white-space: nowrap;
}

.header-main-row .header-quote-btn:hover {
  background: linear-gradient(135deg, #f2532b, #de4625);
  box-shadow: 0 9px 22px rgba(242, 83, 43, 0.28);
  color: #fff;
  transform: translateY(-1px);
}

.header-main-row .header-quote-btn .icon-arrow {
  width: 14px;
  height: 14px;
}

.header-main-row .mobile-toggle {
  display: none;
}

.header-main-row .brand-link:hover .brand-logo-img {
  transform: translateY(-1px);
}

@media (max-width: 1200px) {
  .header-service-area {
    display: none;
  }

  .header-main-row .header-inner {
    gap: 12px;
  }

  .header-main-row .nav-list {
    gap: 0;
  }

  .header-main-row .nav-link {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 0.8rem;
  }
}

@media (max-width: 992px) {
  .site-header {
    grid-template-columns: clamp(220px, 24vw, 250px) minmax(0, 1fr);
    grid-template-rows: 42px 72px;
  }

  .site-header::before {
    width: clamp(220px, 24vw, 250px);
    height: 114px;
  }

  .header-utility-row {
    grid-column: 2;
    grid-row: 1;
    height: 42px;
  }

  .header-utility-inner {
    justify-content: flex-end;
    padding-right: 24px;
    padding-left: 24px;
  }

  .header-utility-item--hours,
  .header-utility-item--email {
    display: none;
  }

  .header-main-row {
    grid-row: 2;
    height: 72px;
  }

  .header-main-row .brand-link {
    width: clamp(220px, 24vw, 250px);
    padding-left: 24px;
  }

  .header-main-row .header-inner {
    height: 72px;
    padding-right: 24px;
    padding-left: clamp(232px, 24vw, 270px);
  }

  .header-main-row .site-nav {
    display: none;
  }

  .header-main-row .mobile-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 196px minmax(0, 1fr);
    grid-template-rows: 68px;
  }

  .site-header::before {
    width: 196px;
    height: 68px;
  }

  .header-utility-row {
    display: none;
  }

  .header-main-row {
    grid-row: 1;
    height: 68px;
  }

  .header-main-row .brand-link {
    width: 196px;
    padding-left: 18px;
  }

  .header-main-row .header-inner {
    height: 68px;
    padding-right: 16px;
    padding-left: 208px;
  }

  .header-main-row .brand-logo-img {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-wordmark strong {
    font-size: 1.05rem;
  }

  .brand-wordmark > span {
    font-size: 0.48rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .site-header::before {
    width: 170px;
  }

  .header-main-row .brand-link {
    width: 170px;
    gap: 7px;
    padding-left: 12px;
  }

  .header-main-row .header-inner {
    padding-right: 12px;
    padding-left: 178px;
  }

  .header-main-row .header-actions {
    gap: 7px;
  }

  .header-main-row .header-quote-btn {
    display: inline-flex;
    min-height: 38px;
    gap: 4px;
    padding: 8px 10px;
    font-size: 0.74rem;
  }

  .header-main-row .header-quote-btn .icon-arrow {
    display: none;
  }

  .header-main-row .mobile-toggle {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 360px) {
  .site-header {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .site-header::before,
  .header-main-row .brand-link {
    width: 150px;
  }

  .header-main-row .brand-link {
    gap: 5px;
    padding-left: 10px;
  }

  .header-main-row .header-inner {
    padding-left: 156px;
  }

  .header-main-row .brand-logo-img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand-wordmark strong {
    font-size: 0.98rem;
  }

  .brand-wordmark > span {
    font-size: 0.42rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-main-row .brand-logo-img,
  .header-main-row .header-quote-btn {
    transition: none;
  }
}

/* Brand-led header layout */
.site-header {
  --header-navy: #082a32;
  --header-accent: var(--color-yellow);
  display: block;
  background: #fff;
  border-bottom: 1px solid rgba(8, 42, 50, 0.12);
  box-shadow: 0 5px 18px rgba(8, 42, 50, 0.08);
}

.site-header::before {
  content: none;
}

.header-utility-row {
  grid-column: auto;
  grid-row: auto;
  height: 42px;
  color: var(--header-navy);
  background: var(--header-accent);
}

.header-utility-inner {
  width: 100%;
  max-width: var(--container-max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
}

.header-utility-item strong,
.header-utility-item > span:last-child > span,
.header-service-area {
  color: var(--header-navy);
}

.header-utility-item strong,
.header-service-area {
  font-size: 0.67rem;
}

.header-utility-item > span:last-child > span {
  opacity: 0.82;
}

.header-utility-icon {
  color: var(--header-navy);
  border-color: rgba(8, 42, 50, 0.18);
  background: rgba(255, 255, 255, 0.3);
}

.header-utility-item--email:hover,
.header-utility-item--phone:hover {
  color: #fff;
}

.header-service-area i {
  background: var(--header-navy);
}

.header-main-row {
  grid-column: auto;
  grid-row: auto;
  height: 82px;
  background: #fff;
}

.header-main-row .header-inner {
  width: 100%;
  max-width: var(--container-max-width);
  height: 82px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.8vw, 24px);
}

.header-main-row .header-inner > .brand-link {
  position: static;
  z-index: auto;
  width: auto;
  flex: 0 0 auto;
  justify-content: flex-start;
  gap: 10px;
  padding: 0;
  color: var(--header-navy);
  background: transparent;
  clip-path: none;
}

.header-main-row .brand-logo-img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.brand-wordmark strong {
  color: var(--header-navy);
  font-size: 1.22rem;
}

.brand-wordmark > span {
  color: #607077;
  font-size: 0.55rem;
}

.header-main-row .site-nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

.header-main-row .nav-list {
  justify-content: center;
  gap: clamp(0px, 0.45vw, 7px);
}

.header-main-row .nav-link {
  padding: 10px clamp(7px, 0.75vw, 12px);
  border-radius: 7px;
  color: #26383d;
  font-size: 0.84rem;
}

.header-main-row .nav-link:hover,
.header-main-row .nav-item:hover > .nav-link,
.header-main-row .nav-link:focus-visible,
.header-main-row .nav-link.is-active {
  color: var(--header-navy);
  background: rgba(252, 189, 11, 0.16);
}

.header-main-row .nav-link.is-active::after {
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 2px;
  background: var(--header-accent);
}

.header-main-row .nav-dropdown-item a:hover,
.header-main-row .nav-dropdown-item a:focus-visible,
.header-main-row .nav-dropdown-item a.is-active {
  color: var(--header-navy);
  background: rgba(252, 189, 11, 0.14);
}

.header-main-row .header-quote-btn {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 7px;
  background: var(--header-navy);
  box-shadow: 0 5px 14px rgba(8, 42, 50, 0.16);
  color: #fff;
}

.header-main-row .header-quote-btn:hover {
  background: #123d47;
  box-shadow: 0 7px 18px rgba(8, 42, 50, 0.2);
  color: #fff;
}

.header-main-row .mobile-toggle {
  border-color: rgba(8, 42, 50, 0.16);
  background: #fff;
  color: var(--header-navy);
}

.header-main-row .mobile-toggle-bars span {
  background: var(--header-navy);
}

.header-main-row .nav-link:focus-visible,
.header-main-row .header-quote-btn:focus-visible,
.header-main-row .mobile-toggle:focus-visible,
.header-utility-item:focus-visible {
  outline: 3px solid var(--header-accent);
  outline-offset: 3px;
}

@media (max-width: 1200px) {
  .header-main-row .header-inner {
    gap: 12px;
  }

  .header-main-row .nav-list {
    gap: 0;
  }

  .header-main-row .nav-link {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 0.79rem;
  }
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr;
    grid-template-rows: 40px 74px;
  }

  .header-utility-row {
    grid-column: 1;
    grid-row: 1;
    height: 40px;
  }

  .header-utility-item--hours,
  .header-service-area {
    display: none;
  }

  .header-utility-inner {
    justify-content: flex-end;
  }

  .header-main-row {
    grid-row: 2;
    height: 74px;
  }

  .header-main-row .header-inner {
    height: 74px;
  }

  .header-main-row .site-nav {
    display: none;
  }

  .header-main-row .mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-rows: 72px;
  }

  .header-utility-row {
    display: none;
  }

  .header-main-row {
    grid-row: 1;
    height: 72px;
  }

  .header-main-row .header-inner {
    height: 72px;
  }
}

@media (max-width: 480px) {
  .header-main-row .header-inner {
    gap: 8px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .header-main-row .header-inner > .brand-link {
    gap: 7px;
  }

  .header-main-row .brand-logo-img {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-wordmark strong {
    font-size: 1.02rem;
  }

  .brand-wordmark > span {
    font-size: 0.46rem;
    letter-spacing: 0.08em;
  }

  .header-main-row .header-quote-btn {
    display: inline-flex;
    min-height: 38px;
    gap: 4px;
    padding: 8px 9px;
    font-size: 0.7rem;
  }

  .header-main-row .header-quote-btn .icon-arrow {
    display: none;
  }

  .header-main-row .mobile-toggle {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 360px) {
  .header-main-row .header-inner {
    gap: 6px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .header-main-row .header-inner > .brand-link {
    gap: 5px;
  }

  .header-main-row .brand-logo-img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand-wordmark strong {
    font-size: 0.95rem;
  }

  .brand-wordmark > span {
    font-size: 0.4rem;
    letter-spacing: 0.05em;
  }

  .header-main-row .header-quote-btn {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 0.66rem;
  }
}

/* Four-item contact strip */
.header-utility-row {
  --header-accent: #fcbd0b;
  height: auto;
  min-height: 58px;
  color: var(--header-navy);
  background: #fcbd0b;
}

.header-utility-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-content: stretch;
  gap: clamp(8px, 1.1vw, 16px);
  height: auto;
  min-height: 58px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.header-utility-inner .header-utility-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--header-navy);
  white-space: normal;
}

.header-utility-item > span:last-child {
  min-width: 0;
  line-height: 1.2;
}

.header-utility-item strong {
  color: var(--header-navy);
  font-size: 0.65rem;
}

.header-utility-item > span:last-child > span {
  color: rgba(8, 42, 50, 0.82);
  font-size: 0.65rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.header-utility-icon {
  width: 29px;
  height: 29px;
  flex-basis: 29px;
  color: var(--header-navy);
  border-color: rgba(8, 42, 50, 0.17);
  background: rgba(8, 42, 50, 0.08);
}

.header-utility-icon svg {
  width: 15px;
  height: 15px;
}

.header-utility-inner .header-utility-item--email:hover,
.header-utility-inner .header-utility-item--phone:hover {
  color: var(--header-navy);
}

.header-utility-inner .header-utility-item:hover .header-utility-icon {
  border-color: rgba(8, 42, 50, 0.28);
  background: rgba(8, 42, 50, 0.14);
}

.header-utility-inner .header-utility-item:focus-visible {
  outline-color: var(--header-navy);
}

@media (max-width: 1050px) and (min-width: 641px) {
  .site-header {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(80px, auto) 74px;
  }

  .header-utility-row {
    grid-column: 1;
    grid-row: 1;
    min-height: 80px;
  }

  .header-utility-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 22px;
    min-height: 80px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
}

/* Use the supplied compact mark beside the existing Riteway wordmark. */
.header-main-row .header-inner > .brand-link {
  gap: 8px;
}

.header-main-row .header-inner > .brand-link .brand-logo-img {
  width: 18px;
  height: 38px;
  flex: 0 0 18px;
  object-fit: contain;
}

@media (max-width: 480px) {
  .header-main-row .header-inner > .brand-link {
    gap: 7px;
  }

  .header-main-row .header-inner > .brand-link .brand-logo-img {
    width: 16px;
    height: 34px;
    flex-basis: 16px;
  }
}

@media (max-width: 360px) {
  .header-main-row .header-inner > .brand-link {
    gap: 5px;
  }

  .header-main-row .header-inner > .brand-link .brand-logo-img {
    width: 15px;
    height: 32px;
    flex-basis: 15px;
  }
}

/* Keep the off-canvas drawer logo separate from the clipped header brand panel. */
.header-main-row .mobile-drawer .brand-link {
  position: static;
  inset: auto;
  z-index: auto;
  width: auto;
  padding: 0;
  background: transparent;
  clip-path: none;
  color: inherit;
}

.header-main-row .mobile-drawer .brand-logo-img {
  width: 18px;
  height: 38px;
  max-width: none;
  flex: 0 0 18px;
  object-fit: contain;
}
