/* =============================================================================
   ExteriorMax — 2026 redesign layer
   -----------------------------------------------------------------------------
   Loaded AFTER styles.css on every page. It restyles the existing markup
   (same classes, same JS hooks) and adds the new header, footer, home hero,
   projects sliders and photo carousels. Delete this file + its <link> to
   fall back to the previous look.

   Brand system
     From the ExteriorMax Logo Style Guide (brand colors, p.4):
     Primary   — Blue #00529E (Pantone 2728 C) · Golden Yellow #FFD621 (Yellow 012 C) · White
     Secondary — Light Blue #5EB2E3 (2915 C) · Dark Blue #003764 (2955 C) · Chrome Yellow #F5A800 (130 C)
     Token map: --navy = Blue · --navy-deep = Dark Blue · --gold = Golden Yellow · --gold-hover = Chrome Yellow
     paper #F1F7FC (Light Blue tint) · ink #003764 · muted #4E5D6E · line #D5E4F1
     Type: Barlow Condensed 800 (uppercase headings) + Barlow (text)
   ============================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@400;500;600;700&display=swap");

:root {
  --navy: #00529E;
  --navy-deep: #003764;
  --navy-raised: #00529E;
  --gold: #FFD621;
  --gold-ink: #003764;
  --gold-hover: #F5A800;
  --light-blue: #5EB2E3;
  --dark-blue: #003764;
  --chrome-yellow: #F5A800;
  --shadow-navy: #003764;
  --max-blue: #00529E;
  --yellow-012: #FFD621;
  --blue-2728: #00529E;
  --blue-2728-print: #00529E;
  --paper: #F1F7FC;
  --white: #FFFFFF;
  --ink: #003764;
  --muted: #4E5D6E;
  --line: #D5E4F1;
  --on-navy: #FFFFFF;
  --on-navy-muted: #D6E6F5;
  --radius: 12px;
  --page: 1240px;
  --header-h: 84px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 10px 28px rgba(15, 27, 45, 0.08);
  --emx-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html { font-size: 16px; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-text);
  background: var(--white);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--max-blue); }
a:hover { color: #003D7A; }

/* -------------------------------------------------------------------------
   Type
   ------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0;
  color: var(--navy);
}

h1, h2 {
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
}

h1 { font-size: clamp(2.75rem, 5.2vw, 4.75rem); margin-bottom: 18px; }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); margin-bottom: 16px; }

h1::after,
h2::after { display: none; }

h3 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

h4 { font-weight: 700; }

.accent-gold { color: var(--max-blue); }
.accent-blue { color: var(--max-blue); }
h1.accent-gold, h2.accent-gold, h2 .accent-gold { color: var(--max-blue); }

.hero .accent-gold,
.areas .accent-gold, .areas .accent-blue,
.difference .accent-gold, .difference .accent-blue,
.emx-dark .accent-gold, .emx-dark .accent-blue { color: var(--gold); }

.kicker,
.emx-eyebrow {
  display: block;
  font-family: var(--font-text);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--max-blue);
  margin-bottom: 14px;
}

.hero .kicker,
.emx-dark .emx-eyebrow { color: var(--gold); }

.muted { color: var(--muted); }

.wrap { width: min(var(--page), calc(100% - 40px)); }

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn,
.emx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 6px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.btn:hover, .card:hover { transform: none; }

.btn-gold,
.emx-btn--gold { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

.btn-gold:hover, .btn-gold:focus-visible,
.emx-btn--gold:hover, .emx-btn--gold:focus-visible {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--gold-ink);
  box-shadow: 0 6px 18px rgba(255, 214, 33, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

/* Ghost buttons on light sections */
.section .btn-ghost, .panel .btn-ghost, .form .btn-ghost {
  color: var(--navy);
  border-color: var(--navy);
}

.emx-btn--outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.emx-btn--outline-light:hover { background: var(--white); color: var(--navy); }
.emx-btn--sm { min-height: 44px; padding: 0 16px; font-size: 1.05rem; }

.btn-text {
  font-weight: 700;
  color: var(--max-blue);
  font-size: 1.05rem;
}

.btn-text::after { content: " →"; }

:focus-visible { outline: 3px solid var(--max-blue); outline-offset: 2px; }

/* -------------------------------------------------------------------------
   Header — utility bar scrolls away, white bar sticks (top: -utility height)
   ------------------------------------------------------------------------- */
#site-header {
  position: sticky;
  top: -40px;
  z-index: 50;
}

.emx-util {
  background: var(--navy-deep);
  color: var(--on-navy-muted);
  font-size: 0.85rem;
}

.emx-util__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.emx-util__left, .emx-util__right { display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.emx-util__item { display: inline-flex; align-items: center; gap: 8px; }
.emx-util__item svg { color: var(--gold); }
.emx-util__sep { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.25); }
.emx-util a { color: var(--on-navy-muted); text-decoration: none; transition: color 0.15s; }
.emx-util a:hover { color: var(--white); }
.emx-util .emx-util__phone { color: var(--gold); font-weight: 700; }

.emx-promo { display: none; }

.site-header.emx-header {
  position: relative;
  background: var(--white);
  backdrop-filter: none;
  border-bottom: 0;
  box-shadow: 0 1px 0 #DCE9F4, 0 6px 18px rgba(0, 82, 158, 0.05);
}

.emx-header__inner.header-inner {
  width: auto;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: var(--header-h);
  height: var(--header-h);
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.emx-header .brand { display: flex; align-items: center; padding-right: 8px; min-height: 0; }
.emx-header .brand img { height: 34px; }

.emx-nav.nav {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  min-width: 0;
}

.emx-item.nav-item { position: static; display: flex; align-items: stretch; }

.emx-link.nav-btn,
.emx-link.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 0;
  line-height: 1;
  padding: 0 12px;
  border-radius: 0;
  font-family: var(--font-text);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #003764;
  text-decoration: none !important;
  transition: color 0.15s;
}

.emx-link .nav-txt { text-decoration: none !important; }

.emx-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  transition: background-color 0.15s;
}

.emx-link:hover,
.emx-item:hover > .emx-link,
.emx-item:focus-within > .emx-link { color: var(--max-blue); }

.emx-link.is-on { color: var(--navy); }
.emx-link.is-on::after,
.emx-item:hover > .emx-link::after,
.emx-item:focus-within > .emx-link::after { background: var(--gold); }

.emx-chev { opacity: 0.7; transition: transform 0.15s; }
.emx-item:hover > .emx-link .emx-chev { transform: rotate(180deg); }

.emx-caret.nav-caret { display: none; }

/* Mega panel — full width under the bar */
.emx-mega.mega {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #DCE9F4;
  border-radius: 0;
  background: var(--white);
  box-shadow: 0 30px 60px rgba(0, 82, 158, 0.18);
  grid-template-columns: none;
  z-index: 60;
}

.emx-item:hover > .emx-mega,
.emx-item:focus-within > .emx-mega,
.emx-mega.open { display: block; }

.nav-item:last-child .emx-mega { left: 0; right: 0; }

.emx-mega__grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr) minmax(0, 1fr);
}

/*
   Compact mega — navy intro + photo card used to stretch to ~280px.
   Keep the same three-column layout, just a shorter hover panel.
   Explore / Estimate stay at 44px (Apple HIG tap target).
*/
.emx-mega__intro {
  background: var(--navy);
  color: var(--white);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.emx-mega__intro .emx-eyebrow { color: var(--gold); font-size: 0.75rem; margin: 0; }

.emx-mega__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.emx-mega__blurb {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--on-navy-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.emx-mega__explore {
  margin-top: 2px;
  padding-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 44px;
  font-weight: 700;
  color: var(--gold) !important;
  text-decoration: none;
}

.emx-mega__list { padding: 16px 20px 16px 24px; }

.emx-mega__listtitle {
  display: block;
  margin: 0 12px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6A7889;
}

.emx-mega__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }

.emx-mega a.emx-mega__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.emx-mega a.emx-mega__link svg { color: var(--max-blue); opacity: 0.55; transition: transform 0.15s, opacity 0.15s; }
.emx-mega a.emx-mega__link:hover { background: #EEF6FC; color: var(--max-blue); }
.emx-mega a.emx-mega__link:hover svg { transform: translateX(3px); opacity: 1; }
.emx-mega a.emx-mega__link:hover .nav-txt { text-decoration: none; color: inherit; }
.emx-mega a.emx-mega__all { display: none; }
.emx-mega a.emx-btn { display: inline-flex; padding: 0 16px; font-size: 1.05rem; color: var(--navy); }
.emx-mega a.emx-mega__explore { display: inline-flex; padding: 0; font-size: 0.88rem; }
.emx-mega__trust a { display: inline; padding: 0; font-size: inherit; }

.emx-mega__card {
  position: relative;
  margin: 12px 0 12px 8px;
  min-height: 140px;
  max-height: 160px;
  align-self: center;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px;
}

.emx-mega__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.emx-mega__card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 55, 100, 0) 35%, rgba(0, 55, 100, 0.92) 100%); }
.emx-mega__card > :not(img) { position: relative; }
.emx-mega__cardtext { color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.1; text-transform: uppercase; }
.emx-mega__card .emx-btn { align-self: flex-start; }

.emx-mega__trust {
  background: var(--paper);
  border-top: 1px solid #E8E4DA;
  padding: 14px max(32px, calc((100% - 1376px) / 2));
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  color: #33414F;
}

.emx-mega__trustlist { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.emx-mega__trustlist span { display: inline-flex; align-items: center; gap: 8px; }
.emx-mega__trustlist svg { color: var(--max-blue); }
.emx-mega__trust a { font-weight: 700; color: var(--navy); }

/* Right side: phone + CTA */
.emx-actions.header-actions { display: flex; align-items: center; gap: 18px; margin-left: 0; flex: 0 0 auto; }

.emx-phone { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.emx-phone__icon { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); align-items: center; justify-content: center; }
.emx-phone__text { display: flex; flex-direction: column; line-height: 1.05; }
.emx-phone__text span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.emx-phone__text strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; transition: color 0.15s; }
.emx-phone:hover .emx-phone__text strong { color: var(--max-blue); }

.emx-actions .emx-cta { min-height: 48px; padding: 0 20px 0 22px; font-size: 1.12rem; }
.emx-cta-short { display: none !important; }

.emx-burger.menu-toggle { display: none; }
.emx-drawer-foot { display: none; }

/* Mid widths: tighter nav, drop phone text */
@media (max-width: 1399px) {
  .emx-phone__text { display: none; }
  .emx-link.nav-btn, .emx-link.nav-link { padding: 0 9px; }
  .emx-link::after { left: 9px; right: 9px; }
}

@media (max-width: 1279px) {
  .emx-header .brand img { height: 30px; }
  .emx-link.nav-btn, .emx-link.nav-link { padding: 0 7px; font-size: 0.94rem; }
  .emx-link::after { left: 7px; right: 7px; }
}

/* Phone + tablet: compact bar, navy drawer */
@media (max-width: 1179px) {
  #site-header { top: -33px; }
  .emx-util { display: none; }
  .emx-promo {
    display: block;
    background: var(--navy-deep);
    color: var(--on-navy-muted);
    font-size: 0.82rem;
    padding: 8px 16px;
    text-align: center;
    height: 33px;
    box-sizing: border-box;
  }
  .emx-promo strong { color: var(--gold); font-weight: 600; }

  :root { --header-h: 64px; }
  .emx-header__inner.header-inner { padding: 0 8px 0 16px; gap: 6px; align-items: center; }
  .emx-header .brand img { height: 24px; }
  .emx-actions.header-actions { margin-left: auto; gap: 2px; }
  .emx-phone__icon { background: transparent; color: var(--navy); width: 44px; height: 44px; }
  .emx-actions .emx-cta { display: none; }
  .emx-cta-short { display: inline-flex !important; min-height: 40px; padding: 0 12px; font-size: 1rem; margin-right: 2px; }

  .emx-burger.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin-left: 0;
    border: 0;
    border-radius: 6px;
    background: #EEF6FC;
    color: var(--navy);
    padding: 0;
  }
  .emx-burger .emx-burger__close { display: none; }
  .emx-burger[aria-expanded="true"] { background: var(--navy); color: var(--white); }
  .emx-burger[aria-expanded="true"] .emx-burger__open { display: none; }
  .emx-burger[aria-expanded="true"] .emx-burger__close { display: block; }

  .emx-nav.nav { display: none; }
  .emx-nav.nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 6px 20px 24px;
    max-height: calc(100dvh - var(--header-h));
    overflow: auto;
    border: 0;
    box-shadow: 0 30px 60px rgba(4, 12, 26, 0.35);
  }

  .emx-nav .emx-item.nav-item { display: flex; flex-wrap: wrap; width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
  .emx-nav .emx-link.nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
  .emx-nav .emx-link.nav-btn, .emx-nav .emx-link.nav-link {
    flex: 1;
    min-height: 56px;
    padding: 0;
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.6rem;
    text-transform: uppercase;
  }
  .emx-nav .emx-link .emx-chev { display: none; }
  .emx-nav .emx-link::after { display: none; }
  .emx-nav .emx-link.is-on { color: var(--gold); }

  .emx-caret.nav-caret {
    display: inline-flex;
    align-self: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem;
    background: transparent;
  }
  .emx-caret[aria-expanded="true"] { color: var(--gold); }
  .emx-caret[aria-expanded="true"] svg { transform: rotate(180deg); }

  .emx-item:hover > .emx-mega,
  .emx-item:focus-within > .emx-mega { display: none; }
  .emx-nav .emx-mega.mega {
    position: static;
    display: none;
    width: 100%;
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 0 0 14px;
  }
  .emx-nav .emx-mega.mega.open { display: block; }
  .emx-mega__grid { display: block; padding: 0; }
  .emx-mega__intro, .emx-mega__card, .emx-mega__trust, .emx-mega__listtitle { display: none; }
  .emx-mega__list { padding: 0; }
  .emx-mega__links { display: flex; flex-direction: column; gap: 0; }
  .emx-mega a.emx-mega__link {
    min-height: 44px;
    padding: 0 0 0 14px;
    border-left: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    color: var(--on-navy-muted);
    font-weight: 500;
    font-size: 1.05rem;
  }
  .emx-mega a.emx-mega__link svg { display: none; }
  .emx-mega a.emx-mega__link:hover { background: transparent; color: var(--white); }
  .emx-mega a.emx-mega__all {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-left: 14px;
    border-left: 2px solid var(--gold);
    color: var(--gold) !important;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
  }

  .emx-drawer-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
  .emx-drawer-foot .emx-btn { width: 100%; min-height: 54px; font-size: 1.25rem; }
  .emx-drawer-quote { text-align: center; color: var(--gold) !important; font-weight: 700; padding: 8px 0; }
  .emx-drawer-foot p { margin: 4px 0 0; text-align: center; font-size: 0.82rem; line-height: 1.6; color: #BFD3E6; }
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer.emx-footer {
  background: var(--navy-deep);
  color: var(--on-navy-muted);
  padding: 0;
  margin: 0;
}

.emx-footer__inner { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) clamp(20px, 4vw, 32px) 32px; }
.emx-footer__cols { display: flex; flex-wrap: wrap; gap: 40px 32px; }
.emx-footer__brand { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.emx-footer .footer-logo { height: 30px; width: auto; align-self: flex-start; margin: 0; }
.emx-footer__brand p { margin: 0; max-width: 340px; line-height: 1.6; color: var(--on-navy-muted); }
.emx-footer__brand .emx-btn { align-self: flex-start; min-height: 48px; }

.emx-social.social-row { display: flex; gap: 10px; margin: 0; }
.emx-social .social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #2A4366;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.emx-social .social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.emx-footer__nav { flex: 1 1 150px; display: flex; flex-direction: column; gap: 2px; }
.emx-footer h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.emx-footer__nav a { color: var(--on-navy-muted); text-decoration: none; padding: 7px 0; }
.emx-footer a:hover { color: var(--white); }

.emx-footer__contact { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; font-size: 0.95rem; line-height: 1.5; }
.emx-footer__contact h4 { margin: 0; }
.emx-footer__contact a { color: var(--white); text-decoration: none; }
.emx-footer__contact .emx-footer__tel { color: var(--gold); font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; line-height: 1; }
.emx-footer__contact p { margin: 0; color: var(--on-navy-muted); }
.emx-footer__contact strong { color: var(--white); }

.emx-footer__badges.footer-badges {
  margin: 48px 0 0;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
  width: auto;
}
/* Cert PNGs already have alpha (speech bubble / house / OC lockup).
   Do not paint a white card behind them — they sit on navy the way
   they were delivered. 8pt grid; 56px tall so the silhouette reads. */
.emx-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
}
.emx-badge {
  background: transparent;
  border-radius: 0;
  height: auto;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.emx-footer__badges img {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.emx-footer__badges p { margin: 0; flex: 1 1 360px; max-width: 520px; font-size: 0.82rem; line-height: 1.6; color: #BFD3E6; }

.emx-footer__legal.legal {
  padding: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #BFD3E6;
  width: auto;
  border: 0;
}
.emx-footer__legal span:last-child { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.emx-footer__legal a { color: #BFD3E6; padding: 6px 0; text-decoration: none; }

/* -------------------------------------------------------------------------
   Page heroes (service pages, about, etc.)
   ------------------------------------------------------------------------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(40px, 6vw, 80px) 0 clamp(44px, 6vw, 88px);
  gap: 0;
}

.hero .wrap { gap: 32px 56px; }
.hero h1 { color: var(--white); }
.hero p { color: #D5DEE8; font-size: 1.15rem; line-height: 1.55; max-width: 38rem; }
.hero .kicker { margin-bottom: 18px; }
.hero-actions { gap: 12px 14px; margin: 26px 0 0; }

.emx-hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(4, 12, 26, 0.35);
}

/* -------------------------------------------------------------------------
   Sections, cards, lists
   ------------------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section:nth-of-type(even):not(.topic) { background: var(--paper); }
.section-head { align-items: flex-end; gap: 16px 40px; margin-bottom: 36px; }
.section-head h2 { margin: 0; max-width: 760px; }

.cards { gap: 24px; }

.card {
  border: 0;
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card .media { height: 220px; }
.card .media::after, .media::after { background: none; }
.media img { filter: none; }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; flex: 1; line-height: 1.5; }
.card-body a { margin-top: 10px; font-weight: 700; text-decoration: none; }
.card-body a::after { content: " →"; }

.split { gap: 32px 64px; }
.split ul, .panel ul { list-style: none; padding: 0; margin: 18px 0 0; line-height: 1.5; }
.split li, .panel li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.split li::before, .panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230052A5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.panel { border: 0; border-radius: 10px; box-shadow: var(--shadow); padding: 24px; }

.areas, .difference {
  background: var(--navy);
  border-radius: 12px;
}
.areas h2, .difference h2 { color: var(--white); }
.areas li { background: rgba(255, 255, 255, 0.1); color: var(--white); font-weight: 600; }

.stat { border: 0; border-left: 3px solid var(--gold); border-radius: 0; background: transparent; padding: 4px 0 4px 16px; }
.stat strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--navy); text-transform: uppercase; }
.stat span { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

.page-nav { background: var(--white); top: var(--header-h); box-shadow: 0 1px 0 var(--line); border: 0; }
.chip, .page-nav .chip {
  border-radius: 999px;
  border: 2px solid #C5CDD7;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
}
.chip.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }

.faq details { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 18px 0; margin: 0; }
.faq summary { font-size: 1.1rem; font-weight: 700; color: var(--navy); }

.person { border: 0; box-shadow: var(--shadow); border-radius: 10px; }

/* Forms */
.form { border: 0; border-radius: 12px; box-shadow: 0 24px 60px rgba(4, 12, 26, 0.12); padding: clamp(20px, 3vw, 32px); border-top: 6px solid var(--gold); }
.form label { font-size: 0.9rem; color: #33414F; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  min-height: 52px;
  border: 1px solid #B8C2CE;
  border-radius: 6px;
  background: var(--white);
  font-size: 1rem;
}
.form button[type="submit"], .form .btn-gold { width: 100%; min-height: 56px; font-size: 1.3rem; }

/*
   Resume picker — native file input is invisible; the 44px row is the hit.
   HIG: label above, 8pt gap, 44pt minimum, 6px corners like the text fields.
*/
.form-file { position: relative; }
.form-file input[type="file"] {
  position: absolute;
  inset: 22px 0 0 0;
  width: 100%;
  height: 52px;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.form-file__ui {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 6px 0 6px;
  border: 1px solid #B8C2CE;
  border-radius: 6px;
  background: var(--white);
}
.form-file__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}
.form-file__name {
  min-width: 0;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.form-file:focus-within .form-file__ui {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Topic carousels (Roofing, Gutters) — overlay arrows, dot pill, counter-free
   ------------------------------------------------------------------------- */
.topic-carousel {
  position: relative;
  display: block;
}

.topic-carousel__stage.topic-art,
.topic-carousel__stage {
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: radial-gradient(120% 90% at 50% 100%, #DCE5EF 0%, #EEF2F7 55%, #F8FAFC 100%);
  box-shadow: var(--shadow);
}

.media .topic-carousel__slide { padding: 40px 24px 44px; box-sizing: border-box; transform: none; transition: opacity 0.7s var(--emx-ease); }
.media .topic-carousel__slide.is-on, .media .topic-carousel__slide.is-out { transform: none; }

.topic-carousel--photo .topic-carousel__stage { background: var(--navy); }
.topic-carousel--photo .media .topic-carousel__slide { object-fit: cover; padding: 0; transform: scale(1); transition: opacity 0.7s var(--emx-ease), transform 5.5s ease-out; }
.topic-carousel--photo .media .topic-carousel__slide.is-on { transform: scale(1.04); }

.topic-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: 0;
  box-shadow: 0 4px 14px rgba(0, 82, 158, 0.22);
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.topic-carousel__arrow { left: 12px; }
.topic-carousel__arrow--next { left: auto; right: 12px; }
.topic-carousel__arrow::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%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 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.topic-carousel__arrow--next::before { transform: scaleX(-1); }
.topic-carousel__arrow:hover, .topic-carousel__arrow:focus-visible {
  background: var(--gold);
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 8px 20px rgba(0, 82, 158, 0.28);
}

.topic-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  min-height: 0;
  gap: 2px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(0, 82, 158, 0.72);
}
.topic-carousel__dot { width: 24px; height: 24px; background: transparent; position: relative; }
.topic-carousel__dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.6);
  transition: width 0.25s, background-color 0.25s;
}
.topic-carousel__dot.is-on { width: 34px; height: 24px; background: transparent; }
.topic-carousel__dot.is-on::before { width: 22px; background: var(--gold); }

@media (min-width: 800px) {
  .split:has(.topic-carousel) > :first-child { transform: none; }
}

/* Component carousel (roofing) — same controls */
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(0, 82, 158, 0.22);
}
.carousel-btn:hover { background: var(--gold); }
.carousel-dot { background: #B8C2CE; }
.carousel-dot.is-on { background: var(--gold); width: 22px; border-radius: 4px; }
.carousel-shot { border-radius: 12px; overflow: hidden; }

/* -------------------------------------------------------------------------
   Instant-quote overlay
   ------------------------------------------------------------------------- */
.quote-embed__sheet { border-radius: 14px; border-top: 6px solid var(--gold); }
.quote-embed__bar { padding: 10px 8px 10px 14px; }
.quote-embed__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; letter-spacing: 0.04em; color: var(--navy); }

@media (max-width: 700px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.25rem; }
  .hero p { font-size: 1.05rem; }
  .card .media { height: 200px; }
}

/* Photo in a service topic row (windows) */
.emx-topic-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* =============================================================================
   Shared building blocks for redesigned pages
   ============================================================================= */
.emx-dark { background: var(--navy); color: var(--white); }
.emx-dark h1, .emx-dark h2, .emx-dark h3 { color: var(--white); }
.emx-dark p { color: var(--on-navy-muted); }

.emx-section { padding: clamp(56px, 8vw, 104px) 0; }
.emx-section--paper { background: var(--paper); }
.emx-section--navy { background: var(--navy); }

.emx-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.emx-head h2 { margin: 0; max-width: 760px; }
.emx-head > p { margin: 0; max-width: 420px; font-size: 1.1rem; line-height: 1.5; color: var(--muted); }

.emx-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--max-blue); text-decoration: none; }
.emx-more::after { content: "→"; transition: transform 0.15s; }
a:hover .emx-more::after, a.emx-more:hover::after { transform: translateX(3px); }
.emx-more--lg { font-size: 1.08rem; min-height: 44px; }

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

.emx-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.emx-checks li { position: relative; padding-left: 28px; font-weight: 600; }
.emx-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD621' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.emx-checks--inline { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; font-size: 0.95rem; color: var(--white); }

/* =============================================================================
   Home hero
   ============================================================================= */
/* Full-bleed photo behind the hero; copy + quick start sit on top, left-aligned to the 1240 container */
.emx-home-hero { position: relative; overflow: hidden; display: block; background: var(--navy); }
.emx-home-hero__copycol { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); pointer-events: none; }

.emx-home-hero .hero-home-copy.emx-home-hero__copy {
  position: relative;
  isolation: auto;
  width: 100%;
  max-width: 640px;
  padding: clamp(40px, 7vw, 112px) 0 clamp(44px, 7vw, 112px);
  transition: none;
  pointer-events: auto;
}

.emx-home-hero h1 { font-size: clamp(3rem, 5.6vw, 5.4rem); line-height: 0.92; margin: 0; color: var(--white); }
.emx-home-hero h1 .accent-gold { color: var(--gold); }
.emx-home-hero__eyebrow { margin-bottom: 20px; }

.emx-home-hero .hero-actions.emx-home-hero__actions { display: block; margin: 0; }
.emx-home-hero__lede { margin: 22px 0 0; max-width: 540px; font-size: clamp(1.06rem, 1.4vw, 1.25rem); line-height: 1.5; color: #D5DEE8 !important; }
.emx-home-hero .emx-checks { margin-top: 26px; }

.emx-quickstart {
  margin-top: 34px;
  max-width: 580px;
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  padding: clamp(18px, 2vw, 24px);
  box-shadow: 0 24px 60px rgba(4, 12, 26, 0.45);
}
.emx-quickstart__head { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.emx-quickstart__title { font-family: var(--font-display); font-weight: 800; font-size: 1.65rem; line-height: 1; text-transform: uppercase; color: var(--navy); }
.emx-quickstart__note { font-size: 0.88rem; color: var(--muted); }
.emx-quickstart__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; align-items: end; }

/*
  Inspection copy is too long for the third column. Apple HIG: keep the
  52px tap, put the primary CTA on its own row so the words stay readable.
*/
.emx-quickstart.is-roofing .emx-quickstart__fields {
  grid-template-columns: 1fr 1fr;
}
.emx-quickstart.is-roofing .emx-quickstart__fields .emx-btn {
  grid-column: 1 / -1;
}
.emx-quickstart label { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; font-weight: 600; color: #33414F; }
.emx-quickstart input, .emx-quickstart select {
  height: 52px;
  padding: 0 12px;
  border: 1px solid #B8C2CE;
  border-radius: 6px;
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
}
.emx-quickstart .emx-btn { height: 52px; min-height: 52px; width: 100%; padding: 0 16px; }
.emx-quickstart__foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #EEF1F4;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  font-size: 0.92rem;
  color: var(--muted);
}
.emx-quickstart__foot a { font-weight: 700; text-decoration: none; }
.emx-quickstart__foot span { text-align: center; }
.emx-quickstart__foot span a { color: var(--navy); }

/*
  Instant quote used to be a quiet text link next to the phone number.
  Navy fill + gold Instant chip so it reads as a second real CTA
  without cloning the gold Get started button above it.
*/
.emx-quickstart__quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(0, 82, 158, 0.28);
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.2s ease,
    box-shadow 0.25s ease;
}
.emx-quickstart__quote-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1;
}
.emx-quickstart__quote:hover,
.emx-quickstart__quote:focus-visible {
  background: var(--navy-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 82, 158, 0.4);
}

/* Soft gold ring so the button breathes without a banner-ad bounce. */
@media (prefers-reduced-motion: no-preference) {
  .emx-quickstart__quote {
    animation: emx-quote-pulse 2.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  }
  .emx-quickstart__quote:hover,
  .emx-quickstart__quote:focus-visible {
    animation: none;
  }
}
@keyframes emx-quote-pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(0, 82, 158, 0.28), 0 0 0 0 rgba(255, 214, 33, 0.55); }
  70% { box-shadow: 0 8px 22px rgba(0, 82, 158, 0.28), 0 0 0 8px rgba(255, 214, 33, 0); }
}

.emx-home-hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--navy-deep); }
.emx-home-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.emx-home-hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 82, 158, 0.96) 0%, rgba(0, 82, 158, 0.9) 36%, rgba(0, 82, 158, 0.45) 62%, rgba(0, 82, 158, 0.08) 100%); pointer-events: none; }
.emx-home-hero .emx-home-hero__chip { z-index: 3; left: auto; right: clamp(16px, 2.4vw, 32px); bottom: clamp(84px, 7vw, 96px); }
.emx-home-hero .emx-home-hero__work { z-index: 4; }
.emx-home-hero__chip {
  position: absolute;
  z-index: 2;
  left: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  background: rgba(0, 55, 100, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  backdrop-filter: blur(6px);
}
.emx-home-hero__chipicon { display: inline-flex; width: 40px; height: 40px; border-radius: 8px; background: var(--gold); color: var(--navy); align-items: center; justify-content: center; flex: 0 0 auto; }
.emx-home-hero__chipeyebrow { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.emx-home-hero__work {
  position: absolute;
  z-index: 2;
  right: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--white);
  color: var(--navy) !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(4, 12, 26, 0.3);
}

/* Instant quote opened inside the hero (site.js adds .is-quoting) */
.emx-home-hero .hero-home-copy.is-quoting {
  display: block;
  max-width: 652px;
  width: 100%;
  padding: clamp(28px, 4vw, 56px) 0;
}
.emx-home-hero .hero-home-copy.is-quoting .emx-home-hero__eyebrow { display: none; }
.emx-home-hero .hero-home-quote { background: var(--white); border-radius: 12px; border-top: 6px solid var(--gold); padding: 16px 16px 8px; box-shadow: 0 24px 60px rgba(4, 12, 26, 0.45); }
.emx-home-hero .hero-home-quote__bar { margin: 0 0 8px; padding: 0; align-items: center; }
.emx-home-hero .hero-home-quote__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy); }
.emx-home-hero .hero-home-quote__note { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.emx-home-hero .hero-home-quote__close { background: var(--navy); color: var(--white); }
.emx-home-hero .hero-home-quote__close:hover { background: var(--gold); color: var(--navy); }

@media (max-width: 1079px) {
  .emx-home-hero__media img { object-position: 60% 50%; }
  .emx-home-hero__media::before { background: linear-gradient(180deg, rgba(0, 82, 158, 0.62) 0%, rgba(0, 82, 158, 0.86) 40%, rgba(0, 82, 158, 0.94) 100%); }
  .emx-home-hero .emx-home-hero__chip, .emx-home-hero .emx-home-hero__work { display: none; }
}

@media (max-width: 600px) {
  .emx-checks--inline { flex-direction: column; gap: 9px; }
}

/* =============================================================================
   Home sections
   ============================================================================= */
.emx-trust { background: var(--white); border-bottom: 1px solid var(--line); }
.emx-trust__inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding: 28px 0; }
.emx-trust__label { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.emx-trust__logos { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; flex: 1 1 640px; justify-content: space-between; }
.emx-trust__logos img { height: 58px; width: auto; }
.emx-trust__stat { display: flex; flex-direction: column; line-height: 1.15; border-left: 3px solid var(--gold); padding-left: 14px; }
.emx-trust__stat strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.emx-trust__stat span { font-size: 0.9rem; color: var(--muted); }

.emx-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.emx-service {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.emx-service:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15, 27, 45, 0.06), 0 18px 40px rgba(15, 27, 45, 0.14); }
.emx-service__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.emx-service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--emx-ease); }
.emx-service:hover .emx-service__media img { transform: scale(1.04); }
.emx-service__tag { position: absolute; left: 16px; top: 16px; background: var(--navy); color: var(--gold); padding: 6px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.emx-service__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 24px 24px 26px; }
.emx-service__body h3 { margin: 0; font-size: 1.9rem; }
.emx-service__body p { margin: 0; flex: 1; color: var(--muted); line-height: 1.5; }
.emx-service .emx-more { margin-top: 10px; }

.emx-diff { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; }
.emx-diff__intro { flex: 1 1 420px; min-width: 0; }
.emx-diff__intro h2 { margin: 0 0 18px; }
.emx-diff__intro p { font-size: 1.12rem; line-height: 1.55; margin: 0 0 28px; max-width: 520px; }
.emx-diff__grid { flex: 1 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px 40px; }
.emx-diff__grid > div { border-top: 3px solid var(--gold); padding-top: 18px; }
.emx-diff__grid h3 { margin: 0 0 8px; font-size: 1.6rem; }
.emx-diff__grid p { margin: 0; line-height: 1.55; }

.emx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; counter-reset: none; }
.emx-steps li { background: var(--paper); border-radius: 10px; padding: 28px 24px; }
.emx-steps__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--max-blue); margin-bottom: 14px; }
.emx-steps h3 { margin: 0 0 8px; font-size: 1.6rem; }
.emx-steps p { margin: 0; color: var(--muted); line-height: 1.55; }

.emx-work { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 260px; gap: 16px; }
.emx-work figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: var(--line); }
.emx-work img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--emx-ease); }
.emx-work figure:hover img { transform: scale(1.04); }
.emx-work__big { grid-column: span 2; grid-row: span 2; }
.emx-work figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--navy); color: var(--white); padding: 8px 12px; border-radius: 6px; font-size: 0.9rem; font-weight: 600; }

.emx-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.emx-reviews figure { margin: 0; background: var(--paper); border-radius: 10px; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.emx-reviews__mark { font-family: var(--font-display); font-weight: 800; font-size: 4.5rem; line-height: 0.6; color: var(--gold); height: 34px; }
.emx-reviews blockquote { margin: 0; font-size: 1.12rem; line-height: 1.55; color: var(--ink); flex: 1; }
.emx-reviews figcaption { font-weight: 700; color: var(--navy); }
.emx-reviews figcaption span { font-weight: 500; color: var(--muted); }

.emx-band { background: var(--gold); }
.emx-band__inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding: clamp(40px, 5vw, 56px) 0; }
.emx-band h2 { margin: 0; font-size: clamp(2.2rem, 3.6vw, 3rem); color: var(--navy); }
.emx-band p { margin: 10px 0 0; font-size: 1.08rem; color: #003764; }

.emx-area { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: stretch; }
.emx-area > div:first-child { flex: 1 1 460px; min-width: 0; }
.emx-area h2 { margin: 0 0 16px; }
.emx-area__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 0 32px; }
.emx-area__list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.emx-area__list strong { color: var(--navy); }
.emx-area__list span { color: var(--muted); font-size: 0.9rem; }

/*
  One office now. Stack Greenbelt + the ZIP bar on a single 8pt column
  so they share a width — auto-fit left the office card hanging short.
*/
.emx-area__offices {
  flex: 1 1 420px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 16px;
}
.emx-office { background: var(--paper); border-radius: 10px; padding: 24px; }
.emx-office h3 { margin: 0 0 8px; font-size: 1.5rem; }
.emx-office p { margin: 0 0 10px; color: var(--muted); }
.emx-office a { font-weight: 700; text-decoration: none; }
.emx-office--dark {
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.emx-office--dark a { color: var(--gold); font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; }

.emx-final { position: relative; overflow: hidden; }
.emx-final > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.emx-final::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 82, 158, 0.96) 0%, rgba(0, 82, 158, 0.75) 60%, rgba(0, 82, 158, 0.5) 100%); }
.emx-final__inner { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.emx-final h2 { margin: 0; max-width: 760px; font-size: clamp(2.5rem, 4.6vw, 4rem); }
.emx-final p { margin: 18px 0 0; max-width: 560px; font-size: 1.15rem; }
.emx-final__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

@media (max-width: 900px) {
  .emx-work { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
}

/* =============================================================================
   Projects page — before/after sliders + gallery
   ============================================================================= */
.emx-page-hero { background: var(--navy); color: var(--white); }
.emx-page-hero__inner { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; padding: clamp(40px, 5vw, 64px) 0 clamp(40px, 5vw, 56px); }
.emx-page-hero__crumb { font-size: 0.88rem; color: #BFD3E6; margin-bottom: 24px; }
.emx-page-hero__crumb a { color: #C9D5E2; }
.emx-page-hero h1 { margin: 0; color: var(--white); }
.emx-page-hero h1 span { color: var(--gold); }
.emx-page-hero p { margin: 22px 0 0; max-width: 600px; font-size: 1.18rem; line-height: 1.55; color: #D5DEE8; }

.emx-ba {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.emx-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.emx-ba [data-ba-before] { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
/*
  Zoom/shift lives on the img. Clip lives on this untransformed frame
  so the seam stays under the handle instead of sliding with scale().
*/
.emx-ba__shot { position: absolute; inset: 0; }
.emx-ba__shot--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.emx-ba__shot--before [data-ba-before] { clip-path: none; }
.emx-ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--white); box-shadow: 0 0 14px rgba(0, 0, 0, 0.35); pointer-events: none; }
.emx-ba__handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  width: clamp(44px, 5vw, 64px);
  height: clamp(44px, 5vw, 64px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 4px solid var(--white);
  background: rgba(0, 82, 158, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
}
.emx-ba__handle::before, .emx-ba__handle::after { content: ""; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.emx-ba__handle::before { border-right: 9px solid var(--white); }
.emx-ba__handle::after { border-left: 9px solid var(--white); }
.emx-ba__label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 82, 158, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: clamp(8px, 1.2vw, 14px) clamp(14px, 2vw, 28px);
  border-radius: 10px;
  font-size: clamp(0.88rem, 1.6vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  pointer-events: none;
}
.emx-ba__label--before { left: clamp(10px, 2vw, 24px); }
.emx-ba__label--after { right: clamp(10px, 2vw, 24px); }
.emx-ba input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.emx-feature { background: var(--navy-deep); color: var(--white); }
.emx-feature__card {
  max-width: 640px;
  margin-inline: auto;
  background: var(--navy-raised);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: clamp(6px, 1vw, 10px);
}
/*
  3/2 is a hair wider than the Instagram pairs (~1.37), so cover
  trims sky and grass the same way on both frames. --ba-before and
  --ba-after stay matched so the eave / door / window sit on one line.
*/
.emx-feature__card .emx-ba { border-radius: 12px; aspect-ratio: 3 / 2; }
.emx-feature__card .emx-ba [data-ba-before] {
  object-position: var(--ba-before, 50% 46%);
  /*
    translate() needs a comma between X and Y. The canvas stores shift
    as "8% -12%", so JS splits that into --ba-before-x / --ba-before-y.
  */
  transform: scale(var(--ba-before-scale, 1)) translate(var(--ba-before-x, 0%), var(--ba-before-y, 0%));
  transform-origin: var(--ba-before-origin, 50% 50%);
}
.emx-feature__card .emx-ba [data-ba-after] {
  object-position: var(--ba-after, 50% 46%);
  transform: scale(var(--ba-after-scale, 1)) translate(var(--ba-after-x, 0%), var(--ba-after-y, 0%));
  transform-origin: var(--ba-after-origin, 50% 50%);
}
.emx-feature__card .emx-ba__label {
  top: 12px;
  transform: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.emx-feature__meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.emx-feature__title { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; text-transform: uppercase; color: var(--white); }
.emx-feature__scope { font-size: 0.95rem; color: #BFD3E6; }
.emx-feature__tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.emx-feature__tabs button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 6px 14px 6px 6px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #C9D5E2;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.emx-feature__tabs button[aria-pressed="true"] { border-color: var(--gold); background: var(--navy-raised); color: var(--white); font-weight: 700; }
.emx-feature__tabs img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }

.emx-pairs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.emx-pairs figure { margin: 0; background: var(--white); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); }
.emx-pairs .emx-ba { border-radius: 10px; aspect-ratio: 3 / 4; }
.emx-pairs .emx-ba__line { width: 3px; margin-left: -1.5px; }
.emx-pairs .emx-ba__handle { width: 40px; height: 40px; border-width: 3px; }
.emx-pairs .emx-ba__handle::before, .emx-pairs .emx-ba__handle::after { border-top-width: 5px; border-bottom-width: 5px; }
.emx-pairs .emx-ba__handle::before { border-right-width: 6px; }
.emx-pairs .emx-ba__handle::after { border-left-width: 6px; }
.emx-pairs .emx-ba__label { top: 8px; transform: none; padding: 5px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.emx-pairs .emx-ba__label--before { left: 8px; }
.emx-pairs .emx-ba__label--after { right: 8px; }
.emx-pairs figcaption { padding: 14px 8px 8px; font-weight: 700; color: var(--navy); }

@media (max-width: 1179px) { .emx-pairs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .emx-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.emx-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.emx-filters button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid #C5CDD7;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.emx-filters button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); font-weight: 700; }

.emx-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 290px; grid-auto-flow: dense; gap: 14px; }
.emx-gallery figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--line); }
.emx-gallery figure[hidden] { display: none; }
.emx-gallery img { width: 100%; height: 100%; object-fit: cover; }
.emx-gallery .is-big { grid-column: span 2; grid-row: span 2; }
.emx-gallery .is-wide { grid-column: span 2; }
.emx-gallery figcaption { position: absolute; left: 10px; bottom: 10px; background: var(--navy); color: var(--white); padding: 6px 10px; border-radius: 6px; font-size: 0.82rem; font-weight: 600; }
.emx-gallery__more { margin-top: 20px; text-align: center; }
.emx-gallery__more[hidden] { display: none; }
.emx-gallery__more button { min-height: 52px; padding: 0 26px; border-radius: 6px; border: 2px solid var(--navy); background: var(--white); color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: 0.03em; text-transform: uppercase; cursor: pointer; }

@media (max-width: 759px) {
  .emx-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
}

.emx-btn--navy-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.emx-btn--navy-outline:hover { background: var(--navy); color: var(--white); }

/* site.js hides the hero copy while the instant quote is open */
.emx-home-hero .hero-home-copy.is-quoting .hero-actions,
.emx-home-hero .hero-home-copy.is-quoting h1,
.emx-home-hero .hero-actions[hidden],
.emx-home-hero h1[hidden] { display: none; }

.media.diagram img.emx-topic-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}
.media.diagram:has(.emx-topic-photo) { background: transparent; box-shadow: none; height: auto; min-height: 0; }

/* =============================================================================
   Service page hero (split) + windows style picker, signs, process
   ============================================================================= */
.emx-svc-hero { background: var(--navy); }
.emx-svc-hero__inner { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; padding: clamp(40px, 6vw, 80px) 0 clamp(44px, 6vw, 88px); }
.emx-svc-hero__copy { flex: 1 1 520px; min-width: 0; }
.emx-svc-hero h1 { margin: 0; font-size: clamp(2.9rem, 5.2vw, 4.75rem); line-height: 0.92; color: var(--white); }
.emx-svc-hero h1 .accent-gold { color: var(--gold); }
.emx-svc-hero p { margin: 22px 0 0; max-width: 540px; font-size: 1.18rem; line-height: 1.55; color: #D5DEE8; }
.emx-svc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 30px; }
.emx-svc-hero__media { flex: 1 1 460px; min-width: 0; position: relative; }
.emx-svc-hero__media > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; border-radius: 14px; box-shadow: 0 30px 60px rgba(4, 12, 26, 0.35); }
.emx-svc-hero__media .emx-home-hero__chip { left: 16px; bottom: 16px; }
.emx-svc-hero .emx-page-hero__crumb { margin-bottom: 22px; }
.emx-svc-hero .emx-eyebrow { color: var(--gold); margin-bottom: 16px; }

.emx-stats { margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 18px 36px; }
.emx-stats div { border-left: 3px solid var(--gold); padding-left: 14px; }
.emx-stats dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #BFD3E6; }
.emx-stats dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 1.65rem; color: var(--white); }

.emx-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.emx-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 18px 6px 6px;
  border-radius: 10px;
  border: 2px solid #C5CDD7;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.emx-tabs button:hover { border-color: var(--navy); }
.emx-tabs button[aria-selected="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.emx-tabs img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }

.emx-style { display: flex; flex-wrap: wrap; background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 16px); }
.emx-style[hidden] { display: none; }
.emx-style__media { flex: 1 1 520px; min-width: 0; position: relative; min-height: 360px; background: var(--line); }
.emx-style__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.emx-style__body { flex: 1 1 380px; min-width: 0; padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.emx-style__body .emx-eyebrow { margin: 0; font-size: 0.8rem; }
.emx-style__body h3 { margin: 0; font-size: 2.6rem; line-height: 0.95; }
.emx-style__body p { margin: 0; font-size: 1.06rem; line-height: 1.55; color: var(--muted); }
.emx-style__best > span:first-child { display: block; margin-bottom: 8px; font-size: 0.82rem; font-weight: 700; color: #33414F; }
.emx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.emx-chips span { padding: 6px 12px; border-radius: 999px; background: #EEF3FA; color: var(--navy); font-size: 0.88rem; font-weight: 600; }
.emx-style__body .emx-btn { margin-top: auto; align-self: flex-start; }

.emx-checks--blue li { font-weight: 500; }
.emx-checks--blue li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230052A5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.emx-signs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.emx-sign { background: var(--paper); border-radius: 12px; padding: 28px 24px; transition: transform 0.2s, box-shadow 0.2s; }
.emx-sign:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15, 27, 45, 0.06), 0 18px 40px rgba(15, 27, 45, 0.12); }
.emx-sign__n { display: inline-flex; width: 52px; height: 52px; border-radius: 12px; background: var(--navy); color: var(--gold); align-items: center; justify-content: center; margin-bottom: 18px; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; }
.emx-sign h3 { margin: 0 0 8px; font-size: 1.6rem; }
.emx-sign p { margin: 0; color: var(--muted); line-height: 1.55; }

.emx-process { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; }
.emx-process__copy { flex: 1 1 520px; min-width: 0; }
.emx-process__copy h2 { margin: 0 0 32px; }
.emx-process__steps { list-style: none; margin: 0; padding: 0; }
.emx-process__steps li { display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.emx-process__n { flex: 0 0 44px; font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; color: var(--max-blue); }
.emx-process__steps strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.05; text-transform: uppercase; color: var(--navy); }
.emx-process__steps li > span:last-child > span { display: block; margin-top: 6px; color: var(--muted); line-height: 1.5; }
.emx-process__img { flex: 1 1 420px; min-width: 0; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }

@media (max-width: 700px) {
  .emx-tabs button { flex: 1 1 calc(50% - 5px); padding-right: 10px; font-size: 0.92rem; }
  .emx-style__media { min-height: 240px; }
  .emx-process__img { aspect-ratio: 4 / 3; }
}

/* Carousel inside a picker panel (gutters) */
.emx-style__media .emx-style__carousel { position: absolute; inset: 0; }
.emx-style__carousel .topic-carousel__stage,
.emx-style__carousel .topic-carousel__stage.topic-art { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }

/* Pages ported straight from the design boards */
.emx-ported [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.emx-ported h1::after, .emx-ported h2::after { display: none; }
.emx-ported img { max-width: 100%; }
.emx-ported details summary { list-style: none; }
.emx-ported details summary::-webkit-details-marker { display: none; }
.emx-ported h1, .emx-ported h2, .emx-ported h3, .emx-ported h4 { color: inherit; letter-spacing: inherit; }
.emx-ported p { margin: 0; }

/* "Owens Corning Platinum Preferred Contractor" credential pill (heroes, final CTAs, footer, estimate pages) */
p.emx-cred {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 20px 0 0;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 214, 33, 0.12);
  border: 1px solid rgba(255, 214, 33, 0.45);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
p.emx-cred svg { flex: 0 0 auto; color: var(--gold); }
p.emx-cred strong { color: var(--gold); font-weight: 700; }
.emx-final p.emx-cred { margin: 0 0 20px; }
.emx-footer__brand p.emx-cred--footer { margin: 0; align-self: flex-start; color: var(--white); font-size: 0.86rem; }
.quote-grid p.emx-cred { margin-top: 18px; background: #FFF8D6; border-color: #EBCB45; color: var(--ink); }
.quote-grid p.emx-cred svg, .quote-grid p.emx-cred strong { color: var(--navy); }
.emx-trust__label small { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em; text-transform: none; color: var(--navy); }

/* =============================================================================
   Custom select — native <select> menus cannot be styled (macOS paints its
   own list). We keep the <select> for the form value and paint a branded
   listbox: 12px card, gold cap, 44pt rows, navy highlight, spring open.
   HIG: label stays above, 8pt grid, 44pt taps, checkmark for the current
   value, gold 3px focus ring, Escape / click-out to dismiss.
   ============================================================================= */
.emx-select { position: relative; display: block; width: 100%; }
.emx-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}
.emx-select__btn {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  min-height: 44px;
  padding: 0 40px 0 12px;
  border: 1px solid #B8C2CE;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: border-color 0.2s var(--emx-ease), box-shadow 0.2s var(--emx-ease);
}
.emx-select__btn:hover { border-color: var(--navy); }
.emx-select__btn:focus-visible,
.emx-select.is-open .emx-select__btn {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(255, 214, 33, 0.85);
}
.emx-select__value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.emx-select__btn svg {
  position: absolute;
  right: 14px;
  width: 14px;
  height: 14px;
  color: var(--navy);
  flex: 0 0 auto;
  transition: transform 0.38s cubic-bezier(0.22, 1.2, 0.36, 1);
}
.emx-select.is-open .emx-select__btn svg { transform: rotate(180deg); }

.emx-select__list {
  position: fixed;
  z-index: 90;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 55, 100, 0.22), 0 2px 6px rgba(0, 55, 100, 0.08);
  transform-origin: top center;
  animation: emx-select-in 0.42s cubic-bezier(0.22, 1.2, 0.36, 1);
}
.emx-select__list[data-flip="1"] {
  transform-origin: bottom center;
  animation-name: emx-select-in-up;
}
.emx-select__list[hidden] { display: none; }

.emx-select__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: background 0.18s var(--emx-ease), color 0.18s var(--emx-ease);
}
.emx-select__opt svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: transparent;
}
.emx-select__opt[aria-selected="true"] svg { color: var(--navy); }
.emx-select__opt.is-active,
.emx-select__opt:hover {
  background: var(--paper);
  color: var(--navy);
}
.emx-select__opt[aria-selected="true"].is-active,
.emx-select__opt[aria-selected="true"]:hover {
  background: var(--navy);
  color: var(--white);
}
.emx-select__opt[aria-selected="true"].is-active svg,
.emx-select__opt[aria-selected="true"]:hover svg { color: var(--gold); }

@keyframes emx-select-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes emx-select-in-up {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .emx-select__list,
  .emx-select__list[data-flip="1"] { animation: none; }
  .emx-select__btn svg { transition: none; }
}
