/* Ace Auto Recovery — client-specific theme, overriding the shared site-builder
   template for this client only (see build-site.js's clientStylesPath check).
   Navy = structural/trust, burnt orange-red = phone number + CTA buttons only.
   System fonts only, no external assets, same CSP as every other client site. */

:root {
  --navy: #0f2a4a;
  --navy-dark: #081a2e;
  --navy-mid: #1f4468;
  --accent: #c1440d;
  --accent-dark: #96350a;
  --text: #1c1f24;
  --text-muted: #566072;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --border: #dde4ec;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(15, 42, 74, 0.10), 0 1px 2px rgba(15, 42, 74, 0.06);
  --shadow-hover: 0 8px 20px rgba(15, 42, 74, 0.16), 0 2px 6px rgba(15, 42, 74, 0.08);
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

a {
  color: var(--navy-mid);
}

/* Phone links get the urgency color wherever they appear (contact list, footer
   text, hero CTA) — .btn below overrides this back to white where it's a button. */
a[href^="tel:"] {
  color: var(--accent);
  font-weight: 700;
}

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

/* Header — navy, structural */

.site-header {
  background: var(--navy);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-header .business-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.site-nav a {
  text-decoration: none;
  color: #cfe0f2;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Layout */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.hero {
  padding: 2rem 0 2.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.6rem;
  line-height: 1.15;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 46ch;
}

/* CTA row — mobile-first: stacked, full-width, easy to tap one-handed roadside;
   unstacks to inline once there's room. */

.cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta-row .btn,
.cta-row .btn-secondary {
  width: 100%;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  min-height: 48px;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--navy);
  color: #ffffff;
}

h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 1.25rem;
}

/* Services — card layout */

.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.services-list li {
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--bg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.services-list li:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.services-list h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.services-list p {
  margin: 0;
  color: var(--text-muted);
}

.price {
  color: var(--navy);
  font-weight: 700;
}

/* Contact */

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-details li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
}

.contact-details .label {
  display: inline-block;
  min-width: 90px;
  font-weight: 700;
  color: var(--navy);
}

/* Hours */

.hours-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 480px;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
}

.hours-table th {
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
}

.map-embed {
  margin-top: 1.5rem;
  max-width: var(--max-width);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-embed iframe {
  width: 100%;
  border: 0;
  display: block;
}

/* Service icons — navy, not accent: these are informational, not a CTA */

.service-icon {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 0.6rem;
  color: var(--navy);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

/* How it works */

.how-it-works {
  margin-top: 3rem;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.steps-list li {
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.steps-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.steps-list p {
  margin: 0;
  color: var(--text-muted);
}

/* Service area */

.service-area {
  margin-top: 3rem;
}

.area-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.area-list li {
  background: #ffffff;
  border: 1.5px solid var(--navy-mid);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* FAQ */

.faq {
  margin-top: 3rem;
}

.faq-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
}

/* Contact form (unused while formspreeId is unset, styled for when it's enabled) */

.contact-form {
  margin-top: 1.5rem;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--navy-mid);
  outline-offset: 1px;
}

.contact-form .btn {
  align-self: flex-start;
  border: 0;
  cursor: pointer;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  margin-top: 2rem;
}

.site-footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  font-style: italic;
}

a:focus-visible,
.btn:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid var(--navy-mid);
  outline-offset: 2px;
}

/* Enhance for larger screens (mobile styles above are the baseline) */

@media (min-width: 480px) {
  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cta-row .btn,
  .cta-row .btn-secondary {
    width: auto;
  }
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.6rem;
  }

  .hero .tagline {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1.75rem;
  }
}

@media (min-width: 900px) {
  .hero h1 {
    font-size: 3rem;
  }
}
