:root {
  --distributor-navy: #061c31;
  --distributor-blue: #064983;
  --distributor-yellow: #ffb600;
  --distributor-line: #dbe3ea;
  --distributor-muted: #5f7081;
  --distributor-soft: #f5f8fb;
}

.distributor-page {
  color: #0c2744;
  background: #fff;
}

.distributor-page .site-header {
  z-index: 160;
}

.distributor-page h1,
.distributor-page h2,
.distributor-page h3,
.distributor-page p {
  letter-spacing: 0;
}

.distributor-hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 62px max(34px, calc((100% - 1280px) / 2));
  overflow: hidden;
  background-color: var(--distributor-navy);
  background-image: url("../media/images/Distributor-partnership-banner.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.distributor-hero-inner {
  width: min(720px, 60%);
}

.distributor-eyebrow,
.section-kicker {
  margin: 0 0 11px;
  color: var(--distributor-yellow);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.distributor-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(47px, 4.2vw, 62px);
  line-height: 1.04;
}

.distributor-hero-copy {
  max-width: 600px;
  margin: 20px 0 0;
  color: #dce7ef;
  font-size: 17px;
  line-height: 1.7;
}

.distributor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.distributor-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.distributor-button:hover {
  transform: translateY(-2px);
}

.distributor-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.distributor-button-primary {
  margin-top: 28px;
  background: var(--distributor-yellow);
  color: #07192a;
  box-shadow: 0 12px 28px rgba(255, 182, 0, .16);
}

.distributor-button-primary:hover {
  background: #ffc329;
}

.distributor-button-dark {
  background: #064983;
  color: #fff;
}

.distributor-button-dark:hover {
  background: #073865;
}

.distributor-support {
  padding: 70px max(34px, calc((100% - 1180px) / 2)) 62px;
}

.distributor-support-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.34fr);
  gap: 74px;
  align-items: start;
}

.section-kicker {
  color: var(--distributor-blue);
}

.distributor-support h2,
.distributor-process h2,
.partner-values h2 {
  margin: 0;
  color: #0b2642;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.12;
}

.section-copy {
  margin: 17px 0 0;
  color: var(--distributor-muted);
  font-size: 15px;
  line-height: 1.75;
}

.partner-types {
  display: grid;
  gap: 9px;
  margin-top: 26px;
}

.partner-type {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  background: var(--distributor-soft);
}

.partner-type span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: 5px;
  border-radius: 50%;
  background: #0b3157;
  color: #fff;
}

.partner-type svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.8;
}

.partner-type strong {
  min-width: 0;
  padding: 10px 15px;
  font-size: 14px;
  line-height: 1.35;
}

.support-offer > h2 {
  max-width: 520px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 25px;
}

.support-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  min-height: 144px;
  padding: 22px 22px 22px 0;
  border-bottom: 1px solid var(--distributor-line);
}

.support-item:nth-child(odd) {
  padding-right: 28px;
  border-right: 1px solid var(--distributor-line);
}

.support-item:nth-child(even) {
  padding-left: 28px;
}

.support-item:nth-last-child(-n+2) {
  border-bottom: 0;
}

.support-item > svg {
  width: 43px;
  height: 43px;
  color: var(--distributor-yellow);
  stroke-width: 1.55;
}

.support-item h3 {
  margin: 0 0 8px;
  color: #102b47;
  font-size: 15px;
  line-height: 1.35;
}

.support-item p {
  margin: 0;
  color: var(--distributor-muted);
  font-size: 13px;
  line-height: 1.65;
}

.partnership-cta {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 48px;
  padding: 22px 34px;
  background: var(--distributor-soft);
}

.partnership-cta-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #0b3157;
  color: #fff;
}

.partnership-cta-icon svg {
  width: 35px;
  height: 35px;
  stroke-width: 1.6;
}

.partnership-cta h2 {
  font-size: 24px;
}

.partnership-cta p {
  margin: 5px 0 0;
  color: var(--distributor-muted);
  font-size: 13px;
}

.partner-values {
  padding: 62px max(34px, calc((100% - 1280px) / 2)) 68px;
  background-color: #06223c;
  background-image: url("../media/images/Partnerships.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.partner-values-inner {
  text-align: center;
}

.partner-values h2 {
  color: #fff;
  font-size: clamp(30px, 3vw, 42px);
}

.partner-value-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 35px;
}

.partner-value {
  min-height: 220px;
  padding: 28px 17px 22px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 3px;
  background: rgba(4, 26, 48, .76);
}

.partner-value > svg {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  color: #fff;
  stroke-width: 1.45;
}

.partner-value h3 {
  min-height: 40px;
  margin: 0 0 10px;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
}

.partner-value p {
  margin: 0;
  color: #c7d6e3;
  font-size: 12px;
  line-height: 1.65;
}

.distributor-process {
  padding: 66px max(34px, calc((100% - 1280px) / 2)) 76px;
  background: #fff;
  text-align: center;
}

.distributor-process-inner > h2 {
  font-size: clamp(31px, 3vw, 42px);
}

.process-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin-top: 38px;
}

.process-step {
  position: relative;
  min-width: 0;
  padding: 0 8px;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px;
  left: calc(50% + 33px);
  width: calc(100% - 47px);
  border-top: 1px dashed #6e8194;
}

.process-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  border: 2px solid var(--distributor-yellow);
  border-radius: 50%;
  background: #082d50;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.process-step > svg {
  width: 43px;
  height: 43px;
  margin-bottom: 15px;
  color: #0d5797;
  stroke-width: 1.55;
}

.process-step h3 {
  min-height: 40px;
  margin: 0 0 8px;
  color: #102b47;
  font-size: 15px;
  line-height: 1.35;
}

.process-step p {
  margin: 0;
  color: var(--distributor-muted);
  font-size: 12px;
  line-height: 1.6;
}

html[dir="rtl"] .distributor-hero-inner,
html[dir="rtl"] .partner-profile,
html[dir="rtl"] .support-offer,
html[dir="rtl"] .partnership-cta {
  text-align: right;
}

html[dir="rtl"] .partner-type span {
  margin-right: 5px;
  margin-left: 0;
}

html[dir="rtl"] .support-item:nth-child(odd) {
  padding-right: 0;
  padding-left: 28px;
  border-right: 0;
  border-left: 1px solid var(--distributor-line);
}

html[dir="rtl"] .support-item:nth-child(even) {
  padding-right: 28px;
  padding-left: 0;
}

html[dir="rtl"] .process-step:not(:last-child)::after {
  right: calc(50% + 33px);
  left: auto;
}

@media (max-width: 1120px) {
  .distributor-support-grid {
    gap: 44px;
  }

  .partner-value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .partner-value {
    min-height: 190px;
  }

  .process-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 42px;
  }

  .process-step:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .distributor-hero {
    min-height: 500px;
    align-items: end;
    padding: 70px 30px 56px;
    background-position: 63% center;
  }

  .distributor-hero-inner {
    width: min(650px, 84%);
  }

  .distributor-support {
    padding: 56px 30px;
  }

  .distributor-support-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .partnership-cta {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .partnership-cta .distributor-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .partner-values,
  .distributor-process {
    padding-right: 30px;
    padding-left: 30px;
  }
}

@media (max-width: 620px) {
  .distributor-hero {
    min-height: 530px;
    padding: 72px 18px 42px;
    background-position: 65% center;
  }

  .distributor-hero-inner {
    width: 100%;
  }

  .distributor-hero h1 {
    max-width: 520px;
    font-size: 42px;
    line-height: 1.05;
  }

  .distributor-hero-copy {
    max-width: 94%;
    font-size: 15px;
    line-height: 1.6;
  }

  .distributor-button {
    width: 100%;
    min-width: 0;
    height: auto;
    white-space: normal;
    text-align: center;
  }

  .distributor-support {
    padding: 50px 18px;
  }

  .distributor-support h2,
  .partner-values h2,
  .distributor-process h2 {
    font-size: 31px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-item,
  .support-item:nth-child(odd),
  .support-item:nth-child(even),
  html[dir="rtl"] .support-item:nth-child(odd),
  html[dir="rtl"] .support-item:nth-child(even) {
    min-height: 0;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--distributor-line);
    border-left: 0;
  }

  .support-item:last-child {
    border-bottom: 0;
  }

  .partnership-cta {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    margin-top: 34px;
    padding: 22px 18px;
  }

  .partnership-cta-icon {
    width: 54px;
    height: 54px;
  }

  .partnership-cta-icon svg {
    width: 28px;
    height: 28px;
  }

  .partnership-cta h2 {
    font-size: 20px;
  }

  .partner-values,
  .distributor-process {
    padding: 52px 18px 58px;
  }

  .partner-value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
  }

  .partner-value {
    min-height: 210px;
    padding: 24px 12px 18px;
  }

  .process-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 12px;
  }

  .process-step {
    padding: 0 5px;
  }

  .process-step::after {
    display: none;
  }
}

@media (max-width: 390px) {
  .distributor-hero h1 {
    font-size: 37px;
  }

  .partner-value-grid,
  .process-track {
    grid-template-columns: 1fr;
  }

  .partner-value {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .distributor-button {
    transition: none;
  }
}
