/* Essex Vacuum. Palette from the logo: teal #68bdc2, navy #262262.
   Teal fails AA as text on white (2.1:1), so text uses --teal-accessible.
   Navy on teal is 7:1, which is the primary button. */
/* Self-hosted Google Fonts (SIL OFL 1.1), latin subset. Preloaded in <head>. */
/* Metric-matched fallbacks so the swap to the web fonts does not move text (CLS). */
@font-face { font-family: "Source Sans 3 Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 93%; ascent-override: 106%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Condensed Fallback"; src: local("Arial Narrow"), local("Liberation Sans Narrow"), local("Arial"); size-adjust: 88%; ascent-override: 112%; descent-override: 28%; line-gap-override: 0%; }

:root {
  --navy: #262262;
  --navy-900: #17143f;
  --teal: #68bdc2;
  --teal-accessible: #1d6a70; /* 6.2:1 on white */
  --teal-50: #eef7f8;
  --teal-100: #d7eef0;
  --ink: #1d1f2c;
  --muted: #4b5066; /* 7.6:1 on white */
  --line: #dde3ea;
  --bg: #ffffff;
  --cream: #faf8f3;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(23 20 63 / 6%), 0 8px 24px rgb(23 20 63 / 8%);
  --font-display: "Barlow Condensed", "Barlow Condensed Fallback", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Source Sans 3 Fallback", Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-accessible); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal-accessible); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, .h3 {
  font-family: var(--font-display); color: var(--navy); line-height: 1.12;
  font-weight: 700; letter-spacing: .005em; margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3, .h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 12px; }

.eyebrow {
  font: 700 .95rem/1.2 var(--font-display); letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-accessible); margin: 0 0 .6em;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow-light { color: var(--teal); }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 62ch; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.35em; border-radius: 999px;
  font: 700 1.08rem/1 var(--font-display); letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.btn-primary:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 70%); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 1.25rem; }
.more { font-weight: 700; text-decoration: none; }
.more::after { content: " \2192"; }

/* top bar + header */
.topbar { background: var(--navy); color: #d9dcf2; font-size: .95rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.topbar-phone { color: #fff; font-weight: 700; text-decoration: none; }
.topbar-phone:hover { color: var(--teal); }
@media (max-width: 560px) { .topbar span { display: none; } .topbar .wrap { justify-content: center; } }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand-logo { width: 150px; height: auto; }
/* The checkbox is the menu control: hidden from view but focusable on small
   screens (Space toggles it); the label shows the focus ring. Off on desktop. */
.nav-toggle { position: absolute; width: 48px; height: 48px; margin: 0; opacity: 0; pointer-events: none; display: none; }
.nav-button { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: 4px; align-items: center; }
.site-nav a, .site-nav summary {
  display: block; padding: 10px 14px; border-radius: 10px; cursor: pointer;
  font: 700 1.12rem/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; list-style: none;
}
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.site-nav a:hover, .site-nav summary:hover, .site-nav .is-active > a, .site-nav .is-active summary { background: var(--teal-50); color: var(--teal-accessible); }
.site-nav a[aria-current="page"] { color: var(--teal-accessible); }
.has-sub { position: relative; }
.sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px;
}
.sub a { text-transform: none; letter-spacing: 0; font: 600 1.02rem/1.3 var(--font-body); padding: 10px 12px; }

@media (max-width: 980px) {
  .site-header .wrap { min-height: 72px; }
  .brand-logo { width: 120px; }
  .nav-toggle { display: block; }
  .nav-button {
    display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center;
    border-radius: 12px; border: 2px solid var(--navy); cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; } .bars::after { top: 7px; }
  .nav-toggle:checked + .nav-button .bars { background: transparent; }
  .nav-toggle:checked + .nav-button .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-button .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle:focus-visible + .nav-button { outline: 3px solid var(--teal-accessible); outline-offset: 3px; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - 110px); overflow-y: auto; padding: 8px 16px 18px;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .site-nav a, .site-nav summary { padding: 14px 12px; }
  .sub { position: static; box-shadow: none; border: 0; padding: 0 0 6px 12px; min-width: 0; }
}

/* breadcrumbs */
.crumbs { background: var(--cream); border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.crumbs .wrap { padding: 10px 0; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* sections */
.band { padding: clamp(48px, 7vw, 88px) 0; }
.band-tight { padding: 36px 0; }
.band-soft { background: var(--teal-50); }
.band-navy { background: var(--navy); color: #e6e7f5; }
.band-navy h2 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 2.2rem; }
.section-head p:last-child { color: var(--muted); font-size: 1.12rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.split-map { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 3rem; }
.stack { display: grid; gap: 20px; }
@media (max-width: 860px) { .split, .split-map, .two-up { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card-accent { border-top: 6px solid var(--teal); }
.prose > * { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child, .prose .eyebrow + h2 { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.callline { font: 700 1.5rem/1.2 var(--font-display); color: var(--navy); letter-spacing: .03em; }
.callline a { text-decoration: underline; text-decoration-thickness: 2px; }
.tick-list { list-style: none; padding: 0 !important; margin: 0 0 1em; }
.tick-list li { position: relative; padding: 6px 0 6px 32px; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23262262' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.q-list { padding-left: 1.2em; margin: 0; }
.q-list li { margin-bottom: .7em; font-style: italic; }
.aside-note { font-size: .98rem; color: var(--muted); }

/* hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero-bg { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(23 20 63 / 92%) 0%, rgb(23 20 63 / 78%) 45%, rgb(23 20 63 / 20%) 100%); }
.hero-inner { position: relative; z-index: 1; padding: clamp(64px, 10vw, 132px) 0; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 7vw, 5rem); max-width: 12ch; }
.hero .lead { color: #e3e5f5; }
@media (max-width: 700px) { .hero::after { background: linear-gradient(180deg, rgb(23 20 63 / 82%), rgb(23 20 63 / 92%)); } }

.page-hero { background: linear-gradient(180deg, var(--teal-50), #fff); padding: clamp(44px, 6vw, 76px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-hero-brand .hero-brand-logo { display: inline-block; background: #fff; padding: 14px 20px; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.brand-logo-lg { width: 180px; height: auto; }

/* home features */
.feature-grid, .product-grid, .brand-grid, .logo-row, .logo-wall, .stat-grid, .link-list { list-style: none; margin: 0; padding: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 2rem; }
.feature-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.feature-card > a:first-child { text-decoration: none; }
.feature-card img { width: 100%; max-width: 180px; aspect-ratio: 1; object-fit: contain; margin: 0 auto 14px; }
.feature-card p { color: var(--muted); flex: 1; }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

.logo-heading { text-align: center; font-size: 1.25rem; color: var(--muted); font-family: var(--font-body); font-weight: 600; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; margin: 1.5rem 0 2rem; align-items: center; }
.logo-row img { width: 160px; height: auto; }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.logo-wall li { background: #fff; border-radius: 12px; display: grid; place-items: center; padding: 18px; min-height: 104px; border: 1px solid var(--line); }
.logo-wall img { max-height: 64px; width: auto; object-fit: contain; }

.estimate { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.estimate > div:first-child { max-width: 640px; }
.estimate p { font-size: 1.15rem; }

/* brand + product grids */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.brand-card a { display: flex; flex-direction: column; align-items: center; gap: 18px; height: 100%; padding: 26px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.brand-card a:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgb(23 20 63 / 14%); }
.brand-card img { max-height: 230px; width: auto; object-fit: contain; }
.brand-logo-img img { height: 44px; width: auto; }
.brand-card .btn { margin-top: auto; }
@media (max-width: 1000px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .brand-grid { grid-template-columns: 1fr; } }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; margin-bottom: 1.5rem; }
.product-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.product-card a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card-media { display: grid; place-items: center; aspect-ratio: 1; padding: 18px; background: #fff; border-bottom: 1px solid var(--line); }
.product-card-media img { max-height: 100%; width: auto; object-fit: contain; }
.product-card-name { padding: 14px 16px 18px; font: 700 1.2rem/1.2 var(--font-display); color: var(--navy); letter-spacing: .01em; }

/* product page */
.product-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(36px, 5vw, 64px); }
.product-media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; justify-items: center; gap: 16px; }
.product-img { max-height: 460px; width: auto; object-fit: contain; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.thumb { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.product-summary h1 { font-size: clamp(2rem, 4vw, 3rem); }
.price { font: 700 2rem/1 var(--font-display); color: var(--navy); }
.callout { background: var(--teal-50); border-left: 5px solid var(--teal); border-radius: 10px; padding: 18px 20px; margin-top: 1.4rem; }
.callout p { margin: 0; }
.callout .btn-row { margin-top: 14px; }
.product-body { padding-bottom: clamp(40px, 6vw, 72px); }
.product-body h2 { font-size: 1.7rem; margin-top: 1.5em; }
.product-lead { font-weight: 600; font-size: 1.3rem; color: var(--ink); line-height: 1.45; max-width: 62ch; }
.product-body h3 { font-size: 1.3rem; margin: 1.2em 0 .3em; }
.table-wrap { overflow-x: auto; margin-bottom: 1rem; max-width: 760px; }
.specs { width: 100%; border-collapse: collapse; font-size: 1rem; }
.specs th, .specs td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 50%; font-weight: 600; color: var(--muted); }
@media (max-width: 760px) { .product-top { grid-template-columns: 1fr; } .product-img { max-height: 340px; } }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 2rem 0; }
.stat-grid li { background: #fff; border-radius: var(--radius); padding: 26px; text-align: center; display: grid; justify-items: center; gap: 12px; box-shadow: var(--shadow); }
.stat-grid strong { font: 700 1.5rem/1.2 var(--font-display); color: var(--navy); }
@media (max-width: 700px) { .stat-grid { grid-template-columns: 1fr; } }
.figure-tall { margin: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; display: grid; place-items: center; }
.figure-tall img { max-height: 520px; width: auto; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -10px; }
.contact-tile {
  display: grid; gap: 6px; align-content: start; padding: 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: transform .15s, border-color .15s;
}
.contact-tile:hover { transform: translateY(-3px); border-color: var(--teal); color: var(--ink); }
.contact-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--navy); margin-bottom: 8px; }
.contact-label { font: 700 .95rem/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-accessible); }
.contact-value { font: 700 1.6rem/1.2 var(--font-display); color: var(--navy); overflow-wrap: anywhere; }
.contact-hint { color: var(--muted); font-size: .98rem; }
.contact-hint::after { content: " \2192"; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--teal-100); aspect-ratio: 4 / 3.4; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.nap { font-style: normal; font-size: 1.08rem; line-height: 1.7; margin-bottom: 1rem; }
.hours { border-collapse: collapse; margin-bottom: 1rem; }
.hours th, .hours td { text-align: left; padding: 4px 18px 4px 0; }
.hours-note { color: var(--muted); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* blog */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-card h2 { font-size: 1.6rem; }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover { color: var(--teal-accessible); }
.post-card p:not(.post-date) { color: var(--muted); flex: 1; }
.post-date { font: 700 .9rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-accessible); }
.post { padding-block: clamp(40px, 6vw, 72px); }
.post header { margin-bottom: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
.post-meta { color: var(--muted); }
.post figure { margin: 1.5rem 0; }
.post .callout { margin-top: 2.5rem; }

.page-404 { padding-block: 72px; }
.link-list li { padding: 6px 0; font-size: 1.15rem; }

/* footer */
.site-footer { background: var(--navy-900); color: #c9cbe3; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--teal); }
.footer-cta { background: var(--teal); color: var(--navy); }
.footer-cta .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; padding: 28px 0; }
.footer-cta-text { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.footer-cta-text span { color: var(--navy-900); border-bottom: 4px solid #fff; }
.footer-cta .btn-row { margin: 0; }
.footer-cta .btn-light { background: var(--navy); color: #fff; border-color: var(--navy); }
.footer-cta .btn-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.footer-cta .btn-outline-light { color: var(--navy); border-color: var(--navy); }
.footer-cta .btn-outline-light:hover { background: var(--navy); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 40px; }
.footer-logo { width: 140px; margin-bottom: 16px; }
.footer-h { font-size: 1.15rem; color: #fff; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 4px 0; }
.footer-links a { text-decoration: none; color: #c9cbe3; }
.footer-links a:hover { color: var(--teal); text-decoration: underline; }
.site-footer .nap { font-size: 1rem; }
.site-footer .hours-note { color: #c9cbe3; }
.footer-base { border-top: 1px solid rgb(255 255 255 / 10%); font-size: .95rem; }
.footer-base .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px 0; }
.footer-base p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .topbar, .site-header, .site-footer, .crumbs { display: none; } }
