/* Modern Auto Solutions — single-page site styles */
:root {
  --bg: #16181b;
  --bg-alt: #1d2024;
  --surface: #24282d;
  --surface-2: #2c3137;
  --border: #363c43;
  --text: #f1f3f5;
  --muted: #b4bcc5;
  --accent: #0094ff;        /* brand blue, sampled from the logo vector */
  --accent-strong: #33a9ff; /* hover */
  --accent-ink: #0b0d10;    /* text on accent: 6.2:1 on #0094ff */
  --accent-text: #4db3ff;   /* accent-colored text on dark surfaces: >= 6.5:1 */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --container: 1240px;
  --header-h: 68px;
  --mobile-bar-h: 72px;
  font-size: 16px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: #80c8ff; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.3em;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: #5a626b; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-sm { min-height: 42px; padding: .55em 1.05em; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: .9em 1.5em; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 24, 27, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand { flex: 0 1 auto; min-width: 0; }
.brand-logo { display: block; height: 34px; width: auto; max-width: 100%; }
.nav { display: none; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.header-cta { display: none; gap: 10px; }

/* Hero */
.hero {
  position: relative;
  padding: 44px 0 56px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(0, 148, 255, .14), transparent 60%),
    linear-gradient(180deg, #1b1e22 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { display: grid; gap: 36px; align-items: center; }
.eyebrow {
  color: var(--accent-text); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .8rem; margin-bottom: .75em;
}
.lede { color: var(--muted); font-size: 1.12rem; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-actions .btn { flex: 1 1 200px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points li {
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px; font-size: .9rem; color: var(--text);
}

/* Photo placeholders */
.photo-placeholder {
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  border: 2px dashed #4a525b;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px),
    var(--surface);
  color: var(--muted); font-weight: 600; font-size: .95rem; padding: 16px;
}
.photo-placeholder span::before {
  content: ""; display: block; width: 40px; height: 32px; margin: 0 auto 10px;
  border: 2px solid currentColor; border-radius: 6px; opacity: .7;
  background: radial-gradient(circle at 50% 55%, currentColor 0 5px, transparent 6px);
}
.photo { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); aspect-ratio: 4 / 5; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-hero { box-shadow: var(--shadow); }
.hero-media .photo-hero { max-width: 460px; margin-inline: auto; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-intro { color: var(--muted); max-width: 42em; font-size: 1.05rem; }

/* Service cards */
.cards { display: grid; gap: 16px; margin-top: 28px; }
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card p { color: var(--muted); margin-bottom: .75em; }
.card p:last-child { margin-bottom: 0; }
.card-featured {
  background: linear-gradient(180deg, rgba(0,148,255,.08), rgba(0,148,255,0) 60%), var(--surface);
  border-color: rgba(0, 148, 255, .45);
}
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px;
  border-radius: 12px; background: rgba(0, 148, 255, .12); color: var(--accent);
}
.tag {
  position: absolute; top: 20px; right: 20px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 999px;
}
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .45em;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* Why */
.why-grid { display: grid; gap: 16px; margin-top: 28px; }
.why-item { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.why-item p { color: var(--muted); margin: 0; }
.why-num { display: block; color: var(--accent-text); font-weight: 800; font-size: .9rem; letter-spacing: .1em; margin-bottom: 8px; }
.gallery { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: 1fr; }

/* Visit */
.visit-grid { display: grid; gap: 20px; margin-top: 28px; }
.visit-info { display: grid; gap: 16px; }
.info-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.info-block h3 { color: var(--accent-text); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
address { font-style: normal; font-size: 1.1rem; margin-bottom: 18px; }
.hours { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { text-align: left; font-weight: 600; }
.hours td { text-align: right; color: var(--muted); }
.hours .closed td { color: #ff9b8a; font-weight: 600; }
.map-wrap {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface); min-height: 320px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* Contact */
.contact-panel {
  display: grid; gap: 24px;
  background: linear-gradient(135deg, rgba(0,148,255,.10), rgba(0,148,255,0) 55%), var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px;
}
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li {
  display: grid; gap: 2px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.contact-label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.contact-list a { font-weight: 700; font-size: 1.05rem; overflow-wrap: break-word; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* Footer */
.site-footer { padding: 44px 0 20px; color: var(--muted); font-size: .95rem; }
.footer-inner { display: grid; gap: 20px; }
.footer-inner p { margin: 0 0 .5em; }
.footer-brand { margin-bottom: 12px !important; }
.footer-brand img { display: block; height: 40px; width: auto; max-width: 100%; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent-text); }
.footer-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); font-size: .85rem; }
.footer-legal p { margin: 0; }

/* Sticky mobile call/text bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(22, 24, 27, .96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .35);
}
.mobile-bar .btn { width: 100%; }
.mobile-bar .btn-ghost { background: var(--surface-2); }

/* ---------- Breakpoints ---------- */
@media (min-width: 560px) {
  .cards, .why-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 700px) {
  .header-cta { display: flex; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .hero { padding: 80px 0 88px; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .section { padding: 88px 0; }
  .cards { grid-template-columns: repeat(6, 1fr); }
  .cards .card { grid-column: span 2; }
  .cards .card-featured { grid-column: span 3; }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .visit-grid { grid-template-columns: 1fr 1.25fr; }
  .map-wrap, .map-wrap iframe { min-height: 440px; }
  .contact-panel { grid-template-columns: 1fr 1fr; align-items: center; padding: 44px; }
}

@media (min-width: 1200px) {
  .nav { display: flex; gap: 20px; }
  .nav a { font-size: .9rem; }
}

/* Header actions + language switch (always visible) */
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.lang-switch {
  display: inline-flex; align-items: center; flex: none;
  border: 1px solid #5a626b; border-radius: 999px; padding: 3px;
  font-size: .85rem; font-weight: 800; letter-spacing: .06em;
}
.lang-switch a, .lang-switch .lang-current {
  display: grid; place-items: center; min-width: 40px; min-height: 36px; padding: 0 10px;
  border-radius: 999px; text-decoration: none; line-height: 1;
}
.lang-switch .lang-current { background: var(--accent); color: var(--accent-ink); }
.lang-switch a { color: var(--text); }
.lang-switch a:hover { color: var(--accent-text); background: var(--surface-2); }
@media (max-width: 360px) {
  .brand-logo { height: 28px; }
  .lang-switch a, .lang-switch .lang-current { min-width: 36px; padding: 0 8px; }
}
@media (min-width: 700px) { .brand-logo { height: 38px; } }

/* Gallery: square crops on small phones keep the page shorter */
@media (max-width: 559px) {
  .gallery .photo { aspect-ratio: 1 / 1; }
}
