/* Efficiency Windows website. The template's warm, airy layout in the brand
   colors: forest green #1f6b35 (actions), tan #c8ad93, gold #d4a23a, ink #100b00. */
:root {
  --bg: #f6f2eb;
  --surface: #ffffff;
  --card: #f6f2eb;
  --ink: #17140f;
  --muted: #625a4f;
  --faint: #8a8174;
  --line: #e6dccf;
  --green: #1f6b35;
  --green-dark: #17532a;
  --tan: #c8ad93;
  --gold: #d4a23a;
  --eyebrow: #8a6430;
  --radius: 4px;
  --wrap: 1180px;
  --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: 90px; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.1rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.55rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 18px; }
.fine { font-size: 0.85rem; color: var(--faint); }
.center { text-align: center; }
.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 and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--radius); background: var(--green); color: #fff; font: 600 1rem var(--font); padding: 13px 22px; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--green-dark); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-lg { padding: 18px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.text-link { text-decoration: none; border-bottom: 1px solid var(--tan); padding-bottom: 4px; font-weight: 500; }
.text-link:hover { border-color: var(--green); color: var(--green); }

/* Top bar and header */
.topbar { background: #efe5d6; text-align: center; font-size: 0.85rem; padding: 9px 16px; color: var(--ink); }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 24px; }
.logo-link { text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 48px; height: 43px; flex: none; }
.logo-words { display: flex; flex-direction: column; line-height: 1; }
.logo-name { color: var(--green); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.14em; }
.logo-sub { display: flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.42em; margin-top: 5px; }
.logo-sub i { flex: 1; height: 1.5px; background: var(--green); min-width: 12px; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a:not(.btn) { text-decoration: none; font-size: 1rem; }
.site-nav a:not(.btn):hover { color: var(--green); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.18fr; background: var(--bg); min-height: 640px; }
.hero-copy { padding: clamp(56px, 9vw, 130px) clamp(24px, 5vw, 100px); display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 { margin-bottom: 36px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin: 40px 0 22px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-card { position: absolute; left: 40px; bottom: 26px; background: rgba(255, 255, 255, .94); padding: 28px 32px; max-width: 360px; }
.hero-card .eyebrow { margin-bottom: 8px; }
.hero-card-title { font-size: 1.6rem; line-height: 1.3; letter-spacing: -0.02em; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.section-head .section-lede { max-width: 500px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { background: var(--card); border: 1px solid var(--line); padding: 44px 42px 48px; display: flex; flex-direction: column; gap: 22px; scroll-margin-top: 110px; }
.card-kicker { font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--eyebrow); }
.card p:not(.card-kicker) { color: var(--muted); }
.card-link { margin-top: auto; font-weight: 700; text-decoration: none; }
.card-link:hover { color: var(--green); }

.comfort { background: var(--bg); }
.comfort-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.comfort-grid img { width: 100%; aspect-ratio: 8 / 7; object-fit: cover; }
.comfort-grid h2 { margin-bottom: 26px; }
.features { margin: 26px 0 34px; }
.features div { border-top: 1px solid var(--line); padding: 20px 0; }
.features dt { font-weight: 700; margin-bottom: 4px; }
.features dd { margin: 0; color: var(--muted); font-size: 0.95rem; }

.steps h2 { margin-bottom: 48px; }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step-list li { border-top: 2px solid var(--green); padding-top: 26px; }
.step-list span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #100b00; font-weight: 800; margin-bottom: 18px; }
.step-list h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step-list p { color: var(--muted); }

/* Quote form */
.quote { background: var(--bg); }
.quote-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
/* Grid and flex children may shrink below their content (the scrolling row of days would otherwise stretch the page on phones). */
.quote-grid > *, .hero > *, .comfort-grid > *, .cards > *, .quote-card, .form-step { min-width: 0; }
#slot-days { max-width: 100%; }
.quote-intro { position: sticky; top: 130px; }
.quote-intro h2 { margin-bottom: 22px; }
.service-area { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--gold); background: #fffaf0; color: var(--muted); font-size: 0.98rem; }
.service-area strong { color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 30px 0 0; }
.checks li { padding: 10px 0 10px 34px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: 0.75rem; display: grid; place-items: center; font-weight: 700; }
.quote-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; gap: 22px; box-shadow: 0 20px 50px -30px rgba(23, 20, 15, .35); }
.form-step { display: flex; flex-direction: column; gap: 16px; }
.form-step + .form-step { border-top: 1px solid var(--line); padding-top: 24px; }
.form-step h3 { font-size: 1.25rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 2fr 0.8fr 1fr; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
input, select, textarea { font: 400 1rem var(--font); color: var(--ink); background: #fbf9f5; border: 1px solid #d9cdbd; 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 #d9cdbd; background: #fbf9f5; 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; 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; }
.done { align-items: center; text-align: center; padding: 56px 40px; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2rem; display: grid; place-items: center; }
.done h3 { font-size: 1.7rem; }
.done p { color: var(--muted); max-width: 420px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-row nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.footer-row nav a:hover { color: var(--green); }

/* Tablet and phone */
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { min-height: 380px; }
  .hero-card { left: 16px; right: 16px; bottom: 16px; max-width: none; padding: 20px 22px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 36px; }
  .cards, .step-list { grid-template-columns: 1fr; gap: 18px; }
  .comfort-grid, .quote-grid { grid-template-columns: 1fr; }
  .quote-intro { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-row { min-height: 72px; }
  .logo-mark { width: 40px; height: 36px; }
  .logo-name { font-size: 1.1rem; }
  .card { padding: 30px 26px 34px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .hero-actions { gap: 18px; }
  .hero-actions .btn { width: 100%; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
