/* ============================================================================
   HTM CHROME: header, nav, drawer, footer, sticky bar, shared overrides.
   Tokens, buttons and base type live in design-system.css (read its header).

   Sections
     1. Site chrome wrapper (sticky, collapses to the nav only)
     2. Trust rail
     3. Nav and hamburger
     4. Drawer
     5. Footer (two markup variants share one look)
     6. Mobile sticky action bar (htm-sticky-ctas)
     7. Utility components (pills)
     8. CASCADE AUTHORITY: overrides that must beat later stylesheets

   Rule of thumb: a selector prefixed with ":root" is here to outrank a rule in
   page-layouts, htm-brand, htm-compat or htm-services-hub that loads later.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. SITE CHROME WRAPPER
   The whole header is sticky with a NEGATIVE top, so after the first scroll
   only the nav stays pinned (59px desktop, 49px mobile) instead of 145 to
   178px. --site-chrome-height is measured and written by quote-flow.js.
   ---------------------------------------------------------------------------- */

.site-chrome {
  position: sticky;
  top: calc(-1 * (var(--site-chrome-height, 146px) - var(--htm-nav-h)));
  z-index: var(--z-chrome);
  background: var(--bg-white);
}

/* The rail is a normal block inside the wrapper. */
.site-chrome .htm-trust-rail {
  position: static;
}

/* Short landscape screens: no pinned header at all, the page needs the room. */
@media (max-height: 560px) {
  .site-chrome {
    position: static;
  }
}

/* ----------------------------------------------------------------------------
   2. TRUST RAIL
   ---------------------------------------------------------------------------- */

.htm-trust-rail {
  position: sticky;
  top: 0;
  z-index: var(--z-chrome);
  background: var(--bg-white);
  border-bottom: 1px solid rgba(11, 28, 44, 0.08);
}

.htm-trust-rail__inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.htm-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  flex-shrink: 0;
}

.htm-logo img {
  height: 54px;
  width: auto;
}

.htm-trust-chips {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}

.htm-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  background: rgba(26, 166, 184, 0.08);
  border: 1px solid var(--htm-pool-deep);
  border-radius: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--htm-pool-text);
  white-space: nowrap;
}

/* Phone: a call is not the act colour, so it is navy with a quiet outline. */
.htm-phone-button {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--htm-dusk) 0%, var(--htm-dusk-rich) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.75rem;
  color: var(--bg-white);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  margin-left: auto;
}

.htm-phone-button svg {
  width: 18px;
  height: 18px;
  color: var(--htm-pool-bright);
  flex-shrink: 0;
}

.htm-phone-button:hover {
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 30, 45, 0.2);
  border-color: var(--htm-pool-bright);
}

@media (max-width: 768px) {
  .htm-trust-rail__inner {
    gap: 1.25rem;
  }

  .htm-logo img {
    height: 46px;
  }

  .htm-trust-chips {
    order: 3;
    width: 100%;
    gap: 0.875rem;
  }

  .htm-chip {
    font-size: 0.8125rem;
    padding: 0.4375rem 0.75rem;
  }

  .htm-phone-button {
    margin-left: 0;
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
  }

  .htm-phone-button svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .htm-trust-chips {
    flex-wrap: wrap;
  }
}

/* ----------------------------------------------------------------------------
   3. NAV AND HAMBURGER
   ---------------------------------------------------------------------------- */

.htm-nav {
  background: linear-gradient(135deg, var(--htm-dusk) 0%, var(--htm-dusk-rich) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.htm-nav__inner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 58px;
}

.htm-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.75rem 1.125rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.625rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.htm-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--bg-white);
}

.htm-nav a[aria-current="page"] {
  background: rgba(26, 166, 184, 0.2);
  color: var(--htm-pool-bright);
}

.nav-spacer {
  flex: 1;
  min-width: 1rem;
}

/* Quote button in the nav: the act colour. Ink text, never white. */
.htm-nav .htm-nav-book {
  background: var(--htm-copper);
  color: var(--htm-ink);
  border: 2px solid var(--htm-copper-deep);
  padding: 0.5rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
}

.htm-nav .htm-nav-book:hover {
  background: var(--htm-copper-hot);
  color: var(--htm-ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 137, 58, 0.4);
}

.htm-nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--bg-white);
  cursor: pointer;
  margin-left: auto;
  border-radius: 0.625rem;
  transition: background-color 0.2s ease;
}

.htm-nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
  .htm-nav__inner > a:not(.htm-nav-hamburger):not(.htm-nav-book) {
    display: none;
  }

  .htm-nav-hamburger {
    display: flex;
    margin-left: auto;
  }

  .nav-spacer {
    display: none;
  }

  .htm-nav .htm-nav-book {
    padding: 0.375rem 1rem;
  }
}

/* ----------------------------------------------------------------------------
   4. DRAWER
   Closed: translated off screen, no shadow, visibility hidden (so nothing in
   it is focusable or painted). Open: shadow and visibility return at once.
   ---------------------------------------------------------------------------- */

.htm-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: var(--bg-white);
  box-shadow: -6px 0 32px rgba(11, 30, 45, 0.25);
  z-index: var(--z-drawer);
  padding: 1.75rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s, box-shadow 0s linear 0.35s;
}

.htm-drawer[aria-hidden="true"] {
  box-shadow: none;
  visibility: hidden;
}

.htm-drawer[aria-hidden="false"] {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.htm-drawer-close {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.875rem;
  background: var(--htm-sand);
  border: 1px solid var(--border-light);
  border-radius: 0.625rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  margin-bottom: 1.75rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.htm-drawer-close:hover {
  background: var(--htm-dusk);
  color: var(--bg-white);
  border-color: var(--htm-dusk);
}

.htm-drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.htm-drawer-nav a {
  display: block;
  padding: 1rem 1.125rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.625rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.htm-drawer-nav a:hover {
  background: var(--htm-sand);
  color: var(--htm-pool-text);
}

.htm-drawer-ctas {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.htm-drawer-ctas .btn-primary,
.htm-drawer-ctas .btn-secondary {
  width: 100%;
  white-space: normal;
}

.htm-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 30, 45, 0.65);
  z-index: calc(var(--z-drawer) - 1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.htm-drawer-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

/* ----------------------------------------------------------------------------
   5. FOOTER
   Two markup variants, one look:
     .htm-footer__top  (brand + __cols of __col)   home, services hub, crane, removal
     .htm-footer__grid (brand + __links + __contact)   every other page
   ---------------------------------------------------------------------------- */

.htm-footer {
  background: linear-gradient(135deg, var(--htm-dusk) 0%, var(--htm-dusk-rich) 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 1.75rem;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

/* Teal hairline across the top edge. */
.htm-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--htm-pool) 20%, var(--htm-pool-bright) 50%, var(--htm-pool) 80%, transparent 100%);
  opacity: 0.55;
}

.htm-footer__top {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr);
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.htm-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.htm-footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr);
  gap: 2rem 2.5rem;
  margin-bottom: 2.5rem;
}

/* Link columns. min-width 0 lets a long label wrap inside its grid track
   instead of pushing the page wider. */
.htm-footer__col,
.htm-footer__links,
.htm-footer__contact {
  min-width: 0;
}

/* The phone number leads the contact column. */
.htm-footer__contact li:first-child {
  margin-bottom: 0.25rem;
}

/* Headings (h3 on most pages, h4 on the four older ones) read the same. */
.htm-footer h3,
.htm-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin: 0 0 1rem;
}

.htm-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.htm-footer li {
  margin: 0;
}

.htm-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.htm-footer a:hover {
  color: var(--htm-pool-bright);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.htm-footer .htm-footer__phone {
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
}

/* The logo art has navy lettering, so it sits on a white plate. */
.htm-footer__brand img,
.htm-footer__logo img {
  display: block;
  height: 48px;
  width: auto;
  background: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 0.875rem;
}

.htm-footer__logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.htm-footer__logo img {
  margin-bottom: 0.75rem;
}

.htm-footer__tagline {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.htm-footer__brand > p:not(.htm-footer__tagline) {
  max-width: 34ch;
  margin: 0.875rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.htm-footer__representation,
.htm-footer__bottom {
  max-width: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.htm-footer__representation p,
.htm-footer__bottom p {
  max-width: 72ch;
  margin: 0;
}

.htm-footer__representation a {
  color: #fff;
  font-size: inherit;
  text-decoration: underline;
}

.htm-footer__copyright {
  max-width: 72ch;
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.htm-footer__bottom {
  margin-top: 0;
}

@media (max-width: 968px) {
  .htm-footer__top {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .htm-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
  }

  .htm-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }

  .htm-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .htm-footer {
    padding: 3rem 0 1.5rem;
  }

  /* Touch targets: 44px rows without inflating the type. */
  .htm-footer ul {
    gap: 0;
  }

  .htm-footer ul a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 340px) {
  .htm-footer__cols,
  .htm-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------------------
   6. MOBILE STICKY ACTION BAR
   Call is a white outline; Get Quote uses the action colour.
   The bar hides while the form is in view (html.form-in-view, set by
   quote-flow.js) and the footer gains padding so nothing sits under it.
   ---------------------------------------------------------------------------- */

.htm-sticky-ctas {
  display: none;
}

@media (max-width: 768px) {
  :root .htm-sticky-ctas {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-bar);
    display: flex;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem calc(0.625rem + env(safe-area-inset-bottom));
    background: var(--htm-ink);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 -6px 20px rgba(11, 28, 44, 0.28);
    transition: transform 0.25s ease, visibility 0s linear 0s;
  }

  :root .htm-sticky-ctas > a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 0.5rem 0.5rem;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    box-shadow: none;
    transform: none;
  }

  /* Call: wider so "Call (315) 640-3590" never wraps. White outline on navy. */
  :root .htm-sticky-ctas > a.btn-secondary[href^="tel:"] {
    flex: 1.6 1 0;
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.7);
  }

  :root .htm-sticky-ctas > a.btn-secondary[href^="tel:"]:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
    color: #fff !important;
  }

  /* Get Quote: copper, ink text (6.1:1). */
  :root .htm-sticky-ctas > .btn-primary {
    background: var(--htm-copper);
    color: var(--htm-ink) !important;
    border: 2px solid var(--htm-copper-deep);
  }

  :root .htm-sticky-ctas > .btn-primary:hover {
    background: var(--htm-copper-hot);
  }

  :root .htm-sticky-ctas > .btn-primary:focus-visible {
    outline: 3px solid var(--focus-ring-on-dark);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fff;
  }

  /* Room for the bar at the end of the page. */
  body:has(.htm-sticky-ctas) .htm-footer {
    padding-bottom: calc(1.5rem + var(--htm-bar-h) + env(safe-area-inset-bottom));
  }

  /* Out of the way while the visitor is filling in the form. */
  html.form-in-view .htm-sticky-ctas,
  html.quote-cta-in-view .htm-sticky-ctas {
    pointer-events: none;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
}

@media (max-width: 340px) {
  :root .htm-sticky-ctas > a {
    font-size: 0.9375rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}

/* ----------------------------------------------------------------------------
   7. UTILITY COMPONENTS
   ---------------------------------------------------------------------------- */

/* Section label pill. Light grounds: deep teal text. Dark grounds: see
   CASCADE AUTHORITY below. */
.htm-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(26, 166, 184, 0.1);
  border: 1px solid var(--htm-pool-deep);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--htm-pool-text);
  margin-bottom: 1rem;
}

.section__head .htm-pill {
  margin-bottom: 1.25rem;
}

/* ----------------------------------------------------------------------------
   8. CASCADE AUTHORITY
   Overrides that must win against rules in later stylesheets. Every block
   names the rule it beats. If a later file is cleaned up, the matching block
   here can be deleted.
   ---------------------------------------------------------------------------- */

/* 8.1 Header rail collapse must also beat ".htm-mag .site-chrome { top: 0 }"
   in htm-services-hub.css. */
:root .site-chrome,
:root .htm-mag .site-chrome {
  top: calc(-1 * (var(--site-chrome-height, 146px) - var(--htm-nav-h)));
}

@media (max-height: 560px) {
  :root .site-chrome,
  :root .htm-mag .site-chrome {
    position: static;
  }
}

/* Keyboard focus on the logo or phone link (the part that scrolls away) pins
   the whole header again so the focused control is never hidden above the
   viewport (WCAG 2.4.11). */
:root .site-chrome:has(.htm-trust-rail :focus-visible),
:root .htm-mag .site-chrome:has(.htm-trust-rail :focus-visible) {
  top: 0;
}

/* 8.2 Lead-starting buttons. Beats htm-brand.css ".btn-quote" (white text,
   999px radius, copper border), htm-compat ".btn.next" (ink fill) and
   htm-services-hub ".htm-mag .btn" (white on copper, 2.8:1). */
:root .btn.btn-quote,
:root .btn.btn-cta,
:root a.btn-quote,
:root button.btn-quote {
  background: var(--htm-copper) !important;
  color: var(--htm-ink) !important;
  border: 2px solid var(--htm-copper-deep) !important;
  border-radius: var(--radius-btn) !important;
}

:root .btn.btn-quote:hover,
:root .btn.btn-cta:hover,
:root a.btn-quote:hover,
:root button.btn-quote:hover {
  background: var(--htm-copper-hot) !important;
  color: var(--htm-ink) !important;
}

/* The form's submit button is the one that matters most: full width, tall. */
:root .formbox button.btn.btn-quote {
  display: flex;
  width: 100%;
  min-height: 54px;
  font-size: 1.0625rem;
}

/* Bare ".htm-mag .btn" on the hub pages renders copper; keep its label ink. */
:root .htm-mag .btn:not(.on-light):not(.btn-call):not(.btn-quote):not(.btn-cta) {
  color: var(--htm-ink);
}

/* 8.3 Call buttons (btn-call, ghost). Outlined, never copper. Light grounds:
   deep teal (7.9:1 on white). Beats htm-brand ".btn-call" (4.3:1 teal, 999px
   pill, shrinks to 14px at 480px). */
:root .btn-call,
:root a.btn-call,
:root .btn.btn-call,
:root a.btn.ghost.btn-call {
  background: transparent;
  color: var(--htm-pool-text) !important;
  border: 2px solid var(--htm-pool-text) !important;
  border-radius: var(--radius-btn) !important;
}

:root .btn-call:hover,
:root a.btn-call:hover,
:root .btn.btn-call:hover,
:root a.btn.ghost.btn-call:hover {
  background: var(--htm-pool-text);
  color: #fff !important;
}

@media (max-width: 480px) {
  :root a.btn-call,
  :root .btn-call {
    font-size: 1rem !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

/* A phone link is a call, not a lead start: a copper-classed tel: button is
   drawn as a navy outline on light grounds so two copper buttons never sit
   side by side. */
:root a.btn-copper[href^="tel:"] {
  background: transparent;
  color: var(--htm-dusk) !important;
  border-color: var(--htm-dusk);
  box-shadow: none;
}

:root a.btn-copper[href^="tel:"]:hover {
  background: var(--htm-dusk);
  color: #fff !important;
  box-shadow: none;
}

/* 8.4 Dark grounds flip every outline button to white. */
:root :is(.htm-section--dusk, .htm-lantern-hero, .htm-cta-dusk, .htm-offer-dock, .htm-lantern-block--dusk, .htm-hero--service-lantern, .section--navy) a.btn-copper[href^="tel:"] {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.7);
}

:root :is(.htm-section--dusk, .htm-lantern-hero, .htm-cta-dusk, .htm-offer-dock, .htm-lantern-block--dusk, .htm-hero--service-lantern, .section--navy) a.btn-copper[href^="tel:"]:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  border-color: #fff;
}
:root :is(.htm-section--dusk, .htm-lantern-hero, .htm-cta-dusk, .htm-offer-dock, .htm-lantern-block--dusk, .htm-hero--service-lantern, .section--navy) :is(a.btn-call, .btn.btn-call, a.btn.ghost.btn-call) {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
}

:root :is(.htm-section--dusk, .htm-lantern-hero, .htm-cta-dusk, .htm-offer-dock, .htm-lantern-block--dusk, .htm-hero--service-lantern, .section--navy) :is(a.btn-call, .btn.btn-call, a.btn.ghost.btn-call):hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  border-color: #fff !important;
}

/* The old "ghost copper" call button paints a copper border and a copper hover
   fill on dark bands. Copper is the act colour, a call is not. */
:root :is(.htm-section--dusk, .htm-lantern-hero, .htm-cta-dusk, .htm-offer-dock, .htm-lantern-block--dusk, .htm-hero--service-lantern, .section--navy) .btn-ghost-copper {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

:root :is(.htm-section--dusk, .htm-lantern-hero, .htm-cta-dusk, .htm-offer-dock, .htm-lantern-block--dusk, .htm-hero--service-lantern, .section--navy) .btn-ghost-copper:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
}

/* 8.5 Pills and eyebrows on navy. Beats the !important teal on ".pill" in
   htm-brand.css (teal on navy was 2.1 to 2.7:1). #8ee3ec on #14324a is 9:1. */
:root :is(.htm-section--dusk, .htm-lantern-hero, .htm-cta-dusk, .htm-offer-dock, .htm-lantern-block--dusk, .htm-hero--service-lantern, .section--navy) :is(.pill, .tag, .badge, .htm-pill, .htm-eyebrow-pill, .htm-pill--national, .eyebrow) {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #8ee3ec !important;
}

/* 8.6 Mobile eyebrow: htm-brand drops it to 11px. Keep it readable. */
@media (max-width: 640px) {
  :root .htm-eyebrow-pill {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
  }
}

/* 8.7 Links without a class inside navy bands (hero phone link, "area pages")
   were teal on navy at 2.5:1. Footer and nav have their own link rules. */
:root :is(.htm-section--dusk, .htm-lantern-hero, .htm-cta-dusk, .htm-offer-dock, .htm-lantern-block--dusk, .htm-hero--service-lantern, .section--navy) a:not([class]),
:root .contact-detail a {
  color: #8ee3ec;
}

:root :is(.htm-section--dusk, .htm-lantern-hero, .htm-cta-dusk, .htm-offer-dock, .htm-lantern-block--dusk, .htm-hero--service-lantern, .section--navy) a:not([class]):hover,
:root .htm-hero--service-lantern .contact-detail a:hover {
  color: #fff;
}

/* 8.8 Anchors. Only the nav stays pinned, and html carries scroll-padding, so
   per-element scroll-margin would double count. Beats htm-brand.css (chrome
   height + 16px) and htm-services-hub.css (8.5rem). */
:root .formbox,
:root .formbox .qprogress,
:root .formbox .quiz-step,
:root .formbox [data-quiz-contact],
:root #quote,
:root #contact-form,
:root .htm-mag-quiz .quiz-step,
:root .htm-mag-quiz [data-quiz-contact],
:root .htm-mag-quiz .cstep,
:root .htm-mag-quiz .quiz-review,
:root .htm-mag #quote,
:root .htm-lantern #quote,
:root .htm-lantern .htm-mag-quiz .quiz-step,
:root .htm-lantern .htm-mag-quiz [data-quiz-contact] {
  scroll-margin-top: 0.5rem;
}

/* 8.8b Nav quote button tap target. Beats htm-brand.css (min-height 40px). */
:root .htm-nav__inner > a.htm-nav-book {
  min-height: 44px;
}

/* 8.9 First mobile screen: the sticky bar and the header phone already carry
   Call, so the hero shows one action, not two. Mid-page and closing Call
   buttons stay. */
@media (max-width: 768px) {
  .htm-hero__actions a[href^="tel:"],
  .htm-hero .htm-cta-group a[href^="tel:"],
  .htm-hero--asymmetric a[href^="tel:"],
  .htm-lantern-actions a[href^="tel:"] {
    display: none !important;
  }
}

/* 8.10 Breadcrumbs. The services and crane pages print two separators (the
   hub rule draws one before each item, htm-compat draws one after). Keep the
   hub's. Links get a 44px target on phones. */
:root .htm-mag-crumbs li:not(:last-child)::after {
  content: none;
}

@media (max-width: 768px) {
  [aria-label="Breadcrumb"] a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  :root .htm-trust-chips { display: none !important; }
  :root .htm-nav__inner > a.htm-nav-book { display: none !important; }
  .htm-nav__inner { min-height: var(--htm-nav-h); }
}

.htm-nav a:focus-visible,
.htm-nav-hamburger:focus-visible { outline-offset: -3px; }

.htm-nav a[aria-current="location"] { color: var(--htm-copper); }

.htm-footer__image-note { font-size: .875rem; line-height: 1.5; opacity: .85; }
