/*
Theme Name: Atlanta Classic Motors
Theme URI: https://example.com/
Author: OpenAI Codex
Description: Custom WordPress theme for the Atlanta Classic Motors frontend.
Version: 1.0.0
Text Domain: acm-theme
*/

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-alt: #121212;
  --surface-soft: #f0f0f2;
  --text: #111111;
  --muted: #666666;
  --line: #e6e6e8;
  --accent: #b91c1c;
  --accent-dark: #991b1b;
  --max-width: 1200px;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

iframe {
  width: 100%;
  border: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow-container {
  width: min(860px, 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .current_page_parent > a {
  color: var(--text);
}

.site-main {
  min-height: 60vh;
}

.hero-section,
.page-hero,
.vehicle-hero {
  position: relative;
  overflow: hidden;
}

.hero-section {
  min-height: 85vh;
  background: #000;
}

.hero-media,
.page-hero-media,
.vehicle-hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.page-hero-media img,
.vehicle-hero-media img {
  height: 100%;
  object-fit: cover;
}

.hero-overlay,
.vehicle-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.82));
}

.hero-content,
.vehicle-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 7rem;
  padding-bottom: 5rem;
  color: #fff;
}

.hero-content h1,
.page-hero h1,
.vehicle-hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 8vw, 6rem);
}

.hero-content p,
.page-hero p,
.vehicle-hero p {
  max-width: 42rem;
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
}

.page-hero {
  padding: 6rem 0 4rem;
  background: #0a0a0a;
  color: #fff;
}

.page-hero-light {
  background: var(--surface-soft);
  color: var(--text);
}

.page-hero-light p {
  color: var(--muted);
}

.page-hero-dark {
  background: #0a0a0a;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.eyebrow-accent {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  transition: 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.button-light {
  background: #fff;
  color: #111;
}

.button-block {
  width: 100%;
}

.section {
  padding: 5rem 0;
}

.section-muted {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  background: #0a0a0a;
  color: #fff;
}

.info-grid,
.inventory-grid,
.showroom-grid,
.contact-grid,
.vehicle-detail-grid,
.footer-grid,
.stats-grid {
  display: grid;
  gap: 1.5rem;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.line {
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
}

.info-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.info-card p {
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.section-heading p {
  max-width: 24rem;
  color: var(--muted);
}

.inventory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vehicle-card,
.content-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.vehicle-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd;
}

.vehicle-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.vehicle-card:hover .vehicle-image img {
  transform: scale(1.05);
}

.vehicle-body,
.content-card {
  padding: 1.5rem;
}

.vehicle-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.vehicle-head h2,
.vehicle-head h3 {
  font-size: 1.2rem;
}

.price,
.vehicle-price {
  color: var(--accent);
  font-weight: 700;
}

.vehicle-meta {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.spec-grid,
.detail-list {
  display: grid;
  gap: 0.85rem;
}

.spec-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.spec-grid dt,
.detail-list dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-grid dd,
.detail-list dd {
  margin: 0.3rem 0 0;
  font-weight: 600;
}

.showroom-grid,
.vehicle-detail-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.showroom-image {
  overflow: hidden;
  border-radius: var(--radius);
}

.showroom-image img {
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.showroom-copy p {
  margin: 1.25rem 0 2rem;
  color: rgba(255, 255, 255, 0.75);
}

.vehicle-price {
  margin-bottom: 1.25rem;
  font-size: 2rem;
}

.detail-list {
  margin: 1.5rem 0;
}

.detail-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
}

.sidebar-stack {
  display: grid;
  gap: 1.25rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form span {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.notice-box {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
}

.notice-box.success {
  background: #edfdf2;
  color: #116530;
}

.notice-box.error {
  background: #fff0f0;
  color: #9f1d1d;
}

.map-wrap {
  margin-top: 2rem;
}

.map-wrap iframe {
  height: 430px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  text-align: center;
}

.stats-grid strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--accent);
}

.stats-grid span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}

.site-footer {
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 4rem 0;
}

.footer-title {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-family: "Poppins", system-ui, sans-serif;
  color: #fff;
}

.site-footer h4 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0 1.5rem;
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .info-grid,
  .inventory-grid,
  .showroom-grid,
  .contact-grid,
  .vehicle-detail-grid,
  .footer-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .utility-wrap,
  .nav-wrap,
  .vehicle-head,
  .detail-list > div {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-list {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  .hero-content,
  .vehicle-hero-content {
    padding-bottom: 3.5rem;
  }

  .info-grid,
  .inventory-grid,
  .showroom-grid,
  .contact-grid,
  .vehicle-detail-grid,
  .footer-grid,
  .stats-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .page-hero h1,
  .vehicle-hero h1 {
    font-size: 2.6rem;
  }

  .section {
    padding: 4rem 0;
  }
}
