/* ============================================================
   Auto Repair Concord, CA — Modern Stylesheet
   Design: Industrial/Utilitarian — Dark steel, red-orange accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --bg:          #1a1c1f;
  --bg-mid:      #222428;
  --bg-card:     #2a2d32;
  --border:      #3a3d44;
  --accent:      #e05a1a;
  --accent-dark: #b84512;
  --accent-glow: rgba(224, 90, 26, 0.18);
  --text:        #dde1e7;
  --text-muted:  #8a909a;
  --text-light:  #f0f2f5;
  --gold:        #f0b429;
  --white:       #ffffff;
  --nav-h:       64px;
  --radius:      6px;
  --shadow:      0 4px 24px rgba(0,0,0,0.45);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
}

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

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
  color: var(--text-light);
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-top: 2rem; margin-bottom: 0.6rem; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin-top: 1.5rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.1rem; }

ul, ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
li { margin-bottom: 0.4rem; }

strong { color: var(--text-light); font-weight: 700; }
em { font-style: italic; }

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #13151880;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
  white-space: nowrap;
  margin-right: auto;
}
.nav-brand span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  display: block;
  padding: 6px 13px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-light); background: var(--accent-glow); }

/* Dropdown */
.nav-dropdown { position: relative; padding-bottom: 8px; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.7rem; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  border-radius: 0;
  text-transform: none;
  letter-spacing: 0.02em;
}
.nav-dropdown:hover .dropdown-menu { display: block; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.3s;
}

/* ── Hero Banner ── */
.hero {
  background: linear-gradient(135deg, #111315 0%, #1d2025 60%, #22252b 100%);
  border-bottom: 3px solid var(--accent);
  padding: 70px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 28px,
    rgba(255,255,255,0.015) 28px,
    rgba(255,255,255,0.015) 29px
  );
}
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.hero .sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}
.hero .cta-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--text-light);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Layout ── */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 820px) {
  .content-grid { grid-template-columns: 1fr; }
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 2rem 0;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.2s, background 0.2s;
}
.service-card:hover { background: #2f3239; border-left-color: var(--gold); }
.service-card h3 { font-size: 1.15rem; margin-top: 0; color: var(--accent); }
.service-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ── Sidebar ── */
.sidebar {}
.sidebar .card + .card { margin-top: 20px; }
.sidebar h3 { font-size: 1.1rem; color: var(--accent); margin-top: 0; margin-bottom: 12px; }
.sidebar p, .sidebar li { font-size: 0.9rem; }
.sidebar a { color: var(--gold); }
.sidebar a:hover { color: var(--accent); }

/* ── Partner links ── */
.partner-list { list-style: none; padding: 0; }
.partner-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.partner-list li:last-child { border-bottom: none; }
.partner-list a { color: var(--gold); font-weight: 600; font-size: 0.92rem; }

/* ── Testimonial / Quote ── */
.testimonial {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  background: var(--accent-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-light);
}
.testimonial cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Results list (checkmarks) ── */
.results-list { list-style: none; padding: 0; }
.results-list li {
  padding: 8px 0 8px 32px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.results-list li:last-child { border-bottom: none; }
.results-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: 900;
}

/* ── CTA Box ── */
.cta-box {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  margin: 2.5rem 0 0;
}
.cta-box h2 { color: var(--white); margin-top: 0; }
.cta-box p { color: rgba(255,255,255,0.85); margin-bottom: 1.2rem; }
.cta-box .btn { background: var(--white); color: var(--accent); border-color: var(--white); }
.cta-box .btn:hover { background: var(--bg); color: var(--white); border-color: var(--bg); }

/* ── Phone Banner ── */
.phone-banner {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.phone-banner a { color: var(--accent); font-size: 1.6rem; }

/* ── Page header (inner pages) ── */
.page-header {
  background: var(--bg-mid);
  border-bottom: 2px solid var(--accent);
  padding: 40px 24px 36px;
}
.page-header-inner { max-width: 1100px; margin: 0 auto; }
.page-header h1 { color: var(--white); margin-bottom: 0.3rem; }
.page-header .breadcrumb { font-size: 0.85rem; color: var(--text-muted); }
.page-header .breadcrumb a { color: var(--text-muted); }
.page-header .breadcrumb a:hover { color: var(--accent); }

/* ── vCard / Contact ── */
.contact-block { font-size: 1rem; line-height: 1.9; }
.contact-block .label { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-block strong { color: var(--text-light); }

/* ── Footer ── */
.site-footer {
  background: #111315;
  border-top: 1px solid var(--border);
  padding: 40px 24px 28px;
  text-align: center;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}
.footer-nav a { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: 0.82rem; color: #555; }

/* ── Responsive Nav ── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 16px 16px;
    gap: 4px;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: #33363d; }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
}

/* ── Utility ── */
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ── Accent divider ── */
.divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 2rem 0;
}
.divider-accent {
  border: none;
  border-top: 2px solid var(--accent);
  width: 60px;
  margin: 0.5rem 0 1.5rem;
}
