/* Wired Home Pros (installer directory): one stylesheet, no framework, mobile first.
   BidGlory brand kit: navy #161F31 for text and dark bands, orange #F48413 for fills and borders only (never text on a
   light background), deep orange #A65300 for orange text on light, peach #FCD9B1, paper #FFFDF5 / #FEF7EC, muted #475569,
   lines #E2E8F0. Fraunces (headings) + Inter (body).
   The old variable names (sand, sage, terra, teal) are kept so the form, wizard and privacy styles below need no rewrite;
   their values now follow the kit. */

/* Self-hosted fonts (wwwroot/fonts, SIL OFL 1.1): latin subset (English + Spanish), variable weight; preloaded in the layout. */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("/fonts/fraunces-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #161F31;
  --navy-800: #1f2a40;
  --navy-950: #0d1320;
  --orange: #F48413;
  --orange-deep: #A65300;
  --peach: #FCD9B1;
  --paper: #FFFDF5;
  --paper-2: #FEF7EC;
  --slate: #475569;

  /* Legacy names, kit values. */
  --sand-50: #FFFDF5;
  --sand-100: #FEF7EC;
  --sand-200: #F4E6D2;
  --sand-300: #CBD5E1;
  --sage-100: #F1F5F9;
  --sage-300: #CBD5E1;
  --sage-600: #475569;
  --sage-800: #334155;
  --terra-400: #FCD9B1;
  --terra-500: #F48413;
  --terra-600: #F48413;
  --terra-700: #A65300;
  --teal-500: #33415c;
  --teal-700: #161F31;
  --teal-800: #161F31;
  --teal-900: #161F31;
  --ink: #161F31;
  --muted: #475569;
  --line: #E2E8F0;
  --white: #fff;
  --error: #b42318;
  --focus: #A65300;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(22, 31, 49, .06), 0 10px 30px -18px rgba(22, 31, 49, .35);
  --wrap: 74rem;
  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --section: clamp(3rem, 7vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute always wins over component display rules (photo picker, upload progress, wizard nav, nav toggle). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand-50);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--terra-700); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; color: var(--teal-900); margin: 0 0 .6em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.narrow { max-width: 46rem; }
.section { padding-block: var(--section); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40em; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-700); margin-bottom: .75rem; }
.eyebrow-light { color: var(--terra-400); }
.fine, .updated { font-size: .9rem; color: var(--muted); }
.note { background: var(--sage-100); border-left: 4px solid var(--sage-600); padding: .8rem 1rem; border-radius: var(--radius-sm); }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--teal-900); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.9rem; padding: .7rem 1.35rem; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-text); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.btn-primary:hover { background: #e07508; border-color: #e07508; color: var(--navy); }
.btn-secondary { background: var(--teal-700); color: #fff; }
.btn-secondary:hover { background: var(--navy-950); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-800); border-color: currentColor; }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-sm { min-height: 2.5rem; padding: .5rem 1rem; font-size: .95rem; }
.btn-lg { min-height: 3.3rem; padding: .85rem 1.7rem; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.text-link { font-weight: 600; }
.text-link::after { content: " →"; }
.text-link-light { color: var(--sand-100); }
.text-link-light:hover { color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 253, 245, .95); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: flex; flex: none; align-items: center; gap: .6rem; text-decoration: none; color: var(--teal-900); margin-right: auto; }
.brand-mark { width: 2.2rem; height: 2.2rem; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.1; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav ul a:hover { color: var(--terra-700); text-decoration: underline; }
.nav-actions { display: flex; align-items: center; gap: .9rem; }
.nav-phone { font-weight: 700 !important; color: var(--teal-800) !important; white-space: nowrap; }
.site-nav .btn-primary, .site-nav .btn-primary:hover { color: var(--navy); }
.nav-toggle { display: none; align-items: center; gap: .5rem; background: none; border: 2px solid var(--line); border-radius: 999px; padding: .45rem .9rem; font: 600 .95rem var(--font-text); color: var(--teal-900); cursor: pointer; min-height: 2.75rem; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 74.99rem) {
  .js .nav-toggle { display: inline-flex; }
  .site-nav { width: 100%; padding-bottom: 1rem; flex-direction: column; align-items: stretch; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .7rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-actions { justify-content: space-between; padding-top: .75rem; }
}
/* Desktop: brand, links, phone and CTA on one row inside the 74rem wrap. */
@media (min-width: 75rem) {
  .header-inner { flex-wrap: nowrap; }
  .site-nav { flex-wrap: nowrap; gap: 1rem; }
  .site-nav ul { flex-wrap: nowrap; gap: .25rem .95rem; }
  .site-nav a { font-size: .95rem; white-space: nowrap; }
  .site-nav .nav-extra { display: none; }
  .nav-actions { gap: .75rem; }
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 1rem 0 0; font-size: .9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--sand-300); }
.breadcrumbs a { color: var(--muted); }
/* Phones: one line. Earlier crumbs keep their full names; the current page (which the H1 repeats) shrinks with an
   ellipsis instead of wrapping onto a second line that starts with a stray "/". */
@media (max-width: 47.99rem) {
  .breadcrumbs ol { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
  .breadcrumbs li { flex: none; }
  .breadcrumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- content pages ---------- */
.doc-hero { padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.doc-hero-inner { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 64rem) { .doc-hero-inner { grid-template-columns: 1.1fr .9fr; } }
.doc-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-trust { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .92rem; color: var(--sage-800); font-weight: 600; }
.hero-trust li::before { content: "✓"; color: var(--sage-600); margin-right: .35rem; }

/* minmax(0, 1fr): without it the implicit column grows to the cost table's min-content width and phones scroll sideways. */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-bottom: var(--section); }
@media (min-width: 64rem) { .doc-layout { grid-template-columns: minmax(0, 1fr) 19rem; } }
.aside-sticky { position: sticky; top: 5.75rem; display: grid; gap: 1.25rem; }
@media (max-width: 63.99rem) { .doc-aside { display: none; } }
.toc { border-left: 2px solid var(--line); padding-left: 1rem; }
.toc-h { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.toc ol { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.toc li { margin-bottom: .45rem; line-height: 1.35; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--terra-700); text-decoration: underline; }
.aside-cta { background: var(--teal-800); color: var(--sand-100); padding: 1.4rem; border-radius: var(--radius); }
.aside-cta-h { font-family: var(--font-display); font-size: 1.25rem; color: #fff; line-height: 1.2; }
.aside-cta p { font-size: .95rem; }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.4em; scroll-margin-top: 6rem; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--terra-700); }
.prose blockquote { margin: 1.5em 0; padding: .25em 0 .25em 1.25em; border-left: 3px solid var(--terra-500); font-family: var(--font-display); font-size: 1.2rem; color: var(--teal-900); }
.prose picture { margin: 2rem 0; }
.prose picture img { border-radius: var(--radius); width: 100%; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose strong { color: var(--teal-900); }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { background: var(--sand-100); font-weight: 700; color: var(--teal-900); }
.table-wrap tr:last-child td { border-bottom: 0; }

.cta-card { margin: 2.5rem 0; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius); background: var(--sand-100); border: 1px solid var(--sand-200); display: grid; gap: 1.25rem; position: relative; overflow: hidden; }
.cta-card::before { content: ""; position: absolute; right: -3rem; top: -3rem; width: 9rem; height: 9rem; border-radius: 50%; background: var(--terra-400); opacity: .18; }
.cta-card-h { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 600; color: var(--teal-900); line-height: 1.2; margin-bottom: .5rem; }
.cta-points { list-style: none; padding: 0 !important; margin: 0 !important; font-size: .95rem; }
.cta-points li { padding-left: 1.5rem; position: relative; }
.cta-points li::before { content: "✓"; position: absolute; left: 0; color: var(--sage-600); font-weight: 700; }
.cta-card-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.cta-alt { font-size: .93rem; color: var(--muted); margin: 0; }
@media (min-width: 48rem) { .cta-card { grid-template-columns: 1fr auto; align-items: center; } }

.service-grid { list-style: none; padding: 0 !important; display: grid; gap: .8rem; margin: 1.5rem 0 !important; }
@media (min-width: 40rem) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
.service-tile { margin: 0 !important; }
.service-tile a { display: block; height: 100%; padding: 1rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); }
.service-tile a:hover { border-color: var(--terra-500); }
.service-tile-name { display: block; font-weight: 700; color: var(--teal-900); }
.service-tile-sum { display: block; font-size: .92rem; color: var(--muted); }

.faq { margin-top: 3rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 700; color: var(--teal-900); position: relative; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .25rem; top: .8rem; font-size: 1.6rem; font-weight: 400; color: var(--terra-700); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding-bottom: 1rem; color: var(--ink); }
.faq-a p:last-child { margin-bottom: 0; }

.related { padding-bottom: var(--section); }
.related h2 { font-size: 1.4rem; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
@media (min-width: 48rem) { .related-list { grid-template-columns: repeat(2, 1fr); } }
.related-list a { display: block; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; text-decoration: none; font-weight: 600; }
.related-list a:hover { border-color: var(--terra-500); }

/* ---------- forms ---------- */
.page-head { padding-top: clamp(1.75rem, 4vw, 3rem); }
.form-page { display: grid; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(1.5rem, 4vw, 3rem) var(--section); }
@media (min-width: 64rem) { .form-page { grid-template-columns: minmax(0, 1fr) 22rem; } }
.form-main { max-width: 42rem; }
.form-main h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.not-contractor { font-size: .9rem; color: var(--sage-800); background: var(--sage-100); border-radius: var(--radius-sm); padding: .7rem 1rem; }
.form-aside { align-self: start; position: sticky; top: 5.75rem; background: var(--sand-100); border-radius: var(--radius); overflow: hidden; padding-bottom: 1.25rem; }
.form-aside > :not(.form-aside-media) { margin-inline: 1.4rem; }
.form-aside-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 1.25rem; }
.form-aside-h { font-size: 1.25rem; margin-top: 1.25rem; }
.form-aside-media + .form-aside-h { margin-top: 0; }
@media (max-width: 63.99rem) { .form-aside { position: static; } .form-aside-media { display: none; } }
.next-steps { padding-left: 1.2rem; }
.next-steps li { margin-bottom: .8rem; }
.next-steps-lg { font-size: 1.05rem; max-width: 42rem; }
.next-steps-lg li { margin-bottom: 1.1rem; }
.next-steps-lg li span { display: block; color: var(--muted); }

.lead-form { margin-top: 1.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.step { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
.step-q { font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.65rem); font-weight: 600; color: var(--teal-900); line-height: 1.2; margin-bottom: .5rem; padding: 0; }
.step-q:focus { outline: none; }
.step-help { color: var(--muted); font-size: .95rem; }
.field { margin-bottom: 1.15rem; }
.field-label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
.field-optional { font-weight: 400; color: var(--muted); }
.field-hint { font-size: .9rem; color: var(--muted); margin: -.15rem 0 .45rem; }
.field-error { color: var(--error); font-weight: 600; font-size: .93rem; margin: 0 0 .4rem; }
.field-error::before { content: "⚠ "; }
.choice-set { border: 0; padding: 0; margin: 0; min-width: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff;
  border: 2px solid var(--sand-300); border-radius: var(--radius-sm); padding: .7rem .85rem; min-height: 3rem;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-700); outline: 3px solid rgba(244, 132, 19, .35); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.choices { display: grid; gap: .6rem; }
@media (min-width: 36rem) { .choices-2 { grid-template-columns: repeat(2, 1fr); } .choices-3 { grid-template-columns: repeat(3, 1fr); } }
.choice { display: flex; align-items: flex-start; gap: .75rem; padding: .85rem 1rem; background: #fff; border: 2px solid var(--sand-200); border-radius: var(--radius-sm); cursor: pointer; min-height: 3.2rem; transition: border-color .12s, background-color .12s; }
.choice:hover { border-color: var(--sage-600); }
.choice input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; flex: none; accent-color: var(--teal-700); }
.choice:has(input:checked) { border-color: var(--navy); background: var(--paper-2); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice-body { display: flex; flex-direction: column; }
.choice-label { font-weight: 600; line-height: 1.3; }
.choice-hint { font-size: .88rem; color: var(--muted); line-height: 1.35; margin-top: .15rem; }
.choice-compact { padding: .7rem .9rem; }
.consent { display: flex; gap: .8rem; align-items: flex-start; background: var(--sand-100); border: 1px solid var(--sand-200); border-radius: var(--radius-sm); padding: 1rem; font-size: .88rem; line-height: 1.5; margin-top: 1.5rem; }
.consent input { width: 1.4rem; height: 1.4rem; flex: none; margin-top: .1rem; accent-color: var(--teal-700); }
.consent label { cursor: pointer; }
.consent:has(.consent-detail) { flex-wrap: wrap; }
.consent .consent-sms { flex: 1; min-width: 0; }
.consent-detail { flex-basis: 100%; margin: 0 0 0 2.2rem; color: var(--muted); font-size: .84rem; }
.consent-terms { font-size: .95rem; flex-wrap: wrap; background: #fff; border-color: var(--sand-300); }
.consent-terms .field-error { flex-basis: 100%; }
.consent-terms label { flex: 1; min-width: 0; }
.consent-terms.has-error { border-color: var(--error); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.submit-hint { flex-basis: 100%; font-size: .88rem; color: var(--muted); margin: 0; }
.input-short { max-width: 11rem; }

/* Google Places search box (address step) */
.field-places { background: var(--sage-100); border: 1px solid var(--sage-300); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.places-box { position: relative; }
.places-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: .25rem 0; list-style: none; background: #fff; border: 2px solid var(--teal-700); border-radius: var(--radius-sm); box-shadow: var(--shadow); max-height: 18rem; overflow-y: auto; }
.places-list [role="option"] { display: flex; flex-direction: column; padding: .6rem .85rem; cursor: pointer; line-height: 1.3; }
.places-list [role="option"][aria-selected="true"], .places-list [role="option"]:hover { background: var(--sand-100); }
.place-main { font-weight: 600; }
.place-sec { font-size: .88rem; color: var(--muted); }
.places-attrib { margin: .4rem 0 0; }
.places-attrib img { width: 116px; height: 15px; }

/* Photos step */
.photo-input-enhanced { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.photo-input-enhanced:focus-visible + .photo-picker .photo-add { outline: 3px solid var(--focus); outline-offset: 3px; }
input[type="file"]:not(.photo-input-enhanced) { font: inherit; max-width: 100%; }
.photo-picker { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.photo-add { cursor: pointer; }
.photo-count { margin: 0; font-size: .9rem; color: var(--muted); font-weight: 600; }
.photo-thumbs { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); gap: .6rem; width: 100%; }
.photo-thumb { position: relative; background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius-sm); overflow: hidden; }
.photo-thumb img, .photo-ph { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-ph { display: grid; place-items: center; background: var(--sand-100); color: var(--muted); font-size: .8rem; text-align: center; padding: .4rem; }
.photo-name { display: block; font-size: .72rem; color: var(--muted); padding: .2rem .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-remove { position: absolute; top: .25rem; right: .25rem; width: 2rem; height: 2rem; border-radius: 999px; border: 0; background: rgba(13, 19, 32, .82); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.photo-remove:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.photo-progress { display: flex; align-items: center; gap: .75rem; margin-top: .75rem; }
.photo-progress progress { flex: 1; height: .6rem; accent-color: var(--terra-600); }
.photo-progress-text { font-size: .9rem; font-weight: 600; }
.email-only { font-size: .93rem; margin-top: .6rem; }
.submit-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin: 1.25rem 0 1rem; }
.notice { font-size: .82rem; color: var(--muted); line-height: 1.5; max-width: 42rem; }
/* "Delete my data" under every form's disclaimers, on the thank-you page and the privacy pages */
.privacy-delete { font-size: .82rem; margin: .5rem 0 0; }
.delete-kept li { margin-bottom: .4rem; }
.error-summary { border: 2px solid var(--error); background: #fdf1ef; border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.error-summary-h { font-weight: 700; color: var(--error); margin-bottom: .4rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--error); }

/* wizard (JS on): one step per screen */
.wizard-progress { margin-bottom: 1.5rem; }
.progress-track { height: .5rem; background: var(--sand-200); border-radius: 999px; overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--terra-500), var(--terra-600)); border-radius: 999px; transition: width .3s ease; }
.progress-text { font-size: .88rem; color: var(--muted); margin: .45rem 0 0; font-weight: 600; }
.wizard-nav { display: flex; gap: .75rem; margin-top: 1.5rem; }
.js .wizard.ready .step { display: none; }
.js .wizard.ready .step.active { display: block; animation: rise .25s ease; }
.js .wizard.ready .submit-row { display: none; }
.js .wizard.ready.on-last .submit-row { display: flex; }
@keyframes rise { from { transform: translateY(6px); } to { transform: none; } }
.form-picker { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: var(--gap); }
@media (min-width: 48rem) { .form-picker { grid-template-columns: repeat(2, 1fr); } }
.picker-card { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: 1.4rem; border-radius: var(--radius); background: #fff; border: 2px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; }
.picker-card:hover { border-color: var(--terra-500); }
.picker-name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--teal-900); }
.picker-sum { grid-column: 1; color: var(--muted); font-size: .97rem; }
.picker-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1.5rem; color: var(--terra-700); }
.picker-alt { background: var(--sand-100); }

.thanks { padding-block: clamp(2.5rem, 6vw, 5rem); max-width: 50rem; }
.thanks-mark { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--orange); color: var(--navy); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1.25rem; }
.thanks-more { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.status-banner { background: var(--sage-100); border: 2px solid var(--sage-600); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.stack { display: grid; gap: .25rem; max-width: 30rem; margin-bottom: 1.5rem; }
.search-row { display: flex; gap: .6rem; }
.link-list { list-style: none; padding: 0; }
.link-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.link-list li a { font-weight: 600; }
.link-list li span { display: block; color: var(--muted); font-size: .92rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #CBD5E1; padding: 3.5rem 0 6rem; font-size: .95rem; }
.site-footer a { color: var(--sand-100); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-name { font-family: var(--font-display); font-size: 1.35rem; color: #fff; }
.footer-h { font-weight: 700; color: #fff; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .35rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1.75rem; font-size: .85rem; line-height: 1.6; color: #CBD5E1; }
.footer-legal strong { color: var(--sand-100); }
.footer-links { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .88rem; }
.footer-copy { font-size: .85rem; }
.gpc-banner { background: rgba(255, 255, 255, .08); border: 1px solid var(--sage-300); color: var(--sand-100); padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; }

/* ---------- sticky mobile bar ---------- */
/* WCAG 2.4.11 Focus Not Obscured: the browser scrolls a focused link or field clear of the fixed bottom bar (and, while it
   is open, the cookie banner). site.js measures both into --obscured-bottom; 5rem covers the bar until it has run. */
html { scroll-padding-bottom: var(--obscured-bottom, 0px); }
@media (max-width: 74.99rem) { html { scroll-padding-bottom: var(--obscured-bottom, 5rem); } }
.mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 50; display: grid; grid-template-columns: .9fr 1.3fr 1.2fr; gap: .5rem; padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(255, 253, 245, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(0, 0, 0, .4); }
.mobile-bar:has(> :only-child) { grid-template-columns: 1fr; }
.mobile-bar-btn { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 3rem; border-radius: 999px; border: 2px solid var(--teal-700); color: var(--teal-800); font-weight: 700; text-decoration: none; }
.mobile-bar-btn svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.mobile-bar-primary { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.mobile-bar-primary:hover { color: var(--navy); }
.mobile-bar-btn { font-size: .95rem; line-height: 1.15; text-align: center; padding: 0 .4rem; }
.mobile-bar:has(> :nth-child(2):last-child) { grid-template-columns: 1fr 1.4fr; }
/* "Text us a photo": a button on phones, the plain number on larger screens. */
.text-us-mobile { display: none; }
@media (max-width: 47.99rem) { .text-us-mobile { display: inline-flex; } .cta-alt { display: none; } }

/* Cookie banner */
.cookie-banner { position: fixed; z-index: 60; left: .75rem; right: .75rem; bottom: calc(4.6rem + env(safe-area-inset-bottom)); max-width: 34rem; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px -12px rgba(13, 19, 32, .45); }
.page-form .cookie-banner, .cookie-banner-wide { bottom: calc(.75rem + env(safe-area-inset-bottom)); }
@media (min-width: 75rem) { .cookie-banner { bottom: 1rem; right: 1rem; } }
/* Compact two-line bottom sheet (about 96px on a phone) so it never covers the hero CTA. */
.cookie-banner-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; padding: .6rem .8rem; }
.cookie-banner-h { font-family: var(--font-text); font-size: 1rem; font-weight: 700; margin: 0 0 .3rem; color: var(--teal-900); letter-spacing: 0; }
.cookie-banner-text { font-size: .85rem; margin: 0; line-height: 1.35; flex: 1 1 16rem; }
.cookie-banner-actions { display: flex; gap: .5rem; flex: 1 1 12rem; }
.cookie-banner-actions .btn { flex: 1 1 0; min-height: 2.5rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.footer-text { margin-top: -.5rem; }
@media (min-width: 75rem) { .mobile-bar { display: none; } .site-footer { padding-bottom: 3.5rem; } }
.page-form .mobile-bar, .page-thanks .mobile-bar { display: none; }
.page-form .site-footer { padding-bottom: 3.5rem; }
/* While the cookie banner is open the page can scroll far enough for the last footer link to clear it (WCAG 2.4.11). */
/* A sticky sidebar can't scroll out from under the banner, so it scrolls with the page until the banner is answered. */
body.has-cookie-banner .aside-sticky, body.has-cookie-banner .form-aside, body.has-cookie-banner .dir-profile-aside { position: static; }
body.has-cookie-banner .site-footer { padding-bottom: calc(2rem + var(--obscured-bottom, 6rem)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .mobile-bar, .doc-aside, .site-footer .footer-grid { display: none; }
}
@media (max-width: 30rem) {
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 1.9rem; height: 1.9rem; }
  .nav-toggle { padding: .45rem .7rem; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-inner { flex-wrap: nowrap; }
  .js .site-nav.open { position: absolute; left: 0; right: 0; top: 100%; background: var(--sand-50); padding: 0 1.1rem 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
}

/* ---- credibility line ---- */
.credibility { font-weight: 600; color: var(--teal-800); }
.credibility-form { font-size: .9rem; margin-top: .75rem; }
/* ---- address check (SPEC 6.2) ---- */
.addr-check { font-size: .92rem; margin: .35rem 0 .9rem; color: var(--sage-800); min-height: 0; }
.addr-check:empty { margin: 0; }
.addr-suggest { background: var(--sand-100); border: 1px solid var(--sand-300); border-radius: var(--radius-sm); padding: .7rem .9rem; }
.addr-suggest p { margin: 0 0 .5rem; }
.addr-suggest .btn { margin: .15rem .4rem .15rem 0; }
.addr-out { background: #fbeceb; border-left: 4px solid var(--error); padding: .7rem .9rem; border-radius: var(--radius-sm); color: var(--error); }

/* Header: tagline under the wordmark (visible on phones) and the language switch outside the collapsible menu. */
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-tagline { font-size: .72rem; font-weight: 600; color: var(--teal-700); letter-spacing: .01em; white-space: nowrap; }
/* Desktop: the logo stays two short lines (name, tagline); tighter spacing keeps the whole header on one row at 75rem. */
@media (min-width: 75rem) {
  .header-inner { gap: .75rem; }
  .brand-name { font-size: 1.05rem; }
  .brand-tagline { font-size: .68rem; }
  .site-nav { gap: .85rem; }
  .site-nav ul { gap: .25rem .8rem; }
  .lang-switch { margin-left: .5rem; }
}
.lang-switch { margin-left: .5rem; margin-right: .5rem; font-size: .9rem; font-weight: 700; color: var(--teal-800); text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
@media (min-width: 64rem) { .lang-switch { order: 3; margin-left: .75rem; margin-right: 0; } }

/* "Text us" block: big sms: button on phones, QR code (white plate, black modules: scans in light, dark and forced-colors
   mode) on desktop. */
.text-us { display: grid; gap: 1.25rem; align-items: center; }
.text-us-full { margin: 2.5rem 0; padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.text-us-h { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 600; color: var(--teal-900); line-height: 1.2; margin: 0 0 .4rem; }
.text-us-copy > p { margin: 0 0 .5rem; }
.text-us-number { font-weight: 700; white-space: nowrap; }
.text-us-fine { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.text-us-qr { margin: 0; text-align: center; }
.text-us-qr svg { display: block; width: 10rem; height: 10rem; margin: 0 auto; padding: .35rem; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); forced-color-adjust: none; color-scheme: light; }
.text-us-qr figcaption { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.text-us-tap { display: none; width: 100%; justify-content: center; margin: .5rem 0 .75rem; }
@media (min-width: 48rem) { .text-us-full { grid-template-columns: 1fr auto; } }
.text-us-compact { grid-template-columns: auto 1fr; gap: .9rem; margin-top: .75rem; max-width: 28rem; }
/* Version-4 code (41 modules with quiet zone): 7.5rem keeps about 3 CSS px per module so a 1x desktop screen still scans. */
.text-us-compact .text-us-qr svg { width: 7.5rem; height: 7.5rem; padding: .2rem; }
.text-us-compact .text-us-line { margin: 0 0 .25rem; }
.text-us-compact .text-us-fine { margin: 0; }
.form-aside .text-us-full { margin: 1.25rem 1.4rem 0; padding: 1rem; grid-template-columns: 1fr; }
.form-aside .text-us-qr svg { width: 8.5rem; height: 8.5rem; }
@media (max-width: 47.99rem), (hover: none) and (pointer: coarse) {
  .text-us-tap { display: inline-flex; }
  .text-us-full .text-us-qr, .text-us-scan, .text-us-compact .text-us-qr { display: none; }
  .text-us-compact { grid-template-columns: 1fr; }
}
.site-footer .text-us-fine { color: #CBD5E1; }
.site-footer .text-us-qr svg { border-color: transparent; }

/* =====================================================================================================================
   Directory pages (home, trades, for installers, footer mark). Mobile first; orange is a fill, never text on light.
   ===================================================================================================================== */
.brand-mark { border-radius: 9px; }
.site-nav .nav-pro a { font-weight: 700; }
.checks { list-style: none; margin: 0 0 1rem; padding: 0; }
.checks li, .crosses li { position: relative; padding-left: 1.7rem; margin-bottom: .5rem; }
.checks li::before { content: ""; position: absolute; left: .1rem; top: .42em; width: .95rem; height: .5rem; border-left: 2.5px solid var(--orange-deep); border-bottom: 2.5px solid var(--orange-deep); transform: rotate(-45deg); }
.crosses { list-style: none; margin: 0 0 1rem; padding: 0; }
.crosses li::before { content: "×"; position: absolute; left: .15rem; top: -.1em; font-size: 1.35rem; line-height: 1; color: var(--slate); font-weight: 600; }
.eyebrow-light { color: var(--peach); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Photo bands (home hero, for-installers hero, "nationwide"): a licensed stock photo (img/stock) under a navy scrim.
   Contrast: white and #CBD5E1 text only ever sit on at least ~72% navy (worst case: white photo behind), so they pass WCAG AA over any part of the photo. */
.home-hero, .pro-hero, .nation-band { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); color: #E2E8F0; }
.hero-media, .nation-media { position: absolute; inset: 0; z-index: -2; }
.hero-media picture, .nation-media picture, .hero-media img, .nation-media img { width: 100%; height: 100%; }
.hero-media img, .nation-media img { object-fit: cover; object-position: center 45%; }
.home-hero::before, .pro-hero::before, .nation-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 19, 32, .8) 0%, rgba(13, 19, 32, .72) 50%, rgba(13, 19, 32, .86) 100%);
}
@media (min-width: 64rem) {
  .home-hero::before, .pro-hero::before {
    background: linear-gradient(90deg, rgba(13, 19, 32, .92) 0%, rgba(13, 19, 32, .8) 35%, rgba(13, 19, 32, .72) 58%, rgba(13, 19, 32, .3) 100%);
  }
}

/* Home hero: photo, headline and the search box. */
.home-hero { padding-block: clamp(2.5rem, 9vw, 6.5rem); }
.home-hero h1, .pro-hero h1, .nation-band h2 { text-shadow: 0 1px 2px rgba(13, 19, 32, .5); }
.home-hero h1 { color: #fff; max-width: 16em; text-wrap: balance; }
.home-hero .lede { color: #E2E8F0; }
.home-hero-inner { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 64rem) { .home-hero-inner { grid-template-columns: 1.1fr .9fr; } }
.home-search { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.75rem); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); border-top: 5px solid var(--orange); display: grid; gap: .9rem; }
.home-search-field { display: grid; gap: .1rem; }
.home-search .field-label { margin-bottom: .2rem; }
.home-search-go { width: 100%; }
.home-search-note { font-size: .85rem; color: var(--muted); margin: 0; }

/* "Use my location" next to the directory search boxes (Pages/Shared/_LocateControl.cshtml, js/locate.js). Hidden until the
   script shows it; 44px targets (WCAG 2.5.8 asks 24px); focus ring from :focus-visible above. */
.locate { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; }
.locate-btn, .locate-chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem .95rem;
  font: 600 .95rem/1.2 var(--font-text); color: var(--navy); background: var(--white); cursor: pointer;
  border: 2px solid var(--navy); border-radius: 999px;
}
.locate-btn:hover, .locate-chip:hover { background: var(--navy); color: var(--white); }
.locate-btn[aria-busy="true"] { cursor: progress; background: var(--paper-2); color: var(--navy); }
.locate-icon { flex: none; }
.locate-chip { border-style: dashed; border-color: var(--orange-deep); background: var(--paper-2); }
.locate-status { flex-basis: 100%; margin: 0; font-size: .9rem; color: var(--slate); }

/* Trade tiles: a photo on top, then the trade. */
.trade-grid { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: var(--gap); }
@media (min-width: 40rem) { .trade-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .trade-grid { grid-template-columns: repeat(3, 1fr); } }
.trade-tile { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem 1.2rem; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 1px 2px rgba(22, 31, 49, .05); transition: box-shadow .2s, transform .2s; }
.trade-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.trade-photo { margin: -1.2rem -1.4rem 1.1rem; border-bottom: 4px solid var(--orange); background: var(--paper-2); }
.trade-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.trade-name { font-size: 1.3rem; margin-bottom: .35rem; }
.trade-name a { color: var(--navy); text-decoration: none; }
.trade-name a:hover { text-decoration: underline; color: var(--navy); }
.trade-sum { color: var(--muted); font-size: .97rem; margin-bottom: .6rem; }
.trade-examples { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.trade-examples li { font-size: .8rem; font-weight: 600; background: var(--paper-2); border: 1px solid #F4E6D2; color: var(--navy); border-radius: 999px; padding: .15rem .6rem; }
.trade-links { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: baseline; }
.trade-guide { font-size: .92rem; color: var(--muted); }

/* How it works: a photo beside three numbered steps. */
.how-inner { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 64rem) { .how-inner { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); } }
.how-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 64rem) { .how-photo img { aspect-ratio: 4 / 5; } }
.how-steps { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1.1rem; }
.how-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.how-steps h3 { margin-bottom: .3rem; }
.how-n { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--orange); color: var(--navy); font: 700 1.1rem/1 var(--font-text); }
.how-steps p { color: var(--muted); margin: 0; }

/* "Nationwide" band */
/* Phones and tablets: the text runs the full width, so the scrim stays at least 72% everywhere (the shared rule above).
   Wide screens: the text sits in the left 40em, so the right edge may open up to show the photo. */
@media (min-width: 64rem) {
  .nation-band::before { background: linear-gradient(90deg, rgba(13, 19, 32, .86) 0%, rgba(13, 19, 32, .76) 60%, rgba(13, 19, 32, .55) 100%); }
}
.nation-band h2 { color: #fff; max-width: 20em; text-wrap: balance; }
.nation-inner { max-width: var(--wrap); }
.nation-inner > p:not(.eyebrow):not(.hero-actions) { max-width: 40em; color: #E2E8F0; font-size: 1.08rem; }
.nation-inner .hero-actions { margin: 1.5rem 0 0; }

/* "Licenses checked" */
.license-band { background: var(--paper-2); border-block: 1px solid #F4E6D2; }
.license-inner { display: grid; gap: 1.5rem; }
.license-cols { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .license-cols { grid-template-columns: 1fr 1fr; } }
.license-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem .5rem; }
.license-col h3 { font-size: 1.15rem; }
.license-fine { font-size: .93rem; color: var(--muted); max-width: 52rem; margin: 0; }

/* For installers teaser and closing band */
.pros-band { background: var(--navy); color: #CBD5E1; }
.pros-band h2 { color: #fff; }
.pros-band a:not(.btn) { color: var(--peach); }
.pros-inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 64rem) { .pros-inner { grid-template-columns: 1.2fr 1fr; } }
.pros-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.pros-points li { border-left: 4px solid var(--orange); padding: .3rem 0 .3rem 1rem; }
.pros-points strong { color: #fff; }
.powered-note { font-size: .9rem; margin: 0; }

/* Guides */
.guide-grid { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: var(--gap); }
@media (min-width: 48rem) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
.guide-card a { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.4rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.guide-card a:hover { border-color: var(--orange); transform: translateY(-2px); color: var(--ink); }
.guide-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); font-weight: 600; line-height: 1.25; }
.guide-sum { color: var(--muted); font-size: .97rem; }
.guides-index { padding-top: 1rem; }
.honest { background: var(--sage-100); }
.credibility { font-weight: 600; color: var(--navy); }

/* For installers page */
.pro-hero { padding-block: clamp(3rem, 9vw, 6.5rem); }
.pro-hero .hero-media img { object-position: 70% 30%; }
.pro-hero h1 { color: #fff; max-width: 17em; text-wrap: balance; }
.pro-hero .lede { color: #E2E8F0; }
.pro-hero-inner > * { max-width: 40rem; }
.faq-band { background: #fff; border-top: 1px solid var(--line); }
.faq-band .faq { margin-top: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.footer-credits { font-size: .82rem; color: #CBD5E1; margin: -.25rem 0 1rem; }
.feature-grid { list-style: none; padding: 0; margin: 1.75rem 0 1.25rem; display: grid; gap: var(--gap); }
@media (min-width: 48rem) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem .6rem; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); font-size: .97rem; }
@media (min-width: 48rem) { .feature-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .feature-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.addon-band { background: var(--paper-2); border-block: 1px solid #F4E6D2; }
.pricing-note { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius-sm); padding: .9rem 1.1rem; max-width: 46rem; }
.pricing-note p { margin: 0; }

/* Footer: "Powered by BidGlory" */
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1.25rem; margin-top: 1rem; }
.footer-bottom .footer-copy { margin: 0; }
.powered-by { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #CBD5E1; }
.powered-by:hover { color: #fff; }
.powered-by-label { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.powered-by img { height: 1.75rem; width: auto; }
.site-footer .footer-name { color: #fff; }
.doc-hero-plain .doc-hero-inner { grid-template-columns: minmax(0, 1fr); }

/* ---- Directory forms: quote, match me, claim, "Add your company" ---- */
body.page-directory { --d-navy: #161F31; --d-orange: #F48413; --d-orange-text: #A65300; --d-peach: #FCD9B1; --d-paper: #FFFDF5; --d-paper-2: #FEF7EC; --d-muted: #475569; --d-line: #E2E8F0; }
.dq-to { border: 1px solid var(--line); border-left: 4px solid var(--orange); background: var(--paper-2); border-radius: var(--radius-sm); padding: .85rem 1rem; margin: 0 0 1.5rem; }
.dq-to p { margin: 0; }
.dq-to p + p { margin-top: .35rem; color: var(--muted); }
.dq-to .dir-badge { margin-left: .35rem; vertical-align: middle; }

.join-hero { background: radial-gradient(120% 140% at 100% 0%, var(--navy-800) 0%, var(--navy) 55%, var(--navy-950) 100%); color: #CBD5E1; padding-block: clamp(2rem, 6vw, 4.5rem); }
.join-hero-inner { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 56rem) { .join-hero-inner { grid-template-columns: 1.05fr .95fr; } }
.join-hero h1 { color: #fff; max-width: 15em; }
.join-hero .lede { color: #CBD5E1; }
.join-hero-photo { margin: 0; }
.join-hero-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .6); }
@media (min-width: 64rem) { .join-features { grid-template-columns: repeat(5, 1fr); } .join-features .feature h3 { font-size: 1.08rem; } }
.join-form-h { font-size: clamp(1.5rem, 3vw, 2rem); }
.join-faq { background: var(--paper-2); border-top: 1px solid #F4E6D2; }
.join-faq .powered-note { margin-top: 1.5rem; }
.join-cta { display: grid; gap: 1rem; align-items: center; background: var(--paper-2); border: 1px solid #F4E6D2; border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 0 0 1rem; }
@media (min-width: 48rem) { .join-cta { grid-template-columns: 1fr auto; } }
.join-cta h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.join-cta p { margin: 0; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.footer-join { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(203, 213, 225, .2); }
.footer-join p { margin: 0 0 .5rem; color: #fff; font-weight: 600; }
.site-footer .footer-join a.btn { color: var(--navy); }

/* /for-ai-agents/: API docs (code samples, error list). */
.agent-docs pre { overflow-x: auto; padding: 1rem 1.25rem; background: var(--teal-900, #161F31); color: #fff; border-radius: var(--radius); font-size: .875rem; line-height: 1.5; }
.agent-docs pre code { background: none; color: inherit; padding: 0; }
.agent-docs code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; overflow-wrap: anywhere; }
.agent-docs .agent-errors dt { margin-top: .9em; scroll-margin-top: 6rem; }
.agent-docs .agent-errors dd { margin: .2em 0 0 1.2em; }

/* For installers: free listing vs BidGlory monthly plans (a real table, Yes/No in words), the sample-website teaser and showcase. */
.plan-table table { min-width: 40rem; }
.plan-table tbody th { font-weight: 700; color: var(--teal-900); width: 26%; }
.plan-table td:last-child { background: #FFFBF3; }
.showcase-teaser { display: grid; gap: clamp(1.25rem, 4vw, 2.5rem); align-items: center; }
@media (min-width: 48rem) { .showcase-teaser { grid-template-columns: 1fr 1fr; } }
.showcase-teaser-shot { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px -26px rgba(22, 31, 49, .55); }
.showcase-teaser-shot img, .showcase-shot img { display: block; width: 100%; height: auto; }
.showcase-sample-note { margin: 1rem 0 0; max-width: 46rem; }
.showcase-sample-note p { margin: 0; }
.showcase-checks { max-width: 50rem; }
.showcase-grid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: var(--gap); }
@media (min-width: 48rem) { .showcase-grid-2 { grid-template-columns: repeat(2, 1fr); } .showcase-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .showcase-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.showcase-shot { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; height: 100%; }
.showcase-shot picture, .showcase-shot > img { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.showcase-shot figcaption { padding: .75rem .25rem .25rem; font-size: .95rem; }
.showcase-shot figcaption strong { display: block; }
.showcase-shot figcaption span { display: block; color: var(--muted); margin: .15rem 0 .35rem; }
.showcase-pair { display: grid; grid-template-columns: 3fr 1fr; gap: .75rem; align-items: start; }
.showcase-pair picture { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.dir-call-panel { border-left: 4px solid var(--orange); }
.dir-call-panel p { margin: 0 0 .6rem; }
.dir-call-btn { display: inline-flex; align-items: center; gap: .5rem; }
.thanks-call { margin: 0 0 1.5rem; padding: .9rem 1.1rem; background: var(--paper-2); border: 1px solid #F4E6D2; border-left: 4px solid var(--orange); border-radius: var(--radius-sm); max-width: 42rem; }
.thanks-call p { margin: 0 0 .5rem; }
