.navbar-brand {
  display: inline-block;
  width: 20.98rem;
  height: 9.94rem;
  background: url("../img/etrpro-og-1.png") center/cover no-repeat;
}

/* HERO BACKGROUND + OVERLAY */
.hero {
  position: relative;
  background: url("../img/bluecar-1440x765-1.png") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* dark-blue gradient overlay */
  background: linear-gradient(135deg,
      rgba(0, 14, 55, 0.85) 0%,
      rgba(0, 56, 142, 0.6) 100%);
  z-index: 1;
}

/* keep your content above the overlay */
.hero .container {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
  /* adjust vertical space */
}

/* TITLE & SUBTITLE */
.hero-title {
  font-size: 4rem;
  /* large desktop size */
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.25rem;
  max-width: 40rem;
  margin-bottom: 3rem;
}

/* HERO BUTTONS */
.btn-hero {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: #fff;
  text-transform: none;
  border: none;
  border-radius: 0.375rem;
  background: linear-gradient(135deg,
      #002d7d 0%,
      #0040c3 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .btn-hero {
    width: 100%;
    max-width: 16rem;
    margin: 0 auto;
  }

  .d-flex.gap-4 {
    flex-direction: column;
    gap: 1rem !important;
  }
}


/* full-bleed wrapper */
.solutions-header-wrapper {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 8.4375rem;
  /* per Figma */
  overflow: hidden;
}

/* svg covers the wrapper */
.solutions-header-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

@media (min-width: 992px) {
  .solutions-header-svg {
    width: 50%;
  }
}

/* the nested `.container` will center content responsively */
.solutions-header-wrapper .container {
  position: relative;
  /* so text sits above the svg */
  z-index: 1;
}

/* typography unchanged */
.solutions-title {
  color: #fff;
  font-family: "Roboto Flex", sans-serif;
  font-size: 3.125rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

/* === Feature List Container === */
.solutions-content {
  /* border-left: 4px solid #22458D; */
  /* left border */
  padding-left: 2rem;
  /* space between border & text */
}

/* === Each Solution Item === */
.solution-item {
  /* spacing is controlled by Bootstrap’s g-4 gutter + this margin */
  margin-bottom: 1rem;
}

.solution-item:last-child {
  margin-bottom: 0;
}

/* Item heading (you can leave this at your preferred size) */
.solution-item h5 {
  font-size: 1.6875rem;
  /* Figma heading size? adjust if needed */
  font-weight: 600;
  color: #22458D;
  margin-bottom: 0.5rem;
}

/* Smaller text underneath */
.solution-item p {
  color: #22458D;
  /* Figma: same blue */
  font-family: "Roboto Flex", sans-serif;
  font-size: 1.rem;
  /* Figma: 1.6875rem */
  font-weight: 500;
  /* semibold */
  line-height: 1.21;
  /* 121% */
  margin: 0;
}

/* Mobile tweaks (≤768px) */
@media (max-width: 768px) {

  /* Make the header bar full-width and flush */
  .solutions-header-wrapper {
    width: 100vw;
    margin-left: 0;
    padding-left: 0.5rem;
    /* a little breathing room */
    height: auto;
    /* allow it to grow if text wraps */
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  /* SVG should just fill behind */
  .solutions-header-svg {
    width: 100%;
  }

  /* Smaller, wrapping title */
  .solutions-title {
    font-size: 1.75rem;
    /* down from 3.125rem */
    line-height: 1.2;
    white-space: normal;
    /* allow wrapping */
  }

  /* Reduce left padding on the list */
  .solutions-content {
    padding-left: 1rem;
  }

  /* Smaller headings and text */
  .solution-item h5 {
    font-size: 1.25rem;
    /* down from 1.6875rem */
  }

  .solution-item p {
    font-size: 0.95rem;
    /* down from 1rem */
  }
}

/* --- Why Choose ETRpro --- */

#why {
  background-color: #22458D;
}

@media (min-width: 992px) {
  #why>.container {
    width: 90rem;
    height: 30.1875rem;
    margin: 0 auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Flex header with title + rule */
.why-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Main title */
.why-title {
  color: #FFF;
  font-family: "Roboto Flex", sans-serif;
  font-size: 3.125rem;
  /* Figma */
  font-style: italic;
  font-weight: 800;
  /* extra bold */
  line-height: 1;
  /* 100% of 3.125rem */
  letter-spacing: 0.03125rem;
  margin: 0;
}

/* SVG rule */
.why-line {
  flex-grow: 1;
  height: 4px;
  /* Figma */
}

/* Body text */
.why-text {
  color: #FFF;
  font-family: "Roboto Flex", sans-serif;
  font-size: 1.6875rem;
  /* Figma */
  font-weight: 500;
  line-height: 1.2;
  /* 120% */
  letter-spacing: 0.05063rem;
  margin: 0;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .why-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .why-title {
    font-size: 2rem;
    /* smaller on mobile */
  }

  .why-line {
    width: 100%;
  }

  .why-text {
    font-size: 1.25rem;
    /* smaller on mobile */
  }
}


/* --- CTA SECTION --- */
.cta-section {
  /* let the SVG bleed full-width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.cta-section .container {
  /* constrain your content to Bootstrap’s normal container widths */
  margin-left: auto;
  margin-right: auto;
  max-width: 90rem;
}

/* full-bleed SVG */
.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* content on top of the SVG */
.cta-content {
  position: relative;
  z-index: 1;
}

/* left paragraph */
.cta-text {
  flex: 0 0 60%;
  /* roughly 60% of row on desktop */
  color: #FFF;
  font-family: "Roboto Flex", sans-serif;
  font-size: 1.6875rem;
  /* Figma */
  font-weight: 600;
  line-height: 1.5;
  /* 150% */
  margin: 0;
}

/* right “Request a Demo” */
.cta-action {
  flex: 0 0 auto;
}

.cta-title {
  background: #FFF;
  color: #22458D;
  font-family: "Roboto Flex", sans-serif;
  font-size: 3.125rem;
  font-weight: 800;
  line-height: 1.1;
  padding: 1rem 2rem;
  /* slanted panel—using clip-path */
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
  margin: 0;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 992px) {
  .cta-text {
    flex: 0 0 100%;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .cta-action {
    flex: 0 0 100%;
    text-align: center;
  }

  .cta-title {
    font-size: 2rem;
    clip-path: none;
    /* square on small */
  }
}

/* ─── CTA: height + white border on large screens ─── */
@media (min-width: 992px) {
  .cta-bg {

    width: 62%;
  }

  .cta-section {
    /* thick white “padding” above & below */
    border-top: 4rem solid #fff;
    border-bottom: 4rem solid #fff;

    /* full‐bleed shape still spans the entire viewport */
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .cta-content {
    /* force the inner content to be as tall as your other section */
    min-height: 19.1875rem;
    /* vertically center text + button */
    align-items: center;
  }
}

/* ─── small screens: let it collapse naturally ─── */
@media (max-width: 991px) {
  .cta-section {
    border: none;
    /* remove the big white borders */
    width: auto;
    margin-left: 0;
  }

  .cta-content {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* CONTACT SECTION BACKGROUND + OVERLAY */
.contact-section {
  position: relative;
  overflow: hidden;
}

/* full-bleed background image */
.contact-bg {
  position: absolute;
  inset: 0;
  background: url("../img/adobestock-848492681-preview-1.png") no-repeat center/cover;
  z-index: 1;
}

/* dark overlay to improve readability */
/* dark teal-blue tint over the background image */
.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 22, 63, 0.75);
  z-index: 2;
}

/* the white card */
.contact-card {
  position: relative;
  z-index: 3;
  background: rgba(35, 66, 150, 0.85);
  /* semi-transparent blue */
  color: #fff;
}

/* Floating labels on dark background */
.contact-card .form-floating .form-control,
.contact-card .form-floating .form-select {
  background: transparent;
  border: none;
  border-bottom: 1px solid #fff;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
}


/* On focus, keep white underline */
.contact-card .form-control:focus,
.contact-card .form-select:focus {
  border-color: #fff;
  box-shadow: none;
  outline: none;
}

/* Submit button styling */
.btn-submit {
  background: linear-gradient(135deg, #002d7d 0%, #0040c3 100%);
  color: #fff;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.375rem;
  width: 100%;
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* RESPONSIVE (stack on small) */
@media (max-width: 768px) {
  .contact-card {
    padding: 2rem 1.5rem;
  }

  .btn-submit {
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
  }
}

/* CONTACT FORM: custom select styling */
.contact-card .form-floating .form-select {
  background-color: transparent;
  /* no white background */
  border: none;
  /* remove all borders */
  border-bottom: 1px solid #fff;
  /* only underline */
  border-radius: 0;
  padding-right: 2.5rem;
  /* space for custom arrow */
  color: #fff;

  /* hide native OS arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* add our own white chevron */
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6H0z' fill='%23fff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.65rem 0.39rem;
}

/* On focus, keep the underline white and remove shadow */
.contact-card .form-select:focus {
  border-color: #fff;
  box-shadow: none;
  outline: none;
}

/* in the CONTACT form cards, keep the closed .form-select text white */
.contact-card .form-select {
  color: #fff;
}

/* once open, options should be dark on white */
.contact-card .form-select option {
  color: #22458D;
  /* your dark-blue text */
  background-color: #fff;
  /* white background */
}

/* optional: hover & selected states in the dropdown list */
.contact-card .form-select option:hover,
.contact-card .form-select option:checked {
  background-color: #e6eefd;
  /* a very light blue highlight */
  color: #22458D;
}

@media (min-width: 992px) {
  #mainNav .navbar-nav:last-child {
    margin-left: 1.5rem;
  }
}

.navbar .btn-hero {
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
}

.btn-hero:hover,
.btn-hero:focus {
  color: #fff !important;
}

.contact-card .form-floating>label {
  background-color: transparent;
  padding: 0 0.25rem;
}

/* Classic stacked labels for contact card */
.contact-card .form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Inputs, selects & textarea styling */
.contact-card .contact-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid #fff;
  border-radius: 0;
  color: #fff;
  padding: 0.5rem 0;
  width: 100%;
  box-shadow: none;
}

/* Placeholder color */
.contact-card .contact-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Focus state */
.contact-card .contact-input:focus {
  outline: none;
  border-color: #fff;
}

/* Remove any leftover form-floating rules */
.contact-card .form-floating {
  display: block;
}

.contact-card .form-floating>label,
.contact-card .form-floating .form-control,
.contact-card .form-floating .form-select {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

/* simple parallax fallback */
.hero {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}