@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

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

:root {
  --navy: #003e67;
  --red: #cc0000;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --text: #222222;
}

body { font-family: 'Roboto', sans-serif; color: var(--text); line-height: 1.6; }

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
header {
  background: #fff;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img { height: 64px; width: auto; }

nav { display: flex; gap: 28px; align-items: center; }
nav a { font-size: 0.95rem; font-weight: 500; color: var(--navy); text-transform: uppercase; letter-spacing: 0.04em; }
nav a:hover { color: var(--red); text-decoration: none; }
nav a.active { color: var(--red); font-weight: 700; }

/* ── Tagline bar ── */
.tagline-bar {
  background: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid #e0e0e0;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 64px 32px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 28px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; text-decoration: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }

/* ── Info bar ── */
.info-bar {
  background: var(--navy);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding: 28px 32px;
  gap: 16px;
}

.info-bar .item { color: #fff; }
.info-bar .item .label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 6px; }
.info-bar .item .value { font-size: 1.2rem; font-weight: 700; }

/* ── Sections ── */
.section { padding: 64px 32px; max-width: 1200px; margin: 0 auto; }
.section-full { padding: 64px 32px; }
.section h2 { font-size: 1.9rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.section .subtitle { font-size: 1.05rem; color: #555; margin-bottom: 40px; }

/* ── Service cards ── */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card { background: var(--light-gray); border-radius: 8px; padding: 32px 28px; border-top: 4px solid var(--red); }
.service-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.service-card p { color: #444; font-size: 0.95rem; }

/* ── Location cards ── */
.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 40px; }
.location-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.09); position: relative; }
.location-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.location-card-soon { opacity: 0.88; }
.coming-soon-badge { position: absolute; top: 12px; left: 12px; background: #003e67; color: #fff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 4px; z-index: 2; }
.location-card .card-body { padding: 20px 24px 24px; }
.location-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--red); margin-bottom: 8px; }
.location-card p { font-size: 0.9rem; color: #444; margin-bottom: 4px; }
.location-card .hours { margin: 10px 0; }
.location-card .btn { margin-top: 14px; font-size: 0.9rem; padding: 10px 20px; }

/* ── CTA band ── */
.cta-band {
  background: var(--navy);
  padding: 56px 32px;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 1.05rem; }
.cta-band .btn + .btn { margin-left: 12px; }

/* ── Footer ── */
footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.65);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
footer h4 { color: #fff; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
footer p, footer a { font-size: 0.88rem; color: rgba(255,255,255,0.65); }
footer a:hover { color: #fff; }
.footer-copy { background: #111; text-align: center; padding: 14px 32px; font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* ── Page hero (non-home) ── */
.page-hero {
  background: var(--navy);
  padding: 56px 32px;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: 2.3rem; font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; }

/* ── Services page ── */
.services-detail { max-width: 860px; margin: 0 auto; }
.services-detail h2 { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; margin-top: 48px; }
.services-detail h2:first-child { margin-top: 0; }
.services-detail p { margin-bottom: 14px; color: #444; }
.services-detail ul { padding-left: 20px; margin-bottom: 14px; }
.services-detail ul li { margin-bottom: 6px; color: #444; }
.info-box { background: var(--light-gray); border-left: 4px solid var(--red); padding: 20px 24px; border-radius: 0 6px 6px 0; margin: 24px 0; }
.info-box p { margin: 0; color: #444; font-size: 0.95rem; }

/* ── Contact page ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1000px; margin: 0 auto; }
.contact-info h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.contact-info p { color: #444; margin-bottom: 8px; }
.contact-info a { color: var(--red); font-weight: 700; }
.addresses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 48px; }
.address-card { background: var(--light-gray); border-radius: 6px; padding: 20px; }
.address-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.address-card p { font-size: 0.88rem; color: #444; margin-bottom: 4px; }
.address-card a { font-size: 0.85rem; color: var(--red); font-weight: 600; }

/* ── Map ── */
.map-container { width: 100%; height: 380px; border-radius: 8px; overflow: hidden; margin-bottom: 40px; }
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ── Services page ── */
.svc-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.svc-card-border { border: 2px solid var(--navy); border-radius: 6px; padding: 32px; }
.svc-card-border h2 { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.svc-card-border ul { padding-left: 20px; }
.svc-card-border li { margin-bottom: 6px; color: #444; font-size: 0.95rem; }

.svc-photo-band { position: relative; overflow: hidden; max-height: 260px; }
.svc-photo-band img { width: 100%; height: 260px; object-fit: cover; filter: brightness(0.45); display: block; }
.svc-photo-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 48px; }
.svc-stat { font-size: 2rem; font-weight: 900; color: #fff; text-align: center; margin: 0; }
.svc-stat-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); text-align: center; margin: 4px 0 0; }
.svc-photo-info { align-items: center; }

.info-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.info-card { background: #fff; border-radius: 6px; padding: 24px; }
.info-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.info-card p, .info-card li { font-size: 0.9rem; color: #444; }
.info-card ul { padding-left: 18px; margin-top: 8px; }
.info-card li { margin-bottom: 5px; }

/* ── Smog info page ── */
.info-jump-bar { background: #e8f0fb; padding: 10px 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 0.85rem; }
.info-jump-bar a { color: var(--navy); font-weight: 600; }
.info-jump-bar a:hover { color: var(--red); }
.info-section { margin-bottom: 48px; }
.info-h2 { font-size: 1.6rem; font-weight: 800; color: var(--navy); border-bottom: 3px solid var(--red); padding-bottom: 8px; margin-bottom: 24px; }
.two-col-info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.three-col-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.info-box-blue { background: #f4f8ff; border: 1px solid #c5d5f0; border-radius: 4px; padding: 20px; }
.info-box-blue h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.info-box-blue ul { padding-left: 18px; }
.info-box-blue li { margin-bottom: 6px; color: #444; font-size: 0.9rem; }
.info-table-wrap { overflow-x: auto; margin-bottom: 12px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.info-table th { background: var(--navy); color: #fff; padding: 10px 14px; text-align: left; }
.info-table td { padding: 10px 14px; border-bottom: 1px solid #c5d5f0; color: #444; }
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:nth-child(even) td { background: #f8faff; }
.info-note { font-size: 0.85rem; color: #777; margin-top: 10px; }
.tip-box { background: #fff3cd; padding: 16px; border-radius: 4px; font-size: 0.9rem; color: #444; }
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1px solid #c5d5f0; border-radius: 6px; overflow: hidden; }
.step { padding: 20px 24px; border-right: 1px solid #c5d5f0; }
.step:last-child { border-right: none; }
.step-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--red); margin-bottom: 8px; letter-spacing: 0.08em; }
.step p { font-size: 0.9rem; color: #444; margin: 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.faq-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.faq-item p { font-size: 0.9rem; color: #444; }
.dmv-disclaimer { background: #fff8e1; border-radius: 6px; padding: 18px 24px; font-size: 0.9rem; color: #555; margin-top: 40px; text-align: center; }
.dmv-disclaimer a { color: var(--navy); }

/* ── Mobile ── */
@media (max-width: 768px) {
  header { padding: 10px 16px; }
  .logo img { height: 48px; }
  nav { gap: 16px; }
  nav a { font-size: 0.8rem; }

  .hero { min-height: 420px; padding: 48px 20px; }
  .hero h1 { font-size: 1.9rem; }

  .info-bar { grid-template-columns: repeat(2, 1fr); padding: 20px 16px; }

  .section { padding: 40px 16px; }
  .section-full { padding: 40px 16px; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  .cta-band { padding: 40px 16px; }
  .cta-band h2 { font-size: 1.5rem; }
  .cta-band .btn + .btn { margin-left: 0; margin-top: 12px; display: block; }

  .svc-two-col { grid-template-columns: 1fr; }
  .svc-photo-overlay { gap: 20px; }
  .svc-stat { font-size: 1.4rem; }
  .two-col-info { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid #c5d5f0; }
  .step:last-child { border-bottom: none; }
  .info-jump-bar { padding: 10px 16px; gap: 8px; }
}
