:root {
  --black: #000;
  --border-dark: #3a3a37;
  --line: #ededea;
  --red: #cf1b1b;
  --ink: #0a0a0a;
  --green: #008805;
  --foot-text: #121212;
}

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

html, body { height: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Faded dealership background photo + white gradient wash */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #fff;
}
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/bg.png") center/cover no-repeat;
  opacity: 0.38;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #fff 8%, rgba(255, 255, 255, 0) 100%);
}

/* ---------- Header ---------- */
header {
  background: var(--black);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 92px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 500px;
  border: 1.05px solid #ddd;
  background: #fff center/86% no-repeat;
  background-image: url("images/logo.png");
  flex-shrink: 0;
}
.brand__name {
  font-family: "Century Schoolbook", "Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
  color: #fff;
  white-space: nowrap;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.icon-btn,
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 41px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.icon-btn { width: 40px; }
.icon-btn i { font-size: 15px; line-height: 1; }
.pill-btn {
  padding: 0 17px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.icon-btn:hover,
.pill-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: #666; }

/* ---------- Main ---------- */
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 24px 120px;
}

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-width: 900px;
  margin-bottom: 40px;
}
.hero p {
  font-weight: 800;
  font-size: clamp(32px, 5.5vw, 54px);
  line-height: 1.02;
  letter-spacing: -1.89px;
}
.hero .l1 { color: var(--red); }
.hero .l2 { color: var(--ink); }
.hero .l3 { color: var(--green); }

/* Embedded DriveBuy offer form */
.embed {
  width: 100%;
  max-width: 960px;
}
.embed iframe {
  width: 100%;
  height: 800px;
  border: 0;
  display: block;
}

/* ---------- Contact page ---------- */
.contact-card {
  width: 100%;
  max-width: 960px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.back-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.back-link:hover { color: #000; }
.back-link i { font-size: 13px; }

.contact-body { padding: 28px 24px; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}
.contact-title {
  font-size: 26px;
  font-weight: 800;
  color: #0a0a0a;
  margin-bottom: 18px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 15px;
}
.info-row .info-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #111827;
  min-width: 110px;
}
.info-row .info-label i { color: #111827; width: 16px; text-align: center; }
.info-row .info-value {
  margin-left: auto;
  text-align: right;
  color: #374151;
  text-decoration: none;
}
a.info-value:hover { color: #000; text-decoration: underline; }

.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 22px;
  margin-bottom: 20px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.section-head .eyebrow { margin-bottom: 0; }
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}
.map-link:hover { text-decoration: underline; }
.map-link i { font-size: 11px; }

/* Sales hours table */
.hours {
  width: 100%;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  border-collapse: collapse;
}
.hours tr:nth-child(odd) { background: #fafafa; }
.hours td {
  padding: 11px 16px;
  font-size: 14px;
  color: #374151;
}
.hours td:first-child { font-weight: 500; color: #111827; }
.hours td:last-child { text-align: right; color: #6b7280; }

/* Map */
.map-embed {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  flex-shrink: 0;
  background: rgba(221, 221, 221, 0.57);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 44px;
  color: var(--foot-text);
}
.footer__copy { font-size: 13px; }
.footer__links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__links a {
  font-size: 12px;
  color: var(--foot-text);
  text-decoration: none;
}
.footer__links a:hover { text-decoration: underline; }
.footer__links .divider {
  width: 1px;
  height: 6px;
  background: #585858;
  opacity: 0.2;
}

@media (max-width: 720px) {
  header { padding: 14px 20px; }
  main { padding: 40px 16px 150px; }
  footer { padding: 20px; }
  .brand__name { font-size: 16px; }
  .contact-columns { grid-template-columns: 1fr; }
  .info-row { flex-direction: column; gap: 2px; }
  .info-row .info-value { margin-left: 0; text-align: left; }
}
