/* ============================================================
   DriveWise Budget Cars Greeley — Global Stylesheet
   Colors extracted from the official logo SVG.
   ============================================================ */

:root {
  /* Brand color */
  --color-ink:        #111111;  /* logo black */
  --color-blue:       #0D5C97;  /* primary brand */
  --color-blue-dark:  #0A4A79;  /* hover/active */
  --color-green:      #49A451;  /* accent */
  --color-green-dark: #3A8541;  /* price / value */
  --color-bg:         #F4F6F8;  /* page background */
  --color-stone:      #DDE2E6;  /* borders/dividers */
  --color-muted:      #5A646E;  /* secondary text */
  --color-white:      #FFFFFF;
  --color-price:      #3A8541;

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Inter", system-ui, sans-serif;
  --fw-regular: 400;
  --fw-medium: 600;
  --fw-bold: 800;

  /* Spacing */
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  /* Shape */
  --radius: 10px;
  --shadow: 0 2px 12px rgba(17,17,17,.08);
  --maxw: 1180px;
}

/* ---------- Base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: var(--fw-bold); line-height: 1.12; margin: 0 0 var(--space-2); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--space-2); }
a { color: var(--color-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img,svg { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-3); }
.section { padding: var(--space-5) 0; }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--color-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--color-blue);
  color: var(--color-white) !important;
  font-weight: var(--fw-medium);
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none !important;
  border: 2px solid transparent;
  transition: background .15s ease, transform .05s ease;
  cursor: pointer;
}
.btn:hover { background: var(--color-blue-dark); }
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--color-green); }
.btn-green:hover { background: var(--color-green-dark); }
.btn-outline {
  background: transparent;
  color: var(--color-blue) !important;
  border-color: var(--color-blue);
}
.btn-outline:hover { background: var(--color-blue); color: #fff !important; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-stone);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); padding: .75rem 0;
}
.site-logo img, .site-logo svg { height: 52px; width: auto; }
.site-logo .logo-text { font-weight: var(--fw-bold); font-size: 1.1rem; color: var(--color-ink); }
.primary-nav ul { list-style: none; display: flex; gap: var(--space-3); margin: 0; padding: 0; }
.primary-nav a { color: var(--color-ink); font-weight: var(--fw-medium); }
.primary-nav a:hover { color: var(--color-blue); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: var(--space-2); }
.header-phone { font-weight: var(--fw-bold); color: var(--color-ink); white-space: nowrap; }
.header-phone:hover { color: var(--color-blue); text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; color: var(--color-ink); padding: .25rem .5rem;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
  color: #fff; padding: var(--space-5) 0;
}
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.92); font-size: 1.2rem; max-width: 620px; }
.hero .btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }

/* ---------- Value strip ---------- */
.value-strip { background: var(--color-ink); color: #fff; }
.value-strip .container { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-around; padding: var(--space-3) var(--space-3); }
.value-item { display: flex; align-items: center; gap: .6rem; font-weight: var(--fw-medium); }
.value-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-green); flex: none; }

/* ---------- Cards / Inventory ---------- */
.grid { display: grid; gap: var(--space-3); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--color-white);
  border: 1px solid var(--color-stone);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card .card-body { padding: var(--space-3); }
.card h3 { margin-bottom: .35rem; }
.price { color: var(--color-price); font-weight: var(--fw-bold); font-size: 1.5rem; }
.card-placeholder {
  background: repeating-linear-gradient(45deg,#eef1f4,#eef1f4 12px,#e7ebef 12px,#e7ebef 24px);
  aspect-ratio: 4/3; display: grid; place-items: center; color: var(--color-muted); font-weight: 600;
}

/* ---------- Price browse tiles ---------- */
.price-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-3); }
.price-tile {
  border: 2px solid var(--color-stone); border-radius: var(--radius);
  padding: var(--space-4) var(--space-3); text-align: center; background: #fff;
  transition: border-color .15s ease, transform .05s ease;
}
.price-tile:hover { border-color: var(--color-green); text-decoration: none; transform: translateY(-2px); }
.price-tile .amt { font-size: 1.8rem; font-weight: var(--fw-bold); color: var(--color-green-dark); }
.price-tile .lbl { color: var(--color-ink); font-weight: var(--fw-medium); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-3); }
.step .n {
  width: 40px; height: 40px; border-radius: 50%; background: var(--color-blue);
  color: #fff; display: grid; place-items: center; font-weight: var(--fw-bold); margin-bottom: var(--space-2);
}
.bg-white { background: var(--color-white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: #cdd4da; padding: var(--space-5) 0 var(--space-3); }
.site-footer a { color: #cdd4da; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-4); }
.footer-logo img, .footer-logo svg { height: 46px; width: auto; margin-bottom: var(--space-2); filter: brightness(0) invert(1); }
.footer-tag { color: var(--color-green); font-weight: var(--fw-bold); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: var(--space-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-legal { border-top: 1px solid #2a2f34; padding-top: var(--space-3); font-size: .85rem; color: #8b949c; }

/* ---------- Content pages ---------- */
.page-content { padding: var(--space-5) 0; }
.page-content .container { max-width: 820px; }
.page-content h2 { margin-top: var(--space-4); }
.faq-item { border-bottom: 1px solid var(--color-stone); padding: var(--space-2) 0; }
.faq-item summary { font-weight: var(--fw-bold); cursor: pointer; font-size: 1.1rem; }
.faq-item p { margin-top: var(--space-2); color: var(--color-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .price-tiles, .steps { grid-template-columns: 1fr; }
  .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--color-stone); padding: var(--space-2) var(--space-3);
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: var(--space-2); }
  .nav-toggle { display: block; }
  .header-phone-label { display: none; }
}

/* ============================================================
   RICH CONTENT COMPONENTS (About, FAQ, landing pages)
   ============================================================ */

/* Accent under every content-page H1 */
.page-content h1 { position: relative; padding-bottom: .5rem; }
.page-content h1::after {
  content: ""; display: block; width: 84px; height: 5px; margin-top: .6rem;
  background: linear-gradient(90deg, var(--color-green) 0 60%, var(--color-blue) 60% 100%);
  border-radius: 3px;
}

/* AEO quick-answer block — the liftable summary */
.quick-answer {
  background: #EAF4EE;
  border-left: 5px solid var(--color-green);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0 2rem;
  font-size: 1.08rem;
}
.quick-answer strong { color: var(--color-green-dark); }

/* At-a-glance facts card */
.at-a-glance {
  background: var(--color-white);
  border: 1px solid var(--color-stone);
  border-top: 4px solid var(--color-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}
.at-a-glance h3 { margin-top: 0; color: var(--color-blue); }
.at-a-glance dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.2rem; margin: 0; }
.at-a-glance dt { font-weight: var(--fw-bold); color: var(--color-ink); }
.at-a-glance dd { margin: 0; color: var(--color-ink); }

/* Section heading accent */
.accent-h2 { color: var(--color-blue); display: flex; align-items: center; gap: .6rem; }
.accent-h2::before { content: ""; width: 10px; height: 22px; background: var(--color-green); border-radius: 2px; display: inline-block; }

/* Green check list */
.check-list { list-style: none; padding: 0; margin: 1rem 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #fff; background: var(--color-green); width: 1.35rem; height: 1.35rem;
  border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 800;
}

/* Colored CTA panel */
.cta-panel {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 2rem; text-align: center; margin: 2.5rem 0 1rem;
}
.cta-panel h3 { color: #fff; margin-top: 0; }
.cta-panel .btn-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

/* Location + map */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-stone); margin-top: 1rem; }
.map-wrap iframe { display: block; width: 100%; height: 340px; border: 0; }
.nap { background: var(--color-white); border: 1px solid var(--color-stone); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.nap strong { color: var(--color-blue); }

/* ============================================================
   MOTION — scroll-reveal + light hero parallax (reduced-motion safe)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .dwbc-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .dwbc-reveal.is-in { opacity: 1; transform: none; }
  /* Safety net: the inventory grid must always be visible, never animation-gated. */
  .dwbc-srp, .dwbc-srp.dwbc-reveal { opacity: 1 !important; transform: none !important; }

  /* Hero: soft decorative glow layer that parallax-drifts on scroll */
  .hero { position: relative; overflow: hidden; }
  .hero::before {
    content: ""; position: absolute; inset: -12% -6%; z-index: 0; pointer-events: none;
    background:
      radial-gradient(620px 320px at 18% 18%, rgba(255,255,255,.12), transparent 62%),
      radial-gradient(520px 280px at 86% 84%, rgba(73,164,81,.22), transparent 62%),
      radial-gradient(420px 220px at 62% 30%, rgba(255,255,255,.06), transparent 60%);
    transform: translateY(var(--py, 0));
    will-change: transform;
  }
  .hero > .container { position: relative; z-index: 1; }
}
