/* ==========================================================================
   denverwindow.com - style.css
   Palette: primary #1E5FA8 / accent #F5A623 / white / text #333333
   Type:    Montserrat (headings) + Inter (body)
   Mobile-first. No frameworks, no build step, one file.
   ========================================================================== */

:root {
  --blue: #1E5FA8;
  --blue-dark: #17497F;
  --blue-deep: #0E2E52;
  --navy: #0B2440;
  --blue-tint: #EEF4FB;
  --blue-line: #CFE0F3;
  --gold: #F5A623;
  --gold-dark: #C97F0C;
  --gold-tint: #FEF6E8;
  --white: #FFFFFF;
  --ink: #333333;
  --ink-soft: #566374;
  --line: #E1E7EF;
  --shell: #F7F9FC;
  --ok: #157347;
  --err: #B02A25;

  --wrap: 1180px;
  --radius: 12px;
  --radius-sm: 8px;
  --sh-1: 0 1px 2px rgba(11, 36, 64, .06);
  --sh-2: 0 4px 14px rgba(11, 36, 64, .09);
  --sh-3: 0 14px 40px rgba(11, 36, 64, .16);
  --focus: 0 0 0 3px rgba(245, 166, 35, .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .btn, .logo-text, .stat-n, .step-n, .fact-n {
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
h1, h2, h3, h4 { color: var(--blue-deep); line-height: 1.16; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.85rem, 5.6vw, 3.05rem); letter-spacing: -.028em; font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3.7vw, 2.05rem); letter-spacing: -.018em; }
h3 { font-size: 1.16rem; letter-spacing: -.008em; }
p { margin: 0 0 1.15em; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .5em; }
strong { font-weight: 600; color: var(--blue-deep); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.15rem; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: #241A05; padding: .75rem 1.1rem; font-weight: 700;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.logo img { width: 208px; height: 38px; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--white); border: 1px solid var(--blue-line); border-radius: var(--radius-sm);
  padding: .55rem .8rem; font: 700 .85rem/1 Montserrat, sans-serif; color: var(--blue-deep);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--blue-tint); }
.bars { display: block; width: 16px; height: 2px; background: var(--blue-deep); position: relative; border-radius: 2px; }
.bars::before, .bars::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px;
  background: var(--blue-deep); border-radius: 2px;
}
.bars::before { top: -5px; }
.bars::after { top: 5px; }

.site-nav { display: none; padding: .3rem 0 1rem; border-top: 1px solid var(--line); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; padding: .78rem .2rem; font-weight: 500; font-size: 1rem;
  color: var(--blue-deep); text-decoration: none; border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.header-cta { display: none; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-block; text-align: center; cursor: pointer;
  font-weight: 700; font-size: 1.02rem; line-height: 1.2;
  padding: .95rem 1.6rem; border-radius: var(--radius-sm); border: 2px solid transparent;
  text-decoration: none; transition: background-color .16s, box-shadow .16s, transform .12s;
}
.btn-primary { background: var(--gold); color: #241A05; border-color: var(--gold); box-shadow: 0 2px 0 var(--gold-dark); }
.btn-primary:hover { background: #FFB43C; color: #241A05; }
.btn-secondary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 2px 0 var(--blue-dark); }
.btn-secondary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; border-color: #fff; }
.btn-quiet { background: var(--white); color: var(--blue); border-color: var(--blue-line); }
.btn-quiet:hover { background: var(--blue-tint); border-color: var(--blue); }
.btn-block { display: block; width: 100%; }
.btn:active { transform: translateY(1px); box-shadow: none; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; color: #fff; padding: 2.2rem 0 0;
  background:
    radial-gradient(1100px 480px at 84% -8%, rgba(245,166,35,.20), transparent 62%),
    linear-gradient(165deg, var(--navy) 0%, var(--blue-deep) 46%, var(--blue) 100%);
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: 1.09rem; color: #D3E3F5; max-width: 38rem; }
.hero-actions { display: grid; gap: .7rem; margin: 1.5rem 0 0; }
.hero-note { font-size: .82rem; color: #A9C4E2; margin: 1rem 0 0; }
.hero-art { margin: 1.7rem 0 0; }
.hero-art img {
  width: 100%; border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--sh-3);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem;
  padding: .34rem .8rem; border-radius: 100px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  font: 700 .69rem/1 Montserrat, sans-serif; letter-spacing: .13em;
  text-transform: uppercase; color: var(--gold);
}

/* The Front Range ridge closing every hero. Denver sits at 5,280 ft, and the
   altitude is why local window specs differ. The site's one flourish carries
   the idea rather than decorating around it. */
.ridge { display: block; width: 100%; height: 30px; margin-top: -1px; }
.ridge path { fill: var(--white); }

/* ------------------------------------------------------------------ facts band */
.facts { background: var(--blue-tint); border-bottom: 1px solid var(--blue-line); padding: 1.15rem 0; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem .9rem; }
.facts li { margin: 0; }
.fact-n { display: block; font-size: 1.28rem; font-weight: 800; color: var(--blue); letter-spacing: -.02em; line-height: 1.1; }
.fact-l { display: block; font-size: .78rem; color: var(--ink-soft); line-height: 1.35; margin-top: .12rem; }

/* ------------------------------------------------------------------ trust row */
.trust { background: var(--white); border-bottom: 1px solid var(--line); padding: .95rem 0; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .9rem; }
.trust li {
  margin: 0; display: flex; gap: .48rem; align-items: flex-start;
  font: 600 .82rem/1.35 Montserrat, sans-serif; color: var(--blue-deep);
}
.trust .tick {
  flex: 0 0 16px; width: 16px; height: 16px; margin-top: .11rem; border-radius: 50%;
  background: var(--gold); color: #241A05; font-size: .62rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}

/* ------------------------------------------------------------------ sections */
.section { padding: 2.8rem 0; }
.section-alt { background: var(--shell); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; }
.eyebrow {
  font: 700 .72rem/1 Montserrat, sans-serif; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-dark); margin: 0 0 .65rem;
}
.grid { display: grid; gap: 1.15rem; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--sh-1);
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.card h3 { margin-bottom: .45rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { font-weight: 700; text-decoration: none; font-size: .95rem; }
.card-link::after { content: " \203A"; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { box-shadow: var(--sh-2); border-color: var(--blue-line); transform: translateY(-2px); }
.card-top { border-top: 3px solid var(--gold); }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.7rem; }
.prose > h2:first-child, .prose > h1:first-child { margin-top: 0; }

.callout {
  border-left: 4px solid var(--gold); background: var(--gold-tint);
  padding: 1.1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.7rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ steps */
/* Numbered because this genuinely is a sequence. The order carries information
   the reader needs, which is the only reason to number anything. */
.steps { list-style: none; margin: 1.7rem 0 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: s; }
.steps li {
  margin: 0; padding: 0 0 0 3.3rem; position: relative; counter-increment: s;
}
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -.1rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--blue); color: #fff;
  font: 800 1rem/2.4rem Montserrat, sans-serif; text-align: center;
}
.steps strong { display: block; color: var(--blue-deep); }
.steps span { font-size: .95rem; color: var(--ink-soft); }

/* ------------------------------------------------------------------ tables */
.spec-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .94rem; }
.spec-table caption { text-align: left; font-weight: 500; color: var(--ink-soft); padding-bottom: .55rem; font-size: .84rem; }
.spec-table th, .spec-table td { text-align: left; padding: .74rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { background: var(--blue-deep); color: #fff; font: 700 .82rem/1.35 Montserrat, sans-serif; border-bottom: 0; }
.spec-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.spec-table thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.spec-table tbody tr:nth-child(even) { background: var(--shell); }
.spec-table td strong { color: var(--blue-deep); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------------ estimator */
.estimator {
  background: var(--white); border: 1px solid var(--blue-line); border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--sh-2);
}
.estimator h2 { font-size: 1.28rem; margin-bottom: .25rem; }
.estimator-lede { font-size: .9rem; color: var(--ink-soft); margin-bottom: 0; }
.est-row { margin: 1.2rem 0 0; }
.est-row label { display: block; font: 700 .84rem/1.4 Montserrat, sans-serif; color: var(--blue-deep); margin-bottom: .4rem; }
.est-range { width: 100%; accent-color: var(--blue); height: 1.9rem; }
.est-count { color: var(--blue); }
.est-out {
  margin: 1.3rem 0 0; padding: 1.15rem 1rem; border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--blue-deep), var(--blue)); text-align: center;
}
.est-out .stat-n { display: block; font-size: 1.62rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.est-out .stat-l { display: block; font-size: .76rem; color: #BAD2EE; margin-top: .2rem; }
.est-fine { font-size: .75rem; color: var(--ink-soft); margin: .9rem 0 0; }

/* ------------------------------------------------------------------ form */
.form-shell {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--sh-2);
}
.field { margin-bottom: 1.1rem; }
.field > label { display: block; font: 700 .88rem/1.4 Montserrat, sans-serif; color: var(--blue-deep); margin-bottom: .38rem; }
.field .req { color: var(--err); }
.field .hint { display: block; font: 400 .79rem/1.45 Inter, sans-serif; color: var(--ink-soft); margin-top: .18rem; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .82rem .85rem; border: 1px solid #B7C4D4; border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 118px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--blue); }
.field-err { color: var(--err); font-size: .83rem; margin: .32rem 0 0; display: none; font-weight: 500; }
.field.has-err input, .field.has-err select { border-color: var(--err); background: #FFFBFB; }
.field.has-err .field-err { display: block; }

.consent {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-start;
  background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem;
}
.consent input[type="checkbox"] { width: 1.2rem; height: 1.2rem; margin: .16rem 0 0; flex: 0 0 auto; accent-color: var(--blue); }
.consent label { flex: 1 1 14rem; font: 400 .8rem/1.55 Inter, sans-serif; color: var(--ink-soft); margin: 0; }
.consent .field-err { flex: 1 0 100%; margin: 0; }
.consent.has-err { border-color: var(--err); }

.form-status { margin: 1.1rem 0 0; padding: .95rem 1.05rem; border-radius: var(--radius-sm); font-size: .95rem; display: none; }
.form-status.is-ok { display: block; background: #E8F6EE; border: 1px solid #A7D8BC; color: var(--ok); }
.form-status.is-err { display: block; background: #FDEDEC; border: 1px solid #F0B4B1; color: var(--err); }

/* ------------------------------------------------------------------ CTA band */
.cta-band {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  border-radius: var(--radius); padding: 1.9rem 1.3rem;
  background:
    radial-gradient(700px 300px at 88% 0%, rgba(245,166,35,.24), transparent 60%),
    linear-gradient(150deg, var(--navy), var(--blue));
}
.cta-band h2 { color: #fff; font-size: clamp(1.28rem, 3.2vw, 1.7rem); }
.cta-band p { color: #CFE0F3; font-size: .98rem; max-width: 36rem; margin-inline: auto; }
.cta-band .btn { margin-top: .5rem; }

/* ------------------------------------------------------------------ banner */
.banner-art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-2); margin-bottom: 1.6rem; }
.banner-art img { width: 100%; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--navy); color: #B7CCE4; padding: 2.6rem 0 1.5rem; font-size: .92rem; }
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .85rem; }
.site-footer a { color: #DEEAF7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5em; }
.footer-grid { display: grid; gap: 1.9rem; }
.footer-brand img { width: 216px; height: 39px; margin-bottom: 1rem; }
.footer-brand p { margin-bottom: .55em; }
.footer-legal {
  margin-top: 2.1rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .79rem; color: #8FAAC9;
}
.footer-legal p { margin-bottom: .8em; }
.footer-legal a { text-decoration: underline; }
.footer-legal strong { color: #DEEAF7; }

/* ------------------------------------------------------------------ crumbs */
.crumbs { font-size: .81rem; color: var(--ink-soft); padding: .9rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "\203A"; margin-right: .35rem; color: #9AA6B4; }
.crumbs a { text-decoration: none; }

/* ------------------------------------------------------------------ utility */
.center { text-align: center; }
.mb0 { margin-bottom: 0; }
.small { font-size: .87rem; color: var(--ink-soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ breakpoints */
@media (min-width: 560px) {
  .hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts ul { grid-template-columns: repeat(4, 1fr); }
  .trust ul { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 880px) {
  .header-bar { min-height: 80px; }
  .logo img { width: 236px; height: 43px; }
  .nav-toggle { display: none; }
  .site-nav { display: block !important; padding: 0; border: 0; }
  .site-nav ul { display: flex; gap: 1.4rem; align-items: center; }
  .site-nav a { padding: .35rem 0; border: 0; font-size: .92rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
  .header-cta { display: inline-block; font-size: .88rem; padding: .66rem 1.15rem; }

  .hero { padding-top: 3.6rem; }
  .hero-inner { display: grid; grid-template-columns: 1.02fr .98fr; gap: 2.8rem; align-items: center; }
  .hero-art { margin: 0; }
  .hero-art img { border-radius: var(--radius); }
  .hero-actions { max-width: 30rem; }

  .section { padding: 3.8rem 0; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 3rem; align-items: start; }
  .split-aside { position: sticky; top: 100px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .ridge { height: 44px; }
  .cta-band { padding: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .hero-actions, .nav-toggle { display: none; }
  body { color: #000; font-size: 11pt; }
  .hero { background: none; color: #000; }
  .hero h1 { color: #000; }
}
