/* ==========================================================
   ResQ Auto — design tokens
   ========================================================== */
:root {
  --asphalt:      #14161B;
  --asphalt-2:    #1F232B;
  --asphalt-3:    #2A2F3A;
  --concrete:     #EEEBE4;
  --paper:        #FBFAF7;
  --hazard:       #F5A623;
  --hazard-dark:  #C9820E;
  --signal:       #D6402D;
  --signal-dark:  #B03222;
  --ink:          #1A1D22;
  --steel:        #5B6472;
  --steel-light:  #8B93A0;
  --line:         #DAD5C9;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --radius: 6px;
  --max-width: 720px;
}

@media (prefers-reduced-motion: no-preference) {
  :root { --transition-speed: 160ms; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --transition-speed: 0ms; }
}

/* ==========================================================
   Reset / base
   ========================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--concrete);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--asphalt);
}

h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

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

/* Accessible focus state — always visible, never suppressed */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--hazard);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--hazard);
  color: var(--asphalt);
  padding: 0.75em 1.25em;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

.placeholder-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--hazard);
  color: var(--asphalt);
  padding: 0.1em 0.5em;
  border-radius: 3px;
  margin-left: 0.5em;
  text-transform: none;
  letter-spacing: 0;
  vertical-align: middle;
}

/* ==========================================================
   Signature element — hazard stripe divider
   ========================================================== */
.hazard-rule {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--asphalt) 0 14px,
    var(--hazard) 14px 28px
  );
}
.hazard-rule--thin { height: 6px; }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-speed) ease, background var(--transition-speed) ease;
  text-decoration: none;
  min-height: 44px; /* touch target */
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--asphalt);
  color: var(--paper);
}
.btn-primary:hover { background: var(--asphalt-3); }

.btn-urgent {
  background: var(--signal);
  color: var(--paper);
  border-color: var(--signal);
}
.btn-urgent:hover { background: var(--signal-dark); }

.btn-outline {
  background: transparent;
  color: var(--asphalt);
  border-color: var(--asphalt);
}
.btn-outline:hover { background: var(--asphalt); color: var(--paper); }

.btn-outline.btn-light {
  color: var(--paper);
  border-color: var(--paper);
}
.btn-outline.btn-light:hover { background: var(--paper); color: var(--asphalt); }

.btn-small {
  padding: 0.6em 1em;
  font-size: 0.85rem;
  background: var(--asphalt-2);
  color: var(--paper);
  white-space: nowrap;
}
.btn-small:hover { background: var(--asphalt-3); }

.btn-full { width: 100%; }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--asphalt);
  border-bottom: 3px solid var(--hazard);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--paper);
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { color: var(--hazard); display: inline-flex; }
.brand-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
  font-weight: 600;
}

.header-phone {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: none;
}
@media (min-width: 480px) {
  .header-phone { display: inline-flex; align-items: center; gap: 0.35em; }
}

.header-cta {
  padding: 0.6em 1.1em;
  font-size: 0.9rem;
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  background: var(--asphalt);
  color: var(--paper);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--hazard);
  margin-bottom: 1em;
}

.hero h1 {
  color: var(--paper);
  font-size: clamp(2.5rem, 9vw, 4rem);
  margin-bottom: 0.3em;
}
.hero h1 .accent { color: var(--hazard); }

.hero-sub {
  color: #D7D9DC;
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 auto 1.75em;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 340px;
  margin: 0 auto 2rem;
}
@media (min-width: 480px) {
  .hero-actions { flex-direction: row; max-width: none; justify-content: center; }
}

.hero-actions .btn-outline {
  color: var(--paper);
  border-color: var(--paper);
}
.hero-actions .btn-outline:hover { background: var(--paper); color: var(--asphalt); }

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--steel-light);
}
@media (min-width: 560px) {
  .hero-trust {
    flex-direction: row;
    justify-content: center;
    gap: 1.75em;
  }
}

/* ==========================================================
   Sections
   ========================================================== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section-dark {
  max-width: none;
  background: var(--asphalt-2);
  color: var(--paper);
}
.section-dark > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
.section-dark h2 { color: var(--paper); }

.section-sub {
  color: var(--steel);
  max-width: 60ch;
}
.section-dark .section-sub { color: var(--steel-light); }

.section-note {
  font-size: 0.85rem;
  color: var(--steel);
  margin-top: 1.5em;
}
.section-note--light { color: var(--steel-light); }

/* ==========================================================
   Services
   ========================================================== */
.service-columns {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .service-columns { grid-template-columns: 1fr 1fr; }
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}
.service-list li {
  padding-left: 1.4em;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--hazard);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* ==========================================================
   Price table
   ========================================================== */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  margin-top: 1.5rem;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 0.85em 0.5em;
  border-bottom: 1px solid var(--asphalt-3);
}
.price-table thead th {
  color: var(--hazard);
  text-transform: uppercase;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--hazard);
}
.price-table td { text-align: right; vertical-align: top; }
.price-table th[scope="row"] { font-family: var(--font-body); font-weight: 500; text-align: left; }
.table-subnote {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--steel-light);
  margin-top: 0.2em;
}

/* ==========================================================
   Lead form
   ========================================================== */
.lead-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row { display: flex; flex-direction: column; gap: 0.4em; }

.form-row--split {
  flex-direction: row;
  gap: 1rem;
}
.form-row--split > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  min-width: 0;
}
.form-row--triple { flex-wrap: wrap; }
.form-row--triple > div { flex: 1 1 100px; }

label {
  font-weight: 600;
  font-size: 0.9rem;
}
.optional-tag {
  font-weight: 400;
  color: var(--steel);
  font-size: 0.85em;
}

input, select, textarea {
  font: inherit;
  padding: 0.75em 0.85em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--steel);
  margin: 0.3em 0 0;
}

.field-error {
  display: block;
  font-size: 0.82rem;
  color: var(--signal);
  min-height: 0;
}
.field-error:empty { display: none; }

.form-feedback {
  padding: 0;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
}
.form-feedback:empty { display: none; padding: 0; margin: 0; }
.form-feedback[data-fs-success]:not(:empty) {
  padding: 0.9em 1.1em;
  background: var(--asphalt);
  color: var(--paper);
  border-left: 4px solid var(--hazard);
}
.form-feedback--error:not(:empty) {
  padding: 0.9em 1.1em;
  background: #FBEAE7;
  color: var(--signal-dark);
  border-left: 4px solid var(--signal);
}

/* ==========================================================
   Reviews
   ========================================================== */
.review-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .review-grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card {
  background: var(--asphalt-3);
  border-left: 3px solid var(--hazard);
  padding: 1.25rem;
  margin: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.review-card p { font-size: 0.95rem; margin-bottom: 0.75em; }
.review-card cite {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--steel-light);
}

.review-empty {
  margin-top: 1.5rem;
  padding: 2rem 1.5rem;
  border: 1.5px dashed var(--asphalt-3);
  border-radius: var(--radius);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.review-empty p {
  margin: 0;
  color: var(--steel-light);
  font-size: 1rem;
}

/* ==========================================================
   Service area
   ========================================================== */
.area-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
}
.area-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45em 1em;
  font-size: 0.9rem;
}

/* ==========================================================
   Payment
   ========================================================== */
.payment-methods {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.payment-methods li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--asphalt-3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.5em 1.15em 0.5em 0.6em;
  font-size: 0.9rem;
  color: var(--paper);
}
.payment-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: contain;
  background: var(--paper);
  padding: 2px;
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  background: var(--asphalt);
  color: var(--steel-light);
  border-top: 3px solid var(--hazard);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-privacy { grid-column: 1 / -1; }
}

.footer-brand .brand-name {
  color: var(--paper);
  font-size: 1.2rem;
}
.footer-brand p { margin-top: 0.5em; font-size: 0.9rem; }

.footer-contact p { margin: 0 0 0.5em; font-size: 0.9rem; }
.footer-contact a { color: var(--paper); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

.footer-heading {
  font-size: 0.85rem;
  color: var(--hazard);
  margin-bottom: 0.5em;
}
.footer-privacy p {
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 68ch;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  padding: 1.25rem;
  margin: 0;
  border-top: 1px solid var(--asphalt-3);
}
