/* S&A Apex Auto: styles
   Palette: black, gold, silver, electric blue */
:root {
  --black: #0b0c0f;
  --ink: #121418;
  --panel: #171a20;
  --line: #2a2e36;
  --silver: #c3c7ce;
  --silver-dk: #8d929b;
  --white: #f4f5f7;
  --gold: #d9b44a;
  --gold-lt: #f0d27a;
  --gold-dk: #b8922c;
  --blue: #2fb4ff;
  --blue-dk: #138fe0;
  --radius: 6px;
  --wrap: 1180px;
  --nav-h: 70px;
  --head: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--silver);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--white);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(3.2rem, 9vw, 6.8rem); font-weight: 800; }
h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h3 { font-size: 1.5rem; letter-spacing: .02em; }
p { margin: 0 0 1em; }
.gold { color: var(--gold); }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--black); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--head); font-weight: 700; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: .85rem 1.5rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: linear-gradient(180deg, var(--gold-lt), var(--gold) 55%, var(--gold-dk)); color: var(--black); }
.btn--gold:hover { background: var(--gold-lt); }
.btn--blue { background: var(--blue); color: var(--black); }
.btn--blue:hover { background: #6cc9ff; }
.btn--ghost { border-color: var(--silver); color: var(--white); background: rgba(11,12,15,.35); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--sm { padding: .55rem 1rem; font-size: 1rem; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  background: rgba(11,12,15,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--gold); }
.brand__mark { width: 36px; height: 36px; }
.brand__text { font-family: var(--head); font-size: 1.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--silver); }
.brand__text strong { color: var(--white); font-weight: 800; }
.nav__menu { display: flex; align-items: center; gap: 1.8rem; }
.nav__menu a:not(.btn) {
  font-weight: 600; font-size: .92rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--silver);
}
.nav__menu a:not(.btn):hover { color: var(--blue); }
.nav__toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: transform .25s, opacity .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 3rem) 0 4rem; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) brightness(.75) contrast(1.05); }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,12,15,.96) 0%, rgba(11,12,15,.82) 45%, rgba(11,12,15,.45) 100%),
    linear-gradient(0deg, var(--black) 0%, transparent 35%);
}
.hero__shade::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue) 60%, transparent);
}
.hero__content { position: relative; max-width: var(--wrap); }
.hero h1 { margin-bottom: .3em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 36rem; color: var(--white); opacity: .9; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__addr { margin-top: 1.6rem; font-size: .95rem; color: var(--silver-dk); }

/* Sections */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section__head { margin-bottom: 2.6rem; }
.services { background: var(--ink); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.svc {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem; position: relative; overflow: hidden; transition: border-color .25s, transform .25s;
}
.svc::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-dk)); }
.svc:hover { border-color: var(--blue); transform: translateY(-3px); }
.svc__icon {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.3rem;
  border: 1.5px solid var(--silver-dk); background: radial-gradient(circle at 35% 30%, #2a2f38, #12141a);
}
.svc__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc p { margin: 0; font-size: .96rem; }
.callout {
  margin-top: 2.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
  padding: 1.5rem 1.8rem; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--radius); background: var(--panel);
}
.callout p { margin: 0; font-size: 1.05rem; color: var(--white); }
.callout strong { color: var(--gold); }

/* Contact */
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.ccard {
  display: flex; flex-direction: column; gap: .25rem; text-decoration: none;
  padding: 1.8rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink);
  transition: border-color .25s, background .25s;
}
.ccard:hover { border-color: var(--gold); background: var(--panel); }
.ccard__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(47,180,255,.12); margin-bottom: .8rem; }
.ccard__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ccard__k { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--silver-dk); }
.ccard__v { font-family: var(--head); font-size: 1.9rem; font-weight: 700; color: var(--white); letter-spacing: .03em; line-height: 1.15; overflow-wrap: anywhere; }
.ccard__v--sm { font-size: 1.3rem; }
.ccard__cta { margin-top: .6rem; font-size: .85rem; font-weight: 600; color: var(--gold); }

/* Location */
.location { background: var(--ink); }
.location__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: center; }
address { font-style: normal; font-size: 1.15rem; line-height: 1.7; color: var(--white); margin-bottom: 1.8rem; }
address strong { color: var(--gold); }
.location__btns { display: flex; flex-wrap: wrap; gap: .8rem; }
.location__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--panel); }
.location__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.3); }

/* Footer */
.footer { background: var(--black); border-top: 1px solid var(--line); padding: 3rem 0 1.5rem; font-size: .95rem; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer__tag { margin-top: .9rem; color: var(--silver-dk); max-width: 22rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer a { text-decoration: none; }
.footer__list a:hover { color: var(--blue); }
.footer__addr { margin: 0; color: var(--silver-dk); }
.footer__legal { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--silver-dk); }

/* Mobile quick bar */
.quickbar { display: none; }

@media (max-width: 1000px) {
  .services__grid, .contact__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.25rem;
    background: var(--black); transform: translateX(100%); transition: transform .3s; visibility: hidden;
  }
  .nav__menu.is-open { transform: none; visibility: visible; }
  .nav__menu a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__menu .btn { margin-top: 1.4rem; padding: 1rem; }
  .location__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }

  .quickbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(11,12,15,.96); border-top: 1px solid var(--gold-dk);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .quickbar a {
    display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .6rem .25rem;
    font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--white);
  }
  .quickbar a + a { border-left: 1px solid var(--line); }
  .quickbar svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .quickbar a:last-child svg { stroke: var(--blue); }
  body { padding-bottom: 64px; }
}
@media (max-width: 560px) {
  .services__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 3.5rem); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .brand__text { font-size: 1.35rem; }
  .callout { flex-direction: column; align-items: flex-start; }
}
