/* Auto City Motors FL — palette and stripe taken from the logo and showroom walls */
:root {
  --blue: #0b4cc7;
  --navy: #0a1f4f;
  --red: #c5162e;
  --white: #ffffff;
  --floor: #eef1f4;
  --ink: #121826;
  --muted: #55607a;
  --display: "Kanit", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy);
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
p { margin: 0; }
a { color: var(--blue); }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--white); padding: .6rem 1rem; z-index: 50;
}
.skip:focus { left: .5rem; top: .5rem; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .55rem var(--pad);
  background: var(--white);
  border-bottom: 1px solid #dfe4ec;
}
.brand img { width: auto; height: 3.7rem; }
.top nav { display: flex; gap: 1.6rem; margin-left: auto; }
.top nav a {
  color: var(--navy); text-decoration: none; font-weight: 600;
  padding: .4rem 0; border-bottom: 3px solid transparent;
}
.top nav a:hover { border-bottom-color: var(--red); }
.top-call {
  font-family: var(--display); font-style: italic; font-weight: 700;
  font-size: 1.15rem; color: var(--blue); text-decoration: none; white-space: nowrap;
}
.top-call:hover { color: var(--navy); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: .85rem 1.4rem; border: 2px solid transparent;
  transform: skewX(-9deg);
}
.btn-solid { background: var(--blue); color: var(--white); }
.btn-solid:hover { background: var(--navy); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--floor); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: .9rem 1rem; padding-left: .35rem; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: stretch;
  background: var(--white);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  gap: 1.6rem;
  padding: clamp(2.5rem, 7vw, 6rem) var(--pad);
  padding-left: max(var(--pad), calc((100vw - 72rem) / 2 + var(--pad)));
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); text-transform: uppercase; color: var(--blue); }
.lede {
  font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; color: var(--navy);
}
.hero-where { color: var(--muted); font-size: 1rem; max-width: 34ch; }
.hero-photo { margin: 0; position: relative; max-height: 46rem; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-photo figcaption {
  position: absolute; left: 0; bottom: 0;
  background: var(--white); color: var(--muted);
  font-size: .85rem; padding: .35rem .8rem;
}

/* The showroom wall stripe */
.stripe {
  height: 2.6rem;
  background: linear-gradient(
    to bottom,
    var(--red) 0 42%,
    var(--white) 42% 58%,
    var(--blue) 58% 100%
  );
}

/* Sections */
.block { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.lot { background: var(--floor); }

.cars { list-style: none; margin: 2.2rem 0 0; padding: 0; border-top: 3px solid var(--navy); }
.cars li {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  align-items: baseline; gap: .3rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid #c9d0dc;
}
.car-name { font-size: clamp(1.2rem, 2.6vw, 1.75rem); font-weight: 600; color: var(--navy); }
.yr { color: var(--red); font-variant-numeric: tabular-nums; margin-right: .35em; }
.car-facts { color: var(--muted); }
.car-price {
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--blue);
  line-height: 1; font-variant-numeric: tabular-nums; text-align: right;
}
.lot-note { margin-top: 1.8rem; color: var(--muted); max-width: 60ch; }
.lot-note a { font-weight: 600; }

.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: start;
}
.about p { margin-top: 1.4rem; max-width: 52ch; font-size: 1.15rem; }
.promises { list-style: none; margin: .4rem 0 0; padding: 0; }
.promises li {
  font-family: var(--display); font-style: italic; font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.15; color: var(--navy);
  padding: .95rem 0 .95rem 1.9rem;
  border-left: .5rem solid var(--blue);
  box-shadow: inset .28rem 0 0 var(--white), inset .78rem 0 0 var(--red);
}
.promises li + li { margin-top: .7rem; }

/* Visit */
.visit { background: var(--navy); color: var(--white); }
.visit-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
  padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem);
}
.visit-photo { margin: 0; }
.visit-photo img { width: 100%; }
.visit h2 { color: var(--white); }
.visit address { font-style: normal; font-size: 1.35rem; font-weight: 500; margin-top: 1.4rem; line-height: 1.35; }
.hours { margin: 1.6rem 0 2rem; max-width: 24rem; }
.hours div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.22);
}
.hours dt { color: #c3cde4; }
.hours dd { margin: 0; font-weight: 600; }
.visit-mail { margin-top: 1.5rem; }
.visit-mail a { color: #c3cde4; }

.foot { background: var(--white); color: var(--muted); padding: 1.6rem var(--pad); font-size: .92rem; text-align: center; }

.dock { display: none; }

@media (max-width: 820px) {
  .top nav { display: none; }
  .top-call { margin-left: auto; }
  .brand img { height: 2.8rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 2.4rem; padding-bottom: 2.4rem; gap: 1.2rem; }
  .hero-photo { max-height: 26rem; }
  .cars li { grid-template-columns: minmax(0, 1fr) auto; }
  .car-facts { grid-column: 1; grid-row: 2; }
  .car-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .stripe { height: 2rem; }
  body { padding-bottom: 3.6rem; }
  .dock {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--navy); border-top: 4px solid var(--red);
  }
  .dock a {
    color: var(--white); text-decoration: none; text-align: center;
    font-weight: 600; padding: .95rem .5rem;
  }
  .dock a + a { border-left: 1px solid rgba(255,255,255,.2); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
