/* ================================================================
   Tony's Cars — Tyler, TX
   Palette from the actual lot sign: white field, near-black type,
   signal red accents.
   ================================================================ */

:root {
  --red: #c8102e;
  --red-dark: #a30d25;
  --ink: #16151a;
  --ink-soft: #43414a;
  --paper: #ffffff;
  --paper-warm: #f7f5f1;
  --line: #e3e0da;
  --font-display: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 2px 14px rgba(22, 21, 26, 0.08);
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* keep in-page anchor targets clear of the sticky header */
section[id], main[id] { scroll-margin-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--red); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.icon { width: 1.1em; height: 1.1em; vertical-align: -0.18em; }

/* ---------------- Logo ---------------- */

.logo-link { display: inline-flex; align-items: center; }

.logo-img {
  height: 52px;
  width: auto;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.7rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--red);
}

.site-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--red); }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  transition: transform 0.1s ease, background 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: #fff; }

.btn-call {
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  white-space: nowrap;
}
.btn-call:hover { background: var(--red); }

.btn-small { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

/* ---------------- Hero ---------------- */

.hero {
  background:
    linear-gradient(160deg, var(--paper) 55%, var(--paper-warm) 55.2%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.hero-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.85rem;
  color: var(--red);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.hero h1 .accent { color: var(--red); }

.hero-sub {
  max-width: 620px;
  margin: 1.4rem auto 2rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------- Trust strip ---------------- */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  gap: 1rem;
}

.trust-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.trust-item span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------------- Sections ---------------- */

.section {
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem);
  max-width: 1150px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.6rem;
}

.section-head h2, .about-text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.section-head h2::after, .about-text h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--red);
  margin: 0.7rem auto 0;
}

.about-text h2::after { margin-left: 0; }

.section-head p { color: var(--ink-soft); }

.section-dark {
  background: var(--ink);
  color: #f2f1ee;
  max-width: none;
}

.section-dark .section-head { color: #fff; }
.section-dark .section-head p { color: #c9c6d0; }

.section-tinted {
  background: var(--paper-warm);
  max-width: none;
}

/* ---------------- Inventory ---------------- */

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
}

.car-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.sample-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--ink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  opacity: 0.85;
}

.car-photo img, .car-photo svg {
  width: 100%;
  aspect-ratio: 240 / 130;
  object-fit: cover;
}

.car-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.car-body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.car-meta {
  color: var(--red);
  font-weight: 700;
}

.car-blurb {
  font-size: 0.92rem;
  color: var(--ink-soft);
  flex: 1;
}

.car-body .btn { align-self: flex-start; margin-top: 0.4rem; }

.inventory-note {
  text-align: center;
  margin-top: 2.2rem;
  color: var(--ink-soft);
  font-style: italic;
}

.coming-soon {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--paper);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
}

.coming-soon h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.coming-soon h3::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--red);
  margin: 0.6rem auto 0;
}

.coming-soon p {
  max-width: 46ch;
  margin: 0.9rem auto 1.4rem;
  color: var(--ink-soft);
}

/* ---------------- Financing ---------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1050px;
  margin: 0 auto;
}

.feature {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}

.feature h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: #fff;
}

.feature h3::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: var(--red);
  margin-bottom: 0.7rem;
}

.feature p { color: #d8d6de; font-size: 0.97rem; }

.fine-print {
  text-align: center;
  margin: 2.4rem auto 0;
  max-width: 700px;
  font-size: 0.8rem;
  color: #a09da9;
}

/* ---------------- Reviews ---------------- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.review {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}

.review p {
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.review footer {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------------- About ---------------- */

.about-wrap {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.about-text p:first-of-type { margin-top: 1.4rem; }

.about-facts {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
}

.about-facts h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.about-facts ul { list-style: none; }

.about-facts li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.about-facts li:last-child { border-bottom: none; }
.about-facts li strong { color: var(--ink); }

/* ---------------- Visit ---------------- */

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}

.visit-block { margin-bottom: 1.8rem; }

.visit-block h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 0.4rem;
}

.visit-block .btn { margin-top: 0.7rem; }

.phone-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--ink);
  text-decoration: none;
}

.phone-big:hover { color: var(--red); }

.hours { border-collapse: collapse; }

.hours th, .hours td {
  text-align: left;
  padding: 0.35rem 0;
  font-weight: 400;
}

.hours th { padding-right: 2rem; font-weight: 600; }

.visit-map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--ink);
  color: #c9c6d0;
  text-align: center;
  padding: 3rem 1.5rem 6rem;
  font-size: 0.9rem;
}

.footer-logo {
  display: inline-block;
  background: #fff;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  margin-bottom: 1.2rem;
}

.footer-logo img {
  height: 56px;
  width: auto;
  display: block;
}

.site-footer a { color: #fff; }

.footer-legal {
  font-size: 0.75rem;
  color: #8d8a97;
  margin-top: 0.6rem;
}

/* ---------------- Mobile call bar ---------------- */

.mobile-call-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--red);
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 0.95rem 1rem;
  text-decoration: none;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; max-width: 560px; }
  .about-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .visit-grid { grid-template-columns: 1fr; }
  .visit-map iframe { height: 300px; }
}

@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; gap: 0.6rem 1rem; padding-bottom: 0.55rem; }
  .header-call { margin-left: auto; }
  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 1.1rem;
    justify-content: center;
  }
  .site-nav a { font-size: 0.88rem; }
  .mobile-call-bar { display: block; }
  .hero-ctas .btn { width: 100%; }
  section[id], main[id] { scroll-margin-top: 110px; }
}
