/* =========================================================
   YES I CAN ROOFING & EXTERIORS
   BLOCK 04 — THIN CONTACT CTA BAND
   ========================================================= */

.cta-band {
  position: relative;
  width: 100%;
  background: #04090f;
}

.cta-band__inner {
  position: relative;
  width: min(100%, var(--content-max-width));
  min-height: 224px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 8, 13, 0.00) 0%,
      rgba(3, 8, 13, 0.03) 20%,
      rgba(3, 8, 13, 0.28) 37%,
      rgba(3, 8, 13, 0.70) 56%,
      rgba(3, 8, 13, 0.94) 100%
    ),
    url("../../imagenes/cta-roofer-banner.webp");
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, auto 100%;
  background-position: center center, left center;
}

.cta-band__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 28px 28px 28px 26%;
  display: grid;
  grid-template-columns: minmax(350px, .92fr) auto;
  gap: 18px;
  align-items: center;
}

.cta-band__message {
  min-width: 0;
  max-width: 460px;
}

.cta-band__eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .90);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cta-band__eyebrow::before {
  display: none;
}

.cta-band__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(31px, 2.55vw, 42px);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.04em;
  white-space: normal;
}

.cta-band__copy {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.cta-band__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
  transform: translateX(-24px);
}

.cta-band__action {
  min-width: 0;
  min-height: 62px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 7px;
  background: rgba(3, 10, 16, .42);
  backdrop-filter: blur(4px);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.cta-band__action:nth-child(1),
.cta-band__action:nth-child(2) {
  width: auto;
}

.cta-band__action:hover,
.cta-band__action:focus-visible {
  transform: translateY(-1px);
  border-color: #ffffff;
  background: rgba(3, 10, 16, .60);
}

.cta-band__action--primary {
  border-color: var(--header-red);
  background: var(--header-red);
}

.cta-band__action--primary:hover,
.cta-band__action--primary:focus-visible {
  border-color: var(--header-red-hover);
  background: var(--header-red-hover);
}

.cta-band__icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-band__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.cta-band__action-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cta-band__action-copy strong {
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.16;
  white-space: nowrap;
}

.cta-band__action-copy small {
  color: rgba(255,255,255,.80);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.16;
  white-space: nowrap;
}

@media (max-width: 1260px) {
  .cta-band__content {
    padding-left: 25%;
    padding-right: 28px;
    grid-template-columns: minmax(330px, 1fr) auto;
    gap: 18px;
  }

  .cta-band__message {
    max-width: 500px;
  }

  .cta-band__action:nth-child(1),
  .cta-band__action:nth-child(2) {
    width: auto;
  }
}

@media (max-width: 1040px) {
  .cta-band__inner {
    min-height: 252px;
    background-size: 100% 100%, auto 100%;
  }

  .cta-band__content {
    padding: 24px 24px 24px 23%;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta-band__message {
    max-width: 570px;
  }

  .cta-band__actions {
    max-width: 100%;
    flex-wrap: wrap;
    transform: none;
  }
}

@media (max-width: 768px) {
  .cta-band__inner {
    min-height: 356px;
    align-items: flex-end;
    background-image:
      linear-gradient(
        180deg,
        rgba(3, 8, 13, 0.10) 0%,
        rgba(3, 8, 13, 0.20) 38%,
        rgba(3, 8, 13, 0.76) 66%,
        rgba(3, 8, 13, 0.98) 100%
      ),
      url("../../imagenes/cta-roofer-banner.webp");
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, auto 100%;
    background-position: center center, left center;
  }

  .cta-band__content {
    padding: 22px 14px;
    display: block;
  }

  .cta-band__message {
    max-width: 100%;
  }

  .cta-band__title {
    font-size: clamp(31px, 8.8vw, 42px);
  }

  .cta-band__copy {
    font-size: 13px;
  }

  .cta-band__actions {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 100%;
  }

  .cta-band__action,
  .cta-band__action:nth-child(1),
  .cta-band__action:nth-child(2) {
    width: 100%;
    min-height: 58px;
  }

  .cta-band__action-copy strong {
    font-size: 12px;
  }

  .cta-band__action-copy small {
    font-size: 10px;
  }
}

/* =========================================================
   DESKTOP SITE MODE ON MOBILE / COMPACT DESKTOP
   Preserve the real desktop CTA composition between 769–1040px.
   ========================================================= */
@media (min-width: 769px) and (max-width: 1040px) {
  .cta-band__inner {
    min-height: 184px;
    align-items: center;
    background-image:
      linear-gradient(
        90deg,
        rgba(3, 8, 13, 0.00) 0%,
        rgba(3, 8, 13, 0.03) 20%,
        rgba(3, 8, 13, 0.28) 37%,
        rgba(3, 8, 13, 0.70) 56%,
        rgba(3, 8, 13, 0.94) 100%
      ),
      url("../../imagenes/cta-roofer-banner.webp");
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, auto 100%;
    background-position: center center, left center;
  }

  .cta-band__content {
    width: 100%;
    padding: 20px 18px 20px 24%;
    display: grid;
    grid-template-columns: minmax(245px, 0.78fr) minmax(0, 1.22fr);
    gap: 12px;
    align-items: center;
  }

  .cta-band__message {
    max-width: 320px;
  }

  .cta-band__eyebrow {
    margin-bottom: 5px;
    font-size: 8.5px;
  }

  .cta-band__title {
    font-size: clamp(24px, 3vw, 31px);
    line-height: 0.98;
  }

  .cta-band__copy {
    margin-top: 5px;
    font-size: 10px;
  }

  .cta-band__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: none;
    transform: none;
  }

  .cta-band__action,
  .cta-band__action:nth-child(1),
  .cta-band__action:nth-child(2) {
    width: 100%;
    min-height: 52px;
    padding: 8px 9px;
    gap: 6px;
  }

  .cta-band__icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }

  .cta-band__action-copy {
    gap: 2px;
  }

  .cta-band__action-copy strong {
    font-size: 8.5px;
  }

  .cta-band__action-copy small {
    font-size: 7.5px;
  }
}
