.customers-page {
  background: var(--cream);
}

.customers-main {
  padding: 0 12px 40px;
}

.customers-hero {
  margin: 16px;
  border-radius: 24px;
  padding: 20px 16px 70px;
  color: var(--cream);
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    linear-gradient(180deg, rgba(108, 122, 63, 0.56) 24.53%, rgba(156, 154, 116, 0.56) 100%),
    url("../assets/customer-1.jpg") center / cover no-repeat;
}

.customers-hero-inner {
  min-height: min(88vh, 920px);
  display: flex;
  flex-direction: column;
}

.customers-head .hero-nav-list {
  background: var(--cream);
}

.customers-head .hero-nav .nav-link.active {
  color: var(--olive) !important;
}

.customers-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 1170px;
  margin: auto;
  padding: 135px 20px 100px;
}

.customers-hero-title {
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.3vw, 5.25rem);
  line-height: 1.25;
  margin: 0;
  text-align: center;
}

.customers-hero-lead {
  max-width: 1450px;
  margin: 0;
  text-align: center;
  font-family: "Lato", sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 2.125rem);
  line-height: 1.5;
  color: #f6f4ed;
}

.customers-segments {
  padding-top: 56px;
  padding-bottom: 22px;
}

.customers-heading {
  margin-bottom: 56px !important;
}

.customers-kicker {
  margin: 0 0 14px;
  color: var(--olive);
  font-family: "Lato", sans-serif;
  font-size: clamp(1.2rem, 1.9vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.customers-section-title {
  margin: 0 0 20px;
  color: #000;
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 6rem);
  line-height: 1.16;
}

.customers-subtitle {
  margin: 0 auto;
  max-width: 1270px;
  color: var(--slate);
  font-family: "Lato", sans-serif;
  font-size: clamp(1rem, 1.55vw, 2.25rem);
  line-height: 1.4;
}

.customer-cards-rail {
  min-height: 460px;
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.customer-rail-card {
  position: relative;
  flex: 1;
  min-width: 122px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: flex 0.45s var(--ease), box-shadow 0.35s ease;
}

.customer-rail-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-rail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(108 122 63 / 85%) 0%, rgb(255 255 255 / 66%) 100%);
}

.customer-rail-content {
  position: relative;
  z-index: 1;
  height: 794px;
  padding: 50px;
  display: flex;
  /* flex-direction: column; */
  justify-content: space-between;
  color: #000;
}

.customer-rail-content h3 {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-size: clamp(1.15rem, 2.45vw, 2.5rem);
  font-weight: 800;
}

.customer-rail-content p {
  margin: 20px 0 0;
  color: var(--slate);
  font-family: "Lato", sans-serif;
  font-size: clamp(1rem, 0.95vw, 1.375rem);
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  padding-bottom: 20px;
  border-bottom: 1px solid grey;
}

.customer-rail-card.active  .customer-rail-content{
  flex-direction:column;
}

.customer-rail-link {
  width: 100%;
  margin-top: 18px;
  color: var(--olive);
  font-family: "Lato", sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease, color 0.2s ease;
  justify-content: center;
  font-size: 18px;
}

.customer-rail-link:hover {
  color: var(--olive);
}

.customer-rail-card .vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: auto;
  text-align: center;
}

.customer-rail-card.active,
.customer-rail-card:hover {
  flex: 2.8;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.customer-rail-card.active .vertical,
.customer-rail-card:hover .vertical,
.customer-rail-card:focus-within .vertical {
  /* display: none; */
  writing-mode: inherit;
  transform: none;
  margin: 0px;
  text-align: initial;
}

.customer-rail-card.active p,
.customer-rail-card.active .customer-rail-link,
.customer-rail-card:hover p,
.customer-rail-card:hover .customer-rail-link,
.customer-rail-card:focus-within p,
.customer-rail-card:focus-within .customer-rail-link {
  opacity: 1;
  transform: translateY(0);
}

.customers-mobile-list {
  display: none;
}

.customers-mobile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 12px;
  background: #ece9db;
  color: #000;
  font-weight: 700;
  margin-bottom: 10px;
}

.customers-mobile-item:hover {
  color: var(--olive);
}

@media (max-width: 1399.98px) {
  .customer-cards-rail {
    min-height: 420px;
    gap: 14px;
  }

  .customer-rail-card {
    min-width: 96px;
  }
}

@media (max-width: 991.98px) {
  .customers-hero {
    margin: 12px;
    min-height: auto;
    padding-bottom: 40px;
  }

  .customers-hero-inner {
    min-height: auto;
  }

  .customers-hero-content {
    padding-top: 24px;
  }

  .customers-heading {
    margin-bottom: 34px !important;
  }

  .customer-cards-rail {
    display: none;
  }

  .customers-mobile-list {
    display: block;
  }
}

@media (max-width: 575.98px) {
  .customers-main {
    padding: 0 8px 26px;
  }

  .customers-hero {
    margin: 8px;
    border-radius: 16px;
    padding: 14px 10px 30px;
  }
}
