/* ──────────────────────────────────────────────────────────────
   CTA Panels — bold full-width strip of call-to-action tiles.
   ────────────────────────────────────────────────────────────── */
.ch-cta-panels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #000;
  border-top: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
  margin: 0;
  padding: 0;
}

/* Lets the section break out of a constrained content column when used
   inside a standard wp content wrapper. align-wide / align-full handle
   this when placed via the block. */
.alignfull > .ch-cta-panels,
.alignwide > .ch-cta-panels {
  width: 100%;
}

.ch-cta-panel {
  --ch-cta-photo: none;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  overflow: hidden;
  isolation: isolate;
  background-image: var(--ch-cta-photo), linear-gradient(145deg, #1a1a1a 0%, #000 100%);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ch-cta-panel:last-child {
  border-right: none;
}

/* Dark gradient overlay — always present so titles read on any photo */
.ch-cta-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 55%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
  transition: background 0.35s ease;
}

.ch-cta-panel:hover::after {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(163, 0, 21, 0.55) 60%,
    rgba(163, 0, 21, 0.20) 100%
  );
}

/* Top red trim — slides in from left on hover */
.ch-cta-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  z-index: 3;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ch-cta-panel:hover::before {
  transform: scaleX(1);
}

/* Content sits above the overlay */
.ch-cta-panel-content {
  position: relative;
  z-index: 2;
  padding: 28px 24px 24px;
  width: 100%;
}

.ch-cta-panel-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 12px;
}

.ch-cta-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

.ch-cta-panel-title-text {
  flex: 1 1 auto;
}

.ch-cta-panel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              color 0.3s ease;
}

.ch-cta-panel:hover .ch-cta-panel-arrow {
  transform: translateX(6px);
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Tablet: 2 columns ──────────────────────────────────────── */
@media (max-width: 980px) {
  .ch-cta-panels {
    grid-template-columns: repeat(2, 1fr);
  }

  .ch-cta-panel {
    min-height: 180px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .ch-cta-panel:nth-child(2n) {
    border-right: none;
  }

  .ch-cta-panel:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .ch-cta-panel-content {
    padding: 22px 20px 20px;
  }
}

/* ── Phone: single column ───────────────────────────────────── */
@media (max-width: 480px) {
  .ch-cta-panels {
    grid-template-columns: 1fr;
  }

  .ch-cta-panel {
    min-height: 140px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .ch-cta-panel:last-child {
    border-bottom: none;
  }

  .ch-cta-panel-content {
    padding: 20px 18px;
  }

  .ch-cta-panel-arrow {
    width: 32px;
    height: 32px;
  }
}
