/* ==========================================================================
   NS Auto Glass — marketing site
   Tokens and type scale follow the design handoff. The prototype's inline
   styles and `style-hover` attributes are converted to real rules here.
   ========================================================================== */

/* --------------------------------------------------------------- Tokens -- */
:root {
  /* Brand */
  --brand: #c8006b;
  --brand-hover: #a30057;
  --link-hover: #8f004c;
  --brand-on-dark: #ff5eb0;
  --brand-tint: #fdeef6;
  --brand-tint-icon: #f6ecf2;
  --brand-rule: #f0d9e6;

  /* Ink and text */
  --ink: #161115;
  --ink-body: #1a1418;
  --body: #4b3f45;
  --body-muted: #5c4e54;
  --meta: #6d5f66;
  --meta-light: #77696f; /* WCAG AA on every ground it is used on; was #8a7b81 at 3.8:1 */

  /* Surfaces */
  --page-bg: #fbf8f7;
  --section-bg: #fff;
  --warm-bg: #f4eeec;
  --card-bg: #f1e9e6;      /* service cards, so they read against the white section */
  --img-fallback: #efe6e3;
  --img-fallback-dark: #241c26;

  /* Lines */
  --border: #e8dfdc;
  --border-light: #eee5e2;
  --border-input: #ddd0cb;
  --border-cta: #d6c9c5;

  /* On dark */
  --on-dark-body: #c9bcc3;
  --on-dark-hairline: rgba(255, 255, 255, 0.18);

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: 32px;
  --section-pad: 76px;
  --header-h: 81px; /* fallback; site.js measures the real height */

  /* The design's only shadow. */
  --shadow-card: 0 12px 30px -12px rgba(22, 17, 21, 0.22);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* The design is light-only. Without this, a phone in dark mode auto-darkens
     the form inputs and they read as broken against the white card. */
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

h1, h2, h3, p, figure, blockquote, dl, dd, fieldset, legend {
  margin: 0;
  padding: 0;
}

fieldset { border: 0; min-width: 0; }

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover { color: var(--link-hover); }

/* A link sitting inside a sentence must be identifiable without colour, so it
   carries an underline. Standalone links - nav, buttons, cards - do not. */
.legal__section a,
.legal__lede a,
.legal__eyebrow a,
.quote-form__privacy a,
.quote__contact a,
.site-footer__contact a,
.faq__panel a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 4px;
  transition: top 120ms ease-out;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------- Media wells -- */
.media {
  border-radius: 6px;
  overflow: hidden;
  background: var(--img-fallback);
}
.media--dark { background: var(--img-fallback-dark); }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--1x1 { aspect-ratio: 1 / 1; }  /* before/after: the client's lens photos are portrait */
.media--5x4 { aspect-ratio: 5 / 4; }
.media--16x9 { aspect-ratio: 16 / 9; }

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* A photo that fails to load leaves the well's fallback colour rather than a
   broken-image icon (see assets/img/README.md). */
.media img.is-missing { display: none; }

/* --------------------------------------------------------------- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background-color 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out;
}

.btn--brand {
  background: var(--brand);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
}
.btn--brand:hover { background: var(--brand-hover); color: #fff; }

.btn--ink {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  padding: 17px 26px;
}
.btn--ink:hover { background: var(--brand); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  padding: 16px 24px;
  border: 1.5px solid var(--border-cta);
}
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }

.btn--submit {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  padding: 16px;
  border: none;
  background: var(--brand);
  color: #fff;
}
.btn--submit:hover:not(:disabled) { background: var(--brand-hover); }
.btn--submit:disabled { opacity: 0.75; cursor: default; }

/* ---------------------------------------------------------------- Header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 247, 0.94);
  backdrop-filter: blur(8px);
  border-top: 3px solid var(--brand);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-block: 11px;
}

.logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}
.logo img {
  /* Sized by height: the mark is 1.7:1, so setting a width makes the sticky
     header far taller than the layout expects. */
  height: 58px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: 12px;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a { color: #43373d; }
.site-nav a:hover { color: var(--brand); }

.site-header__spacer { flex: 1; }

.header-phone {
  text-align: right;
  line-height: 1.1;
  display: grid;
  gap: 2px;
}
.header-phone__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta-light);
}
.header-phone__number {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-body);
}
.header-phone__number:hover { color: var(--brand); }

.site-header__call { display: none; }

/* ------------------------------------------------------------------ Hero -- */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
  padding-block: 64px 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--brand);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 66px;
  line-height: 0.98;
  letter-spacing: -0.032em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 22px;
}

.hero__title-accent { color: var(--brand); }

.hero__sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--body);
  max-width: 30em;
  margin-bottom: 30px;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  column-gap: 40px;
  row-gap: 18px;
  max-width: 560px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat__label {
  font-size: 13px;
  color: var(--meta);
  margin-top: 2px;
}

.hero__media { position: relative; }

.hero__card {
  position: absolute;
  left: -26px;
  bottom: 34px;
  max-width: 250px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
}
.hero__card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}
.hero__card-body {
  font-size: 14px;
  line-height: 1.45;
  color: var(--body-muted);
}

/* ----------------------------------------------------- Credentials strip -- */
.credentials {
  background: var(--warm-bg);
  border-block: 1px solid var(--border);
}
/* Centred and content-width, so the strip reads as deliberate whatever the
   number of items - it has been four, three and two. */
.credentials__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 64px;
  padding-block: 26px;
}
.credential {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
}
.credential__dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--brand);
  margin-top: 7px;
}
.credential__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.credential__body {
  font-size: 14px;
  line-height: 1.45;
  color: var(--meta);
  margin-top: 2px;
}

/* -------------------------------------------------------- Section header -- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 42px;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.section-head__title--wide { max-width: 18em; }
.section-head__intro {
  font-size: 17px;
  line-height: 1.5;
  color: var(--body-muted);
  max-width: 24em;
}
.section-head__intro--narrow { max-width: 22em; }

/* -------------------------------------------------------------- Services -- */
.services {
  background: var(--section-bg);
  border-bottom: 1px solid var(--border-light);
  padding-block: var(--section-pad);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.service-card {
  border: 1px solid var(--border-input);
  border-radius: 6px;
  overflow: hidden;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
}
/* Cards 1 and 3 carry a before/after pair; card 2 one wide shot. The single
   image is 16:9 so its block lands at the same height as a pair plus captions,
   and the three cards stay in step. */
.service-card__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 6px 0;
}
.service-card__media--single { grid-template-columns: minmax(0, 1fr); }

.ba { display: grid; gap: 6px; }
.ba__cap {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);   /* --meta-light falls to 4.35:1 on --card-bg */
}
.ba__cap--after { color: var(--brand); }

.service-card__body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}
.service-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.service-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.service-card__meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}
.service-card__copy {
  font-size: 16px;
  line-height: 1.55;
  color: var(--body-muted);
}
/* Pushes the note to the bottom so all three notes align. */
.service-card__note {
  margin-top: auto;
  font-size: 14px;
  color: var(--meta);
  border-top: 1px solid var(--border-input);
  padding-top: 12px;
}

/* --------------------------------------------------------------- Reviews -- */
.reviews {
  background: var(--section-bg);
  border-block: 1px solid var(--border-light);
  padding-block: 72px;
}
.reviews__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.reviews__rating {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.reviews__stars {
  letter-spacing: 2px;
  color: var(--brand);
  font-size: 18px;
}
.reviews__rule {
  flex: 1;
  min-width: 20px;
  height: 1px;
  background: var(--border-light);
}
.reviews__link { font-weight: 600; font-size: 15px; }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.review {
  padding-left: 20px;
  border-left: 2px solid var(--brand-rule);
}
.review__quote {
  font-size: 17px;
  line-height: 1.55;
  color: #2b2229;
  margin-bottom: 14px;
}
.review__who { font-size: 14px; color: var(--meta); }

/* ------------------------------------------------------------- Locations -- */
.locations {
  background: var(--ink);
  color: #fff;
  padding-block: var(--section-pad);
}
.locations__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: center;
}
.locations a:hover { color: #fff; }
.locations :focus-visible { outline-color: var(--brand-on-dark); }

.locations__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.028em;
  margin-bottom: 18px;
}
.locations__lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--on-dark-body);
  max-width: 26em;
  margin-bottom: 24px;
}

.tent-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border: 1px solid var(--on-dark-hairline);
  border-radius: 4px;
  padding: 12px 18px;
  margin-bottom: 30px;
}
.tent-badge__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-on-dark);
}
.tent-badge__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}

.locations__offseason {
  font-size: 16px;
  line-height: 1.55;
  color: var(--on-dark-body);
  max-width: 30em;
  margin: -14px 0 30px;
}

.locations__addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.address {
  border-top: 2px solid var(--brand-on-dark);
  padding-top: 14px;
}
.address__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}
.address__lines {
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-dark-body);
}
.address__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-on-dark);
}

/* ------------------------------------------------------------------- FAQ -- */
.faq {
  background: var(--section-bg);
  border-bottom: 1px solid var(--border-light);
  padding-block: var(--section-pad);
}
.faq__inner {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 60px;
  align-items: start;
}
.faq__copy .section-head__title { margin-bottom: 14px; }
.faq__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--body-muted);
  margin-bottom: 20px;
}
.faq__phone { font-weight: 700; font-size: 17px; }

.faq__item { border-top: 1px solid var(--border-light); }
.faq__end { border-top: 1px solid var(--border-light); }
.faq__heading { font: inherit; }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: transparent;
  border: none;
  padding: 20px 4px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.012em;
  color: var(--ink);
  transition: color 140ms ease-out;
}
.faq__q:hover { color: var(--brand); }

.faq__icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  background: var(--brand-tint-icon);
  color: var(--brand);
}
.faq__icon::before { content: "+"; }
.faq__q[aria-expanded="true"] .faq__icon {
  background: var(--brand);
  color: #fff;
}
.faq__q[aria-expanded="true"] .faq__icon::before { content: "\2013"; }

/* Negative top margin tightens the answer against the button's padding. */
.faq__panel p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  max-width: 46em;
  margin: -4px 4px 24px;
}

/* ------------------------------------------------------------ Quote form -- */
.quote {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  align-items: start;
  padding-block: var(--section-pad) 90px;
}
.quote__copy .section-head__title { margin-bottom: 14px; }
.quote__lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--body);
  max-width: 26em;
  margin-bottom: 24px;
}
.quote__contact {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-muted);
}
.quote__contact a { font-weight: 700; }

.quote__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 30px;
}
.quote-form { display: grid; gap: 18px; }

.field { display: grid; gap: 7px; }
.field__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--meta);
}
.field__hint {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--meta-light);
}
.field__input {
  font-family: var(--font-body);
  font-size: 17px;
  padding: 13px 14px;
  border: 1px solid var(--border-input);
  border-radius: 4px;
  background: var(--page-bg);
  color: var(--ink);
  width: 100%;
}
.field__input--mono {
  font-family: var(--font-mono);
  font-size: 16px;
  text-transform: uppercase; /* VINs are uppercase... */
}
.field__input--mono::placeholder { text-transform: none; } /* ...the hint is not. */
.field__input[aria-invalid="true"] { border-color: var(--brand); }
.field__error {
  font-size: 14px;
  line-height: 1.4;
  color: var(--brand);
}

/* Honeypot — hidden from people, reachable by bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.chips { display: grid; gap: 7px; }
.chips__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.chip {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 4px;
  cursor: pointer;
  border: 1.5px solid var(--border-input);
  background: #fff;
  color: #43373d;
  transition: border-color 140ms ease-out, background-color 140ms ease-out, color 140ms ease-out;
}
.chip:hover { border-color: var(--brand); }
.chips__input:checked + .chip {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand);
}
.chips__input:focus-visible + .chip {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* Conditional VIN field: collapsed with a grid-row transition so it can
   animate without a fixed height. */
.vin {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 150ms ease-out, opacity 150ms ease-out;
}
.vin__inner { overflow: hidden; min-height: 0; }
.vin.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.quote-form__privacy {
  font-size: 14px;
  line-height: 1.5;
  color: var(--meta-light);
}
.quote-form__status {
  font-size: 15px;
  line-height: 1.5;
  color: var(--brand);
}
.quote-form__status:empty { display: none; }

/* Success panel that replaces the form. */
.quote-done { display: grid; gap: 12px; }
.quote-done__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.quote-done__body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--body);
}

/* ------------------------------------------------------------------- 404 -- */
.notfound { padding-block: 72px 90px; }
.notfound__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
  text-wrap: balance;
}
.notfound__lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--body);
  max-width: 34em;
  margin-bottom: 30px;
}
.notfound__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.notfound__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  font-size: 16px;
  font-weight: 600;
}

/* ---------------------------------------------------------------- Footer -- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 26px 40px;
}
.site-footer__row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--meta);
}
.site-footer__legal {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--meta-light);
}

.site-footer__contact {
  margin-top: 18px;
  display: grid;
  gap: 3px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--meta);
}
.site-footer__contact strong { color: var(--ink); }

.site-footer__legal-nav {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  font-weight: 600;
}

/* ------------------------------------------------------------ Policy pages -- */
.legal {
  padding-block: 56px 80px;
  max-width: calc(760px + var(--gutter) * 2);
}
.legal__eyebrow {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 26px;
}
.legal__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: balance;
}
.legal__lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--body);
  margin-bottom: 14px;
}
.legal__updated {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--meta-light);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

/* One policies page: a jump list, then each policy as its own block. */
.legal__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.legal__toc a {
  font-size: 15px;
  font-weight: 600;
  padding: 9px 15px;
  border: 1.5px solid var(--border-input);
  border-radius: 4px;
  color: #43373d;
}
.legal__toc a:hover { border-color: var(--brand); color: var(--brand); }

.legal__policy {
  padding-top: 52px;
  margin-top: 44px;
  border-top: 2px solid var(--brand);
}
.legal__policy:first-of-type { margin-top: 26px; }
.legal__policy-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin-bottom: 10px;
}
.legal__policy-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--body);
  max-width: 44em;
}
.legal__block { padding-top: 30px; }
.legal__block h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 12px;
}
.legal__block p,
.legal__block li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
}
.legal__block p + p { margin-top: 12px; }
.legal__block ul {
  margin: 12px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.legal__block a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.legal__section { padding-top: 34px; }
.legal__section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 12px;
}
.legal__section p,
.legal__section li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
}
.legal__section p + p { margin-top: 12px; }
.legal__section ul {
  margin: 12px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

:target { scroll-margin-top: calc(var(--header-h) + 20px); }

/* =========================================================== Breakpoints == */

/* Tablet / small laptop: keep two columns, shrink the type. */
@media (max-width: 1279px) {
  :root { --section-pad: 64px; }
  .hero__title { font-size: 52px; }
  .section-head__title,
  .locations__title { font-size: 34px; }
  .legal__title { font-size: 36px; }
  .site-header__inner { gap: 24px; }
  .site-nav { gap: 20px; }
  .credentials__grid { gap: 20px 40px; }
  .hero { gap: 40px; }
  .hero__card { left: -16px; }
}

/* Stack everything. */
@media (max-width: 899px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-block: 44px 48px;
  }
  .media--4x5 { aspect-ratio: 3 / 2; }

  /* The overlay card loses its negative offset and sits inline. */
  .hero__card {
    position: static;
    max-width: none;
    margin-top: 16px;
    box-shadow: none;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .service-grid,
  .reviews__grid { grid-template-columns: minmax(0, 1fr); }

  .locations__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .faq__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .quote {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-block: 48px 64px;
  }
}

/* Phone. The nav collapses to logo + tap-to-call; the page is one scroll. */
@media (max-width: 599px) {
  :root {
    --gutter: 20px;
    --section-pad: 48px;
    --header-h: 62px;
  }

  .site-nav,
  .header-phone,
  .site-header__cta { display: none; }
  .site-header__spacer { flex: 1; }
  .site-header__call {
    display: inline-flex;
    font-size: 15px;
    padding: 11px 18px;
  }
  .site-header__inner { gap: 12px; }
  .logo img { height: 44px; }

  .hero__title { font-size: 38px; }
  .notfound__title { font-size: 34px; }
  .notfound__ctas .btn { width: 100%; }
  .legal__title { font-size: 30px; }
  .legal__policy-title { font-size: 25px; }
  .legal__block h3 { font-size: 19px; }
  .legal__lede { font-size: 17px; }
  .legal__section h2 { font-size: 20px; }
  .hero__title-accent { color: var(--brand); }

.hero__sub { font-size: 17px; }
  .hero__ctas { gap: 10px; }
  .hero__ctas .btn { width: 100%; }

  .stats {
    grid-template-columns: repeat(2, auto);
    column-gap: 28px;
  }

  .credentials__grid { justify-content: start; }
  .section-head__title,
  .locations__title { font-size: 30px; }
  .reviews__rating { font-size: 26px; }
  .locations__addresses { grid-template-columns: minmax(0, 1fr); }
  .faq__q { font-size: 17px; gap: 14px; }
  .quote__card { padding: 22px 20px; }
  .site-footer__row { gap: 10px; }
}

/* ---------------------------------------------------------------- Motion -- */
/* Motion here is feedback, not decoration. This page's job is to get someone
   with a cracked windshield to the phone number, so nothing animates on
   scroll and nothing fades in on load - content that is parked at opacity 0
   waiting for a scroll observer is content the visitor cannot read, and an
   animated H1 delays the largest contentful paint on the one screen that
   matters. What is left is the feedback a control owes the person using it. */
@media (prefers-reduced-motion: no-preference) {
  /* The answer slides down rather than appearing from nowhere. */
  .faq__panel:not([hidden]) { animation: faq-open 200ms ease-out; }
  @keyframes faq-open {
    from { opacity: 0; transform: translateY(-6px); }
  }

  /* Cards lift a hair on hover, using the border rather than a new shadow -
     the design has exactly one shadow and it belongs to the hero card. */
  .service-card {
    transition: border-color 160ms ease-out, transform 160ms ease-out;
  }
  .service-card:hover {
    border-color: var(--border-cta);
    transform: translateY(-2px);
  }

  /* Buttons acknowledge the press. */
  .btn, .chip { transition: background-color 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out, transform 100ms ease-out; }
  .btn:active, .chip:active { transform: translateY(1px); }

  /* The header rule thickens once the page has scrolled - the only ambient
     motion on the page, and it tells you something true. */
  .site-header { transition: border-bottom-color 200ms ease-out; }
}

/* ------------------------------------------------------- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------------ Print */
@media print {
  .site-header, .skip-link, .quote__card { display: none; }
  body { background: #fff; }
}
