/* Elite Window Cleaning quote page.
   One dark navy theme for the whole page (EWC brand), one accent: brand gold #ffc402.
   Shape rule: cards and photos 20px, inputs and choice tiles 12px, buttons full pill. */

:root {
  color-scheme: dark;
  --bg: #00162e;          /* EWC navy */
  --bg-alt: #021d3a;
  --surface: #03294d;
  --brand-navy: #033158;  /* EWC second navy */
  --line: rgba(214, 228, 245, 0.12);
  --line-strong: rgba(214, 228, 245, 0.24);
  --text: #f2f5f9;
  --text-soft: #d3dde8;
  --muted: #a3b3c4;
  --gold: #ffc402;        /* EWC gold */
  --gold-hover: #ffd23f;
  --gold-ink: #00162e;
  --gold-soft: rgba(255, 196, 2, 0.12);
  --gold-line: rgba(255, 196, 2, 0.45);
  --err: #ff9b8a;

  --r-card: 20px;
  --r-input: 12px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 136px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
.gold { color: var(--gold); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* icons */
.ico { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; vertical-align: -0.18em; }
.ico--lg { width: 30px; height: 30px; }
.ico--xl { width: 48px; height: 48px; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .ico { width: 18px; height: 18px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: 600 17px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), transform .15s var(--ease), border-color .2s var(--ease), color .2s;
}
.btn:active { transform: scale(0.98); }
.btn--gold { background: var(--gold); color: var(--gold-ink); }
.btn--gold:hover { background: var(--gold-hover); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold-line); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { opacity: .8; cursor: progress; }

.eyebrow { color: var(--gold); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(0, 22, 46, 0.86); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 120px; }
.nav__logo img { width: 185px; height: 104px; }
.nav__actions { display: flex; align-items: center; gap: 22px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; color: var(--text-soft); }
.nav__phone:hover { color: var(--text); }
.nav__phone .ico { color: var(--gold); }

/* hero */
.hero { position: relative; isolation: isolate; padding: 48px 0 72px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 22, 46, 0.97) 0%, rgba(0, 22, 46, 0.9) 36%, rgba(0, 22, 46, 0.5) 64%, rgba(0, 22, 46, 0.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(0, 22, 46, 0) 26%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 4.8vw, 4.2rem); line-height: 1.03; max-width: 15ch; }
.hero__sub { margin-top: 22px; font-size: 20px; line-height: 1.5; color: var(--text-soft); max-width: 32ch; }

/* quote card */
.quote {
  background: linear-gradient(180deg, rgba(3, 49, 88, 0.9), rgba(0, 22, 46, 0.94));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: 0 40px 90px -30px rgba(0, 6, 16, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
@media (prefers-reduced-transparency: reduce) { .quote { background: var(--surface); backdrop-filter: none; } }
.quote__head { margin-bottom: 18px; }
.quote__title { font-size: 26px; }
.quote__hint { margin-top: 4px; color: var(--muted); font-size: 15px; }
.quote__form { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; align-content: start; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; color: var(--text-soft); padding: 0; }
.field legend { margin-bottom: 6px; }
.field input {
  width: 100%; height: 50px; padding: 0 14px;
  background: rgba(255, 255, 255, 0.06); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-input);
  font: 400 16px var(--font);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input::placeholder { color: #8396ab; }
.field input:hover { border-color: rgba(214, 228, 245, 0.36); }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 196, 2, 0.25); background: rgba(255, 255, 255, 0.08); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field__help { font-size: 13px; color: var(--muted); }
.field__err { font-size: 13px; color: var(--err); display: flex; gap: 6px; align-items: center; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--r-input); background: rgba(255, 255, 255, 0.04);
  font-weight: 500; font-size: 15px; text-align: center; transition: border-color .2s, background-color .2s, color .2s;
}
.seg__opt span .ico { display: none; color: var(--gold); }
.seg__opt input:checked + span { border-color: var(--gold); background: var(--gold-soft); color: var(--text); }
.seg__opt input:checked + span .ico { display: inline-block; }
.seg__opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.seg[data-invalid] .seg__opt span { border-color: var(--err); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 14px; color: var(--err); }
.quote__consent { font-size: 12px; line-height: 1.5; color: var(--muted); }
.quote__consent a { color: var(--text-soft); }
.quote__done { display: grid; gap: 16px; }
.quote__done:focus { outline: none; }
.quote__done p { color: var(--text-soft); }
.quote__alt { font-size: 14px; color: var(--muted) !important; }
.quote__alt a { color: var(--gold); }

/* proof band */
.proof { border-block: 1px solid var(--line); background: var(--bg-alt); }
.proof__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof__item { display: flex; align-items: center; gap: 14px; padding: 28px 20px; }
.proof__item + .proof__item { border-left: 1px solid var(--line); }
.proof__item p { display: grid; line-height: 1.25; }
.proof__item strong { font-size: 22px; font-weight: 600; }
.proof__item span { color: var(--muted); font-size: 15px; }

/* sections */
.section { padding: 76px 0; }
.section--tight { padding: 60px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); max-width: 22ch; }
.section .h2 { margin-bottom: 36px; }
.note { margin-top: 20px; color: var(--muted); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 300px 300px auto; gap: 16px; }
.cell { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.cell h3 { font-size: 22px; margin: 14px 0 8px; }
.cell p { color: var(--text-soft); }
.cell--a { grid-column: 1 / 8; grid-row: 1 / 3; }
.cell--b { grid-column: 8 / 13; grid-row: 1; }
.cell--c { grid-column: 8 / 13; grid-row: 2; }
.cell--d { grid-column: 1 / 13; grid-row: 3; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--brand-navy); min-height: 300px; }
.cell--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cell--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 16, 34, 0.94) 0%, rgba(0, 16, 34, 0.55) 38%, rgba(0, 16, 34, 0) 70%); }
.cell--a img { object-position: 50% 30%; }
.cell--b img { object-position: 30% 70%; }
.cell--c img { object-position: 50% 55%; }
.cell__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px; max-width: 46ch; }
.cell__text { padding: 40px; align-self: center; max-width: 52ch; }
.cell--d img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; object-position: 50% 40%; }

/* steps */
.steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; position: relative; counter-reset: none; }
.steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px; background: linear-gradient(90deg, var(--gold-line), var(--line) 80%); }
.step { position: relative; }
.step__num { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; border: 1px solid var(--gold-line); background: var(--bg); color: var(--gold); font-size: 22px; font-weight: 600; margin-bottom: 24px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--text-soft); max-width: 32ch; }

/* before / after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pair { margin: 0; }
.pair__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair__imgs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); }
.pair__tag { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pair__tag--after { color: var(--gold); }
.pair figcaption { margin-top: 14px; font-size: 20px; font-weight: 500; }

/* reviews */
.reviews { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: stretch; }
.review { margin: 0; padding: 28px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--bg-alt); display: grid; gap: 12px; align-content: start; }
.review p { color: var(--text); font-size: 18px; line-height: 1.5; }
.review footer { color: var(--muted); font-size: 15px; }
.review--feature { padding: 48px; align-content: center; background: radial-gradient(120% 120% at 0% 0%, rgba(255, 196, 2, 0.14), rgba(255, 196, 2, 0) 55%), var(--surface); border-color: var(--gold-line); }
.review--feature p { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; }
.review--feature .stars .ico { width: 24px; height: 24px; }
.reviews__stack { display: grid; gap: 16px; }

/* owner */
.owner { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.owner__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); }
.owner__copy p { color: var(--text-soft); margin-top: 18px; max-width: 58ch; font-size: 18px; }
.owner__copy .h2 { margin-bottom: 8px; }
.owner__sig { display: grid; margin-top: 28px !important; color: var(--text) !important; font-weight: 600; font-size: 20px !important; }
.owner__sig span { font-weight: 400; color: var(--muted); font-size: 15px; }

/* guarantee */
.promise { text-align: center; display: grid; justify-items: center; gap: 18px; padding: 64px 32px; border-radius: var(--r-card); border: 1px solid var(--gold-line); background: radial-gradient(80% 140% at 50% 0%, rgba(255, 196, 2, 0.16), rgba(255, 196, 2, 0) 70%), var(--bg-alt); }
.promise .h2 { margin: 0 !important; max-width: 26ch; }
.promise p { color: var(--text-soft); font-size: 19px; }

/* faq */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.faq .h2 { margin-bottom: 0; }
.faq__list { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--gold); transition: transform .3s var(--ease); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 0 22px; color: var(--text-soft); max-width: 60ch; }
.faq details a { color: var(--gold); }

/* final cta */
.cta { position: relative; isolation: isolate; overflow: hidden; padding: 88px 0; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 22, 46, 0.95) 0%, rgba(0, 22, 46, 0.82) 55%, rgba(0, 22, 46, 0.6) 100%); }
.cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; }
.cta p { margin-top: 14px; color: var(--text-soft); font-size: 19px; }
.cta__actions { display: flex; gap: 14px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 28px; color: var(--muted); font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 40px; }
.foot__grid > div img { width: 142px; height: 80px; }
.foot__grid > div p { margin-top: 14px; max-width: 30ch; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot__contact li { display: flex; gap: 10px; align-items: baseline; }
.foot__contact .ico { color: var(--gold); }
.foot a { text-decoration: none; color: var(--text-soft); }
.foot a:hover { color: var(--text); }
.foot__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

/* mobile dock */
.dock { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: none; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(0, 22, 46, 0.94); border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateY(110%); transition: transform .35s var(--ease); }
.dock.is-on { transform: none; }
@media (prefers-reduced-motion: reduce) { .dock, .btn, .faq summary .ico { transition: none; } }
.dock__call { width: 54px; padding: 0; flex: none; }
.dock__go { flex: 1; }

/* motion (only when JS runs and the visitor has not asked for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .js-motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js-motion .reveal.in { opacity: 1; transform: none; }
  .hero__copy > *, .quote { animation: rise .9s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__copy > :nth-child(3) { animation-delay: .12s; }
  .quote { animation-delay: .18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* tablet and down */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; }
  .owner, .faq { gap: 40px; }
}

@media (max-width: 899px) {
  .nav__inner { height: 88px; }
  .nav__logo img { width: 128px; height: 72px; }
  .nav__phone span { display: none; }
  .nav__phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line-strong); border-radius: 999px; }

  .hero { padding: 0 0 56px; }
  .hero__media { position: relative; inset: auto; height: 62vw; max-height: 460px; }
  .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(0, 22, 46, 0.55) 45%, rgba(0, 22, 46, 0.15) 100%); }
  .hero::before { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; margin-top: -22vw; position: relative; }
  .hero h1 { font-size: clamp(2.1rem, 8.4vw, 3rem); max-width: 16ch; }
  .hero__sub { font-size: 18px; margin-top: 16px; }
  .quote { padding: 22px; }

  .proof__grid { grid-template-columns: 1fr 1fr; }
  .proof__item { padding: 22px 8px; }
  .proof__item + .proof__item { border-left: 0; }
  .proof__item:nth-child(even) { border-left: 1px solid var(--line); padding-left: 16px; }
  .proof__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .proof__item strong { font-size: 19px; }

  .section { padding: 56px 0; }
  .section--tight { padding: 48px 0; }
  .section .h2 { margin-bottom: 28px; }

  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .cell--a, .cell--b, .cell--c, .cell--d { grid-column: 1; grid-row: auto; }
  .cell--a, .cell--c { height: 420px; }
  .cell--b { height: 320px; }
  .cell--d { grid-template-columns: 1fr; }
  .cell--d img { max-height: 300px; order: -1; }
  .cell__text { padding: 28px; }
  .cell__body { padding: 24px; }

  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--gold-line), var(--line)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
  .step__num { grid-row: 1 / 3; margin: 0; }
  .step h3 { align-self: end; }

  .ba { grid-template-columns: 1fr; gap: 40px; }
  .reviews { grid-template-columns: 1fr; }
  .review--feature { padding: 32px; }
  .owner, .faq { grid-template-columns: 1fr; }
  .owner__img { max-width: 420px; }
  .faq .h2 { margin-bottom: 8px; }

  .cta { padding: 64px 0 72px; }
  .cta__inner { grid-template-columns: 1fr; }
  .cta__actions { flex-wrap: wrap; }
  .foot { padding-bottom: 104px; }
  .foot__grid { grid-template-columns: 1fr; gap: 28px; }
  .dock { display: flex; }
}

@media (max-width: 420px) {
  .grid-2:has(#phone) { grid-template-columns: 1fr; }
  .seg__opt span { font-size: 14px; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1; }
}
