/* Efficiency Windows website: a conversion page in the style of the leading
   window-replacement offer pages (photo hero, 4-question quiz, style gallery,
   why-us band, 4 steps, final call to action), in the brand colors:
   forest green #1f6b35, gold #d4a23a (calls to action), tan #c8ad93, ink #100b00. */
:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --ink: #12160f;
  --muted: #545a50;
  --faint: #7f857a;
  --line: #dcdcd6;
  --green: #1f6b35;
  --green-deep: #0e2416;
  --green-soft: #e7f0e9;
  --gold: #e3a83a;
  --gold-dark: #c98f22;
  --tan: #c8ad93;
  --radius: 4px;
  --wrap: 1240px;
  --font: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
/* Elements we show and hide always obey `hidden`, whatever their display style. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.fine { font-size: 0.85rem; color: var(--faint); }
.lede, .section-lede { color: var(--muted); font-size: 1.1rem; }
.optional { font-weight: 400; color: var(--faint); font-size: 0.85em; letter-spacing: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--radius); font: 700 0.95rem var(--font); letter-spacing: 0.08em; text-transform: uppercase; padding: 14px 24px; text-decoration: none; cursor: pointer; transition: background .15s, opacity .15s; }
.btn-gold { background: var(--gold); color: #1b1404; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-dark { background: var(--green); color: #fff; }
.btn-dark:hover { background: #17532a; }
.btn-dark[disabled] { background: #9aa39a; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-lg { padding: 18px 34px; font-size: 1rem; }
.btn[disabled] { opacity: .75; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .opt:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.text-link { text-decoration: underline; text-underline-offset: 4px; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* Top bar and header */
.topbar { background: var(--green-deep); color: #fff; text-align: center; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 16px; }
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.logo-link { text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 46px; height: 41px; flex: none; }
.logo-words { display: flex; flex-direction: column; line-height: 1; }
.logo-name { color: var(--green); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.14em; }
.logo-sub { display: flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.42em; margin-top: 5px; }
.logo-sub i { flex: 1; height: 1.5px; background: var(--green); min-width: 12px; }
.header-cta { padding: 12px 20px; font-size: 0.85rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; background: #fff; }
.hero > * { min-width: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; min-height: 460px; }
.hero-media { overflow: hidden; }
.hero-copy { padding: clamp(36px, 6vw, 80px) clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; }
.badge { display: inline-block; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }

/* Offer strip */
.offer { background: var(--surface); padding: 8px 0 40px; border-bottom: 1px solid var(--line); }
.offer-row { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; max-width: 980px; }
.offer-row > * { min-width: 0; }
.offer-main { color: var(--green); font-size: 1.4rem; font-weight: 700; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.03em; }
.offer-main strong { font-size: 1.8rem; }
.offer-main span { font-size: 1rem; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.offer-box { border: 2px solid var(--green); padding: 18px 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; text-align: center; }
.offer-box span { display: block; margin-top: 4px; font-weight: 400; font-size: 0.75rem; color: var(--faint); letter-spacing: 0.12em; }

/* Quiz */
.quiz-section { padding: clamp(48px, 7vw, 80px) 0; background: #fff; scroll-margin-top: 80px; }
.quiz { max-width: 1100px; margin: 0 auto; }
.progress { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.progress-label { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 10px; }
.progress-bar { height: 16px; border: 1px solid var(--ink); padding: 3px; }
.progress-bar span { display: block; height: 100%; width: 20%; background: #6fae5a; transition: width .3s ease; }
/* Question on the left, answers on the right. The legend stays for screen readers only;
   browsers lay legends out specially, so the visible question is a plain heading. */
.step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; align-items: start; }
.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; }
.q-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; min-width: 0; }
.opt { position: relative; display: flex; flex-direction: row; align-items: center; gap: 12px; border: 1px solid #2b2f28; background: #f7f7f5; padding: 18px 16px; cursor: pointer; font-size: 1.02rem; font-weight: 500; min-height: 64px; transition: background .12s, border-color .12s; }
.opt:hover { background: #eef3ee; }
.opt input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.opt-icon { width: 26px; height: 26px; flex: none; color: var(--ink); }
.opt:has(input:checked) { background: var(--green); border-color: var(--green); color: #fff; }
.opt:has(input:checked) .opt-icon { color: #fff; }
.contact-step { grid-template-columns: 1fr; }
.contact-step legend { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; padding: 0; margin-bottom: 20px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.contact-grid > *, .form-col { min-width: 0; }
.form-col { display: flex; flex-direction: column; gap: 14px; }
.form-col h3 { font-size: 1.15rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 2fr 0.8fr 1fr; gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; font-weight: 600; }
input, textarea { font: 400 1rem var(--font); color: var(--ink); background: #f7f7f5; border: 1px solid #c9cbc4; border-radius: var(--radius); padding: 12px 13px; width: 100%; }
textarea { resize: vertical; }
input[aria-invalid="true"] { border-color: #b3261e; background: #fdf3f2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hint { color: var(--muted); font-size: 0.9rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips:empty { display: none; }
.chip { border: 1px solid #c9cbc4; background: #f7f7f5; border-radius: 999px; padding: 9px 15px; font: 600 0.9rem var(--font); color: var(--ink); cursor: pointer; line-height: 1.2; text-align: center; }
.chip small { display: block; font-weight: 400; color: var(--faint); font-size: 0.78rem; }
.chip:hover { border-color: var(--green); }
.chip[aria-checked="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.chip[aria-checked="true"] small { color: rgba(255, 255, 255, .8); }
#slot-days { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; max-width: 100%; scrollbar-width: thin; }
#slot-days .chip { flex: none; }
.form-error { background: #fdf3f2; border: 1px solid #f0c6c2; color: #8a1c15; padding: 12px 14px; font-size: 0.95rem; margin-top: 20px; }
.quiz-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.quiz-nav #back-btn { margin-right: auto; }
#privacy-note { margin-top: 12px; text-align: right; }
.done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 20px; }
.done-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2rem; display: grid; place-items: center; }
.done p { color: var(--muted); max-width: 520px; font-size: 1.1rem; }

/* Style gallery */
.styles-section { background: var(--bg); padding: clamp(56px, 8vw, 96px) 0; }
.styles-section h2 { margin-bottom: 14px; }
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 40px 0; background: #fff; padding: 28px; }
.style-card { margin: 0; min-width: 0; }
.style-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.style-card figcaption { text-align: center; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.88rem; padding-top: 12px; }

/* Why us (dark band) */
.why { background: var(--green-deep); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.why h2 { margin-bottom: 40px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-grid article { background: #fff; color: var(--ink); padding: 28px 24px; border-top: 4px solid var(--gold); min-width: 0; }
.why-grid h3 { margin-bottom: 10px; }
.why-grid p { color: var(--muted); }

/* How it works */
.how { padding: clamp(56px, 8vw, 96px) 0; }
.how h2 { margin-bottom: 12px; }
.how-grid { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.how-grid li { background: var(--bg); border: 1px solid var(--line); padding: 26px 22px; min-width: 0; }
.step-num { display: block; color: var(--green); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 8px; }
.how-grid h3 { text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 8px; }
.how-grid p { color: var(--muted); }

/* Final call to action */
.final-cta { background: var(--bg); padding: clamp(48px, 7vw, 80px) 0; }
.final-cta h2 { margin-bottom: 26px; }

/* Footer */
.site-footer { background: #0b1a10; padding: 36px 0; }
.site-footer .logo-name, .site-footer .logo-sub { color: #fff; }
.site-footer .logo-sub i { background: #fff; }
.site-footer .fine { color: #b9c2b9; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Tablet */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media img { min-height: 0; aspect-ratio: 16 / 10; }
  .step { grid-template-columns: 1fr; gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .style-grid { grid-template-columns: repeat(2, 1fr); padding: 18px; }
  .why-grid, .how-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .topbar { font-size: 0.72rem; letter-spacing: 0.05em; }
  .header-row { min-height: 64px; }
  .logo { gap: 9px; }
  .logo-mark { width: 36px; height: 32px; }
  .logo-name { font-size: 1rem; letter-spacing: 0.1em; }
  .logo-sub { font-size: 0.56rem; letter-spacing: 0.32em; }
  .header-cta { padding: 10px 12px; font-size: 0.7rem; letter-spacing: 0.05em; max-width: 46%; text-align: center; }
  .hero-copy { padding: 28px 16px 36px; gap: 18px; }
  .hero-copy .btn { width: 100%; }
  .offer { padding: 0 0 28px; }
  .offer-row { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .offer-main { font-size: 1.15rem; }
  .opts { grid-template-columns: 1fr; gap: 10px; }
  .opt { min-height: 56px; padding: 14px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .quiz-nav { margin-top: 26px; }
  .quiz-nav .btn { flex: 1; }
  .quiz-nav #back-btn { flex: 0 0 auto; }
  #privacy-note { text-align: center; }
  .style-grid { grid-template-columns: 1fr; padding: 14px; gap: 16px; }
  .why-grid, .how-grid { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
