/* FitYou Glass — one stylesheet for every page. No build step, no JavaScript. */

:root {
  color-scheme: light;

  /* Sampled from the logo and the flyers. Don't swap these for approximations. */
  --blue: #56aeff;         /* "GLASS" in the logo */
  --blue-hover: #3d9ff5;
  --blue-active: #2f93ee;
  --blue-deep: #026edd;    /* links on light backgrounds */
  --ink: #231f20;          /* car silhouette in the logo */
  --panel: #060809;        /* dark panel behind the flyer */

  /* Supporting tones. */
  --text: #2d2b2c;
  --muted: #5d5b5e;
  --line: #e2e3e5;
  --soft: #f4f6f8;
  --on-panel-muted: #c4c8ce;
  --tag-yes-bg: #e8f3ff;
  --tag-yes-text: #0a5cb8;
  --tag-check-bg: #fff3d1;
  --tag-check-text: #7a4f00;
  --tag-no-bg: #eeedef;
  --focus: var(--ink);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1, h2 { font-weight: 800; }
h3 { font-weight: 700; }
h2 { text-wrap: balance; }

p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--blue-deep); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.wrap--narrow { max-width: 48rem; }

.skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */

/* Brand-blue fill with the logo's black as both the label and the outline, so
   the button edge clears 3:1 on white and the label clears it on the dark panel. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.7rem 1.6rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--blue);
  color: var(--panel);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-hover); }
.btn:active { background: var(--blue-active); }
.btn--lg {
  min-height: 3.5rem;
  padding: 0.8rem 2rem;
  font-size: 1.125rem;
}
/* Dark sections switch the focus ring to white. */
.on-dark { --focus: #fff; }

/* ---------- Phone link: always the secondary option beside Request a Quote ---------- */

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.phone-link svg { flex: none; width: 1.1rem; height: 1.1rem; color: var(--blue-deep); }
.phone-link:hover { text-decoration: underline; }
.on-dark .phone-link { color: #fff; }
.on-dark .phone-link svg { color: var(--blue); }

/* Quote button first, phone second. Phones stack them full width; wider screens sit them side by side. */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; }
.cta-row .btn,
.cta-row .phone-link { width: 100%; justify-content: center; }

/* ---------- Header ---------- */

.site-header { background: #fff; border-bottom: 1px solid var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 0; }
.brand img { width: 11.75rem; max-width: 100%; height: auto; }

.site-nav { display: none; gap: 0.75rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.5rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); text-decoration: underline; }

.site-header__actions { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.site-header .phone-link { font-size: 0.9375rem; }
/* Under 360px the icon goes so the wordmark keeps its size beside the number. */
@media (max-width: 359px) {
  .site-header .phone-link svg { display: none; }
}
.site-header .btn { display: none; }

/* ---------- Hero ---------- */

.hero { padding: 3rem 0 3.5rem; background: var(--panel); color: #fff; }
.hero__grid { display: grid; gap: 2rem; align-items: center; }
.hero__grid > div { container-type: inline-size; }
.hero__car { display: none; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.125rem, 1.2rem + 6.4vw, 3.75rem);
  font-size: clamp(2.125rem, 11.6cqw, 3.75rem); /* column-relative; falls back to the line above */
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* Bold italic blue, echoing the wordmark. */
.eyebrow {
  margin-bottom: 1rem;
  color: var(--blue);
  font-size: 0.875rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--on-panel-muted);
  font-size: 1.1875rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero__actions { margin-top: 1.75rem; }

.note { margin-top: 0.875rem; font-size: 0.9375rem; color: var(--muted); }
.on-dark .note { color: var(--on-panel-muted); }

.hero__facts { display: grid; gap: 0.7rem; margin-top: 2rem; }
.hero__facts li {
  position: relative;
  padding-left: 1.75rem;
  font-weight: 600;
  text-wrap: balance;
}
.hero__facts li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 0.95rem;
  height: 0.55rem;
  border-left: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: rotate(-45deg);
}
/* An exclusion, so a rule rather than a tick. */
.hero__facts .is-out::before {
  width: 1.05rem;
  height: 0;
  border-left: 0;
  border-bottom: 3px solid var(--on-panel-muted);
  transform: none;
}

/* ---------- Sticky quote button (phones) ---------- */

.sticky-cta { display: none; }

/* ---------- Sections ---------- */

.section { padding: 3.5rem 0; }
.section--soft { background: var(--soft); }
.section h2 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); }
.section-intro {
  max-width: 42rem;
  margin-top: 0.875rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Services ---------- */

.services { display: grid; gap: 1rem; margin-top: 2rem; }

.service {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem 1.4rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.service h3 { font-size: 1.375rem; }
.service p { color: var(--muted); }
.service--no { background: var(--soft); border-style: dashed; }
.service--no h3 { color: var(--muted); }

.tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
}
.tag svg { width: 0.95rem; height: 0.95rem; flex: none; }
.tag--yes { background: var(--tag-yes-bg); color: var(--tag-yes-text); }
.tag--check { background: var(--tag-check-bg); color: var(--tag-check-text); }
.tag--no { background: var(--tag-no-bg); color: var(--muted); }

.services__help { margin-top: 1.5rem; color: var(--muted); }

/* ---------- How it works ---------- */

.steps { display: grid; gap: 1.25rem; margin-top: 2rem; }

.step {
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step__num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--panel);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 800;
}
.step h3 { margin-bottom: 0.4rem; font-size: 1.25rem; }
.step p { color: var(--muted); }

.note--box {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: #fff;
  color: var(--text);
}

/* ---------- Service area ---------- */

.area { display: grid; gap: 2rem; }
.area .lead-in { max-width: 38rem; margin-top: 0.875rem; color: var(--muted); }
.area .cta-row { margin-top: 1.5rem; }

.facts {
  display: grid;
  gap: 1.15rem;
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: var(--panel);
  color: #fff;
}
.facts dt {
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.facts dd { margin-top: 0.1rem; font-weight: 600; }

/* ---------- FAQ ---------- */

.faq { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.faq-layout h2 { max-width: 22rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0.25rem;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-deep); }
.faq__icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--blue-deep);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.faq details[open] .faq__icon-bar { display: none; }
.faq .answer { max-width: 46rem; padding: 0 0.25rem 1.25rem; color: var(--muted); }
/* An answer with several paragraphs: one gap between them, closed at the bottom like every other answer. */
.faq__body .answer { padding-bottom: 0; }
.faq__body .answer + .answer { margin-top: 0.75rem; }
.faq__body .answer:last-child { padding-bottom: 1.25rem; }
/* A phone number written inside a sentence stays on its line but gets a full-height tap area
   (the padding widens the hit box; the negative margin keeps the line height unchanged). */
.faq .answer a[href^="tel:"] { display: inline-block; padding: 0.6rem 0; margin: -0.6rem 0; font-weight: 700; }
/* With the closing period held to the number, the sentence breaks before "at" instead of orphaning a "." */
.nowrap { white-space: nowrap; }

/* ---------- Final call to action ---------- */

.final-cta { padding: 4rem 0; background: var(--panel); text-align: center; }
.final-cta h2 { color: #fff; font-size: clamp(1.875rem, 1.4rem + 2.2vw, 2.75rem); }
.final-cta .lead-in { margin-top: 1rem; color: var(--on-panel-muted); font-size: 1.125rem; }
.final-cta .cta-row { margin-top: 1.75rem; justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { padding: 3rem 0 2rem; border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 2rem; }
.footer__brand img { width: 10rem; height: auto; }
.footer__brand p { max-width: 17rem; margin-top: 0.75rem; color: var(--muted); }
.footer__heading {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer__grid nav { display: grid; align-content: start; }
.footer__grid nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.footer__grid nav a:hover { text-decoration: underline; }
.footer__grid nav a[aria-current] { color: var(--ink); text-decoration: underline; }
.footer__legal {
  display: grid;
  gap: 0.35rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Privacy, terms, 404 ---------- */

.legal { padding: 3.5rem 0 4rem; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.legal .updated { margin-top: 0.75rem; color: var(--muted); font-size: 0.9375rem; }
.legal h2 { margin-top: 2rem; font-size: 1.375rem; }
.legal p, .legal li { margin-top: 0.875rem; }
.legal ul { padding-left: 1.25rem; list-style: disc; }
.legal .btn { width: 100%; margin-top: 1.5rem; }

/* The privacy policy and terms: a long document with numbered sections. */
.legal--document h1 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); }
.legal--document .updated strong { color: var(--ink); }
.legal--document h2 { margin-top: 2.25rem; }
.legal--document li + li { margin-top: 0.35rem; }
/* Contact block at the end of each document: one line each, and a full-height phone link to tap. */
.legal__contact {
  font-style: normal;
  display: grid;
  gap: 0.15rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--soft);
  border-radius: 10px;
}
.legal__tel { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.4rem; min-height: 2.75rem; }
.legal__tel a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }
/* A standalone phone link in an FAQ answer sits under the text, aligned with it. */
.faq .phone-link { padding-inline: 0.25rem; }
.faq .answer + .phone-link { margin-top: -0.75rem; }
/* A link that stands alone (not inside a sentence) gets a full-height tap target. */
.legal .back-home {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
}

/* ---------- Phones: keep the quote button within thumb reach ---------- */

@media (max-width: 47.99rem) {
  body { padding-bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px)); }
  .sticky-cta {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 50;
    display: block;
    padding: 0.65rem 0.75rem;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: var(--panel);
  }
  .sticky-cta .btn { width: 100%; }
}

/* ---------- Tablet and up ---------- */

@media (min-width: 36rem) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 48rem) {
  html { scroll-padding-top: 5.25rem; }

  .site-header { position: sticky; top: 0; z-index: 40; }
  .site-header__inner { min-height: 4.5rem; }
  .brand img { width: 12.5rem; }
  .site-header .btn { display: inline-flex; min-height: 2.75rem; padding: 0.45rem 1.1rem; font-size: 1rem; }

  .hero { padding: 4.5rem 0 5rem; }
  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
  }
  /* Background, not <img>: decorative, and only fetched where this rule applies. */
  .hero__car {
    display: block;
    width: 100%;
    aspect-ratio: 1168 / 389;
    background: url("/assets/car-light.png") center / contain no-repeat;
  }
  .cta-row .btn,
  .cta-row .phone-link { width: auto; justify-content: flex-start; }
  .hero__facts { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

  .section { padding: 5rem 0; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

  .faq-layout {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 3rem;
    align-items: start;
  }
  .faq { margin-top: 0; }

  .area {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: start;
  }

  .final-cta { padding: 5.5rem 0; }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
  .footer__legal { grid-template-columns: 1fr auto; }

  .legal { padding: 4.5rem 0 5.5rem; }
}

@media (min-width: 64rem) {
  .site-nav { display: flex; }
}

@media (min-width: 62rem) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
