/* CleanCa home hero. Colours come from the theme palette (primary = navy, secondary = light blue). */

.cleanca-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  /* The accelerator header (about 100px) sits over the top of the page. */
  padding: calc(100px + clamp(2.5rem, 6vw, 5rem)) 20px clamp(2.5rem, 6vw, 4.5rem);
  color: #fff;
  background: var(--wp--preset--color--primary);
}

.cleanca-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cleanca-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Navy tint, stronger at the bottom where the buttons sit. */
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--wp--preset--color--primary) calc(var(--cleanca-hero-overlay, .55) * 85%), transparent) 0%,
      color-mix(in srgb, var(--wp--preset--color--primary) calc(var(--cleanca-hero-overlay, .55) * 100% + 20%), transparent) 100%);
}

.cleanca-hero__inner {
  max-width: var(--wp--style--global--wide-size, 1200px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.cleanca-hero__intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cleanca-hero .cleanca-hero__eyebrow {
  margin: 0 0 .75rem;
  color: var(--wp--preset--color--secondary);
  font-size: clamp(.85rem, 1.6vw, 1rem);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cleanca-hero .cleanca-hero__heading {
  margin: 0;
  color: #fff;
  font-family: var(--wp--preset--font-family--heading, inherit);
  font-size: clamp(2.1rem, 5.2vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}

.cleanca-hero .cleanca-hero__text {
  margin: 1.25rem auto 0;
  max-width: 620px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.55;
}

.cleanca-hero__points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
}

.cleanca-hero__points li {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
}

.cleanca-hero__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--primary);
}

.cleanca-hero__check svg {
  width: .95rem;
  height: .95rem;
  stroke-width: 3;
}

.cleanca-hero .cleanca-hero__cards-title {
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  text-align: center;
}

.cleanca-hero__cards {
  /* Centred rows of four: seven services sit as 4 + 3, never one alone on a row of six. */
  --cleanca-hero-cols: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cleanca-hero__cards li {
  flex: 0 1 calc((100% - (var(--cleanca-hero-cols) - 1) * 1rem) / var(--cleanca-hero-cols));
  margin: 0;
  display: flex;
}

@media (max-width: 960px) {
  .cleanca-hero__cards {
    --cleanca-hero-cols: 2;
  }
}

.cleanca-hero .cleanca-hero__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  padding: 1.5rem 1rem 1.25rem;
  border-radius: 14px;
  background: #fff;
  color: var(--wp--preset--color--primary);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cleanca-hero .cleanca-hero__card:hover,
.cleanca-hero .cleanca-hero__card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .26);
  color: var(--wp--preset--color--primary);
}

.cleanca-hero .cleanca-hero__card:focus-visible {
  outline: 3px solid var(--wp--preset--color--secondary);
  outline-offset: 3px;
}

.cleanca-hero__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--wp--preset--color--secondary) 35%, #fff);
  color: var(--wp--preset--color--primary);
  transition: background .2s ease, color .2s ease;
}

.cleanca-hero__card:hover .cleanca-hero__card-icon {
  background: var(--wp--preset--color--primary);
  color: #fff;
}

.cleanca-hero__card-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke-width: 1.75;
}

.cleanca-hero__card-body {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.cleanca-hero__card-label {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
}

.cleanca-hero__card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  font-size: .85rem;
  font-weight: 500;
  opacity: .75;
}

.cleanca-hero__card-action svg {
  width: 1rem;
  height: 1rem;
  transition: transform .2s ease;
}

.cleanca-hero__card:hover .cleanca-hero__card-action svg {
  transform: translateX(3px);
}

.cleanca-hero .cleanca-hero__phone {
  margin: 1.5rem 0 0;
  text-align: center;
  color: rgba(255, 255, 255, .9);
}

.cleanca-hero .cleanca-hero__phone a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-left: .35rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--wp--preset--color--secondary);
}

.cleanca-hero__phone svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Phones: compact horizontal buttons, one per row. */
@media (max-width: 640px) {
  .cleanca-hero__cards {
    --cleanca-hero-cols: 1;
    gap: .65rem;
  }

  .cleanca-hero .cleanca-hero__card {
    flex-direction: row;
    padding: .8rem 1rem;
    gap: .9rem;
    text-align: left;
  }

  .cleanca-hero__card-icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .cleanca-hero__card-icon svg {
    width: 1.4rem;
    height: 1.4rem;
  }

  .cleanca-hero__card-action {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cleanca-hero .cleanca-hero__card,
  .cleanca-hero__card-action svg {
    transition: none;
  }
}
