/*
  chrome.css: site header and footer, shared by every page.

  Header behavior (measured on live, mirrored by site/js/site.js):
  - At the top of the page the header is transparent and sits over the hero
    (the hero pulls itself up 100px with a negative margin).
  - As soon as the page scrolls, .hdr__bar turns fixed with a navy 80% fill,
    the utility bar slides out 1:1 with scroll (up to its own height), and
    the main row shrinks: desktop 84px to 64px tall (8px taller than live
    since the 2026-11-20 design pass), logo 68px to 50px;
    980px and below: row 75px to 55px, logo 75px to 55px.
  - 980px and below: main nav and quote button hide, the menu toggle opens a
    dropdown (.mnav) under the logo row.
  The in-flow .hdr keeps its full height so content never jumps.
*/

/* ---------- Header ---------- */
/* --hdr-gap: header height minus the 100px every hero pulls up under it. Heroes pull up this
   much more and pad their tops by the same amount, so the photo runs behind the transparent
   utility bar and nothing inside the hero moves (Micah, 2026-11-24). */
:root { --hdr-gap: 22px; }
.hdr {
  position: relative;
  z-index: 100;
  height: 122px;
}
.hdr__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0);
  transition: background-color 300ms ease;
}
/* Soft navy fade behind the transparent header (2026-11-24), so the utility links and nav stay
   readable over bright hero photos. Hidden once the bar is stuck and carries its own fill. */
.hdr__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 34, 57, 0.6) 0%, rgba(15, 34, 57, 0.28) 55%, rgba(15, 34, 57, 0) 100%);
  pointer-events: none;
  transition: opacity 300ms ease;
}
.hdr.is-stuck .hdr__bar::before { opacity: 0; }
.hdr.is-stuck .hdr__bar {
  position: fixed;
  background-color: rgba(20, 43, 70, 0.8);
  transform: translateY(calc(-1 * var(--util-shift, 0px)));
}

/* Utility bar */
.util {
  padding: 12px max(10%, calc((100% - 1080px) / 2)); /* 2026-11-23: even top and bottom, text centered */
  background: transparent; /* 2026-11-24: the hero shows through; the scrolled bar keeps its navy fill */
  border-bottom: 1px solid rgba(255, 255, 255, 0.22); /* thin full-width line between the utility bar and the nav (Micah, 2026-11-24) */
}
.util__in {
  display: flex;
  align-items: flex-start;
  max-width: 1080px;
  margin: 0 auto;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.util a { color: #f5f5f5; transition: opacity 0.4s ease-in-out; }
.util a:hover { opacity: 0.7; }
.util__call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 0 0;
}
.util__call::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.2 1.6 7.6 1.1a1 1 0 0 1 1.1.6l1.2 3a1 1 0 0 1-.3 1.1L8 7a10.6 10.6 0 0 0 5 5l1.2-1.6a1 1 0 0 1 1.1-.3l3 1.2a1 1 0 0 1 .6 1.1l-.5 2.4a1.4 1.4 0 0 1-1.4 1.1C9.3 16.9 3.1 10.7 3.1 3a1.4 1.4 0 0 1 1.1-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.2 1.6 7.6 1.1a1 1 0 0 1 1.1.6l1.2 3a1 1 0 0 1-.3 1.1L8 7a10.6 10.6 0 0 0 5 5l1.2-1.6a1 1 0 0 1 1.1-.3l3 1.2a1 1 0 0 1 .6 1.1l-.5 2.4a1.4 1.4 0 0 1-1.4 1.1C9.3 16.9 3.1 10.7 3.1 3a1.4 1.4 0 0 1 1.1-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.util__num { font-weight: 700; letter-spacing: 0.5px; }
.util__nav ul { display: flex; margin: 0; padding: 0; }
.util__nav li { padding: 0 11px; }
.util__nav li:last-child { padding-right: 0; }

/* Main row (desktop) */
.hdr__main {
  position: relative;
  display: flex;
  justify-content: center;
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
}
.hdr__logo {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.hdr__logo img {
  width: auto;
  height: 68px;
  max-height: 68px;
  transition: height 0.3s, max-height 0.3s;
}
.hdr__nav ul { display: flex; justify-content: center; margin: 0; padding: 0; }
.hdr__nav li { display: flex; padding: 0 11px; }
.hdr__nav a,
.hdr__quote {
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.4s ease-in-out;
}
.hdr__nav a {
  display: flex;
  align-items: center;
  padding: 39px 0; /* design pass 2026-11-20: 8px taller than live, split evenly above and below (2026-11-23) */
  color: #fff;
  font-weight: 500;
}
.hdr__nav a:hover { opacity: 0.7; }
.hdr__quote {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}
.hdr__quote:hover { opacity: 0.9; }
.hdr.is-stuck .hdr__nav a { padding: 29px 0; }
.hdr.is-stuck .hdr__logo img { height: 50px; max-height: 50px; }

/* Services dropdown (desktop, 2026-11-23): two rows of three cards, each an
   icon over the service name. Opens on hover (.is-hover from site.js, plus :hover without
   JS) and on keyboard focus; Escape adds .is-closed. Hidden at 980px and
   below with the rest of the desktop nav. */
.hdr__nav li.hdr__drop { position: static; }
.hdr__caret { width: 10px; height: 10px; margin-left: 7px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.sdrop {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 3;
  width: min(640px, 100vw - 40px);
  padding: 12px 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.hdr__nav .sdrop__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 60px -24px rgba(8, 22, 40, .55), 0 2px 10px rgba(8, 22, 40, .12);
  list-style: none;
}
.hdr__nav .sdrop__grid > li { display: block; padding: 0; }
.hdr__drop:hover .sdrop,
.hdr__drop.is-hover .sdrop,
.hdr__drop:focus-within .sdrop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
.hdr__drop.is-closed .sdrop { opacity: 0; visibility: hidden; transform: translate(-50%, 8px); }
.hdr__drop:hover .hdr__caret,
.hdr__drop.is-hover .hdr__caret,
.hdr__drop:focus-within .hdr__caret { transform: rotate(180deg); }
.hdr__drop.is-closed .hdr__caret { transform: none; }
.hdr__nav .sdrop a.sdrop__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  padding: 22px 8px 20px;
  text-align: center;
  border: 1px solid #e3eaf3;
  border-radius: 10px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  transition: background-color .2s ease, border-color .2s ease;
}
.hdr__nav .sdrop a.sdrop__card:hover { opacity: 1; border-color: #c7d7ec; background: #eef3fa; }
.hdr__nav .sdrop a.sdrop__card:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
/* C5 approved service icons (PNG, 2026-11-23): each is the same 112 x 76 crop of the
   designer's 144 canvas, so the icons keep their designed sizes relative to each other. */
.sdrop__card img { flex: none; width: 88px; height: 60px; object-fit: contain; transition: transform .2s ease; }
.sdrop__card:hover img { transform: translateY(-2px); }
.sdrop__name { color: var(--navy); font-size: 13px; font-weight: 800; line-height: 1.25; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.sdrop__card:hover .sdrop__name { color: var(--blue); }
@media (prefers-reduced-motion: reduce) {
  .sdrop, .hdr__caret, .sdrop__card img { transition: none; }
}

.hdr__toggle,
.mnav { display: none; }

@media (max-width: 980px) {
  .hdr { height: 118px; }
  :root { --hdr-gap: 18px; }
  .util { padding: 10px 16px; }
  .util__in { justify-content: center; }
  .util__call { margin: 0; position: relative; }
  /* Invisible tap pad: the call link fills the bar's height on phones (was 14px tall, now about 34px). Looks unchanged. */
  .util__call::after { content: ""; position: absolute; inset: -10px -8px; }
  .util__nav { display: none; }

  .hdr__main {
    align-items: center;
    justify-content: space-between;
    height: 75px;
    margin-top: 9px;
    padding: 0;
  }
  .hdr.is-stuck .hdr__main { height: 55px; }
  .hdr__logo { position: static; transform: none; margin-right: 30px; }
  .hdr__logo img { height: 75px; max-height: 75px; }
  .hdr.is-stuck .hdr__logo img { height: 55px; max-height: 55px; }
  .hdr__nav, .hdr__quote { display: none; }

  .hdr__toggle {
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 6px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
  }
  .hdr__toggle svg { fill: currentColor; }

  .mnav {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    width: 100%;
    padding: 5%;
    border-top: 3px solid var(--blue-link);
    background: var(--navy);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
  }
  .mnav.is-open { display: block; }
  .mnav ul { margin: 0; padding: 0; }
  .mnav a {
    display: block;
    padding: 10px 5%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .mnav a:hover { opacity: 0.7; }
}

/* ---------- Footer ---------- */
.ftr {
  padding: 50px 0 10px;
  background: var(--navy);
  color: var(--off);
}
.ftr__in { display: flex; flex-direction: column; gap: 60px; }
/* Four columns (2026-11-23): brand, contact, service pages, company pages. */
.ftr__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, .9fr);
  grid-template-areas: "brand contact svc co";
  gap: 40px clamp(24px, 3.4vw, 60px);
}
.ftr__col {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
}
.ftr__col:first-child { grid-area: brand; }
.ftr__col--contact { grid-area: contact; gap: 18px; }
.ftr__col--svc { grid-area: svc; }
.ftr__col--co { grid-area: co; }
.ftr__col--links { gap: 16px; }
.ftr__head { padding: 0; color: #fff; font-size: 15px; font-weight: 800; line-height: 1.2; letter-spacing: 2px; text-transform: uppercase; }
.ftr__col--contact .ftr__head { padding-bottom: 16px; }
.ftr__logo { align-self: flex-start; width: auto; height: 100px; max-height: 100px; }
.ftr__about {
  max-width: 340px;
  color: var(--off);
  font-size: 15px;
  line-height: 1.625;
}
.social { display: flex; gap: 10px; margin: 0; padding: 0; line-height: 26px; }
.social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: var(--off);
  color: var(--navy);
}
.social svg { fill: currentColor; }
.ftr__txt { color: var(--off); font-size: 13px; overflow-wrap: break-word; }
.ftr__h2, .ftr__h3 {
  padding: 0 0 10px;
  color: var(--off);
  font-weight: 400;
  line-height: 1em;
  text-transform: uppercase;
}
.ftr__h2 { font-size: 26px; }
.ftr__h3 { font-size: 14px; letter-spacing: .5px; }
.ftr strong { font-weight: 700; }
.ftr__emails {
  padding: 0 0 13px 1em;
  line-height: 26px;
  list-style: disc;
}
.ftr__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.ftr__links a {
  display: block;
  color: var(--off);
  line-height: 21px;
  transition: opacity 0.4s ease-in-out;
}
.ftr__links a:hover { opacity: 0.7; }
.ftr__bottom {
  padding-top: 8px;
  border-top: 0;
}
.ftr__bottom::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 12px;
  border-top: 1px solid #aab5c2;
}
/* Live keeps a 16px gap beside the copyright (an empty second column). */
.ftr__bottom p { max-width: calc(100% - 16px); color: var(--off); font-size: 14px; overflow-wrap: break-word; }
.ftr__bottom a { color: inherit; }
.ftr__bottom a:hover { text-decoration: underline; }
/* Go-live step 5: the credit sits on the right of the bottom bar, the copyright line on the left. */
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; }
.ftr__bottom::before { flex: 0 0 100%; }
.ftr__bottom p { flex: 1 1 auto; }
.ftr__bottom .ftr__credit { flex: 0 0 auto; max-width: none; }

@media (max-width: 980px) {
  .ftr__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "brand contact" "svc co"; }
  .ftr__emails a { color: var(--off); }
}
@media (max-width: 767px) {
  .ftr__cols { grid-template-areas: "brand brand" "contact contact" "svc co"; }
  .ftr__bottom { padding-bottom: 16px; }
  .ftr__bottom p { max-width: none; }
  /* Mobile pass 2026-11-25: each legal link stays on one line ("Terms of / Service" was splitting). */
  .ftr__bottom a { white-space: nowrap; }
  /* Mobile pass 2026-11-25: the small spaced-caps labels use line-height 1, so when one wraps
     on a phone its two lines nearly touch. Loosen them on phones only (one-line labels gain ~5px). */
  html [class*="eyebrow"] { line-height: 1.4; }
}

/* Wide header (design pass 2026-11-19): on desktop the logo, nav and Get A
   Quote button, and the utility bar above them, sit on the same 1320px column
   as the redesigned page sections. Phones and tablets keep the layout above. */
@media (min-width: 981px) {
  .util { padding-left: 0; padding-right: 0; }
  .util__in, .hdr__main { width: min(1320px, 100% - 2 * clamp(20px, 3.6vw, 60px)); max-width: none; }
}

/* Wide footer (design pass 2026-11-19): same 1320px column as the header on desktop. */
@media (min-width: 981px) {
  .ftr .wrap { width: min(1320px, 100% - 2 * clamp(20px, 3.6vw, 60px)); max-width: none; }
}
