/* MLS Window & Door
   Layout: full-width colour bands (navy / white / green) in the flyer's order,
   content held in a centred 1120px column. Flyer palette and condensed display type. */
:root {
  --navy: #143866;
  --navy-deep: #0e2a4f;
  --green: #2a9d48;
  --green-deep: #1f7d38;
  --lime: #8cc63f;
  --lime-deep: #6faa2c;
  --header-bg: #ffffff;
  --header-fg: #143866;
  --bg: #ffffff;
  --bg-pale: #f3f5f8;
  --fg: #182c44;
  --fg-muted: #5b6b7e;
  --rule: #d6dce4;
  --on-dark: #ffffff;
  --on-dark-muted: #b9c6d6;
  --field-bg: #ffffff;
  --field-fg: #182c44;
  --field-border: #c7d0db;
  --display: "Barlow Condensed", "Arial Narrow", Impact, "Helvetica Neue", Arial, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1626; --bg-pale: #111f33; --fg: #e4eaf2; --fg-muted: #9fb0c4; --rule: #28394f;
    --navy: #143866; --navy-deep: #0e2a4f; --header-bg: #0e2a4f; --header-fg: #ffffff;
    --field-bg: #f7f9fc; --field-fg: #182c44; --field-border: #c7d0db;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1626; --bg-pale: #111f33; --fg: #e4eaf2; --fg-muted: #9fb0c4; --rule: #28394f;
  --navy: #143866; --navy-deep: #0e2a4f; --header-bg: #0e2a4f; --header-fg: #ffffff;
  --field-bg: #f7f9fc; --field-fg: #182c44; --field-border: #c7d0db;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--header-bg); }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--navy); padding: .5rem .9rem; font-weight: 600; z-index: 30; }
.skip-link:focus { left: 16px; }
.nowrap { white-space: nowrap; }

.eyebrow {
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .9rem;
}
.eyebrow-lime { color: var(--lime); }
.eyebrow-light { color: #d7f0c6; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; padding: .7rem 1.3rem; border: 2px solid transparent; cursor: pointer; line-height: 1.1;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { font-size: 1.3rem; padding: .85rem 1.6rem; }
.btn-lime { background: var(--lime); border-color: var(--lime); color: var(--navy); }
.btn-lime:hover { background: var(--lime-deep); border-color: var(--lime-deep); }
.btn-outline { background: transparent; border-color: var(--on-dark); color: var(--on-dark); }
.btn-outline:hover { background: var(--on-dark); color: var(--navy); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--lime); outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--header-bg); color: var(--header-fg);
  border-bottom: 4px solid var(--green);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; min-width: 0; }
.brand-mark {
  font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: .02em; line-height: 1;
  padding-right: .8rem; border-right: 2px solid currentColor; color: inherit;
}
.brand-logo { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; }
.brand-sub { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--green); }
.site-nav .btn { font-size: 1rem; padding: .5rem 1rem; }
.nav-phone { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.nav-toggle { display: none; background: none; border: 2px solid currentColor; padding: .45rem .5rem; cursor: pointer; flex-direction: column; gap: 4px; color: inherit; }
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: currentColor; }

/* Hero */
.hero { background: var(--navy); color: var(--on-dark); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero-title { font-size: clamp(3.4rem, 9vw, 7.2rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; }
.hero-title-accent { display: block; color: var(--lime); text-transform: none; font-weight: 700; font-size: .5em; margin-top: .18em; letter-spacing: 0; }
.hero-title-grad { display: block; color: var(--lime); background: linear-gradient(90deg, var(--green) 0%, var(--lime) 60%, #d6e94a 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-tagline { margin-top: 1.1rem; font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; color: var(--on-dark); }
.hero-tagline span { color: var(--lime); padding-inline: .5rem; }
.eyebrow-light { color: #e3f7c8; }
.hero-lede { max-width: 34rem; margin-top: 1.5rem; font-size: 1.15rem; color: var(--on-dark-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-note { margin-top: 1.4rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero-art { display: flex; justify-content: center; color: var(--on-dark); min-width: 0; }
.window-mark { width: min(100%, 280px); height: auto; }

/* Photos: a navy tile with the window mark shows when an image is missing */
.photo {
  position: relative; margin: 0; overflow: hidden; max-width: 100%;
  background-color: var(--navy-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 300'%3E%3Crect x='6' y='6' width='208' height='288' fill='none' stroke='%23ffffff' stroke-opacity='.18' stroke-width='10'/%3E%3Crect x='20' y='20' width='86' height='80' fill='%237bc149' fill-opacity='.55'/%3E%3Cline x1='110' y1='12' x2='110' y2='288' stroke='%23ffffff' stroke-opacity='.18' stroke-width='7'/%3E%3Cline x1='12' y1='104' x2='208' y2='104' stroke='%23ffffff' stroke-opacity='.18' stroke-width='7'/%3E%3Cline x1='12' y1='198' x2='208' y2='198' stroke='%23ffffff' stroke-opacity='.18' stroke-width='7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: auto 60%;
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-hero { width: 100%; aspect-ratio: 4 / 3; border: 6px solid var(--on-dark); }
.window-mark-badge { position: absolute; right: 0; bottom: 0; width: 64px; padding: 10px; background: var(--navy); color: var(--on-dark); }
.photo-gallery { aspect-ratio: 4 / 3; }
.photo-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .55rem .9rem;
  background: var(--navy); color: var(--on-dark);
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase;
  border-left: 6px solid var(--lime);
}
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.photo-why { aspect-ratio: 3 / 2; margin-bottom: 1.4rem; }
.why-side { min-width: 0; }
.pane-lit { fill: var(--lime); animation: paneGlow 4s ease-in-out infinite alternate; transform-origin: center; }
@keyframes paneGlow { from { opacity: .82; } to { opacity: 1; } }

/* Trust strip */
.strip { background: var(--green); color: var(--on-dark); }
.strip-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem 2rem; padding-block: 1.3rem; }
.strip-item { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.strip-item strong { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; text-transform: uppercase; }
.strip-item span { font-size: .9rem; color: #e3f7c8; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-title { font-size: clamp(2.1rem, 4.5vw, 3.1rem); font-weight: 700; max-width: 22ch; margin-bottom: 1.2rem; }
.section-navy { background: var(--navy); color: var(--on-dark); }
.section-pale { background: var(--bg-pale); }
.section-green { background: var(--green); color: var(--on-dark); }

/* Services (numbered as on the flyer) */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; margin-top: 1.5rem; }
.service { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .5rem; padding-block: 1.3rem; border-top: 2px solid var(--navy); }
.service-num { grid-row: 1 / span 2; font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--green); letter-spacing: .05em; padding-top: .25rem; font-variant-numeric: tabular-nums; }
.service h3 { font-size: 1.5rem; font-weight: 700; }
.service p { color: var(--fg-muted); font-size: .98rem; margin-top: .25rem; }

/* Why */
.why-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.why-copy p { color: var(--on-dark-muted); max-width: 36rem; }
.why-copy p + p { margin-top: 1rem; }
.why-copy .btn { margin-top: 1.8rem; }
.why-list { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.why-list li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.18); }
.why-list strong { font-family: var(--display); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .03em; color: var(--lime); }
.why-list span { color: var(--on-dark-muted); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 1.5rem; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; background: var(--navy); color: var(--lime); font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.step h3 { font-size: 1.4rem; font-weight: 700; }
.step p { color: var(--fg-muted); font-size: .98rem; }

/* Area */
.area-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.area-inner p { max-width: 36rem; color: var(--fg-muted); }
.area-card { background: var(--navy); color: var(--on-dark); padding: 1.8rem 2rem; border-left: 8px solid var(--lime); }
.area-card-label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); }
.area-card-name { font-family: var(--display); font-weight: 700; font-size: 2rem; margin: .2rem 0 .8rem; }
.area-card-line a { text-decoration: none; font-weight: 500; }
.area-card-line a:hover { color: var(--lime); }
.area-card .area-card-line { color: var(--on-dark); max-width: none; }

/* Estimate */
.estimate-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.big-phone { display: block; white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 1; text-decoration: none; color: #fff; margin: .2rem 0 1.4rem; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.big-phone:hover { color: #d7f0c6; }
.estimate-copy p { color: #e3f3d8; max-width: 32rem; }
.estimate-form { display: grid; gap: 1rem; background: var(--bg-pale); color: var(--fg); padding: 1.6rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--field-fg); background: var(--field-bg);
  border: 1px solid var(--field-border); border-radius: 0; padding: .65rem .75rem; width: 100%; min-width: 0;
}
.field textarea { resize: vertical; }
.form-error { color: #b42318; font-weight: 500; }
.form-after { font-size: .95rem; color: var(--fg-muted); }
.form-after a { color: var(--green); }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 2rem 3rem; padding-block: 3rem; }
.footer-brand { display: flex; align-items: flex-start; gap: .9rem; }
.footer-name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-sub { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: .25rem; }
.footer-contact { display: grid; gap: .3rem; color: var(--on-dark-muted); }
.footer-contact a { text-decoration: none; color: var(--on-dark); font-weight: 500; }
.footer-contact a:hover { color: var(--lime); }
.footer-nav { display: grid; gap: .4rem; }
.footer-nav a { text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--lime); }
.footer-bar { background: var(--navy-deep); }
.footer-bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .9rem; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }

/* Responsive */
@media (max-width: 960px) {
  .strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 1.2rem; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--header-bg); color: var(--header-fg);
    padding-block: .5rem; padding-left: var(--gutter-l); padding-right: var(--gutter-r);
    border-bottom: 4px solid var(--green);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .site-nav .btn { margin-top: .6rem; border-bottom: 0; }
  .site-nav .nav-phone { border-bottom: 0; text-align: center; }
  .hero-inner, .why-inner, .area-inner, .estimate-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; justify-content: flex-start; }
  .photo-hero { max-width: 420px; aspect-ratio: 16 / 10; }
  .window-mark-badge { width: 48px; padding: 7px; }
  .services { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .brand-sub { display: none; }
  .strip-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .why-list li { grid-template-columns: 1fr; gap: .2rem; }
  .gallery { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-auto-flow: row; }
  .hero-actions .btn { width: 100%; }
}

/* ---- Master Lead Solutions home page ---- */
.mt { margin-top: 1rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.6rem; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust li::before { content: ""; width: .6rem; height: .6rem; background: var(--lime); flex: none; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-top: 2rem; }
.card { display: flex; flex-direction: column; min-width: 0; border-top: 2px solid var(--navy); }
.card-photo { aspect-ratio: 3 / 2; margin-top: 1.2rem; }
.card-body { display: flex; flex-direction: column; gap: .7rem; padding-top: 1.1rem; }
.card-body h3 { font-size: 1.7rem; font-weight: 700; }
.card-body p { color: var(--fg-muted); font-size: .98rem; }
.checklist { display: grid; gap: .3rem; font-size: .95rem; }
.checklist li { position: relative; padding-left: 1.3rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .5em; width: .55rem; height: .55rem; background: var(--lime); }
.text-link { align-self: flex-start; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; color: var(--green); text-decoration: none; border-bottom: 2px solid var(--lime); }
.text-link:hover { color: var(--navy); }

.section-navy .why-list { grid-template-columns: 1fr; }
.about-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 3rem; align-items: start; }
.about-inner p { color: var(--fg-muted); max-width: 38rem; }
.photo-about { aspect-ratio: 4 / 5; border-left: 8px solid var(--lime); }

.certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2rem; }
.cert { border-top: 2px solid var(--navy); padding-top: 1.1rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.cert-issuer { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.cert h3 { font-size: 1.6rem; font-weight: 700; }
.cert p:last-child { color: var(--fg-muted); font-size: .98rem; }

.cross-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.cross-copy p { color: var(--on-dark-muted); max-width: 34rem; }
.cross-copy .hero-actions { margin-top: 1.6rem; }
.photo-cross { aspect-ratio: 4 / 3; border: 6px solid var(--on-dark); }

.contact-info { display: grid; gap: 1rem; margin-top: 1.6rem; }
.contact-info div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .6rem; }
.contact-info dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #d7f0c6; font-weight: 600; padding-top: .2rem; }
.contact-info dd { margin: 0; color: #fff; font-size: .98rem; }
.contact-info a { color: #fff; }
.footer-certs { margin-top: .6rem; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }

@media (max-width: 960px) {
  .certs { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .about-inner, .cross-inner { grid-template-columns: 1fr; gap: 2rem; }
  .photo-about { max-width: 360px; aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .contact-info div { grid-template-columns: 1fr; gap: .15rem; }
}
