/* Master Air Duct Services — shared stylesheet */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --ink: #16222e;
  --ink-soft: #4a5a68;
  --line: #dde4ec;
  --brand: #0e5c8a;
  --brand-dark: #0a3f60;
  --accent: #1fa4a0;
  --accent-soft: #e4f4f3;
  --warn: #e07a26;
  --shadow: 0 10px 30px -12px rgba(16,34,46,.25);
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; text-wrap: balance; margin: 0; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

/* ---------- top bar ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-dark);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 10px;
}
.logo { display: flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; color: #fff; }
.logo .mark {
  width: 40px; height: 40px; flex: none;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--accent), var(--brand));
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.logo .mark svg { width: 24px; height: 24px; }
.logo b { font-family: var(--font-head); font-size: 1.04rem; letter-spacing: .2px; white-space: nowrap; }
.logo span { display: block; font-size: .64rem; letter-spacing: 2.4px; text-transform: uppercase; color: #bfe4e2; }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a.link { color: #cfe3ee; text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a.link:hover, .nav-links a.link.active { color: #fff; }

.nav-call {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent);
  color: #04231f;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.nav-call svg { width: 17px; height: 17px; }
.nav-call small { display: block; font-size: .58rem; letter-spacing: 1.6px; text-transform: uppercase; opacity: .8; font-weight: 600; }

/* ---------- hero ---------- */
.hero { background:
    radial-gradient(1100px 500px at 85% -10%, rgba(31,164,160,.22), transparent 60%),
    linear-gradient(180deg, var(--brand-dark), var(--brand));
  color: #fff; }
.hero-inner { padding-block: 58px 66px; display: grid; gap: 30px; grid-template-columns: 1.15fr .85fr; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; letter-spacing: 2.6px; text-transform: uppercase;
  color: #bfe4e2; font-weight: 600;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); margin-top: 18px; letter-spacing: -.5px; }
.hero p.lead { font-size: 1.1rem; color: #dcebf2; max-width: 46ch; margin-top: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; text-decoration: none;
  padding: 14px 24px; border-radius: 12px; font-size: 1.05rem; border: 0; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #04231f; box-shadow: var(--shadow); }
.btn-ghost { background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn svg { width: 19px; height: 19px; }
.trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.trust div { min-width: 0; }
.trust b { font-family: var(--font-head); font-size: 1.5rem; display: block; }
.trust span { font-size: .76rem; color: #bfe4e2; letter-spacing: .4px; }

.hero-card {
  background: var(--surface); color: var(--ink);
  border-radius: 18px; padding: 24px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-card h3 { font-size: 1.15rem; }
.hero-card ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 13px; }
.hero-card li { display: flex; gap: 11px; align-items: flex-start; font-size: .96rem; color: var(--ink-soft); }
.hero-card li svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 1px; }
.hero-card .callrow {
  margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hero-card .callrow a { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.hero-card .callrow small { color: var(--ink-soft); font-size: .72rem; text-transform: uppercase; letter-spacing: 1.4px; }

/* ---------- sections ---------- */
section { padding-block: 56px; }
.sec-head { max-width: 60ch; margin-bottom: 34px; }
.sec-head .kicker { color: var(--accent); font-family: var(--font-head); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: .78rem; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 10px; letter-spacing: -.4px; }
.sec-head p { color: var(--ink-soft); font-size: 1.04rem; margin-top: 12px; }

.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 15px; padding: 24px; box-shadow: var(--shadow);
}
.card .ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 15px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.16rem; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 9px 0 0; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.step { background: var(--surface-2); border-radius: 14px; padding: 22px; border: 1px solid var(--line); }
.step b.n { font-family: var(--font-head); font-size: .8rem; color: var(--accent); letter-spacing: 1.5px; }
.step h3 { font-size: 1.05rem; margin-top: 8px; }
.step p { color: var(--ink-soft); font-size: .9rem; margin: 7px 0 0; }

/* ---------- locations ---------- */
.loc { background: var(--surface-2); }
.page-locations { background: var(--surface-2); min-height: 70vh; }
.loc-tools {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 20px;
}
.search { flex: 1 1 280px; min-width: 0; position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-soft); }
.search input {
  width: 100%; padding: 13px 14px 13px 42px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem;
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.state-sel {
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); color: var(--ink); font-size: 1rem; font-family: var(--font-body);
  min-width: 170px;
}
.count-pill {
  font-size: .82rem; color: var(--ink-soft); background: var(--surface);
  border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.count-pill b { color: var(--accent); }

.loc-list {
  background: var(--surface); border: 1px solid var(--line); border-radius: 15px;
  box-shadow: var(--shadow); overflow: hidden;
}
.loc-scroll { max-height: 640px; overflow-y: auto; }
.loc-scroll.tall { max-height: none; }
.state-group + .state-group { border-top: 6px solid var(--bg); }
.state-head {
  position: sticky; top: 0; z-index: 2;
  background: var(--brand-dark); color: #fff;
  padding: 11px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: .4px;
}
.state-head .st-count { font-size: .78rem; font-weight: 500; color: #bfe4e2; font-variant-numeric: tabular-nums; }
.loc-item {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center;
  padding: 13px 18px; border-top: 1px solid var(--line); text-decoration: none; color: inherit;
}
.state-group .loc-item:first-of-type { border-top: 0; }
.loc-item:hover { background: var(--accent-soft); }
.loc-item .pin { color: var(--accent); width: 20px; height: 20px; }
.loc-item .addr { min-width: 0; }
.loc-item .addr .street { font-weight: 600; font-size: .96rem; }
.loc-item .addr .cityline { color: var(--ink-soft); font-size: .85rem; }
.loc-item .go {
  font-size: .74rem; font-weight: 700; font-family: var(--font-head);
  color: var(--brand); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 11px; white-space: nowrap; background: var(--surface);
}
.loc-item:hover .go { border-color: var(--accent); color: var(--accent); }
.no-res { padding: 40px 18px; text-align: center; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; border-radius: 20px; padding: 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin: 8px 0 0; color: #eafbfa; max-width: 48ch; }
.cta-band .bigcall {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: var(--brand-dark); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem;
  padding: 16px 26px; border-radius: 14px; white-space: nowrap;
}
.cta-band .bigcall svg { width: 26px; height: 26px; }

/* ---------- footer ---------- */
footer { background: var(--brand-dark); color: #cfe3ee; }
.foot-inner { padding-block: 40px; display: grid; gap: 26px; grid-template-columns: 1.4fr 1fr 1fr; }
footer h4 { font-family: var(--font-head); color: #fff; font-size: 1rem; margin: 0 0 12px; }
footer p, footer li { font-size: .9rem; color: #a9c6d7; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: #cfe3ee; text-decoration: none; }
footer a:hover { color: #fff; }
.foot-call { font-family: var(--font-head); font-size: 1.35rem; color: #fff; text-decoration: none; display: inline-block; margin-top: 4px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 16px; font-size: .8rem; color: #8fb0c3; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .logo span { display: none; }
  .nav-call small { display: none; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { padding: 26px; }
  .loc-item { grid-template-columns: 22px 1fr; }
  .loc-item .go { display: none; }
}
