/* ============================================================
   AutoPlus Complete Car Care Services — site styles
   Brand system: dark/black base, logo yellow #F2EC23
   as the action color. No red.
   ============================================================ */
:root {
  /* Brand — from the AutoPlus logo & storefront sign */
  --yellow: #F2EC23;          /* exact logo yellow — primary action color */
  --yellow-hover: #DBD51C;
  --black: #000000;           /* logo black */
  --charcoal-950: #0C0C0C;    /* deepest sections */
  --charcoal-900: #141414;    /* body background */
  --charcoal-850: #1B1B1B;    /* alternate sections */
  --charcoal-800: #1F1F1F;    /* cards */
  --line: #2C2C2C;            /* card borders / dividers */
  --ink: #F2F2F2;             /* primary text (light) */
  --ink-soft: #ABABAB;        /* secondary text */
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, .5);
  --container: 1180px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--charcoal-900);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

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

h1, h2, h3, .btn { font-family: var(--font-head); letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); line-height: 1.04; font-weight: 800; text-transform: uppercase; color: var(--white); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.1; font-weight: 800; text-transform: uppercase; color: var(--white); }
h3 { font-size: 1.35rem; font-weight: 700; color: var(--white); }
.lead { font-size: 1.075rem; color: var(--ink-soft); }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .9rem;
  color: var(--yellow);
  margin-bottom: .5rem;
}
.kicker::before { content: ""; display: inline-block; width: 26px; height: 3px; background: var(--yellow); margin-right: 10px; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.7rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
/* Primary action: logo yellow on black */
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: var(--yellow-hover); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline-dark:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.btn-outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--black); }
/* Inverse: black with yellow text + border */
.btn-inverse { background: var(--black); color: var(--yellow); border-color: var(--yellow); }
.btn-inverse:hover { background: var(--yellow); color: var(--black); }
.btn-block { display: block; width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--black);
  color: var(--ink-soft);
  font-size: .85rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.topbar a { color: var(--yellow); text-decoration: none; font-weight: 600; }
.topbar .tb-right { display: flex; gap: 18px; }
@media (max-width: 720px) { .topbar .tb-right span.tb-hours { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  box-shadow: 0 2px 14px rgba(0,0,0,.55);
  border-bottom: 2px solid var(--yellow);
}
.navbar { display: flex; align-items: center; gap: 22px; padding: 12px 20px; max-width: var(--container); margin: 0 auto; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--yellow); }
.nav-links a.active { color: var(--white); border-bottom-color: var(--yellow); border-radius: 0; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: .6rem 1.1rem; font-size: .95rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--white); margin: 5px auto; border-radius: 2px; transition: .2s; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--charcoal-950);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    box-shadow: var(--shadow-lg);
    display: none;
    border-bottom: 2px solid var(--yellow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-cta { display: none; }
  .nav-links .mobile-cta { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
}
@media (min-width: 981px) { .nav-links .mobile-cta { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(0,0,0,.92) 0%, rgba(5,5,5,.66) 48%, rgba(8,8,8,.3) 100%);
}
.hero-inner { padding: 90px 0; max-width: 700px; }
.hero .tagline { color: var(--yellow); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 12px; font-size: 1rem; }
.hero p.sub { margin: 18px 0 28px; font-size: 1.15rem; color: #E2E2E2; max-width: 580px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.22); }
.hero-badges span { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: #EDEDED; }
.hero-badges svg { width: 17px; height: 17px; fill: var(--yellow); flex: none; }

/* ---------- Quick contact bar ---------- */
.quickbar { background: var(--charcoal-950); border-top: 3px solid var(--yellow); border-bottom: 1px solid var(--line); }
.quickbar .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 14px 28px;
  align-items: center;
  padding-top: 18px; padding-bottom: 18px;
}
.quickbar .qb-item { display: flex; gap: 12px; align-items: center; color: var(--ink); font-size: .92rem; line-height: 1.35; }
.quickbar .qb-item svg { width: 26px; height: 26px; fill: var(--yellow); flex: none; }
.quickbar .qb-item strong { display: block; font-family: var(--font-head); text-transform: uppercase; font-size: 1.02rem; color: var(--white); }
.quickbar .qb-item a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.quickbar .qb-item a:hover { color: var(--yellow); }
.quickbar .btn { background: var(--yellow); color: var(--black); white-space: nowrap; }
.quickbar .btn:hover { background: var(--yellow-hover); }
@media (max-width: 900px) {
  .quickbar .container { grid-template-columns: 1fr 1fr; }
  .quickbar .btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .quickbar .container { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; background: var(--charcoal-900); }
.section-dark { background: var(--charcoal-950); color: var(--ink); }
.section-dark .lead { color: var(--ink-soft); }
.section-gray { background: var(--charcoal-850); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker::before { display: none; }

/* ---------- Service cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1080px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--charcoal-800);
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--yellow); }
.card .icon { width: 46px; height: 46px; margin-bottom: 14px; }
.card .icon svg { width: 100%; height: 100%; fill: var(--yellow); }
.card h3 { margin-bottom: 8px; text-transform: uppercase; font-family: var(--font-head); font-size: 1.3rem; }
.card p { font-size: .94rem; color: var(--ink-soft); flex: 1; }
.card a.card-link {
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--yellow);
  text-decoration: none;
  font-size: 1rem;
}
.card a.card-link:hover { color: var(--white); }
.card a.card-link::after { content: " →"; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.split-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }
.split-body p { color: var(--ink-soft); }
.split-body p + p { margin-top: 14px; }
.split-body .btn { margin-top: 24px; }

/* ---------- Why choose ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .why-grid { grid-template-columns: 1fr; } }
.why-item {
  background: var(--charcoal-800);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  padding: 20px 20px 18px;
}
.why-item h3 { color: var(--white); font-family: var(--font-head); text-transform: uppercase; font-size: 1.15rem; margin-bottom: 6px; }
.why-item p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; background: var(--charcoal-800); border: 1px solid var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .35s ease; }
.g-item:hover img { transform: scale(1.045); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .95rem;
}
.g-item.tall img { aspect-ratio: 3 / 4; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox button {
  position: absolute; top: 18px; right: 22px;
  background: none; border: 0; color: var(--white);
  font-size: 2.2rem; cursor: pointer; line-height: 1;
}

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .reviews-grid { grid-template-columns: 1fr; } }
.review {
  background: var(--charcoal-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.review .stars { color: var(--yellow); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 10px; }
.review p { font-size: .94rem; color: var(--ink-soft); flex: 1; }
.review .name { margin-top: 14px; font-weight: 700; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--white); }
.review .name::before { content: "— "; color: var(--yellow); }
.reviews-cta { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--yellow); color: var(--black); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 48px; }
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); color: var(--black); }
.cta-band p { color: #3A3800; margin-top: 4px; }
.cta-band .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--black); color: var(--yellow); }
.cta-band .btn-primary:hover { background: var(--charcoal-800); }
.cta-band .btn-outline-light { border-color: var(--black); color: var(--black); }
.cta-band .btn-outline-light:hover { background: var(--black); color: var(--yellow); }

/* ---------- Financing strip ---------- */
.finance-box {
  background: var(--charcoal-950);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
}
@media (max-width: 780px) { .finance-box { grid-template-columns: 1fr; padding: 30px 24px; } }
.finance-box h2 span { color: var(--yellow); }
.finance-box p { color: var(--ink-soft); margin-top: 10px; }
.finance-box .btns { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--charcoal-800); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 28px; }
.contact-card h3 { font-family: var(--font-head); text-transform: uppercase; margin-bottom: 6px; color: var(--yellow); }
.contact-card p { color: var(--ink-soft); }
.contact-card .big { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; text-decoration: none; color: var(--white); }
.contact-card .big:hover { color: var(--yellow); }
.contact-card + .contact-card { margin-top: 20px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); min-height: 420px; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.es-note { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--black); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: .9rem; margin-top: 14px; }

/* ---------- Schedule / Shopmonkey ---------- */
.sm-embed { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.sm-embed iframe { width: 100%; height: 1150px; border: 0; display: block; }
@media (max-width: 640px) { .sm-embed iframe { height: 1350px; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; color: var(--white); isolation: isolate; overflow: hidden; }
.page-hero .ph-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .ph-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(0,0,0,.93), rgba(5,5,5,.6)); }
.page-hero .container { padding-top: 84px; padding-bottom: 84px; max-width: var(--container); }
.page-hero p { color: #DEDEDE; max-width: 620px; margin-top: 12px; font-size: 1.08rem; }
.page-hero .crumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: 14px; }
.page-hero .crumbs a { color: var(--yellow); text-decoration: none; }

/* ---------- Checklist ---------- */
.check-list { list-style: none; margin: 18px 0; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--ink-soft); }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px;
  background: var(--yellow);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* ---------- Article / Tips pages ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 34px 0 12px; }
.article p { color: var(--ink-soft); margin-bottom: 14px; }
.article ul, .article ol { margin: 0 0 16px 22px; color: var(--ink-soft); }
.article li { margin-bottom: 8px; }
.article a { color: var(--yellow); font-weight: 600; text-decoration: none; }
.article a:hover { color: var(--white); }
.article .article-meta { color: var(--ink-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 26px; }
.article .article-meta span { color: var(--yellow); }
.tip-callout {
  background: var(--charcoal-800);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 22px 0;
}
.tip-callout strong { color: var(--white); }
.tip-callout p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--ink-soft); font-size: .92rem; border-top: 3px solid var(--yellow); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding: 64px 0 44px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; font-size: 1.05rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .f-logo img { height: 40px; margin-bottom: 14px; }
.site-footer .f-phone { color: var(--yellow); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: #7d7d7d; }
.footer-bottom a { color: #7d7d7d; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile sticky call bar ---------- */
.mobile-callbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 16px rgba(0,0,0,.45);
}
.mobile-callbar a {
  text-align: center; padding: 14px 8px;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  text-decoration: none; font-size: 1.05rem;
}
.mobile-callbar .mc-call { background: var(--black); color: var(--yellow); border-top: 1px solid var(--line); }
.mobile-callbar .mc-book { background: var(--yellow); color: var(--black); }
@media (max-width: 720px) {
  .mobile-callbar { display: grid; }
  body { padding-bottom: 52px; }
}
