/* Apex Automotive LLC — brand: Poppins headings, Lato body, red #E41E2B, yellow #ffd608, dark #212121 */
:root { --red: #e41e2b; --red-dark: #c2161f; --yellow: #ffd608; --dark: #212121; --dark2: #2c2c2c; --text: #222; --ink: #212121; --muted: #575760; --line: #e3e5e8; --bg: #f7f8f9; --page: #fff; --surface: #fff; --surface-rgb: 255,255,255; --input: #fff; --input-line: #cfd3d8; --footer: #171717; --footer-line: #2c2c2c; --white: #fff; --link: #c2161f;
  --head: "Poppins", "Segoe UI", Arial, sans-serif; --body: "Lato", "Segoe UI", Arial, sans-serif; --r: 10px; --wrap: 1180px; --shadow: 0 10px 30px rgba(0,0,0,.08); color-scheme: light; }
[data-theme="dark"] { --text: #e4e5ea; --ink: #f4f4f6; --muted: #a3a7b3; --line: #2a2d35; --bg: #15171b; --page: #0f1013; --surface: #1b1d23; --surface-rgb: 27,29,35; --input: #121317; --input-line: #3a3e48; --footer: #0a0b0d; --footer-line: #23252b; --link: #ff6b74; --shadow: 0 10px 30px rgba(0,0,0,.45); color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--body); color: var(--text); background: var(--page); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin: 0 auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 100; }
.ic { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.ic.big { width: 36px; height: 36px; color: var(--red); margin-bottom: 10px; }
.kicker { font: 700 .8rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 12px; }
.kicker.light { color: var(--yellow); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; vertical-align: middle; padding: 10px 22px; border-radius: 6px; font: 700 .98rem var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .08s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; } .btn-red:hover { background: var(--red-dark); }
.btn-dark { background: var(--dark); color: #fff; } .btn-dark:hover { background: #000; } [data-theme="dark"] .btn-dark { background: #f4f4f6; color: #111; } [data-theme="dark"] .btn-dark:hover { background: #fff; }
.btn-light { background: #fff; color: #212121; } .btn-light:hover { background: var(--yellow); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); } .btn-ghost:hover { border-color: #fff; }
.more { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; min-height: 48px; }
.btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.more:hover { text-decoration: underline; }

/* top bar + header */
.topbar { background: var(--dark); color: #ddd; font-size: .86rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; flex-wrap: wrap; align-items: center; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar .ic { width: 16px; height: 16px; color: var(--yellow); }
.tb-right { display: flex; gap: 22px; flex-wrap: wrap; }
.tb-hours { display: inline-flex; align-items: center; gap: 6px; }
.open-now { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-weight: 700; color: #fff; }
.open-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3dc96a; box-shadow: 0 0 0 3px rgba(61,201,106,.25); }
.open-now.is-closed::before { background: var(--red); box-shadow: 0 0 0 3px rgba(228,30,43,.25); }
.site-header { background: var(--surface); position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.hdr-tools { display: flex; align-items: center; gap: 8px; }
.site-header .nav { margin-left: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 64px; height: 64px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 800 1.25rem var(--head); }
.brand-text small { font-size: .78rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 14px; color: var(--ink); text-decoration: none; font-weight: 700; border-radius: 6px; }
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .nav-call { margin-left: 10px; color: #fff; box-shadow: none; }
.menu-btn { display: none; }
.theme-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.theme-btn:hover { border-color: var(--red); color: var(--red); }
.theme-btn .ic { width: 20px; height: 20px; } .theme-btn .sun { display: none; } [data-theme="dark"] .theme-btn .sun { display: block; } [data-theme="dark"] .theme-btn .moon { display: none; }

/* hero */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--dark); }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,12,.86) 0%, rgba(10,10,12,.65) 45%, rgba(10,10,12,.25) 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .85fr; gap: 40px; align-items: center; padding: 72px 0; }
.hero-in { max-width: 640px; }
.hero-form { background: rgba(var(--surface-rgb), .96); color: var(--text); border-radius: var(--r); padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-form h2 { font-size: 1.35rem; margin-bottom: 4px; } .hero-form .muted { margin-bottom: 14px; font-size: .92rem; }
.hero-form label { margin-bottom: 10px; font-size: .88rem; } .hero-form input { padding: 10px 12px; }
.hero-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.hero-form .fine-print { text-align: center; margin-top: 10px; }
@media (prefers-reduced-motion: no-preference) { .hero img { animation: kenburns 18s ease-out both; } @keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } } }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .lead { color: #e9e9ee; font-size: 1.25rem; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; font-weight: 700; color: #f1f1f4; }
.ticks li { display: inline-flex; align-items: center; gap: 6px; } .ticks .ic { color: var(--yellow); }

/* stats strip + makes marquee */
.stats { background: var(--red); color: #fff; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 0; text-align: center; }
.stats-in div { display: flex; flex-direction: column; line-height: 1.2; }
.stats-in strong { font: 800 2rem var(--head); } .stats-in span:last-child { font-size: .9rem; opacity: .9; }
.makes { overflow: hidden; background: var(--dark); color: #cfcfd4; padding: 12px 0; font: 700 .85rem var(--head); letter-spacing: .14em; text-transform: uppercase; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.makes-track { display: flex; gap: 0; width: max-content; animation: marquee 40s linear infinite; }
.makes-track span { padding: 0 28px; white-space: nowrap; } .makes-track span::after { content: "·"; margin-left: 56px; color: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }
.makes:hover .makes-track { animation-play-state: paused; }

/* scroll reveal: elements start hidden only when JS runs and motion is allowed */
html.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .rv.in { opacity: 1; transform: none; }
html.js .hero .rv { transition-delay: calc(var(--i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) { html.js .rv { opacity: 1; transform: none; transition: none; } .makes-track { animation: none; } }

/* steps, faq, reviews */
.steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px 22px; }
.steps .num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font: 800 1.1rem var(--head); margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); }
.faq-wrap { align-items: start; }
.faqs { display: grid; gap: 10px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0 18px; }
.faq summary { cursor: pointer; font: 700 1rem var(--head); padding: 14px 28px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.5rem; color: var(--red); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--muted); }
.reviews-box { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border-radius: var(--r); padding: 18px 20px; border-left: 4px solid var(--yellow); box-shadow: var(--shadow); max-width: 360px; }
.stars { color: var(--yellow); letter-spacing: 2px; font-size: 1.2rem; }
/* meet Juan + credentials */
.meet { display: grid; grid-template-columns: .75fr 1fr 1.1fr; gap: 32px; align-items: center; }
.photo.portrait img { aspect-ratio: 3/4; object-position: 50% 30%; }
.creds { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.creds li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.creds .ic { color: var(--red); margin-top: 2px; } .creds strong { display: block; font-family: var(--head); } .creds span { color: var(--muted); font-size: .95rem; }
@media (max-width: 980px) { .meet { grid-template-columns: 1fr 1fr; } .meet .creds { grid-column: 1 / -1; } }
@media (max-width: 760px) { .meet { grid-template-columns: 1fr; } .photo.portrait { max-width: 360px; } }

/* header shrink + hover polish */
.site-header { transition: box-shadow .2s; }
html.scrolled .site-header { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
html.scrolled .site-header .wrap { min-height: 68px; } html.scrolled .brand img { width: 50px; height: 50px; }
.brand img, .site-header .wrap { transition: all .2s; }
.pillars article, .svc, .info, .steps li { transition: transform .2s, box-shadow .2s; }
.pillars article:hover, .svc:hover, .info:hover, .steps li:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.12); }
.gthumb img { filter: saturate(.85); } .gthumb:hover img { filter: saturate(1.1); }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.photo { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.stack { display: grid; gap: 18px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillars article { background: var(--surface); border-radius: var(--r); padding: 28px; border-top: 4px solid var(--red); box-shadow: var(--shadow); }
.pillars p { margin: 0; color: var(--muted); }
.svc-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.svc-list a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg); border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 700; border: 1px solid transparent; }
.svc-list a:hover { border-color: var(--red); background: var(--surface); }
.svc-list .ic { color: var(--red); width: 24px; height: 24px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; scroll-margin-top: 110px; }
.svc:target { border-color: var(--red); box-shadow: var(--shadow); }
.svc p { margin: 0; color: var(--muted); }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery-grid.home { grid-template-columns: repeat(6, 1fr); }
.gthumb { display: block; border-radius: 8px; overflow: hidden; background: var(--line); }
.gthumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .25s; }
.gthumb:hover img { transform: scale(1.04); }
.three-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.info p { margin: 0 0 6px; } .info a { font-weight: 700; }
.pagehead { background: var(--dark); color: #fff; padding: 64px 0 52px; background-image: linear-gradient(90deg, rgba(0,0,0,.4), transparent), url('/assets/img/texture.jpg'); background-size: cover; }
.pagehead h1 { color: #fff; } .pagehead .lead { color: #d8d8de; } .pagehead .kicker { color: var(--yellow); }
.prose p { font-size: 1.05rem; }
.prose h2 { font-size: 1.35rem; margin-top: 1.4em; }

/* contact */
.contact { align-items: start; }
.info-list p { display: flex; gap: 14px; margin: 0 0 18px; }
.info-list .ic { color: var(--red); width: 24px; height: 24px; margin-top: 3px; }
.info-list strong { display: block; font-family: var(--head); margin-bottom: 2px; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--line); } .hours li:last-child { border: 0; }
.map { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); margin-top: 10px; }
.map iframe { width: 100%; height: 300px; border: 0; display: block; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.form h2 { font-size: 1.5rem; }
label { display: block; font-weight: 700; margin-bottom: 14px; font-size: .95rem; }
label small { font-weight: 400; color: var(--muted); }
input, textarea { display: block; width: 100%; margin-top: 5px; padding: 12px 13px; font: 16px/1.4 var(--body); border: 1px solid var(--input-line); border-radius: 6px; background: var(--input); color: var(--text); }
input:focus, textarea:focus { outline: 3px solid rgba(228,30,43,.25); border-color: var(--red); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.fine-print { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 90vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: #ddd; padding: 10px; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; line-height: 1; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); } .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* cta + footer */
.cta-band { background: var(--dark) center/cover; color: #fff; padding: 56px 0; position: relative; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.cta-band .wrap { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 6px; } .cta-band p { margin: 0; color: #d8d8de; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer { background: var(--footer); color: #bbb; padding: 52px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.f-title { display: block; color: #fff; font-family: var(--head); margin-bottom: 10px; font-size: 1.05rem; }
.f-nav { display: flex; gap: 14px; flex-wrap: wrap; } .f-nav a { text-decoration: none; color: var(--yellow); }
.site-footer .hours li { border-color: #333; }
.fine { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--footer-line); font-size: .85rem; color: #888; }
.callbar { display: none; }

/* responsive */
@media (max-width: 980px) {
  .pillars, .three-cols, .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; } .faq-wrap { grid-template-columns: 1fr; }
  .gallery-grid.home { grid-template-columns: repeat(3, 1fr); }
  .cta-band .wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .two, .pillars, .three-cols, .site-footer .cols, .grid2 { grid-template-columns: 1fr; }
  .two { gap: 26px; }
  .tb-hours { display: none; }
  .topbar .wrap { justify-content: center; }
  .site-header .wrap { min-height: 70px; }
  .brand img { width: 48px; height: 48px; } .brand-text small { display: none; } .brand-text strong { font-size: 1.05rem; white-space: nowrap; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 46px; height: 42px; background: none; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; padding: 0 10px; position: relative; }
  .menu-btn span { display: block; height: 2px; background: var(--ink); width: 100%; } .menu-btn b { position: absolute; left: -9999px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; box-shadow: 0 16px 30px rgba(0,0,0,.15); border-top: 1px solid var(--line); }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 13px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .nav-call { margin: 12px 0 0; justify-content: center; border-radius: 6px; border-bottom: 0; }
  .hero { min-height: 0; }
  .hero-grid { padding: 48px 0 40px; gap: 28px; }
  .hero-form { padding: 20px; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .hero::after { background: linear-gradient(180deg, rgba(10,10,12,.7), rgba(10,10,12,.9)); }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .gallery-grid, .gallery-grid.home { grid-template-columns: 1fr 1fr; gap: 8px; }
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: center; align-items: center; gap: 8px; padding: 14px; background: var(--red); color: #fff; font: 700 1.05rem var(--body); text-decoration: none; box-shadow: 0 -4px 16px rgba(0,0,0,.2); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  body { padding-bottom: 64px; }
  .cta-btns .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gthumb img { transition: none; } }
