﻿/* =====================================================================
   Star Chery Vanderbijlpark — dealership pages.
   Loaded after styles.css and content.css.
   ===================================================================== */

.d-eyebrow {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: .9;
}
.d-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 12px;
}

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

.d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 38px;
  border-radius: 0;
  background: var(--signal);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  border: 2px solid var(--signal);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
  cursor: pointer;
}
.d-btn:hover { background: var(--signal-deep); border-color: var(--signal-deep); transform: translateY(-2px); }
.d-btn-ghost { background: transparent; color: var(--signal); }
.d-btn-ghost:hover { background: var(--signal); color: #fff; }

.d-link { color: var(--signal); font-weight: 600; font-family: var(--font-mono); }
.d-link:hover { text-decoration: underline; }

/* ---------- Call to action strip ---------- */

.d-cta {
  margin-top: 60px;
  padding: 40px;
  border-radius: 0;
  background: var(--ink);
  border-top: 4px solid var(--signal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.d-cta h3 { font-family: var(--font-display); font-size: 28px; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.d-cta p { color: rgba(255, 255, 255, .78); font-size: 16px; }
.d-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.d-cta .d-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }

/* ---------- Stock notice + grid ---------- */

.d-notice {
  border-left: 4px solid var(--signal);
  background: #fff;
  padding: 26px 30px;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .07);
}
.d-notice p { font-size: 17px; color: var(--ink); margin: 0; }
.d-notice-sub { font-size: 15px; color: var(--muted); margin-top: 10px !important; }

.d-stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
  margin-top: 30px;
}
.d-stock {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex;
  flex-direction: column;
}
.d-stock:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0, 0, 0, .13); }
.d-stock-img { background: var(--paper); padding: 16px; border-top: 3px solid var(--signal); }
.d-stock-img img { width: 100%; height: auto; }
.d-stock-body { padding: 20px 24px 26px; display: flex; flex-direction: column; gap: 6px; }
.d-stock-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
}
.d-stock-price {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.d-stock-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--signal);
  margin-top: 8px;
}

/* ---------- Forms ---------- */

.d-form { margin-top: 10px; }
.d-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.d-field { display: flex; flex-direction: column; gap: 8px; }
.d-field-full { grid-column: 1 / -1; }
.d-field > span { font-size: 14px; font-weight: 600; color: var(--ink); }
.d-field input,
.d-field select,
.d-field textarea {
  border: 1px solid #d8d4d0;
  border-radius: 0;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.d-field input:focus,
.d-field select:focus,
.d-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199, 0, 31, .12);
}
.d-field textarea { resize: vertical; }

.d-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 26px; font-size: 15px; color: var(--muted); }
.d-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }

.d-form-actions { margin-top: 28px; }
.d-form-note { font-size: 15px; margin-top: 16px; min-height: 22px; color: var(--signal); font-weight: 600; }
.d-form-note.is-busy { color: var(--muted); }

/* Contact page map: full width between the form and the footer. */
.d-map { height: clamp(300px, 34vw, 460px); background: var(--steel); }
.d-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.04); }
.d-recaptcha { margin-top: 26px; }
/* v3 runs invisibly: the floating badge is hidden and this line, which
   Google accepts in its place, sits above the submit button. */
.d-recaptcha-note { margin: 22px 0 0; font-size: 12px; color: var(--muted); }
.d-recaptcha-note a { color: inherit; text-decoration: underline; }
.grecaptcha-badge { visibility: hidden; }

/* Contact: form beside dealership details */
.d-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.d-split .d-form .d-field { margin-bottom: 20px; }
.d-split-info { background: #fff; border-radius: 0; padding: 34px 32px; box-shadow: 0 2px 10px rgba(0, 0, 0, .07); }
.d-split-info .c-heading { margin-top: 0; font-size: 22px; }
.d-info-block { margin-top: 26px; }
.d-info-block:first-of-type { margin-top: 0; }
.d-info-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 8px;
}
.d-info-block p { font-size: 16px; color: var(--ink); margin: 0 0 4px; line-height: 1.55; }
.d-hours { font-family: var(--font-mono); display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--muted); margin-top: 5px; }
.d-hours b { color: var(--ink); font-weight: 600; }

/* ---------- Homepage dealership strip ---------- */

.d-strip { background: var(--ink); border-top: 3px solid var(--signal); color: #fff; padding: 70px 0; }
.d-strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.d-strip-item { display: flex; flex-direction: column; gap: 8px; }
.d-strip-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
}
.d-strip-item p, .d-strip-item a { font-size: 16px; color: rgba(255, 255, 255, .86); line-height: 1.55; }
.d-strip-item a:hover { color: #fff; }
.d-strip-hours { font-family: var(--font-mono); display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.d-strip-hours b { color: #fff; font-weight: 600; }
.d-strip-cta { margin-top: 6px; }

/* ---------- Grootman ---------- */

/* Campaign artwork with its own headline: shown whole, never under text. */
.g-hero { background: var(--ink); }
.g-hero img { display: block; width: 100%; height: auto; }
.g-tag { margin: 0 0 14px; }
.g-tag + .c-heading { margin-top: 0; }
.g-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 50px; align-items: center; }
.g-intro .c-text:last-child { margin-bottom: 0; }
.g-side { width: 100%; height: auto; }
.g-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.g-facts .price-board { min-width: 0; }
.g-note { margin: 14px 0 70px; font-size: 13px; color: var(--muted); }
.d-check a { color: var(--signal); text-decoration: underline; }

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

@media (max-width: 1005px) {
  .d-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .d-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-intro { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .g-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .d-form-grid { grid-template-columns: minmax(0, 1fr); }
  .d-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .d-cta { padding: 28px 24px; }
  .d-cta h3 { font-size: 21px; }
  .d-cta-actions, .d-btn { width: 100%; }
  .d-strip-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .d-strip { padding: 46px 0; }
  .d-split-info { padding: 26px 22px; }
  /* The 1:2 phone cut would fill the screen; trim sky and ground so the
     form starts sooner. The headline and bakkie sit in the middle band. */
  .g-hero img { aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 55%; }
}


