/* Refined Heritage v2 integration candidate, 2026-09-16.
   Load after envelopro.css and page-specific styles. Not deployed.
   Bahnschrift is local-only. Archivo remains a non-identical web fallback.
   No font software is distributed with this stylesheet. */
:root {
  --font-d: "Bahnschrift", "Archivo", system-ui, sans-serif;
  --ep-brand-header-inner-height: 80px;
  /* Existing header has a 2px bottom border and a 3px after stripe. */
  --ep-brand-header-height: calc(var(--ep-brand-header-inner-height) + 5px);
}

/* Explicit selectors override the existing section-specific display rules. */
h1, h2, h3, h4,
.ep-hero h1,
.ep-head h2,
.ep-row-main h3,
.ep-how-intro h2,
.ep-page-hero h1,
.ep-h3,
.ep-cta-band h2,
.ep-founder-body h3,
.ep-contact-card h3,
.ep-footer h4,
.ep-svc h3,
.ep-loc-hq h3,
.ep-tri-body h3,
.ep-qform > summary {
  font-family: var(--font-d);
  font-stretch: 85%;
  font-variation-settings: "wght" 700, "wdth" 85;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Preserve the approved SVG aspect ratios; do not retain old inline sizes. */
.ep-header-inner {
  height: var(--ep-brand-header-inner-height);
}
.ep-header .ep-brand {
  flex-shrink: 0;
}
.ep-logo-horizontal-rh2 {
  display: block;
  width: 210px;
  height: auto;
  max-width: 100%;
}
.ep-header .ep-menu-toggle,
.ep-header .ep-btn-cta {
  flex-shrink: 0;
}
.ep-brand-foot.ep-brand-foot-rh2 {
  background: transparent;
  padding: 0;
}
.ep-logo-stacked-rh2 {
  display: block;
  width: 190px;
  height: auto;
  max-width: 100%;
}

/* Keep sticky menu and quote anchors clear of the resized header. */
.ep-mobile-menu {
  top: var(--ep-brand-header-height);
  max-height: calc(100vh - var(--ep-brand-header-height));
  max-height: calc(100dvh - var(--ep-brand-header-height));
}
#quote {
  scroll-margin-top: calc(var(--ep-brand-header-height) + 19px);
}

/* Retain the existing desktop navigation/CTA breakpoint at 960px.
   The mobile menu keeps its existing Free Quote link and 44px toggle. */
@media (max-width: 359px) {
  .ep-logo-horizontal-rh2 { width: 190px; }
  .ep-header-inner { gap: 0.75rem; }
}
