/* =====================================================
   Mobile Mechanic Lead Sites — Core Stylesheet
   Mobile-first | No frameworks | Fast loading
   Shared across all city sites
   ===================================================== */

/* ========================
   CSS CUSTOM PROPERTIES
   ======================== */
:root {
  --navy: #1a2b4a;
  --navy-dark: #0f1a2e;
  --navy-light: #243561;
  --orange: #f59e0b;
  --orange-dark: #d97706;
  --white: #ffffff;
  --light-bg: #f8fafc;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
}

/* ========================
   RESET & BASE
   ======================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  background: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ========================
   STICKY HEADER
   ======================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--navy);
  padding: 0.75rem 1.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.site-logo span {
  color: var(--orange);
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--orange);
  color: var(--white);
  padding: 0.55rem 1rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.875rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.header-call:hover {
  background: var(--orange-dark);
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 3.5rem 1.25rem 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: var(--orange);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: clamp(1.75rem, 5.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.88;
  max-width: 580px;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}

.hero-stars {
  margin-bottom: 2rem;
}

.stars {
  color: var(--orange);
  font-size: 1.4rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.3rem;
}

.star-text {
  font-size: 0.9rem;
  opacity: 0.8;
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: center;
}

/* ========================
   BUTTONS
   ======================== */
.btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.3;
  min-width: 240px;
}

.btn-cta {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-cta:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.btn-white:hover {
  background: var(--navy-dark);
  color: var(--white);
  border-color: var(--navy-dark);
}

/* ========================
   TRUST BAR
   ======================== */
.trust-bar {
  background: var(--light-bg);
  border-top: 4px solid var(--orange);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 1.25rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.trust-icon {
  font-size: 2rem;
  line-height: 1;
}

.trust-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.trust-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========================
   SHARED SECTION STYLES
   ======================== */
.section {
  padding: 3.5rem 1.25rem;
}

.section-alt {
  background: var(--light-bg);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-orange {
  background: var(--orange);
  color: var(--white);
}

.inner {
  max-width: 1200px;
  margin: 0 auto;
}

.inner-sm {
  max-width: 780px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
  color: var(--navy);
}

.section-dark .section-title {
  color: var(--white);
}

.section-orange .section-title {
  color: var(--white);
}

.section-title-center {
  text-align: center;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  text-align: center;
  line-height: 1.7;
}

.section-dark .section-desc {
  color: rgba(255, 255, 255, 0.72);
}

/* ========================
   SERVICES GRID
   ======================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.service-icon {
  font-size: 2.25rem;
  margin-bottom: 0.875rem;
  display: block;
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ========================
   HOW IT WORKS
   ======================== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--white);
  font-weight: 700;
}

.step p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 280px;
  line-height: 1.6;
}

/* ========================
   ABOUT SECTION
   ======================== */
.about-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 1.25rem;
}

.about-content h3 {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
}

/* ========================
   KEY FACTS
   ======================== */
.facts-list {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.facts-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.facts-list li:last-child {
  border-bottom: none;
}

.fact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.fact-text strong {
  display: block;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.fact-text span {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* ========================
   MID-PAGE CTA
   ======================== */
.mid-cta {
  text-align: center;
  padding: 3.5rem 1.25rem;
}

.mid-cta .section-title {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.mid-cta p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

/* ========================
   FAQ SECTION
   ======================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.975rem;
  line-height: 1.4;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s;
}

.faq-question:hover {
  background: var(--light-bg);
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform 0.25s;
  line-height: 1;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* ========================
   LEAD CAPTURE FORM
   ======================== */
.form-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  max-width: 640px;
  margin: 0 auto;
}

.form-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 43, 74, 0.1);
}

.form-group input.error,
.form-group select.error {
  border-color: #dc2626;
}

.field-error {
  display: none;
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  font-weight: 500;
}

.field-error.show {
  display: block;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.btn-submit {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 0.5rem;
  font-family: inherit;
}

.btn-submit:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Thank you state */
.thank-you {
  display: none;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #ecfdf5;
  border: 2px solid #a7f3d0;
  border-radius: 10px;
}

.thank-you.show {
  display: block;
}

.thank-you h3 {
  color: #065f46;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.thank-you p {
  color: #047857;
  font-size: 1rem;
}

.ty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* ========================
   AI SUMMARY (hidden from layout, readable by crawlers)
   ======================== */
.ai-summary {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ========================
   FOOTER
   ======================== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.25rem 1.25rem;
  text-align: center;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-call {
  color: var(--orange);
  font-size: 1.15rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-info {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================
   RESPONSIVE — TABLET (600px+)
   ======================== */
@media (min-width: 600px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cta-group {
    flex-direction: row;
    justify-content: center;
  }
}

/* ========================
   RESPONSIVE — TABLET LANDSCAPE (768px+)
   ======================== */
@media (min-width: 768px) {
  .hero {
    padding: 5rem 2rem 5.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================
   RESPONSIVE — DESKTOP (1024px+)
   ======================== */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: 5rem 2rem;
  }

  .mid-cta {
    padding: 5rem 2rem;
  }
}
