/* ===================================================
   Layout: CTA
   File:   template-parts/flexible/cta/cta.css
=================================================== */

/* ==========================================
   Contact / CTA Section Styles
   ========================================== */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: clamp(28px, 3cqi, 44px);
  padding: clamp(32px, 5cqi, 80px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 4.4cqi, 72px);
  align-items: center;
  transition: background-color .4s, color .4s;
  background: var(--purple);
  color: var(--paper);
}

.cta-h {
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(26px, 6.2cqi, 50px);
  line-height: normal;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.cta-s {
  font-size: clamp(18px, 1.6cqi, 22px);
  line-height: 1.5;
  margin-top: 24px;
  max-width: 520px;
  color: rgba(251, 250, 242, .88);
}

.cta-btn {
  margin-top: 36px;
  min-height: 60px;
  padding: 0 30px;
  font-size: 18px;
  border-radius: 16px;
  background: var(--paper);
  color: #000;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .5);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: clamp(10px, 1.3cqi, 16px);
  aspect-ratio: 1;
  width: 100%;
  max-width: clamp(320px, 34cqi, 440px);
  justify-self: end;
  align-self: center;
}

.mosaic i {
  aspect-ratio: 1;
  border-radius: clamp(14px, 1.8cqi, 24px);
  display: block;
  transition: transform .7s var(--ease), background-color .4s;
}

.mosaic .m1 {
  grid-column: 1;
  grid-row: 1;
  background: var(--lav2);
}

.mosaic .m3 {
  grid-column: 3;
  grid-row: 1;
  background: var(--amber);
}

.mosaic .mos-ph {
  grid-column: 2 / span 2;
  grid-row: 2 / span 2;
  position: relative;
  aspect-ratio: 1;
  border-radius: clamp(20px, 2.6cqi, 34px);
  background: var(--amber);
  overflow: hidden;
  transition: transform .7s var(--ease), background-color .4s;
}

.mosaic .mos-ph .phc {
  position: absolute;
  inset: 0;
  clip-path: none;
  border-radius: inherit;
  overflow: hidden;
}

.mosaic .mos-ph .phc img {
  position: absolute;
  bottom: 0%;
  left: 50%;
  top: 70%;
  transform: translateX(-37%) translateY(-50%) rotate(13deg) scale(1.5);
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.mosaic .m4 {
  grid-column: 4;
  grid-row: 2;
  background: #FFFFFF;
}

.mosaic .m5 {
  grid-column: 1;
  grid-row: 3;
  background: var(--olive);
}

.mosaic .m-org,
.mosaic>i:nth-last-child(2) {
  grid-column: 2;
  grid-row: 4;
  background: var(--orange);
}

.mosaic .m-sm,
.mosaic>i:last-child {
  grid-column: 4;
  grid-row: 4;
  width: 50%;
  height: 50%;
  justify-self: center;
  align-self: center;
  border-radius: clamp(8px, 1cqi, 14px);
  background: var(--lav2);
}

.cta:hover .mosaic .m1 {
  transform: translate(-8px, -8px);
}

.cta:hover .mosaic .m3 {
  transform: translate(6px, -8px);
}

.cta:hover .mosaic .m4 {
  transform: translate(8px, 0);
}

.cta:hover .mosaic .m5 {
  transform: translate(-8px, 6px);
}

.cta:hover .mosaic .m-org,
.cta:hover .mosaic>i:nth-last-child(2) {
  transform: translate(0, 8px);
}

.cta:hover .mosaic .m-sm,
.cta:hover .mosaic>i:last-child {
  transform: translate(6px, 6px);
}

.cta:hover .mosaic .mos-ph {
  transform: scale(1.02);
}

/* Responsive Container Queries */
@container page (max-width: 960px) {
  .cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .mosaic {
    max-width: 420px;
  }
}

@container page (max-width: 640px) {
  .cta-btn {
    width: 100%;
  }
}


