/* Dealer Match AI custom overrides
   NOTE: This file exists because we are using compiled `assets/css/style.css`
   (not client-side LESS). Any custom LESS module changes must be mirrored here.
*/

/* Keep header + hero dark */
.header-transparent {
  background-color: #2b2e3d;
}
.header-transparent .navbar {
  background-color: #2b2e3d;
}
.header-transparent.header-fixed .navbar.affix,
.header-transparent .navbar.affix {
  /* When scrolling, the fixed navbar becomes affixed */
  background-color: #ffffff;
}
.slider,
.slider .slide--item {
  background-color: #2b2e3d;
}
.slider .slide--item {
  position: relative;
}

/* Hero flash (startup overlay) */
.hero-flash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2b2e3d;
  opacity: 0;
  transition: opacity 600ms ease;
  z-index: 5;
  pointer-events: none;
}
.hero-flash.is-visible {
  opacity: 1;
}
.hero-flash__text {
  color: #ffffff;
  font-family: 'PT Sans', sans-serif;
  font-size: 45px;
  font-weight: 400;
  line-height: 60px;
  text-transform: capitalize;
  max-width: 980px;
  padding: 0 20px;
  text-align: center;
  margin: 0 auto;
  overflow-wrap: anywhere;
}
body[data-hero-flash="on"][data-hero-flash-state="active"] #slider .container {
  opacity: 0;
  pointer-events: none;
}
@media only screen and (max-width: 767px) {
  /* Mobile: keep hero visible and place flash over headline + bio copy block */
  body[data-hero-flash="on"][data-hero-flash-state="active"] #slider .container {
    opacity: 1;
  }
  body[data-hero-flash="on"][data-hero-flash-state="active"] #slider .slide--headline,
  body[data-hero-flash="on"][data-hero-flash-state="active"] #slider .slide--bio {
    opacity: 0;
    visibility: hidden;
  }
  .hero-flash {
    top: 72px; /* below fixed mobile navbar */
    right: 0;
    left: 0;
    bottom: auto;
    height: 220px; /* roughly spans headline + bio area */
    background-color: transparent;
    align-items: center; /* vertically center flash copy in this zone */
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
  }
  .hero-flash__text {
    font-size: 28px;
    line-height: 1.35;
    max-width: 92vw;
    padding: 0 16px;
  }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .hero-flash__text {
    font-size: 36px;
    line-height: 1.25;
    max-width: 900px;
  }
}

/* Mobile hero height so iPad is fully visible */
@media only screen and (min-width: 320px) and (max-width: 767px) {
  .slider,
  .slider .slide--item {
    height: auto;
    min-height: 600px;
  }
  .slider {
    padding-bottom: 80px;
  }
  .slider .btn:not(.btn--auto) {
    width: 130px;
  }
  .slider .btn.btn--auto {
    max-width: 100%;
    white-space: normal;
    height: auto;
    line-height: 1.3;
    padding: 12px 16px;
  }
  #slider .hero-demo-btn {
    white-space: nowrap;
    width: auto;
    min-width: 280px;
    height: 56px;
    line-height: 56px;
    padding: 0 24px;
  }
}

/* Hero iPad video: slightly taller than default (width unchanged) */
#slider .ipad-mockup__screen {
  bottom: 5.5%;
}

/* iPad mockup video overlay */
.ipad-mockup {
  position: relative;
  display: table;
  margin: 0 auto;
}
.ipad-mockup__screen {
  position: absolute;
  z-index: 1;
  top: 5.6%;
  left: 6.2%;
  right: 6.2%;
  bottom: 8.5%;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  pointer-events: none;
}
.ipad-mockup__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ipad-video-object-position, 50% 50%);
  transform: translateY(var(--ipad-video-offset-y, -7px)) scaleY(var(--ipad-video-scale-y, 1));
  transform-origin: top center;
}
.ipad-mockup__frame {
  position: relative;
  z-index: 2;
}

/* Desktop hero equal spacing */
@media only screen and (min-width: 992px) {
  .slider .slide--headline {
    margin-bottom: 28px;
  }
  .slider .slide--bio {
    margin-bottom: 28px;
  }
}

/* Hero left column: more vertical breathing room + prevent typed wrap pushing content */
#slider .hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 52px;
  padding-top: 120px !important; /* override pt-50 */
  padding-bottom: 55px;
}

#slider .hero-left .slide--headline,
#slider .hero-left .slide--bio {
  margin-bottom: 0; /* spacing handled by flex gap */
}

#slider .hero-left .hero-subheadline {
  margin-top: 0; /* match the same flex gap used above the button */
  color: #d7d9e2;
  font-size: 20px;
  line-height: 1.4;
}

/* Reserve enough height so typed text wrapping never moves the bio */
#slider .hero-left .slide--headline {
  min-height: 180px; /* 3 lines @ 60px line-height */
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  #slider .hero-left {
    gap: 28px;
    padding-top: 70px !important;
    padding-bottom: 30px;
  }
  #slider .hero-left .slide--headline {
    min-height: 108px; /* 3 lines @ ~36px line-height */
  }
  #slider .hero-left .hero-subheadline {
    margin-top: 0;
    font-size: 18px;
  }
}

@media only screen and (max-width: 767px) {
  #slider .hero-left {
    gap: 22px;
    padding-top: 45px !important;
    padding-bottom: 18px;
  }
  #slider .hero-left .slide--headline {
    min-height: 108px;
  }
  #slider .hero-left .hero-subheadline {
    margin-top: 0;
    font-size: 17px;
  }
}

/* Mobile: avoid back-to-back images in Feature2 (AI Vehicle Q&A) */
@media only screen and (max-width: 767px) {
  #feature2 .feature2-qa-row {
    display: flex;
    flex-direction: column;
  }
  #feature2 .feature2-qa-row .feature2-qa-copy {
    order: 1;
  }
  #feature2 .feature2-qa-row .feature2-qa-media {
    order: 2;
  }
}

/* Feature2 blue headers ("AI Inventory Search" / "AI Vehicle Q&A") */
.feature-2 .feature2-icon-label {
  color: #5584ff; /* match icon theme blue */
  font-family: 'PT Sans', sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 20px;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .feature-2 .feature2-icon-label {
    font-size: 25px;
    margin-bottom: 15px;
  }
}

/* ------------------ "Who Benefits" spacing + typography ------------------ */
.feature1-form-row {
  margin-top: 5px;
  margin-bottom: 45px; /* more space before the next heading */
}

.feature1-form-heading {
  font-family: 'PT Sans', sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  color: #2c303d;
  margin-top: 0;
}

@media only screen and (max-width: 767px) {
  .feature1-form-heading {
    font-size: 26px;
    line-height: 1.3;
  }
  .feature1-form-row {
    margin-bottom: 32px;
  }
}

#feature1 .feature-panel .feature--content p.feature-desc-large {
  font-size: 17px;
  line-height: 1.6;
  color: #5c6170;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

#feature1 .feature-panel .feature--content p.feature-desc-large strong {
  display: block;
  margin-top: 14px;
  color: #2c303d;
  font-weight: 700;
  line-height: 1.35;
}

/* V8i intro block centered above "How it works" */
#technology .v8i-list--centered {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}
#technology .v8i-list--centered + * {
  margin-top: 0;
}

/* ------------------ V8i "Technology" section formatting ------------------ */
#technology .v8i-how-it-works-row {
  max-width: 920px;
  margin: 0 auto;
}

#technology .v8i-how-it-works-logo {
  margin-bottom: 26px;
}

#technology .v8i-how-it-works-logo img {
  max-width: 220px;
  height: auto;
}

@media only screen and (min-width: 992px) {
  #technology .v8i-how-it-works-logo img {
    max-width: 360px;
  }
}

#technology .v8i-how-it-works-text {
  text-align: left;
}

#technology .v8i-why-row {
  margin-top: 10px;
}

#technology .v8i-why-logo {
  margin-top: 18px;
}

@media only screen and (min-width: 992px) {
  #technology .v8i-why-row {
    display: flex;
    align-items: center;
  }
  #technology .v8i-why-logo {
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media only screen and (max-width: 767px) {
  #technology .v8i-how-it-works-logo img {
    max-width: 90vw;
    width: 90vw;
  }
  /* Collapse all spacing around the logo column on mobile */
  #technology .v8i-why-logo,
  #technology .v8i-how-it-works-logo {
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 0;
  }
  #technology .v8i-why-logo img,
  #technology .v8i-how-it-works-logo img {
    display: block;
    margin: 0 auto;
  }
  #technology .v8i-why-row {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  #technology .v8i-how-it-works-text {
    text-align: center;
    margin-top: 18px;
  }
  #technology .v8i-list,
  #technology .v8i-steps,
  #technology .v8i-checks {
    text-align: left;
    display: inline-block;
  }
}

#technology .v8i-kicker {
  color: #2c303d;
  font-family: 'PT Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 10px;
}

#technology .v8i-intro {
  color: #666;
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 18px;
}

#technology .v8i-callout {
  border: 1px solid #e6e8ef;
  background: #f6f7fb;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 18px;
}

#technology .v8i-callout__title {
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
  color: #5584ff;
  margin: 0 0 10px;
}

#technology .v8i-callout__footer {
  color: #666;
  margin-top: 10px;
  line-height: 1.5;
  font-size: 18px;
}

#technology .v8i-section {
  margin: 18px 0 0;
}

#technology .v8i-section__title {
  font-family: 'PT Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #2c303d;
  margin: 0 0 10px;
}

#technology .v8i-muted {
  color: #666;
  line-height: 1.6;
  font-size: 18px;
  margin: 0 0 10px;
}

#technology .v8i-list,
#technology .v8i-steps,
#technology .v8i-checks {
  padding-left: 18px;
  margin: 0;
}

#technology .v8i-list li,
#technology .v8i-steps li,
#technology .v8i-checks li {
  color: #2c303d;
  line-height: 1.55;
  margin: 0 0 8px;
  font-size: 18px;
}

#technology .v8i-list--compact li {
  margin-bottom: 6px;
}

#technology .v8i-section--compact {
  margin-top: 16px;
}

/* ------------------ Pricing feature list polish ------------------ */
.pricing-panel {
  text-align: center;
}

.pricing-panel .pricing--body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-panel .pricing--body .pricing-feature-list {
  display: inline-block; /* center block, keep bullets/text left-aligned inside */
  text-align: left;
  margin: 0 auto 30px;
  max-width: 100%;
}

.pricing-panel .pricing--body .pricing-feature-group__title {
  display: block;
  font-weight: 700;
  color: #2c303d;
  margin-bottom: 6px;
}

.pricing-panel .pricing--body .pricing-feature-group,
.pricing-panel .pricing--body .pricing-feature-item {
  position: relative;
  margin: 0 0 10px;
  padding-left: 18px; /* shared main bullet margin */
}

.pricing-panel .pricing--body .pricing-feature-group:before,
.pricing-panel .pricing--body .pricing-feature-item:before {
  content: "\2022";
  position: absolute;
  left: 0;
  top: 0;
  color: #5584ff;
  font-weight: 700;
}

.pricing-panel .pricing--body .pricing-feature-sublist {
  margin: 0;
  padding-left: 22px; /* nested indent under first main bullet */
  list-style: circle;
}

.pricing-panel .pricing--body .pricing-feature-sublist li {
  line-height: 1.5;
  margin-bottom: 4px;
}

.pricing-panel .pricing--body .btn {
  align-self: center;
}

/* ------------------ CTA spacing tweak ------------------ */
#cta .cta-heading-tight {
  margin-bottom: 7px; /* ~50% less than prior 15px gap */
}

/* ------------------ CTA form input glow ------------------ */
#cta #cta-contact-form .input-group,
#top-contact-form .input-group,
#technology-contact-form .input-group {
  box-shadow:
    0 0 0 1px rgba(34, 38, 54, 0.18),
    0 10px 28px rgba(18, 22, 34, 0.42),
    0 0 28px rgba(18, 22, 34, 0.28);
  border-radius: 50px;
}

/* ------------------ Hero demo CTA emphasis ------------------ */
.hero-demo-btn {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 0 28px;
  min-height: 56px;
  line-height: 56px;
}

