/**
 * CMS Home Hero with Stats Block Styles
 */

.cms-home-hero {
  width: 100%;
  box-sizing: border-box;
}

.block-cms-home-hero {
  max-width: 100% !important;
  padding: 0 !important;
  background-color: transparent !important;
}

.cms-home-hero__container {
  width: 100%;
}

.cms-home-hero__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.cms-home-hero__main--split {
  display: flex;
  flex-direction: column;
}

@media (min-width: 767px) {
  .cms-home-hero__main--split {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }
}

.cms-home-hero__content {
  flex: 1;
  max-width: 100%;
}

@media (min-width: 767px) {
  .cms-home-hero__content {
    max-width: none;
  }
}

.cms-home-hero__title {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
}

@media (max-width: 767px) {
  .cms-home-hero__title {
    font-size: 28px !important;
  }
}

.cms-home-hero__highlight {
  /* Color is set inline */
}

.cms-home-hero__description {
  line-height: 1.6;
  margin: 0;
}

.cms-home-hero__description p {
  margin: 0;
}

@media (max-width: 767px) {
  .cms-home-hero__description {
    font-size: 16px !important;
  }
}

/* Trust Indicators Row */
.cms-home-hero__trust-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.cms-home-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.cms-home-hero__trust-icon {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cms-home-hero__cta-wrapper {
  display: flex;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .cms-home-hero__cta-wrapper {
    flex-direction: column;
    width: 100%;
  }
}

.cms-home-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 200ms ease;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .cms-home-hero__cta {
    width: 100%;
    justify-content: center;
  }
}

.cms-home-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cms-home-hero__cta--secondary {
  /* Secondary button styles are set inline */
}

.cms-home-hero__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cms-home-hero__image {
  max-width: 100%;
  height: auto;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

/* Stats Section */
.cms-home-hero__stats {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 40px 24px 24px;
  border-radius: 12px;
}

@media (min-width: 767px) {
  .cms-home-hero__stats {
    gap: 48px;
    padding: 40px 32px 24px;
  }
}

/* Stats with Dividers */
.cms-home-hero__stats--with-dividers {
  gap: 0;
}

.cms-home-hero__stats--with-dividers .cms-home-hero__stat {
  padding: 0 24px;
  border-right: 1px solid var(--divider-color, #e5e7eb);
}

@media (min-width: 767px) {
  .cms-home-hero__stats--with-dividers .cms-home-hero__stat {
    padding: 0 48px;
  }
}

.cms-home-hero__stats--with-dividers .cms-home-hero__stat:last-child {
  border-right: none;
}

@media (max-width: 767px) {
  .cms-home-hero__stats--with-dividers .cms-home-hero__stat {
    border-right: none;
    border-bottom: 1px solid var(--divider-color, #e5e7eb);
    padding: 16px 24px;
    width: 50%;
  }

  .cms-home-hero__stats--with-dividers .cms-home-hero__stat:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .cms-home-hero__stats--with-dividers .cms-home-hero__stat:nth-child(odd) {
    border-right: 1px solid var(--divider-color, #e5e7eb);
  }
}

.cms-home-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 100px;
}

@media (min-width: 767px) {
  .cms-home-hero__stat {
    min-width: 120px;
  }
}

/* Stat Icon */
.cms-home-hero__stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.cms-home-hero__stat-icon svg {
  width: 28px;
  height: 28px;
}

@media (min-width: 767px) {
  .cms-home-hero__stat-icon svg {
    width: 32px;
    height: 32px;
  }
}

.cms-home-hero__stat-value {
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 767px) {
  .cms-home-hero__stat-value {
    font-size: 28px !important;
  }
}

.cms-home-hero__stat-label {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

/* Centered Layout */
.cms-home-hero--center .cms-home-hero__main {
  text-align: center;
}

.cms-home-hero--center .cms-home-hero__content {
  max-width: 800px;
  margin: 0 auto;
}

.cms-home-hero--center .cms-home-hero__cta-wrapper {
  justify-content: center;
}

/* Full Background Layout */
.cms-home-hero--full-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cms-home-hero--full-bg .cms-home-hero__content {
  position: relative;
  z-index: 1;
}

/* Image Position Layouts */
.cms-home-hero--image-top .cms-home-hero__main,
.cms-home-hero--image-bottom .cms-home-hero__main {
  flex-direction: column;
  align-items: stretch;
}

.cms-home-hero--image-top .cms-home-hero__image-wrapper,
.cms-home-hero--image-bottom .cms-home-hero__image-wrapper {
  width: 100%;
  text-align: center;
}

.cms-home-hero--image-top .cms-home-hero__image,
.cms-home-hero--image-bottom .cms-home-hero__image {
  max-width: 100%;
}

.cms-home-hero--image-left .cms-home-hero__main,
.cms-home-hero--image-right .cms-home-hero__main {
  flex-direction: column;
}

@media (min-width: 767px) {
  .cms-home-hero--image-left .cms-home-hero__main {
    flex-direction: row-reverse;
    align-items: center;
  }

  .cms-home-hero--image-right .cms-home-hero__main {
    flex-direction: row;
    align-items: center;
  }
}

/* Background Image Layout */
.cms-home-hero--image-background {
  position: relative;
  min-height: 400px;
}

.cms-home-hero--image-background .cms-home-hero__content {
  color: #ffffff;
}

.cms-home-hero--image-background .cms-home-hero__overlay {
  pointer-events: none;
}

/* Combined Image + Stats Card */
.cms-home-hero__card {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.cms-home-hero__card .cms-home-hero__image-wrapper {
  flex: none;
}

.cms-home-hero__card .cms-home-hero__image {
  width: 100%;
  box-shadow: none;
}

.cms-home-hero__card .cms-home-hero__stats {
  margin-top: 0;
}
