/* St Mark Auto Center — clean corporate trust
   white · deep teal · slate · Manrope · full-width photo hero with overlapping card */
:root {
  --teal: #0f766e;
  --teal-dk: #115e59;
  --teal-lt: #e6f4f2;
  --teal-2: #14b8a6;
  --slate: #0f172a;
  --slate-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --soft: #f4f7f9;
  --radius: 14px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--slate-2); background: var(--bg); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { color: var(--slate); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }

/* Topbar */
.topbar { background: var(--slate); color: #cbd5e1; font-size: 13.5px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 14px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 700; }

/* Header */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow 0.25s; }
header.site.scrolled { box-shadow: 0 8px 30px rgba(15,23,42,0.08); }
header.site .wrap { display: flex; align-items: center; gap: 20px; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--slate); font-size: 19px; letter-spacing: -0.02em; line-height: 1.1; }
.logo .mono { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, var(--teal), var(--teal-dk)); color: #fff; display: grid; place-items: center; font-size: 15px; letter-spacing: 0.02em; box-shadow: 0 6px 14px rgba(15,118,110,0.28); }
.logo small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
nav.main { display: flex; gap: 4px; margin-left: auto; }
nav.main a { font-weight: 700; font-size: 15px; padding: 9px 14px; border-radius: 9px; color: var(--slate-2); transition: background 0.2s, color 0.2s; }
nav.main a:hover { background: var(--soft); color: var(--slate); }
nav.main a.active { color: var(--teal); background: var(--teal-lt); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: 999px; background: var(--soft); color: var(--slate-2); white-space: nowrap; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.status-pill.open { background: #dcfce7; color: #166534; }
.status-pill.open::before { background: #16a34a; animation: ping 2s infinite; }
.status-pill.closed { background: #fee2e2; color: #991b1b; }
.status-pill.closed::before { background: #dc2626; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } }
.call-btn { background: var(--teal); color: #fff; font-weight: 800; padding: 11px 18px; border-radius: 10px; font-size: 15px; white-space: nowrap; transition: background 0.2s, transform 0.2s; }
.call-btn:hover { background: var(--teal-dk); transform: translateY(-1px); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 19px; cursor: pointer; color: var(--slate); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; font-size: 16px; padding: 15px 24px; border-radius: 12px; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s; }
.btn.primary { background: var(--teal); color: #fff; box-shadow: 0 10px 22px rgba(15,118,110,0.28); }
.btn.primary:hover { background: var(--teal-dk); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(15,118,110,0.34); }
.btn.ghost { background: #fff; color: var(--slate); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn.white { background: #fff; color: var(--teal-dk); }
.btn.white:hover { transform: translateY(-2px); }

/* Photo hero + overlapping info card */
.hero { position: relative; }
.hero .bg { height: 600px; position: relative; overflow: hidden; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; animation: settle 1.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.15) 55%, rgba(15,23,42,0) 100%), linear-gradient(0deg, rgba(15,23,42,0.35), rgba(15,23,42,0) 40%); }
.hero .card-wrap { position: relative; margin-top: -330px; z-index: 2; display: grid; grid-template-columns: minmax(0, 640px) 1fr; gap: 28px; align-items: end; }
.mini-card { justify-self: end; width: 100%; max-width: 330px; background: var(--slate); color: #cbd5e1; border-radius: 18px; padding: 26px 26px 22px; box-shadow: 0 24px 50px rgba(15,23,42,0.25); animation: lift 0.9s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.mini-card h3 { color: #fff; font-size: 17px; margin-bottom: 10px; }
.mini-card .hours-row { border-color: #1e293b; font-size: 14.5px; padding: 8px 0; }
.mini-card .hours-row b { color: #fff; }
.mini-card a { display: block; margin-top: 12px; color: #5eead4; font-weight: 800; }
.info-card { background: #fff; border-radius: 20px; box-shadow: 0 30px 70px rgba(15,23,42,0.18); padding: 44px 46px 40px; max-width: 640px; border-top: 5px solid var(--teal); animation: lift 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both; }
.info-card .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--teal); background: var(--teal-lt); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.info-card h1 { font-size: clamp(34px, 4.4vw, 54px); }
.info-card h1 span { color: var(--teal); }
.info-card .lead { font-size: 18px; color: var(--slate-2); margin: 16px 0 26px; }
.info-card .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 700; color: var(--slate-2); }
.info-card .meta span::before { content: "✓"; color: var(--teal); margin-right: 6px; font-weight: 800; }
.hero.inner .bg { height: 440px; }
.hero.inner .card-wrap { margin-top: -220px; }
.hero.inner .info-card { padding: 38px 42px 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes lift { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* Trust strip (stats) */
.stats { padding: 56px 0 10px; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats .wrap > div { background: var(--soft); border-radius: var(--radius); padding: 24px 22px; border: 1px solid var(--line); }
.stats b { display: block; font-size: 36px; font-weight: 800; color: var(--teal); line-height: 1; letter-spacing: -0.02em; }
.stats span { display: block; font-size: 14px; color: var(--muted); font-weight: 700; margin-top: 8px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 26px 24px 0; font-size: 14.5px; font-weight: 700; color: var(--slate-2); }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8.2 13.6 4.9 10.3l1.2-1.2 2.1 2.1 5.7-5.7 1.2 1.2z'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Sections */
.block { padding: 96px 0; }
.block.soft { background: var(--soft); }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
h2.title { font-size: clamp(30px, 3.6vw, 44px); max-width: 760px; }
.sub { font-size: 18px; color: var(--muted); max-width: 680px; margin-top: 14px; }
.center { text-align: center; }
.center h2.title, .center .sub { margin-left: auto; margin-right: auto; }

/* Two-column icon list */
.icon-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; margin-top: 46px; }
.icon-list .card { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 24px; border-radius: var(--radius); border: 1px solid transparent; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s; }
.icon-list .card:hover { border-color: var(--line); background: #fff; box-shadow: 0 16px 36px rgba(15,23,42,0.07); }
.icon { width: 58px; height: 58px; border-radius: 14px; background: var(--teal-lt); color: var(--teal); display: grid; place-items: center; transition: background 0.25s, color 0.25s; }
.icon svg { width: 28px; height: 28px; }
.icon-list .card:hover .icon { background: var(--teal); color: #fff; }
.icon-list h3 { font-size: 20px; margin-bottom: 6px; }
.icon-list p { color: var(--muted); }
.icon-list.detail .card { background: #fff; border-color: var(--line); }
.icon-list.detail p + p { margin-top: 10px; }
.link-more { display: inline-flex; gap: 6px; margin-top: 34px; font-weight: 800; color: var(--teal); }
.link-more:hover { color: var(--teal-dk); }

/* Split prose + image */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.split.top { align-items: start; }
.prose p { margin-bottom: 18px; }
.prose strong { color: var(--slate); }
.prose a { color: var(--teal); font-weight: 800; }
.side-img { border-radius: 20px; overflow: hidden; box-shadow: 0 26px 60px rgba(15,23,42,0.15); }
.side-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform 0.25s, box-shadow 0.25s; }
.block.soft .feature { border-color: transparent; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,0.08); }
.feature .num { width: 42px; height: 42px; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--muted); }

/* Reviews */
.review-band { background: linear-gradient(180deg, var(--soft), #fff); padding: 96px 0; }
.review-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.score { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; }
.score b { font-size: 44px; font-weight: 800; color: var(--slate); line-height: 1; }
.score .stars { color: #f59e0b; font-size: 18px; letter-spacing: 2px; }
.score small { display: block; color: var(--muted); font-weight: 700; font-size: 13.5px; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 40px 0 34px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.quote .stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 12px; }
.quote p { font-size: 18px; color: var(--slate); font-weight: 600; line-height: 1.55; }
.quote cite { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-style: normal; font-weight: 700; color: var(--muted); font-size: 14.5px; }
.quote cite::before { content: ""; width: 26px; height: 2px; background: var(--teal); }

/* FAQ */
.faq { max-width: 860px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: box-shadow 0.25s, border-color 0.25s; }
.faq details[open] { border-color: rgba(15,118,110,0.4); box-shadow: 0 12px 28px rgba(15,23,42,0.06); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 800; color: var(--slate); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* Panels / contact */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h3 { font-size: 19px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.panel .big { display: block; font-size: 26px; font-weight: 800; color: var(--teal); margin-bottom: 6px; }
.panel p { color: var(--muted); }
.hours-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.hours-row:last-child { border-bottom: 0; }
.hours-row b { color: var(--slate); }
.map-embed { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; border-radius: var(--radius); }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: "✓"; color: var(--teal); font-weight: 800; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.ph:hover img { transform: scale(1.05); }
.caption { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--teal-dk), var(--teal) 60%, #0d9488); color: #fff; text-align: center; padding: 84px 24px; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin-bottom: 12px; }
.cta-band p { color: #ccfbf1; max-width: 600px; margin: 0 auto 28px; font-size: 18px; }

/* Footer */
footer.site { background: var(--slate); color: #94a3b8; padding: 64px 0 0; font-size: 15px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
footer.site h4 { color: #fff; font-size: 17px; margin-bottom: 12px; }
footer.site a { display: block; color: #e2e8f0; margin-bottom: 6px; }
footer.site a:hover { color: #5eead4; }
.footnote { border-top: 1px solid #1e293b; padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.footnote .credit { display: inline; margin: 0; color: #5eead4; font-weight: 700; }

/* Reveal (app.js) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Call bar (app.js) */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(15,23,42,0.95); backdrop-filter: blur(8px); }
.callbar a { flex: 1; text-align: center; font-weight: 800; padding: 13px 10px; border-radius: 11px; font-size: 16px; }
.callbar .cb-call { background: var(--teal); color: #fff; }
.callbar .cb-dir { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25); }

@media (max-width: 1040px) {
  .hero .card-wrap { grid-template-columns: 1fr; }
  .mini-card { display: none; }
  .header-pill { position: absolute; top: 100%; left: 0; right: 0; justify-content: center; border-radius: 0; margin-top: 1px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .grid3, .quotes { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .side-img img { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  nav.main { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 18px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(15,23,42,0.08); z-index: 3; }
  nav.main.open { display: flex; }
  nav.main a { padding: 13px 12px; font-size: 17px; }
  .menu-toggle { display: block; }
  header.site .call-btn { display: none; }
  .icon-list, .grid2 { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; gap: 28px; }
  .hero .bg { height: 340px; }
  .hero .card-wrap { margin-top: -90px; }
  .hero.inner .bg { height: 260px; }
  .hero.inner .card-wrap { margin-top: -70px; }
  .info-card, .hero.inner .info-card { padding: 30px 24px 28px; }
}
@media (max-width: 760px) {
  .callbar { display: flex; }
  body.has-callbar { padding-bottom: 72px; }
  .block, .review-band { padding: 66px 0; }
  .topbar .hide-sm { display: none; }
  .topbar .wrap { justify-content: center; }
  .stats b { font-size: 30px; }
  .icon-list .card { padding: 18px 0; grid-template-columns: 50px 1fr; }
  .icon-list.detail .card { padding: 20px; }
  .icon { width: 50px; height: 50px; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .logo { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
