/* ==========================================================================
   Texas Mobile Mechanics — Mobile-first styles
   Palette: Navy #0b1f3a, Blue #16407a, Accent amber #f59e0b
   ========================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-2: #123063;
  --blue: #1d4ed8;
  --blue-light: #2563eb;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --ink: #172033;
  --muted: #5b6472;
  --line: #e4e8ef;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --card-bg: #ffffff;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 31, 58, 0.16);
  --container: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Headings */
h1, h2, h3 { font-family: "Barlow", "Inter", sans-serif; color: var(--navy); line-height: 1.15; letter-spacing: -0.01em; }

h1 { font-size: clamp(1.9rem, 4.8vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }

p { margin-bottom: 1rem; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: "Barlow", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }

.btn-lg { padding: 16px 30px; font-size: 1.08rem; }

.btn-primary {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35); }

.btn-call {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-call:hover { background: var(--navy-2); border-color: var(--navy-2); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(29, 78, 216, 0.35); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}
.btn-outline:hover { background: #fff; color: var(--navy); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue); background: #f0f4ff; }

.btn-phone { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.btn-phone:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-block { width: 100%; }

/* Topbar */
.topbar { background: var(--navy); color: #cfe0ff; font-size: 0.82rem; }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topbar-text { margin: 0; display: flex; align-items: center; gap: 7px; }
.topbar-star { color: var(--accent); font-weight: 700; }
.topbar-phone { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.topbar-phone:hover { color: var(--accent); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--accent);
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: "Barlow", sans-serif; font-weight: 800; font-size: 1.12rem; color: var(--navy); }
.brand-text span { font-size: 0.78rem; font-weight: 600; color: var(--blue); letter-spacing: 0.08em; text-transform: uppercase; }

.header-actions { display: none; align-items: center; gap: 14px; }

.header-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
}
.header-phone svg { color: var(--accent); }
.header-phone small { display: block; font-size: 0.72rem; color: var(--muted); line-height: 1.1; }
.header-phone strong { font-family: "Barlow", sans-serif; font-size: 1.08rem; line-height: 1.15; }

/* Navigation */
.main-nav { display: flex; align-items: center; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
}
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-links {
  list-style: none;
  position: fixed;
  top: 0;
  right: -78%;
  width: 78%;
  max-width: 340px;
  height: 100vh;
  background: #fff;
  padding: 96px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-lg);
  z-index: 70;
  transition: right 0.3s ease;
  overflow-y: auto;
}
.nav-links.open { right: 0; }
.nav-links a { color: var(--navy); font-weight: 600; display: block; padding: 12px 10px; border-radius: 8px; font-size: 1.02rem; }
.nav-links a:hover { background: var(--bg-alt); color: var(--blue); }
.nav-cta-mobile { margin-top: 18px; }
.nav-cta-mobile a { padding: 13px 20px; text-align: center; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 58, 0.5);
  z-index: 65;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-backdrop.show { opacity: 1; pointer-events: auto; }

body.nav-open { overflow: hidden; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(37, 99, 235, 0.35), transparent 60%),
    linear-gradient(160deg, #0b1f3a 0%, #123063 55%, #16407a 100%);
  color: #fff;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  padding-top: 52px;
  padding-bottom: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
.eyebrow.centered { justify-content: center; width: 100%; }

.hero h1 { color: #fff; margin-bottom: 18px; }

.hero-sub { font-size: 1.08rem; color: #d7e2f5; margin-bottom: 30px; max-width: 560px; }
.hero-sub strong { color: var(--accent); }

.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }

.hero-bullets { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 0; }
.hero-bullets li { display: flex; align-items: center; gap: 10px; color: #e7eefb; font-size: 0.98rem; font-weight: 500; }
.hero-bullets svg { color: var(--accent); flex-shrink: 0; }

/* Quote card */
.quote-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
}
.quote-card h2 { margin-bottom: 4px; }
.quote-card.dark { background: var(--navy); color: #dfe9fb; }
.quote-card.dark h2 { color: #fff; }
.quote-card.dark label { color: #c7d5ef; }

.quote-card-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.quote-card.dark .quote-card-sub { color: #aebddc; }

.quote-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.quote-card.dark .field input,
.quote-card.dark .field select,
.quote-card.dark .field textarea { border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: #fff; }
.quote-card.dark .field select { color: #fff; }
.quote-card.dark .field select option { color: var(--ink); }
.quote-card.dark .field input::placeholder,
.quote-card.dark .field textarea::placeholder { color: #93a5c9; }

.form-note { font-size: 0.82rem; color: var(--muted); margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.form-note svg { color: var(--accent); flex-shrink: 0; }
.quote-card.dark .form-note { color: #aebddc; }
.form-note a { font-weight: 600; }

.form-success {
  background: #e7f6ec;
  border: 1px solid #a9dcbb;
  color: #14532d;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.92rem;
}

.field input.error,
.field textarea.error { border-color: #dc2626; }

/* Trust bar */
.hero-trustbar { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.trustbar-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trust-item strong { font-family: "Barlow", sans-serif; font-size: 1.25rem; color: #fff; line-height: 1.2; }
.trust-item span { font-size: 0.82rem; color: #c4d2ea; }
.trust-stars { color: var(--accent); font-size: 0.85rem; letter-spacing: 2px; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.section-head h2 { margin-bottom: 12px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }
.section-sub strong { color: var(--navy); }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdd8ee; }

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #eef3fd;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card-cta { font-family: "Barlow", sans-serif; font-weight: 700; color: var(--blue); font-size: 0.98rem; display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; }
.card-cta:hover { color: var(--accent-dark); }
.card-cta::after { content: "\2192"; transition: transform 0.2s ease; }
.card-cta:hover::after { transform: translateX(3px); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 40px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--accent);
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.cta-center { text-align: center; }

/* Why us */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.why-copy h2 { margin-bottom: 14px; }
.why-list { list-style: none; margin: 24px 0 0; display: flex; flex-direction: column; gap: 16px; }
.why-list li { display: flex; gap: 13px; align-items: flex-start; }
.why-list svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.why-list span { color: var(--muted); font-size: 0.98rem; }
.why-list strong { color: var(--navy); }

.review-spotlight {
  background: linear-gradient(160deg, #0b1f3a, #16407a);
  color: #e7eefb;
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-lg);
}
.spotlight-stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 16px; }
.review-spotlight p { font-size: 1.05rem; font-style: italic; }
.spotlight-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.spotlight-author small { color: #b6c6e4; display: block; }
.spotlight-author strong { color: #fff; }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy);
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  flex-shrink: 0;
}

/* Reviews */
.reviews-score { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.score-stars { color: var(--accent); font-size: 1.4rem; letter-spacing: 3px; }
.reviews-score strong { font-family: "Barlow", sans-serif; font-size: 1.9rem; color: var(--navy); }

.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.05);
}
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-head small { color: var(--muted); display: block; }
.review-head strong { color: var(--navy); }
.review-stars { color: var(--accent); letter-spacing: 1.5px; margin-left: auto; font-size: 0.85rem; }
.review-card p { color: #3b4657; font-size: 0.97rem; margin-bottom: 12px; }
.review-card time { color: var(--muted); font-size: 0.8rem; }

/* Areas */
.areas-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 24px; }
.areas-grid span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}
.areas-note { text-align: center; color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Quote section */
.quote-section { background: var(--bg-alt); }
.quote-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.quote-copy h2 { margin-bottom: 14px; }
.quote-copy p { color: var(--muted); }
.quote-contact { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
.quote-contact .btn-ghost { background: #fff; }
.quote-hours { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.quote-hours li { color: var(--muted); font-size: 0.95rem; }
.quote-hours strong { color: var(--navy); }

/* FAQ */
.faq-container { max-width: 780px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 0.97rem; }

/* Final CTA */
.final-cta {
  background:
    radial-gradient(700px 380px at 90% 0%, rgba(245, 158, 11, 0.18), transparent 60%),
    linear-gradient(160deg, #0b1f3a, #16407a);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.final-cta h2 { color: #fff; margin-bottom: 10px; }
.final-cta p { color: #d7e2f5; margin-bottom: 28px; }
.final-cta-inner { max-width: 640px; }
.final-cta .hero-ctas { margin-bottom: 0; justify-content: center; }

/* Footer */
.site-footer { background: var(--navy); color: #b7c6e0; padding: 56px 0 96px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding-bottom: 36px;
}
.footer-brand p { font-size: 0.92rem; margin: 16px 0; max-width: 320px; }
.footer-google { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; font-size: 0.9rem; }
.footer-google span { color: var(--accent); letter-spacing: 2px; }
.footer-google:hover { color: var(--accent); }

.footer-col h3 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.footer-contact,
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-contact a,
.footer-links a { color: #b7c6e0; font-size: 0.92rem; display: inline-flex; align-items: flex-start; gap: 9px; }
.footer-contact svg { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.footer-contact a:hover,
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  font-size: 0.84rem;
}
.footer-bottom p { margin: 0; }
.footer-loc { color: #7d8fb3; }

/* Mobile sticky call bar */
.mobile-callbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(11, 31, 58, 0.12);
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.mobile-callbar.hidden { transform: translateY(110%); }
.callbar-phone,
.callbar-quote {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 10px;
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
}
.callbar-phone { background: var(--blue); color: #fff; }
.callbar-phone:hover { background: var(--navy-2); color: #fff; }
.callbar-quote { background: var(--accent); color: var(--navy); }
.callbar-quote:hover { color: #fff; }

/* ==========================================================================
   Tablet + (>= 640px)
   ========================================================================== */
@media (min-width: 640px) {
  .hero-grid { padding-top: 64px; }
  .hero-ctas { flex-direction: row; }
  .trustbar-inner { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid .review-card:last-child { grid-column: span 2; }
  .quote-grid { grid-template-columns: 1fr 1fr; }
  .mobile-callbar { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Desktop (>= 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  .container { padding: 0 32px; }

  .header-actions { display: flex; }
  .nav-toggle { display: none; }
  .nav-links {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    flex-direction: row;
    gap: 4px;
    overflow: visible;
  }
  .nav-links a { padding: 9px 13px; font-size: 0.95rem; }
  .nav-cta-mobile { display: none; }

  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 60px; padding-top: 72px; align-items: center; }
  .hero { padding-bottom: 40px; }
  .hero-bullets { flex-direction: row; flex-wrap: wrap; gap: 14px 26px; }

  .why-grid { grid-template-columns: 1fr 0.85fr; gap: 60px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid .review-card:last-child { grid-column: auto; }
  .quote-grid { grid-template-columns: 1fr 0.9fr; gap: 70px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .section { padding: 88px 0; }
}
