/* Wayne's Auto Sales: shared styles
   Colors and type follow the Wayne's Auto Sales brand guide v1.0 */

:root {
  --navy: #355070;
  --navy-dark: #1f2f46;
  --gold: #b76e3a;
  --light: #faf6f0;
  --gray: #333333;
  --aluminum: #bfc5c9;
  --danger: #8a2432;
  --danger-bg: #fbeceb;
  --white: #ffffff;
  --radius: 6px;
  --max-width: 1100px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-headline: "Merriweather", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray);
  background: var(--white);
  line-height: 1.55;
}

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

.top-bar {
  background: var(--navy-dark);
  color: var(--light);
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  gap: 8px;
}

.top-bar a {
  color: var(--light);
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
}

header.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand .emblem {
  display: inline-block;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

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

.brand .name {
  font-family: var(--font-headline);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.brand .tagline {
  font-size: 12px;
  color: var(--gray);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--gold);
}

nav.main-nav a.warn-link {
  color: var(--danger);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
}

.hero {
  background: radial-gradient(circle at 12% 15%, rgba(176, 141, 87, 0.18), transparent 42%), linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 64px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 16px;
  color: var(--white);
}

.hero p.lede {
  font-size: 18px;
  color: #dfe4ec;
  margin: 0 0 28px;
}

.hero-quickfacts {
  background: var(--white);
  color: #222222;
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: 0 16px 34px rgba(9, 17, 31, 0.35);
}

.hero-quickfacts h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold);
  margin: 0 0 14px;
}

.hero-quickfacts .info-list li {
  padding: 8px 0;
}

.hero-quickfacts .info-list .label {
  min-width: 70px;
  font-size: 13px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 6px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid #e3e1da;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.badge::before {
  content: "\2713";
  color: var(--gold);
  font-weight: 700;
}

.trust-banner {
  background: var(--light);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.trust-banner p {
  margin: 0;
}

.trust-banner strong {
  color: var(--navy);
}

.vehicle-placeholder {
  background: var(--white);
  border: 1px solid #e3e1da;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  color: var(--gray);
}

.vehicle-placeholder .icon {
  display: inline-flex;
  color: var(--gold);
  margin-bottom: 12px;
}

.vehicle-placeholder h3 {
  margin: 0 0 8px;
}

.vehicle-placeholder p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-quickfacts {
    order: -1;
  }
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  border: 2px solid transparent;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-gold:hover {
  background: #c7a06c;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-dark);
}

section {
  padding: 56px 0;
}

section.alt {
  background: var(--light);
}

h1, h2, h3 {
  color: var(--navy);
  font-weight: 700;
  font-family: var(--font-headline);
}

h2.section-title {
  font-size: 28px;
  margin: 0 0 12px;
}

p.section-lede {
  color: var(--gray);
  max-width: 720px;
  margin: 0 0 32px;
}

.fraud-callout {
  background: var(--danger-bg);
  border: 1px solid #e6c3c0;
  border-left: 6px solid var(--danger);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.fraud-callout h2 {
  color: var(--danger);
  margin-top: 0;
  font-size: 22px;
}

.fraud-callout p {
  margin: 0 0 12px;
}

.fraud-callout p:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid #e3e1da;
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin-top: 0;
  font-size: 19px;
}

.photo-placeholder {
  background: #dfe2e8;
  border: 2px dashed #a9b0bd;
  border-radius: var(--radius);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a6472;
  font-size: 14px;
  text-align: center;
  padding: 16px;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e3e1da;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list .label {
  font-weight: 700;
  color: var(--navy);
  min-width: 90px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

form.contact-form label {
  display: block;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--navy);
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c9c7c0;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
}

form.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

form.contact-form button {
  margin-top: 20px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}

.map-embed {
  border: 0;
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius);
}

#featured-vehicles .grid {
  margin-top: 20px;
}

.vehicle-card img {
  border-radius: var(--radius) var(--radius) 0 0;
}

.vehicle-card .vehicle-body {
  padding: 16px;
  border: 1px solid #e3e1da;
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.coming-soon-note {
  color: var(--gray);
  font-style: italic;
}

footer.site-footer {
  background: var(--navy-dark);
  color: #cfd6e2;
  padding: 40px 0 24px;
  margin-top: 40px;
}

footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 24px;
}

footer.site-footer h3 {
  color: var(--white);
  font-size: 16px;
  margin: 0 0 12px;
}

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

footer.site-footer .fine-print {
  border-top: 1px solid #33455f;
  padding-top: 18px;
  font-size: 13px;
  color: #a6afc0;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  nav.main-nav {
    display: none;
    width: 100%;
  }

  nav.main-nav.open {
    display: block;
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding-bottom: 16px;
  }

  nav.main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #e3e1da;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }
}
