/* ============================================================
   Demo Motors - sample dealership site
   Deliberately NOT styled like Inventiq. This should read as a
   small independent dealer's own website, so prospects see the
   assistant in a realistic setting rather than a branded mockup.
   All classes are prefixed .dl- so nothing collides with styles.css.
   ============================================================ */

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

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #1a1d23;
  background: #f5f6f8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0 0 12px; line-height: 1.15; color: #11151c; }
h1 { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 19px; font-weight: 700; }
p  { margin: 0 0 12px; color: #4b5563; }

.dl-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Demo banner ---------- */
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 10px 20px;
  background: #11151c;
  color: #e7eaf0;
  font-size: 14px;
  text-align: center;
}
.demo-banner-tag {
  background: #c8221c;
  color: #fff;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
}
.demo-banner-text strong { color: #fff; }
.demo-banner-back {
  color: #9fb4d0;
  text-decoration: underline;
  white-space: nowrap;
}
.demo-banner-back:hover { color: #fff; }

/* ---------- Header ---------- */
.dl-header {
  background: #fff;
  border-bottom: 1px solid #e3e6eb;
  position: sticky;
  top: 0;
  z-index: 50;
}
.dl-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.dl-brand { display: inline-flex; align-items: center; gap: 11px; }
.dl-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #c8221c;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dl-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.dl-brand-name { font-weight: 800; font-size: 20px; color: #11151c; }
.dl-brand-sub { font-size: 12px; color: #6b7280; letter-spacing: 0.03em; }

.dl-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
}
.dl-nav a:hover { color: #c8221c; }

/* Header call button - the most prominent thing on the page */
.dl-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #c8221c;
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(200, 34, 28, 0.28);
}
.dl-call-btn:hover { background: #a91a15; }
.dl-call-icon { font-size: 20px; line-height: 1; }
.dl-call-text { display: flex; flex-direction: column; line-height: 1.15; }
.dl-call-label { font-size: 11px; opacity: 0.9; letter-spacing: 0.04em; text-transform: uppercase; }
.dl-call-number { font-size: 17px; font-weight: 800; }

/* ---------- Buttons ---------- */
.dl-btn {
  display: inline-block;
  font-weight: 700;
  border-radius: 8px;
  padding: 13px 22px;
  font-size: 16px;
  text-align: center;
  transition: transform 0.12s, background 0.15s;
}
.dl-btn:hover { transform: translateY(-1px); }
.dl-btn-primary { background: #c8221c; color: #fff; }
.dl-btn-primary:hover { background: #a91a15; }
.dl-btn-ghost {
  background: transparent;
  color: #11151c;
  border: 1.5px solid #c9ced6;
}
.dl-btn-ghost:hover { border-color: #11151c; }
.dl-btn-card {
  width: 100%;
  padding: 10px 14px;
  font-size: 14.5px;
  background: #11151c;
  color: #fff;
}
.dl-btn-card:hover { background: #c8221c; }
.dl-btn-big {
  background: #c8221c;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  padding: 18px 38px;
  border-radius: 10px;
  letter-spacing: 0.01em;
}
.dl-btn-big:hover { background: #a91a15; }

/* ---------- Hero ---------- */
.dl-hero {
  background: linear-gradient(160deg, #11151c 0%, #1e2732 100%);
  color: #fff;
  padding: 64px 0 58px;
}
.dl-hero h1 { color: #fff; max-width: 15ch; }
.dl-hero-sub {
  color: #b9c3d1;
  font-size: 17.5px;
  max-width: 62ch;
  margin-bottom: 26px;
}
.dl-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.dl-hero .dl-btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.dl-hero .dl-btn-ghost:hover { border-color: #fff; }

.dl-hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 15px;
  color: #cfd8e3;
}
.dl-hero-points li::before {
  content: "\2713";
  color: #6fcf6f;
  font-weight: 800;
  margin-right: 8px;
}

/* ---------- Sections ---------- */
.dl-section { padding: 58px 0; }
.dl-section-alt { background: #fff; border-top: 1px solid #e8eaee; }
.dl-section-head { margin-bottom: 28px; max-width: 70ch; }
.dl-section-head p { font-size: 16.5px; }

/* ---------- Inventory grid ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.dl-card {
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}
.dl-card:hover {
  box-shadow: 0 10px 28px rgba(17, 21, 28, 0.10);
  transform: translateY(-2px);
}

/* Photo slot - 4:3 box that holds its shape while empty */
.dl-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eef0f3;
  overflow: hidden;
}
.dl-photo img { width: 100%; height: 100%; object-fit: cover; }
.dl-photo-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa3af;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background-image:
    linear-gradient(45deg, #e8ebef 25%, transparent 25%, transparent 75%, #e8ebef 75%),
    linear-gradient(45deg, #e8ebef 25%, transparent 25%, transparent 75%, #e8ebef 75%);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
}

.dl-card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.dl-card-title { font-size: 17px; margin-bottom: 4px; }
.dl-price {
  font-size: 22px;
  font-weight: 800;
  color: #c8221c;
  margin-bottom: 12px;
}

.dl-specs {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border-top: 1px solid #edeff2;
}
.dl-specs li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #edeff2;
  font-size: 14px;
}
.dl-specs span { color: #6b7280; }
.dl-specs strong { color: #11151c; font-weight: 700; }

.dl-card-body .dl-btn-card { margin-top: auto; }

/* ---------- Call strip ---------- */
.dl-callstrip {
  background: #11151c;
  color: #fff;
  text-align: center;
  padding: 58px 0;
}
.dl-callstrip h2 { color: #fff; }
.dl-callstrip p { color: #b9c3d1; font-size: 17px; max-width: 58ch; margin-left: auto; margin-right: auto; }
.dl-callstrip .dl-btn-big { margin-top: 14px; }
.dl-callstrip-note {
  margin-top: 16px;
  font-size: 14px;
  color: #8b97a8;
  font-style: italic;
}

/* Photo count badge on cards that have real photos */
.dl-photo-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(17, 21, 28, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

.dl-card-title a:hover { color: #c8221c; }

/* Secondary call button under "View details" */
.dl-btn-card-alt {
  width: 100%;
  margin-top: 8px;
  padding: 10px 14px;
  font-size: 14.5px;
  background: transparent;
  color: #11151c;
  border: 1.5px solid #c9ced6;
}
.dl-btn-card-alt:hover { border-color: #c8221c; color: #c8221c; }

/* ---------- Vehicle detail page ---------- */
.dl-vdp { padding: 30px 0 54px; }

.dl-back-link {
  display: inline-block;
  color: #6b7280;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
}
.dl-back-link:hover { color: #c8221c; }

.dl-vdp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e3e6eb;
}
.dl-vdp-title { font-size: 34px; font-weight: 800; margin-bottom: 4px; }
.dl-vdp-sub { font-size: 16px; color: #6b7280; margin: 0; }
.dl-vdp-pricebox { text-align: right; }
.dl-vdp-price { font-size: 36px; font-weight: 800; color: #c8221c; line-height: 1.1; }
.dl-vdp-pricenote { font-size: 13.5px; color: #6b7280; }

.dl-vdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

/* Gallery */
.dl-gallery { margin-bottom: 32px; }
.dl-gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eef0f3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e3e6eb;
}
.dl-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.dl-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.dl-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #eef0f3;
  aspect-ratio: 4 / 3;
}
.dl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dl-thumb.is-active { border-color: #c8221c; }
.dl-thumb:hover { border-color: #9aa3af; }

/* Write-up blocks */
.dl-vdp-block { margin-bottom: 32px; }
.dl-vdp-block h2 {
  font-size: 23px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e3e6eb;
}
.dl-vdp-block p { font-size: 16.5px; line-height: 1.65; }

.dl-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.dl-feature-group h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; color: #c8221c; margin-bottom: 10px; }
.dl-feature-group ul { list-style: none; margin: 0; padding: 0; }
.dl-feature-group li {
  font-size: 15px;
  color: #4b5563;
  padding: 6px 0 6px 20px;
  position: relative;
}
.dl-feature-group li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #6fcf6f;
  font-weight: 800;
}

/* Sticky sidebar */
.dl-vdp-side { position: sticky; top: 92px; }
.dl-vdp-card {
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 12px;
  padding: 20px;
}
.dl-spec-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.dl-spec-table tr { border-bottom: 1px solid #edeff2; }
.dl-spec-table tr:last-child { border-bottom: none; }
.dl-spec-table th,
.dl-spec-table td { padding: 9px 0; font-size: 14.5px; text-align: left; }
.dl-spec-table th { color: #6b7280; font-weight: 600; }
.dl-spec-table td { text-align: right; font-weight: 700; color: #11151c; }

.dl-vdp-callbtn { display: block; width: 100%; font-size: 16.5px; }
.dl-vdp-callnote {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: #6b7280;
  text-align: center;
}

/* ---------- Financing application ---------- */
.dl-finance-head { max-width: 62ch; margin-bottom: 28px; }
.dl-finance-head h1 { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.dl-finance-head p { font-size: 17px; }

.dl-finance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.dl-form {
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 12px;
  padding: 26px 26px 24px;
}

.dl-fieldset {
  border: none;
  border-top: 1px solid #edeff2;
  margin: 0 0 22px;
  padding: 20px 0 0;
}
.dl-fieldset:first-of-type { border-top: none; padding-top: 0; }
.dl-fieldset legend {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c8221c;
  padding: 0;
  margin-bottom: 14px;
}

.dl-field { margin-bottom: 14px; }
.dl-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}
.dl-req { color: #c8221c; }
.dl-optional { color: #9aa3af; font-weight: 500; }

.dl-field input,
.dl-field select,
.dl-field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15.5px;
  font-family: inherit;
  color: #11151c;
  background: #fbfcfd;
  border: 1.5px solid #d7dbe2;
  border-radius: 8px;
  transition: border-color 0.12s, background 0.12s;
}
.dl-field input:focus,
.dl-field select:focus,
.dl-field textarea:focus {
  outline: none;
  border-color: #c8221c;
  background: #fff;
}
.dl-field textarea { resize: vertical; }
.dl-field input.dl-invalid,
.dl-field select.dl-invalid,
.dl-field textarea.dl-invalid {
  border-color: #c8221c;
  background: #fff6f5;
}

.dl-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dl-field-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.dl-field-note {
  font-size: 12.5px;
  color: #6b7280;
  margin: 6px 0 0;
  line-height: 1.45;
}

.dl-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.dl-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: #c8221c;
}
.dl-check label {
  font-size: 14.5px;
  font-weight: 500;
  color: #374151;
  margin: 0;
  line-height: 1.45;
}
.dl-check input.dl-invalid { outline: 2px solid #c8221c; outline-offset: 2px; }

.dl-coapp { margin-top: 16px; }

.dl-consent {
  background: #f7f8fa;
  border: 1px solid #e3e6eb;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.dl-consent-note {
  font-size: 12.5px;
  color: #6b7280;
  margin: 12px 0 0;
  line-height: 1.5;
}
.dl-consent-note strong { color: #11151c; }

.dl-submit {
  width: 100%;
  font-size: 17px;
  padding: 15px 22px;
}

.dl-demo-note {
  font-size: 12.5px;
  color: #9aa3af;
  font-style: italic;
  text-align: center;
  margin: 12px 0 0;
}

/* Sidebar */
.dl-finance-side { position: sticky; top: 92px; }
.dl-side-block { margin-top: 14px; }
.dl-side-head { font-size: 16px; margin-bottom: 8px; }
.dl-side-text { font-size: 14.5px; margin-bottom: 14px; }
.dl-side-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  color: #4b5563;
}
.dl-side-steps li { padding: 4px 0; }

/* Confirmation */
.dl-form-success {
  background: #fff;
  border: 1px solid #e3e6eb;
  border-left: 4px solid #6fcf6f;
  border-radius: 12px;
  padding: 32px 30px;
  max-width: 62ch;
}
.dl-form-success h2 { margin-bottom: 10px; }
.dl-form-success p { font-size: 16.5px; }
.dl-form-success a:not(.dl-btn) { color: #c8221c; text-decoration: underline; }
.dl-form-success .dl-btn { margin-top: 12px; }

/* ---------- Fees ---------- */
.dl-fees {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 26px;
  align-items: start;
}

.dl-fee-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e3e6eb;
  border-radius: 12px;
  overflow: hidden;
}
.dl-fee-table tr { border-bottom: 1px solid #edeff2; }
.dl-fee-table tr:last-child { border-bottom: none; }
.dl-fee-table th,
.dl-fee-table td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}
.dl-fee-table th {
  font-weight: 700;
  color: #11151c;
  white-space: nowrap;
  width: 1%;
}
.dl-fee-table td { color: #4b5563; }
.dl-fee-amt {
  text-align: right !important;
  font-weight: 800;
  color: #11151c;
  white-space: nowrap;
}

.dl-fee-note {
  background: #fff;
  border: 1px solid #e3e6eb;
  border-left: 4px solid #c8221c;
  border-radius: 12px;
  padding: 22px 22px 20px;
}
.dl-fee-note h3 { margin-bottom: 12px; }
.dl-fee-note ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.dl-fee-note li {
  padding: 9px 0;
  border-bottom: 1px solid #edeff2;
  font-size: 15px;
  color: #4b5563;
}
.dl-fee-note li:last-of-type { border-bottom: none; }
.dl-fee-note strong { color: #11151c; }

/* ---------- FAQ ---------- */
.dl-faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}
.dl-faq details {
  background: #f7f8fa;
  border: 1px solid #e3e6eb;
  border-radius: 10px;
  padding: 15px 18px;
}
.dl-faq details[open] { background: #fff; border-color: #d3d8e0; }
.dl-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: #11151c;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.dl-faq summary::-webkit-details-marker { display: none; }
.dl-faq summary::after {
  content: "+";
  color: #c8221c;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}
.dl-faq details[open] summary::after { content: "\2013"; }
.dl-faq details p {
  margin: 12px 0 0;
  font-size: 15.5px;
}

/* ---------- Three columns ---------- */
.dl-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px;
}
.dl-hours, .dl-address { font-size: 15.5px; }
.dl-col-btn {
  display: inline-block;
  margin: 4px 0 12px;
}

.dl-inline-call {
  display: block;
  margin-top: 6px;
  color: #c8221c;
  font-weight: 700;
  font-size: 15px;
}
.dl-inline-call:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.dl-footer {
  background: #11151c;
  color: #b9c3d1;
  padding: 38px 0 30px;
  font-size: 15px;
}
.dl-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.dl-footer p { color: #b9c3d1; margin: 0 0 4px; }
.dl-footer a { color: #fff; text-decoration: underline; }
.dl-footer-name { font-weight: 800; font-size: 18px; color: #fff; margin-bottom: 6px; }
.dl-footer-note {
  max-width: 44ch;
  font-size: 13.5px;
  color: #7f8b9c;
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .dl-nav { display: none; }
  .dl-header-inner { gap: 14px; }
  .dl-call-btn { margin-left: auto; }
}

@media (max-width: 640px) {
  h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  .dl-container { padding: 0 16px; }
  .dl-hero { padding: 42px 0 38px; }
  .dl-hero-sub { font-size: 16px; }
  .dl-hero-actions .dl-btn { flex: 1 1 auto; }
  .dl-section { padding: 42px 0; }
  .dl-grid { grid-template-columns: 1fr; }
  .dl-btn-big { font-size: 21px; padding: 16px 26px; }

  /* Vehicle detail page stacks */
  .dl-vdp-grid { grid-template-columns: 1fr; }
  .dl-vdp-side { position: static; }
  .dl-vdp-head { align-items: flex-start; }
  .dl-vdp-pricebox { text-align: left; }
  .dl-vdp-title { font-size: 25px; }
  .dl-vdp-price { font-size: 30px; }
  .dl-vdp-block p { font-size: 16px; }

  /* Financing form stacks */
  .dl-finance-grid { grid-template-columns: 1fr; }
  .dl-finance-side { position: static; }
  .dl-finance-head h1 { font-size: 26px; }
  .dl-form { padding: 20px 18px 18px; }
  .dl-field-row,
  .dl-field-row-3 { grid-template-columns: 1fr; gap: 0; }
  .dl-form-success { padding: 24px 20px; }

  /* Fee table stacks - drop the middle description column on phones */
  .dl-fees { grid-template-columns: 1fr; }
  .dl-fee-table th, .dl-fee-table td { padding: 12px 14px; font-size: 14.5px; }
  .dl-fee-table td:not(.dl-fee-amt) { display: none; }
  .dl-fee-table th { white-space: normal; width: auto; }

  /* Shrink to just the number so it doesn't eat the header */
  .dl-call-label { display: none; }
  .dl-call-btn { padding: 9px 14px; }
}
