/* =========================================================
   TrueRepairPrice — front-end styles
   One family (Archivo, variable width) · measuring-tape motif
   ========================================================= */

:root {
  --ink: #1d2a31;
  --ink-2: #4a5961;
  --paper: #fafaf7;
  --white: #ffffff;
  --concrete: #e8eae5;
  --line: #cfd4ce;
  --teal: #11545a;
  --teal-dark: #0b3d42;
  --teal-tint: #e1eeee;
  --tape: #f4c430;
  --tape-dark: #c99a0c;
  --rust: #b3361e;
  --ok: #2f6b3a;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.5rem, 5.5vw, 4rem);

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius-sm: 4px;
  --radius: 10px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  margin: 0 0 .5em;
  line-height: 1.05;
  font-weight: 800;
  font-stretch: 72%;
  font-variation-settings: "wdth" 72;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-stretch: 85%; font-variation-settings: "wdth" 85; line-height: 1.2; }

p { margin: 0 0 1em; max-width: 68ch; }

.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 52ch; }

.small { font-size: var(--step--1); color: var(--ink-2); }

/* ---------- Layout ---------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.block { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.block--concrete { background: var(--concrete); }
.block--teal { background: var(--teal); color: var(--white); }
.block--teal a { color: var(--white); }

.block__head { margin-bottom: 2rem; max-width: 60ch; }
.block__head p { color: var(--ink-2); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
}

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

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}

.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 1.4rem;
  font-variation-settings: "wdth" 80; letter-spacing: -0.01em;
}
.logo svg { width: 34px; height: 34px; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover { color: var(--teal); }
.nav a[aria-current="page"] { color: var(--teal); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .45rem .7rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--concrete); }
  .nav .btn { margin-top: .8rem; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: .85rem 1.4rem; min-height: 48px;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--tape); color: var(--ink); border-color: var(--tape); }
.btn--primary:hover { background: #ffd24d; color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #2c3c45; color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

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

.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); background: var(--white); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 18ch; }
.hero__tape { margin-top: 2.5rem; max-width: 620px; }
.hero__tape-caption { font-size: var(--step--1); color: var(--ink-2); margin-top: .9rem; }

.breadcrumb { font-size: var(--step--1); color: var(--ink-2); margin-bottom: 1.25rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.breadcrumb a { color: var(--ink-2); }

/* ---------- Measuring tape (signature) ---------- */

.tape { position: relative; padding-top: 3rem; padding-bottom: 2.4rem; }

.tape__strip {
  position: relative;
  height: 48px;
  background-color: var(--tape);
  border-radius: 3px;
  box-shadow: inset 0 -2px 0 var(--tape-dark);
  background-image:
    repeating-linear-gradient(to right, var(--ink) 0 2px, transparent 2px 100%),
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 100%);
  background-size: calc(100% / 6) 22px, calc(100% / 24) 11px;
  background-position: 0 0, 0 0;
  background-repeat: repeat-x;
}

.tape__range {
  position: absolute;
  top: -7px; bottom: -7px;
  left: var(--lo, 20%);
  width: calc(var(--hi, 70%) - var(--lo, 20%));
  border: 2.5px solid var(--ink);
  border-radius: 5px;
  background: rgba(255, 255, 255, .5);
  transition: left .45s cubic-bezier(.2,.7,.2,1), width .45s cubic-bezier(.2,.7,.2,1);
}

.tape__typ {
  position: absolute;
  left: var(--typ, 45%);
  top: -1rem; bottom: -7px;
  width: 2.5px; margin-left: -1.25px;
  background: var(--ink);
  transition: left .45s cubic-bezier(.2,.7,.2,1);
}
.tape__typ span {
  position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-weight: 800; font-size: var(--step-0);
  font-variation-settings: "wdth" 80;
  background: var(--ink); color: var(--white);
  padding: .1rem .5rem; border-radius: 3px;
  margin-bottom: 0;
}

.tape__ends {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2rem;
}
.tape__ends span {
  position: absolute; top: .35rem;
  font-weight: 700; font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: left .45s cubic-bezier(.2,.7,.2,1);
}
.tape__ends .tape__lo { left: var(--lo); }
.tape__ends .tape__hi { left: var(--hi); }

@media (prefers-reduced-motion: reduce) {
  .tape__range, .tape__typ, .tape__ends span { transition: none; }
}

/* ---------- Quote panel ---------- */

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--tape);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.panel h2 { font-size: var(--step-2); }
.panel--concrete { background: var(--concrete); }

/* ---------- Forms ---------- */

.field { margin-bottom: 1.1rem; }
.field label, .field legend {
  display: block; font-weight: 700; margin-bottom: .35rem; font-size: 1rem;
}
.field .hint { font-size: var(--step--1); color: var(--ink-2); margin: -.2rem 0 .4rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #9ea7a3;
  border-radius: var(--radius-sm);
  padding: .75rem .85rem;
  min-height: 48px;
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 3px solid var(--teal-tint); outline-offset: 0; }

.field.has-error input, .field.has-error select { border-color: var(--rust); }
.error-msg { color: var(--rust); font-size: var(--step--1); font-weight: 600; margin-top: .35rem; display: none; }
.field.has-error .error-msg { display: block; }

.row-2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }

fieldset { border: 0; padding: 0; margin: 0; }

.choices { display: grid; gap: .5rem; }
.choices--2 { grid-template-columns: 1fr 1fr; }
.choice {
  position: relative;
  display: flex; align-items: flex-start; gap: .6rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .7rem .8rem; cursor: pointer; background: var(--white);
  font-weight: 500;
}
.choice input { margin-top: .3rem; accent-color: var(--teal); width: 18px; height: 18px; flex: none; }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-tint); }

.consent { font-size: .8125rem; color: var(--ink-2); line-height: 1.5; }
.consent label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.consent input { margin-top: .2rem; width: 18px; height: 18px; flex: none; accent-color: var(--teal); }

.form-inline { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-inline { grid-template-columns: 1.3fr 1fr auto; align-items: end; } .form-inline .field { margin: 0; } }

/* ---------- Service rows ---------- */

.service-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.service-row {
  display: grid; gap: .5rem 2rem;
  grid-template-columns: 1fr;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 820px) {
  .service-row { grid-template-columns: 1.1fr 1.3fr auto; align-items: center; }
}
.service-row h3 { margin: 0 0 .25rem; font-size: var(--step-2); font-stretch: 72%; font-variation-settings: "wdth" 72; }
.service-row h3 a { color: var(--ink); text-decoration: none; }
.service-row h3 a:hover { color: var(--teal); text-decoration: underline; }
.service-row p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.service-row__price { font-variant-numeric: tabular-nums; }
.service-row__price strong { font-size: var(--step-1); font-variation-settings: "wdth" 85; }
.service-row__links { display: flex; gap: 1rem; flex-wrap: wrap; font-weight: 600; white-space: nowrap; }

/* mini tape inside rows */
.minitape {
  position: relative; height: 12px; margin-top: .5rem;
  background: var(--tape); border-radius: 2px;
  background-image: repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 100%);
  background-size: calc(100% / 12) 6px; background-repeat: repeat-x;
}
.minitape i {
  position: absolute; top: -3px; bottom: -3px;
  left: var(--lo); width: calc(var(--hi) - var(--lo));
  border: 2px solid var(--ink); border-radius: 3px; background: rgba(255,255,255,.5);
}

/* ---------- Steps (real sequence) ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 2px solid currentColor; }
.steps li::before {
  content: counter(step);
  display: block;
  font-weight: 800; font-size: 3rem; line-height: 1;
  font-variation-settings: "wdth" 62;
  margin-bottom: .5rem;
  color: var(--tape);
}
.block--teal .steps li p { color: #d4e4e4; }
.steps h3 { margin-bottom: .35rem; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; }
table.costs { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--white); }
table.costs caption { text-align: left; font-weight: 700; padding-bottom: .6rem; }
table.costs th, table.costs td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.costs thead th { background: var(--ink); color: var(--white); font-weight: 700; font-size: .95rem; }
table.costs td:nth-child(n+2) { white-space: nowrap; }
table.costs tbody tr:hover { background: #f4f6f2; }

/* ---------- Lists & links ---------- */

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35rem;
  width: 1.05rem; height: 1.05rem; border-radius: 2px;
  background: var(--tape); box-shadow: inset 0 0 0 2px var(--ink);
}

.city-columns { columns: 2 180px; column-gap: 2rem; list-style: none; margin: 0; padding: 0; }
.city-columns li { break-inside: avoid; padding: .3rem 0; }
.city-columns li span { color: var(--ink-2); font-size: var(--step--1); margin-left: .25rem; }

.state-group { margin-bottom: 1.75rem; }
.state-group h3 { font-size: var(--step-1); border-bottom: 1px solid var(--line); padding-bottom: .35rem; }

.method-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.method { display: grid; grid-template-columns: 1fr; gap: .25rem 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .method { grid-template-columns: 1fr 2fr auto; align-items: baseline; } }
.method h3 { margin: 0; }
.method p { margin: 0; color: var(--ink-2); }
.method__price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

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

.faq { border-top: 2px solid var(--ink); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 700; font-size: var(--step-1); font-variation-settings: "wdth" 85;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.25rem; color: var(--ink-2); }

/* ---------- Calculator ---------- */

.calc { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .calc { grid-template-columns: .9fr 1.1fr; } }
.calc__result {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.calc__figure {
  font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1;
  font-variation-settings: "wdth" 70; font-variant-numeric: tabular-nums;
  margin: .25rem 0 .5rem;
}
.range-input { width: 100%; accent-color: var(--teal); }
.range-out { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Ad slot (placeholder for AdSense) ---------- */

.ad-slot {
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
  min-height: 120px; display: grid; place-items: center;
  color: #8a948f; font-size: var(--step--1); margin: 2.5rem 0;
}

/* ---------- Article ---------- */

.article { max-width: 72ch; }
.article h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.article > :first-child { margin-top: 0; }
.article ul { padding-left: 1.2rem; }
.article li { margin-bottom: .4rem; }

.aside-sticky { position: sticky; top: 92px; }

.callout {
  border-left: 6px solid var(--tape);
  background: var(--white);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Multi-step form ---------- */

.progress { display: flex; gap: .4rem; margin-bottom: 1.5rem; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--concrete); }
.progress span.is-done { background: var(--teal); }
.progress span.is-current { background: var(--tape); }
.step-label { font-size: var(--step--1); color: var(--ink-2); font-weight: 600; margin-bottom: .25rem; }

.form-step { display: none; }
.form-step h2 { scroll-margin-top: 90px; }
.form-step h2:focus { outline: none; }
.form-step.is-active { display: block; }
.form-nav { display: flex; gap: .75rem; justify-content: space-between; margin-top: 1.5rem; }
.form-nav .btn--primary { flex: 1; }

/* ---------- Thank you ---------- */

.confirm-mark {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--tape); display: grid; place-items: center; margin-bottom: 1.25rem;
}

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

.site-footer { background: var(--ink); color: #c6d0d3; padding: 3.5rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #e9eef0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.05rem; font-stretch: 90%; font-variation-settings: "wdth" 90; color: var(--white); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer .logo { color: var(--white); }
.footer-legal { border-top: 1px solid #34454e; margin-top: 2.5rem; padding-top: 1.5rem; font-size: .8125rem; color: #9fb0b6; }
.footer-legal p { max-width: none; }

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.text-ink2 { color: var(--ink-2); }

.state-grid { display: grid; gap: 0 2.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
textarea { min-height: 120px; resize: vertical; }

/* ---------- WordPress theme additions ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice-box { border-left: 6px solid var(--rust); background: var(--white); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.notice-box--ok { border-left-color: var(--ok); }
.article img { max-width: 100%; height: auto; }
.article h3 { margin-top: 1.75rem; }
.posts-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.posts-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.posts-list h2 { font-size: var(--step-2); margin-bottom: .35rem; }
.posts-list h2 a { color: var(--ink); text-decoration: none; }
.posts-list h2 a:hover { color: var(--teal); text-decoration: underline; }
