/* =========================================================
   M & P Smog Check - Long Beach
   Site stylesheet (single file, no framework)
   Author: VersatilWeb.com
   ========================================================= */

:root {
  --brand: #1a7fea;
  --brand-dark: #0e5fb8;
  --brand-50: #eaf3fe;
  --accent: #ffb800;
  --accent-dark: #d99500;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg-soft: #f8fafc;
  --white: #ffffff;
  --green: #16a34a;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 14px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, .12);
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
          Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 800;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p  { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--ink);
  color: #cbd5e1;
  font-size: .9rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: .55rem;
  padding-bottom: .55rem;
}
.topbar a { color: #fff; }
.topbar .tb-info {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
/* Force every immediate child (the address span, hours span, phone link) to
   align its icon and text with flexbox — fixes the offset where the icon
   sat above the text baseline. */
.topbar .tb-info > * {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  line-height: 1;
}
.topbar svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -.02em;
  box-shadow: var(--shadow-sm);
}
.brand-text small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: -2px;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
}
.nav-menu a.active,
.nav-menu a:hover { color: var(--brand); text-decoration: none; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--brand);
  color: #fff;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.nav-cta svg { width: 18px; height: 18px; }

.nav-toggle,
.nav-call-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  line-height: 0;
  flex-shrink: 0;
}
.nav-toggle svg,
.nav-call-mobile svg {
  width: 22px !important;
  height: 22px !important;
  display: block;
}
.nav-call-mobile {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.nav-call-mobile:hover { background: var(--brand-dark); color: #fff; }
.nav-actions-mobile {
  display: none;
  gap: .5rem;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 880px) {
  /* Hide the chunky utility topbar on mobile — its info lives in the footer,
     and the new call button below covers the most important action. */
  .topbar { display: none !important; }

  .nav-menu,
  .nav-cta-desktop { display: none !important; }

  .nav-toggle,
  .nav-call-mobile { display: inline-flex !important; }
  .nav-actions-mobile { display: inline-flex !important; }

  .nav-menu.open {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 1rem 1.25rem;
    gap: .8rem;
  }

  /* Slightly tighter brand on mobile so it doesn't crowd the action buttons */
  .brand-text { font-size: 1rem; }
  .brand-text small { font-size: .7rem; }
  .nav { gap: .5rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary  { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover  { background: var(--brand-dark); color: #fff; }
.btn-accent   { background: var(--accent); color: var(--ink); box-shadow: var(--shadow); }
.btn-accent:hover   { background: var(--accent-dark); color: var(--ink); }
.btn-outline  { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover  { background: var(--brand-50); color: var(--brand-dark); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(26,127,234,.15), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255,184,0,.12), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  padding: 4rem 0 4.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--brand-50);
  color: var(--brand-dark);
  padding: .35rem .8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .82rem;
  margin-bottom: 1rem;
}
.hero h1 { margin-bottom: .8rem; }
.hero h1 span { color: var(--brand); }
.hero-lead {
  font-size: 1.15rem;
  color: var(--body);
  margin-bottom: 1.6rem;
  max-width: 36rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: .92rem;
  color: var(--muted);
}
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust svg { width: 18px; height: 18px; color: var(--green); }

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand), transparent 60%);
  z-index: -1;
  opacity: .25;
}
.hero-card h2 {
  font-size: 1.15rem;
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-card .price {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
  margin: .6rem 0 .2rem;
}
.hero-card .price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.hero-card ul { list-style: none; padding: 0; margin: 1rem 0 1.2rem; }
.hero-card li {
  padding: .35rem 0 .35rem 1.6rem;
  position: relative;
  color: var(--body);
}
.hero-card li::before {
  content: "";
  position: absolute;
  left: 0; top: .7rem;
  width: 1rem; height: 1rem;
  background: var(--brand-50);
  border-radius: 999px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7fea' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 880px) {
  .hero { padding: 2.5rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.bg-soft { background: var(--bg-soft); }

/* ---------- Feature / service grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 880px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.feature .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 3rem 0;
}
.cta-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-strip h2 { color: #fff; margin: 0 0 .3rem; }
.cta-strip p { margin: 0; opacity: .9; }
.cta-strip .btn-accent { color: var(--ink); }

/* ---------- Coupon card ---------- */
.coupon {
  background: #fff;
  border: 2px dashed var(--brand);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.coupon-tag {
  background: var(--accent);
  color: var(--ink);
  display: inline-block;
  padding: .25rem .9rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.coupon h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.coupon .price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--brand);
  margin: .5rem 0;
}
.coupon .price small {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
  text-decoration: line-through;
  margin-left: .4rem;
}
.coupon .fine {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ---------- Reviews / testimonials ---------- */
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.review .stars { color: var(--accent); font-size: 1.1rem; letter-spacing: .1em; }
.review p { color: var(--ink); font-size: 1.05rem; font-style: italic; }
.review cite { color: var(--muted); font-style: normal; font-weight: 600; font-size: .9rem; }

/* ---------- FAQ accordion ---------- */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: .8rem;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.faq details[open] { box-shadow: var(--shadow); border-color: var(--brand-50); }
.faq summary {
  font-weight: 700;
  color: var(--ink);
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--brand);
  font-weight: 400;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 1.4rem 1.2rem; color: var(--body); }

/* ---------- Map ---------- */
.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Blog ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card .post-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand-50), #fff);
  display: grid;
  place-items: center;
  color: var(--brand);
}
.post-card .post-thumb svg { width: 60px; height: 60px; opacity: .55; }
.post-card .post-body { padding: 1.3rem; }
.post-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand); text-decoration: none; }
.post-card .post-meta { color: var(--muted); font-size: .85rem; margin-bottom: .3rem; }
.post-card .post-excerpt { color: var(--muted); margin: 0 0 1rem; }
.post-card .read-more { font-weight: 700; font-size: .9rem; }

/* ---------- Article (blog post body) ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.article .breadcrumb {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.article .breadcrumb a { color: var(--muted); }
.article header h1 { margin-bottom: .5rem; }
.article .post-meta {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.article h2 { margin-top: 2.2rem; }
.article h3 { margin-top: 1.6rem; }
.article p, .article li { font-size: 1.05rem; }
.article ul, .article ol { padding-left: 1.4rem; }
.article blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.4rem;
  border-left: 4px solid var(--brand);
  background: var(--brand-50);
  color: var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- Page header (inner pages) ---------- */
.page-head {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, var(--brand-50) 0%, #fff 100%);
  text-align: center;
}
.page-head h1 { margin-bottom: .4rem; }
.page-head p { color: var(--muted); max-width: 40rem; margin: 0 auto; font-size: 1.1rem; }
.page-head .breadcrumb { color: var(--muted); font-size: .85rem; margin-bottom: .8rem; }
.page-head .breadcrumb a { color: var(--muted); }

/* ---------- Info / contact ---------- */
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.info-card h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.05rem;
}
.info-card h3 svg { width: 20px; height: 20px; color: var(--brand); }
.info-card p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.social {
  display: flex;
  gap: .6rem;
  margin-top: 1rem;
}
.social a {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: #1e293b;
  display: grid;
  place-items: center;
  color: #fff;
}
.social a:hover { background: var(--brand); }
.social svg { width: 18px; height: 18px; }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--body); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--brand-50);
  color: var(--brand-dark);
  padding: .3rem .7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .8rem;
}

/* ---------- Skip link / a11y ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
  z-index: 100;
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .topbar, .cta-strip { display: none; }
  body { color: #000; }
}
