/* ==========================================================================
   CarLoan101 brand stylesheet
   Palette and type pulled from leads.carloan.com/dealers/
   Built to sit on top of Bootstrap 5 utilities, not replace them.
   ========================================================================== */

:root {
  --brand-blue: #213ce6;
  --brand-blue-dark: #052e97;
  --brand-navy: #052066;
  --brand-gold: #ffba00;
  --brand-orange: #ff8f00;
  --brand-bg-light: #f1f8fe;
  --brand-bg-gray: #f2f2f2;
  --text-body: #5d6b8f;
  --text-dark: #052066;
  --radius-pill: 50px;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-body);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
}

a {
  color: var(--brand-blue);
}

/* ---- Eyebrow / label above headlines ---- */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  text-transform: uppercase;
}

.eyebrow-bar {
  display: inline-block;
  width: 60px;
  height: 5px;
  background: var(--brand-gold);
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

/* ---- Buttons ----
   Every button style shares the same pill shape and uppercase label, and
   none of them ever show a link underline, including the ones that are
   really <a> tags (tel: links, cross-page CTAs). */
.btn-brand,
.btn-brand-outline,
.btn-brand-gold {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.btn-brand:hover,
.btn-brand:focus,
.btn-brand-outline:hover,
.btn-brand-outline:focus,
.btn-brand-gold:hover,
.btn-brand-gold:focus {
  text-decoration: none;
}

/* Wide CTA pill used for the primary calls to action */
.btn-brand-wide {
  padding-left: 3rem;
  padding-right: 3rem;
}

.btn-brand {
  background: var(--brand-blue);
  border: 1px solid var(--brand-blue-dark);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  padding: 0.85rem 1.75rem;
}
.btn-brand:hover,
.btn-brand:focus {
  background: #fff;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.btn-brand-outline {
  background: transparent;
  border: 2px solid var(--brand-blue-dark);
  color: var(--text-dark);
  border-radius: var(--radius-pill);
  font-weight: 700;
  padding: 0.8rem 1.75rem;
}
.btn-brand-outline:hover,
.btn-brand-outline:focus {
  background: var(--brand-navy);
  color: #fff;
  border-color: var(--brand-navy);
}

.btn-brand-gold {
  background: var(--brand-orange);
  border: 1px solid var(--brand-blue-dark);
  color: var(--brand-navy);
  border-radius: var(--radius-pill);
  font-weight: 700;
  padding: 0.85rem 1.75rem;
}
.btn-brand-gold:hover,
.btn-brand-gold:focus {
  background: #fff;
  color: var(--brand-blue);
}

/* ---- Header / nav ---- */
.site-header {
  background: #fff;
}
.navbar-brand img {
  height: 33px;
}
.nav-link {
  color: var(--text-dark);
  font-weight: 500;
}
.nav-link.active,
.nav-link:hover {
  color: var(--brand-blue);
}

/* ---- Hero ---- */
.hero {
  background: var(--brand-bg-gray);
}
.hero h1 {
  font-size: 2.75rem;
  line-height: 1.15;
}
@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 2rem;
  }
}

/* ---- Section backgrounds ---- */
.section-light {
  background: var(--brand-bg-light);
}

/* ---- Stat / icon cards ---- */
.icon-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--brand-bg-light);
  color: var(--brand-blue);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* ---- Brand card (the big blue callout blocks) ---- */
.card-brand {
  background: var(--brand-blue);
  color: #fff;
  border-radius: 24px;
  padding: 2.5rem;
}
.card-brand p {
  color: #e6eaff;
}
.card-brand-divider {
  width: 78px;
  height: 3px;
  background: #fff;
  margin: 1rem 0;
}

/* ---- Audience pills (Franchise / Independent / etc.)
   Full-width white rows stacked beside the blue card. ---- */
.audience-pill {
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #000;
  display: block;
  box-shadow: 0 2px 10px rgba(5, 32, 102, 0.06);
}

/* ---- Stat banner (sits directly under the hero) ---- */
.stat-banner {
  background: #fff;
  border-bottom: 1px solid #e3e9f5;
}
.stat-banner__number {
  color: var(--brand-blue);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}
.stat-banner__label {
  font-size: 0.9rem;
}

/* ---- Media card: product photo sitting on top of a blue card ---- */
.media-card {
  position: relative;
}
.media-card__img {
  display: block;
  width: 80%;
  max-width: 300px;
  margin: 0 auto -60px;
  position: relative;
  z-index: 2;
}
.media-card__body {
  padding-top: 5rem;
}

/* ---- Tools for dealers: blue card with the phone overlapping it ---- */
.tools-card {
  padding: 3rem 2.5rem;
}
.tools-card__sub {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.tools-card__phone {
  max-width: 300px;
  position: relative;
  z-index: 2;
}
@media (min-width: 992px) {
  .tools-card {
    padding-right: 5rem;
  }
  /* Pull the phone back over the right edge of the blue card. */
  .tools-card__phone {
    display: block;
    margin-left: -6rem;
    margin-right: auto;
  }
}

/* ---- Reviews widget ----
   Reserve height up front so the page does not jump when the lazily
   injected Elfsight widget finally renders. ---- */
.reviews-widget {
  min-height: 260px;
}

/* ---- Lead form modal: blue panel, white fields, orange CTA ---- */
.lead-modal {
  border: 0;
  border-radius: 24px;
  background: var(--brand-blue);
  color: #fff;
}
.lead-modal .modal-body {
  padding: 0 2.5rem 2.5rem;
}
.lead-modal__title {
  color: #fff;
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.lead-modal__sub {
  color: #fff;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lead-modal .form-label {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.lead-modal .req {
  color: var(--brand-gold);
}
/* White fields on the blue panel, lifted slightly so they read as the
   thing you are meant to act on. */
.lead-modal .form-control,
.lead-modal .form-select {
  background: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  box-shadow: 0 4px 14px rgba(5, 32, 102, 0.18);
}
.lead-modal .form-control::placeholder {
  color: #9aa3b8;
}
.lead-modal .form-control:focus,
.lead-modal .form-select:focus {
  box-shadow: 0 0 0 0.25rem var(--brand-gold);
}

@media (max-width: 575.98px) {
  .lead-modal .modal-body {
    padding: 0 1.25rem 1.75rem;
  }
  .lead-modal__title {
    font-size: 1.75rem;
  }
}

/* ---- Thank you / conversion page ---- */
.thank-you-check {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.thank-you-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.card-brand li {
  color: #e6eaff;
}

/* ---- Footer ---- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--brand-navy);
  font-size: 0.9rem;
}

/* ---- Resources / blog ---- */
.resource-card {
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  height: 100%;
}
.resource-card .badge-topic {
  background: var(--brand-bg-light);
  color: var(--brand-blue-dark);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
article.blog-post h2 {
  margin-top: 2rem;
}
article.blog-post {
  max-width: 780px;
}

/* ---- Form status message ---- */
#form-status {
  display: none;
}

/* ==========================================================================
   DEMO WALKTHROUGH
   A full-bleed deck. Each slide carries data-tone, and demo.js copies that
   tone onto <body> so the whole viewport shifts with the slide. Running
   order: light, light, navy, light, navy, charcoal, orange. The charcoal
   Drive slide keeps two navy slides from running together.
   ========================================================================== */

.demo-body {
  min-height: 100vh;
  transition: background-color 0.45s ease, color 0.45s ease;
}
.demo-body.tone-light {
  background: var(--brand-bg-light);
  color: var(--text-body);
}
.demo-body.tone-dark {
  background: var(--brand-navy);
  color: #d7dff2;
}
.demo-body.tone-charcoal {
  background: #1c1d20;
  color: #c9ccd2;
}
/* Orange is a light background, so this slide runs navy text on it rather
   than white, which would not carry enough contrast to read. */
.demo-body.tone-brand {
  background: var(--brand-orange);
  color: var(--brand-navy);
}
.demo-body.tone-dark h1,
.demo-body.tone-dark h2,
.demo-body.tone-dark h3,
.demo-body.tone-charcoal h1,
.demo-body.tone-charcoal h2,
.demo-body.tone-charcoal h3 {
  color: #fff;
}
.demo-body.tone-brand h1,
.demo-body.tone-brand h2,
.demo-body.tone-brand h3 {
  color: var(--brand-navy);
}

.demo-deck {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0 2rem;
}
.demo-container {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.demo-step {
  display: none;
  width: 100%;
}
.demo-step.is-active {
  display: block;
  animation: demo-fade 0.4s ease both;
}
@keyframes demo-fade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ---- Back / Next pill, centered at the top like the original deck ---- */
.demo-nav {
  display: flex;
  justify-content: center;
}
.demo-nav.is-hidden {
  visibility: hidden;
}
.demo-nav__pill {
  display: inline-flex;
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(5, 32, 102, 0.18);
}
.demo-nav__btn {
  border: 0;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 2.25rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.demo-nav__btn--back {
  background: #fff;
  color: var(--brand-navy);
}
.demo-nav__btn--back:hover {
  background: #e9eefb;
}
.demo-nav__btn--next {
  background: var(--brand-blue);
  color: #fff;
}
.demo-nav__btn--next:hover {
  background: var(--brand-blue-dark);
}
.demo-nav__btn.is-hidden {
  display: none;
}

/* ---- Progress dots ---- */
.demo-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 1rem;
}
.demo-progress__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.25;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.demo-progress__dot.is-active {
  opacity: 1;
  transform: scale(1.35);
  background: var(--brand-orange);
}

/* ---- Slide typography ---- */
.demo-title {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.demo-title__thin {
  font-weight: 300;
}
.demo-title--rule {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid currentColor;
  display: inline-block;
}
.demo-title--sub {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}
.demo-body-lg {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}
.demo-body-lg strong {
  font-weight: 700;
}
.demo-body.tone-dark .demo-body-lg strong,
.demo-body.tone-charcoal .demo-body-lg strong {
  color: #fff;
}

/* Orange stat numbers, carried over from the original deck */
.demo-stat {
  color: var(--brand-orange);
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 1rem;
}
.demo-stat__label {
  font-size: 1.15rem;
  margin-top: 0.25rem;
  line-height: 1.35;
}
.demo-stat__source {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ---- Imagery ---- */
.demo-visual-img {
  max-width: 100%;
  height: auto;
}
.demo-step[data-step="1"] .demo-visual-img { max-width: 380px; }
.demo-step[data-step="2"] .demo-visual-img { max-width: 400px; }
.demo-step[data-step="3"] .demo-visual-img,
.demo-step[data-step="4"] .demo-visual-img,
.demo-step[data-step="5"] .demo-visual-img { max-width: 560px; }

.demo-productlogo {
  height: auto;
  max-width: 220px;
  margin-bottom: 0.5rem;
}
.demo-rule {
  width: 200px;
  height: 2px;
  background: currentColor;
  opacity: 0.5;
  margin-bottom: 1.75rem;
}

/* ---- Slide 2: consumer brand grid ---- */
.demo-brandgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 1.75rem 2rem;
  margin-bottom: 0.75rem;
}
.demo-brandgrid img {
  max-width: 100%;
  height: auto;
  justify-self: center;
}
.demo-brandgrid__note {
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* ---- Slide 1: intro ---- */
.demo-intro {
  max-width: 620px;
  margin: 0 auto;
}
.demo-intro__logo {
  max-width: 280px;
  height: auto;
  margin-bottom: 2.5rem;
}
.demo-intro__lead {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.demo-intro__headline {
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 2.5rem;
}

/* ---- Slide 7: closing CTA ---- */
.demo-outro {
  max-width: 640px;
  margin: 0 auto;
}
.demo-outro__logo {
  display: inline-block;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.75rem;
  margin-bottom: 2rem;
}
.demo-outro__headline {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}
.demo-outro__lead {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.demo-outro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---- Shared CTA pill (intro + outro) ---- */
.demo-cta {
  display: inline-block;
  border: 2px solid transparent;
  background: var(--brand-blue);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 3rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.demo-cta:hover,
.demo-cta:focus {
  background: var(--brand-blue-dark);
  color: #fff;
  text-decoration: none;
}
.tone-brand .demo-cta {
  background: var(--brand-navy);
  color: #fff;
}
.tone-brand .demo-cta:hover,
.tone-brand .demo-cta:focus {
  background: #04154d;
  color: #fff;
}
.demo-cta--ghost {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.tone-brand .demo-cta--ghost {
  background: transparent;
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}
.tone-brand .demo-cta--ghost:hover,
.tone-brand .demo-cta--ghost:focus {
  background: var(--brand-navy);
  color: #fff;
}

/* The active dot is orange, which would vanish on the orange slide. */
.tone-brand .demo-progress__dot.is-active {
  background: var(--brand-navy);
}

/* ---- Small screens ---- */
@media (max-width: 991.98px) {
  .demo-container {
    align-items: flex-start;
  }
  .demo-title {
    font-size: 1.6rem;
  }
  .demo-intro__headline {
    font-size: 2.25rem;
  }
  .demo-intro__lead {
    font-size: 1.35rem;
  }
  .demo-outro__headline {
    font-size: 2rem;
  }
  .demo-stat {
    font-size: 3rem;
  }
  .demo-step[data-step="1"] .demo-visual-img,
  .demo-step[data-step="2"] .demo-visual-img { max-width: 260px; }
  .demo-step[data-step="3"] .demo-visual-img,
  .demo-step[data-step="4"] .demo-visual-img,
  .demo-step[data-step="5"] .demo-visual-img { max-width: 100%; }
  .demo-nav__btn {
    padding: 0.75rem 1.75rem;
  }
}

/* ---- Consent banner ----
   Injected by js/tracking.js. Accept and Decline are deliberately the same
   size and weight, since a decline that is harder to find is not compliant. */
.consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  max-width: 720px;
  margin: 0 auto;
  background: var(--brand-navy);
  color: #e6eaff;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 40px rgba(5, 32, 102, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.consent-banner__text {
  flex: 1 1 320px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}
.consent-banner__text a {
  color: #fff;
}
.consent-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex: 0 0 auto;
}
.consent-banner__btn {
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.consent-banner__btn:hover,
.consent-banner__btn:focus {
  background: #fff;
  color: var(--brand-navy);
}
.consent-banner__btn--accept {
  background: #fff;
  color: var(--brand-navy);
}
.consent-banner__btn--accept:hover,
.consent-banner__btn--accept:focus {
  background: var(--brand-bg-light);
  color: var(--brand-navy);
}
@media (max-width: 575.98px) {
  .consent-banner__actions {
    width: 100%;
  }
  .consent-banner__btn {
    flex: 1 1 0;
  }
}
