/* ==========================================================================
   Mobile Mechanic JAX — styles.css
   Plain CSS, no frameworks. System font stack, mobile-first.
   ========================================================================== */

:root {
  --charcoal: #1b1e23;
  --charcoal-2: #24282f;
  --ink: #2b2f36;
  --body: #4a4f57;
  --light: #f4f5f7;
  --white: #ffffff;
  --accent: #e0492b;        /* red-orange: primary call-to-action */
  --accent-dark: #c23c21;
  --star: #fbbc04;          /* Google-style star gold */
  --line: #e3e5e8;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(20, 22, 26, 0.08);
  --shadow-lg: 0 6px 24px rgba(20, 22, 26, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  /* space for fixed mobile bar */
  padding-bottom: 76px;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding: 0; margin: 0; }

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

.section-intro { max-width: 640px; }

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 12px 20px;
  min-height: 48px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-lg { font-size: 1.1rem; padding: 15px 26px; }
.btn-block { width: 100%; }

.btn-call { background: var(--accent); color: var(--white); }
.btn-call:hover { background: var(--accent-dark); }

.btn-text { background: var(--charcoal); color: var(--white); }
.btn-text:hover { background: var(--charcoal-2); }

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

.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--charcoal-2); }

.btn-light { background: var(--white); color: var(--charcoal); }
.btn-light:hover { background: var(--light); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background: var(--charcoal);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-icon { width: 22px; height: 22px; color: var(--accent); }
.brand-jax { color: var(--accent); }

.brand-tagline {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aab0b8;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.header-phone {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  margin-right: 4px;
  display: none;
}
.header-phone:hover { text-decoration: underline; }

/* Compact header on small screens */
@media (max-width: 767px) {
  .brand-tagline { display: none; }
  .header-actions .btn { padding: 9px 12px; min-height: 42px; font-size: 0.9rem; }
}
/* Very small screens: keep only the Call button (the fixed bottom
   bar already provides both Call and Text actions) */
@media (max-width: 480px) {
  .brand-name { font-size: 1rem; }
  .brand-icon { width: 18px; height: 18px; }
  .header-actions .btn-text { display: none; }
  .header-actions .btn { padding: 8px 10px; font-size: 0.85rem; }
  .header-actions .btn svg { width: 16px; height: 16px; }
}
@media (min-width: 900px) {
  .header-phone { display: inline; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
  color: #d8dbdf;
  padding: 48px 0 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.hero-kicker {
  color: var(--star);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.hero h1 { color: var(--white); }

.hero-sub { font-size: 1.15rem; max-width: 540px; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 28px;
}

.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #c6cad0;
}
.trust-row svg { width: 18px; height: 18px; color: var(--star); flex: none; }

.hero-media img {
  width: 100%;
  max-width: 560px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr 1fr; }
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.reviews { background: var(--light); padding: 56px 0; }

.reviews-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
  margin-bottom: 26px;
}
.reviews-header h2 { margin: 0; }

.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
}
.rating-number { font-size: 1.5rem; font-weight: 800; }
.rating-count { font-weight: 600; color: var(--body); font-size: 0.95rem; }

/* Star rating: gold fill layered over gray */
.stars {
  position: relative;
  display: inline-block;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 2px;
}
.stars-bg { color: #d5d8dc; }
.stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--star);
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .review-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .review-grid { grid-template-columns: 1fr 1fr 1fr; } }

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.review-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.review-name { font-weight: 700; color: var(--ink); }
.review-date { font-size: 0.85rem; color: #7a7f87; }

.review-stars { color: var(--star); font-size: 1rem; letter-spacing: 2px; margin-bottom: 8px; }
.review-text { font-size: 0.97rem; margin: 0; }

.reviews-footer { text-align: center; margin-top: 30px; }
.google-attribution { font-size: 0.85rem; color: #7a7f87; margin: 12px 0 0; }

/* ==========================================================================
   CTA band (immediate booking)
   ========================================================================== */

.cta-band {
  background: var(--accent);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { font-size: 1.1rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn-call { background: var(--charcoal); }
.cta-band .btn-call:hover { background: var(--charcoal-2); }

.cta-band-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services { padding: 60px 0; }

.service-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}
@media (min-width: 560px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.service-card svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 10px; }
.service-card h3 { margin-bottom: 6px; }
.service-card p { font-size: 0.93rem; margin: 0; }

.service-note {
  margin-top: 26px;
  background: var(--light);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 14px 18px;
  max-width: 760px;
}

/* ==========================================================================
   How it works
   ========================================================================== */

.how { background: var(--charcoal); color: #c6cad0; padding: 60px 0; }
.how h2 { color: var(--white); }

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}
@media (min-width: 768px) { .steps { grid-template-columns: 1fr 1fr 1fr; } }

.step {
  background: var(--charcoal-2);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.step h3 { color: var(--white); margin: 10px 0 6px; }
.step p { margin: 0; font-size: 0.97rem; }
.step svg { width: 30px; height: 30px; color: var(--star); }
.step-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Why choose
   ========================================================================== */

.why { padding: 60px 0; background: var(--light); }

.why-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: 1fr 1fr 1fr; } }

.why-grid li {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  border-top: 4px solid var(--accent);
}
.why-grid h3 { margin-bottom: 6px; }
.why-grid p { margin: 0; font-size: 0.95rem; }

/* ==========================================================================
   Service area
   ========================================================================== */

.area { padding: 60px 0; }

.area-inner { max-width: 760px; }

.area-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}
.area-list li {
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
}

.area-cta { font-size: 1.05rem; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq { background: var(--light); padding: 60px 0; }
.faq h2 { text-align: center; }

.accordion {
  max-width: 800px;
  margin: 26px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: 1rem; }

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  padding: 18px 20px;
  min-height: 56px;
  cursor: pointer;
}
.faq-btn:hover { background: #fafbfc; }

.faq-icon {
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}
.faq-btn[aria-expanded="true"] .faq-icon { transform: rotate(225deg); margin-top: 4px; }

.faq-panel { padding: 0 20px 18px; }
.faq-panel p { margin: 0; font-size: 0.97rem; }

/* ==========================================================================
   Booking form
   ========================================================================== */

.booking { padding: 60px 0; }
.booking-inner { max-width: 760px; }

#booking-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
}

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

.form-field { margin-bottom: 16px; }
.form-field label,
.contact-method legend {
  display: block;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  border: 1.5px solid #c9cdd2;
  border-radius: 8px;
  padding: 12px 14px;
  min-height: 48px;
  background: var(--white);
}
.form-field textarea { min-height: 110px; resize: vertical; }

.form-field input.invalid,
.form-field textarea.invalid { border-color: var(--accent); background: #fdf3f1; }

.contact-method { border: 0; padding: 0; margin: 0; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-right: 18px;
  min-height: 48px;
  cursor: pointer;
}
.radio input { width: 20px; height: 20px; accent-color: var(--accent); }

.form-error { color: var(--accent-dark); font-weight: 700; }
.form-note { font-size: 0.88rem; color: #7a7f87; margin: 14px 0 0; }

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  background: var(--charcoal);
  color: #c6cad0;
  text-align: center;
  padding: 64px 0;
}
.final-cta h2 { color: var(--white); }
.final-cta p { max-width: 520px; margin-left: auto; margin-right: auto; }

.final-phone {
  display: inline-block;
  color: var(--white);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 800;
  text-decoration: none;
  margin: 6px 0 18px;
}
.final-phone:hover { color: var(--star); }

.final-hours { margin-top: 20px; font-size: 0.95rem; color: #9aa0a8; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #14161a;
  color: #9aa0a8;
  padding: 48px 0 24px;
  font-size: 0.95rem;
}
.site-footer a { color: #d8dbdf; }
.site-footer h3 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}
.footer-col h3 + p { margin-bottom: 20px; }

.footer-brand { font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.3fr 1fr 1fr; } }

.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 6px; }

.footer-legal {
  border-top: 1px solid #2a2e35;
  margin-top: 32px;
  padding-top: 18px;
  font-size: 0.85rem;
}
.footer-legal p { margin: 0; }

/* ==========================================================================
   Fixed mobile call/text bar
   ========================================================================== */

.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
}

.mobile-bar a {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 16px 10px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  min-height: 58px;
}
.mobile-bar svg { width: 20px; height: 20px; }

.mobile-bar-call { background: var(--accent); color: var(--white); }
.mobile-bar-call:active { background: var(--accent-dark); }
.mobile-bar-text { background: var(--charcoal); color: var(--white); }
.mobile-bar-text:active { background: var(--charcoal-2); }

/* Hide the bar on larger screens; remove reserved space */
@media (min-width: 768px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}
