/* =========================================================
   Ortega Auto Services & Auto Body — Site Stylesheet
   Mobile-first. Breakpoints: 560px (large phone), 768px (tablet), 1024px (desktop)
   ========================================================= */

:root {
  --bg: #191919;
  --bg-alt: #141414;
  --card: #232323;
  --card-alt: #2a2a2a;
  --border: #333333;
  --border-light: #3a3a3a;
  --text: #f5f5f4;
  --text-muted: #a3a3a1;
  --text-faint: #78766f;
  --accent: #e85d3b;
  --accent-dark: #cf4b2b;
  --accent-light: #f0805f;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --max-width: 1180px;
  --header-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

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

.section {
  padding: 56px 0;
}
.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-head p {
  color: var(--text-muted);
  margin-top: 10px;
  font-size: 1rem;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark {
  background: #101010;
  color: #fff;
  border-color: #101010;
}
.btn-dark:hover { background: #000; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Header ---------- */
.topbar {
  display: none;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar-left { display: flex; align-items: center; gap: 6px; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-right a.phone { color: var(--accent); font-weight: 700; }
.topbar svg { width: 14px; height: 14px; flex-shrink: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(25, 25, 25, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 0;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 230px;
  box-shadow: var(--shadow);
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.dropdown a:hover { background: var(--card-alt); color: var(--text); }

.nav-cta { display: none; }

.hamburger {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.hamburger svg { width: 24px; height: 24px; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--text);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close svg { width: 22px; height: 22px; }
.mobile-menu-body {
  padding: 12px 12px 28px;
  flex: 1;
}
.mobile-menu-body a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px;
  font-size: 1.05rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-body a svg { width: 18px; height: 18px; color: var(--text-faint); }
.mobile-sub-label {
  padding: 18px 12px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.mobile-menu-body a.sub-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 13px 12px;
}
.mobile-menu-foot {
  padding: 18px 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-menu-foot .phone-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}
.mobile-menu-foot svg { width: 18px; height: 18px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 48px;
}
.hero-grid {
  display: grid;
  gap: 36px;
}
.hero-logo {
  width: 190px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--accent); }
.hero .lead {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 46ch;
}
.hero .btn-row { margin-top: 26px; }
.badge-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}
.badge-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.badge-icon svg { width: 13px; height: 13px; }

/* ---------- Form card ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.form-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (min-width: 480px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 90px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23a3a3a1' stroke-width='2' viewBox='0 0 24 24'><path stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}
.form-disclaimer {
  font-size: 0.76rem;
  color: var(--text-faint);
  margin-bottom: 16px;
  line-height: 1.5;
}
.form-status {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 8px;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: rgba(74, 222, 128, 0.12); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); }
.form-status.error { background: rgba(248, 113, 113, 0.12); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.3); }

/* ---------- Service cards ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(232, 93, 59, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; }
.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 14px;
}
.service-card .learn-more svg { width: 14px; height: 14px; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 14px; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.96rem;
}
.check-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-dot svg { width: 13px; height: 13px; }

.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.image-pair img, .single-image img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}
.single-image img { aspect-ratio: 16/11; }

/* ---------- Testimonials ---------- */
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.stars { color: var(--accent); font-size: 1rem; letter-spacing: 2px; margin-bottom: 14px; }
.review-card p.quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.review-card .name { font-weight: 700; font-size: 0.9rem; }
.center { text-align: center; }
.mt-32 { margin-top: 32px; }

/* ---------- Pills ---------- */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.pill {
  background: var(--card);
  border: 1px solid var(--border-light);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Contact / info blocks ---------- */
.info-list { display: grid; gap: 22px; }
.info-item { display: flex; gap: 14px; }
.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(232, 93, 59, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-icon svg { width: 20px; height: 20px; }
.info-item h4 { font-weight: 700; font-size: 0.98rem; margin-bottom: 4px; }
.info-item p { color: var(--text-muted); font-size: 0.92rem; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 22px;
}
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--bg-alt);
  padding: 44px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header .service-icon {
  margin: 0 auto 16px;
  width: 56px;
  height: 56px;
}
.page-header .service-icon svg { width: 28px; height: 28px; }
.page-header h1 {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-header p {
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Feature icon row (about) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 34px;
}
.feature-item { text-align: center; }
.feature-item .service-icon { margin: 0 auto 12px; }
.feature-item h4 { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.feature-item p { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); font-weight: 800; }
.cta-band p { color: var(--text-muted); margin-top: 10px; }
.cta-band .btn-row { justify-content: center; margin-top: 22px; }

.cta-box {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  margin-top: 36px;
}
.cta-box h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.cta-box p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.92rem; }
.cta-box .btn-row { justify-content: center; }

/* ---------- Service detail layout ---------- */
.service-detail-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
.service-main h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 18px; }
.service-main .single-image { margin-bottom: 22px; }
.service-main p { color: var(--text-muted); margin-bottom: 16px; }
.service-main h3.sub { font-size: 1.1rem; font-weight: 800; margin: 28px 0 14px; }
.bullet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) {
  .bullet-grid { grid-template-columns: 1fr 1fr; }
}
.bullet-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}
.bullet-grid .check-dot { width: 22px; height: 22px; }
.bullet-grid .check-dot svg { width: 11px; height: 11px; }

.sidebar { display: grid; gap: 20px; align-content: start; }
.sidebar-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.sidebar-box h4 { font-weight: 800; font-size: 1rem; margin-bottom: 14px; }
.sidebar-box.other-services a {
  display: block;
  padding: 9px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.sidebar-box.other-services a:last-child { border-bottom: none; }
.sidebar-box.other-services a:hover { color: var(--accent); }
.sidebar-box.service-area { background: rgba(232, 93, 59, 0.08); border-color: rgba(232, 93, 59, 0.25); }
.sidebar-box.service-area p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
}
.footer-brand .logo { display: inline-block; margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 34ch; }
.footer-brand .f-contact { margin-top: 14px; display: grid; gap: 8px; font-size: 0.88rem; color: var(--text-muted); }
.footer-brand .f-contact a { color: var(--accent); font-weight: 600; }
.footer-col h5 { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; color: var(--text); }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-col li { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-faint);
  text-align: center;
}
.footer-bottom .legal-links { display: flex; gap: 18px; justify-content: center; }
.footer-bottom .legal-links a:hover { color: var(--text); }

/* ---------- Sticky mobile call button ---------- */
.mobile-call-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--accent);
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
}
.mobile-call-bar svg { width: 17px; height: 17px; }
body { padding-bottom: 62px; }

/* ---------- Legal page ---------- */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { font-size: 1.15rem; font-weight: 800; margin: 30px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 10px; }
.legal-content ul { list-style: disc; padding-left: 22px; }
.legal-content .updated { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 24px; }

.why-grid,
.about-grid,
.contact-grid,
.service-detail-grid {
  display: grid;
  gap: 32px;
}

.about-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-lg);
  width: 100%;
}

/* =========================================================
   Tablet+ (>=768px)
   ========================================================= */
@media (min-width: 768px) {
  :root { --header-h: 76px; }
  .topbar { display: block; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .hamburger { display: none; }
  body { padding-bottom: 0; }
  .mobile-call-bar { display: none; }

  .section { padding: 84px 0; }
  .grid.services-grid { grid-template-columns: repeat(2, 1fr); }
  .grid.reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-row { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); max-width: 460px; }
}

/* =========================================================
   Desktop (>=1024px)
   ========================================================= */
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .grid.services-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 50px; }
  .service-detail-grid { grid-template-columns: 2fr 1fr; }
}
