/* Adapted from UI Vault sections/cta/model-001: same two-column layout (headline,
   copy and pill + circle button on the left, 2×2 photo grid on the right) and the
   same hover behaviour, translated to MIRA's tokens. The model's Inter, beige
   greys, 13–15px text and its own breakpoints (1250 / 1000 / 650 / 390) are gone;
   the photos are local WebP files in assets/cta/. The section keeps .section-dark,
   so it follows the theme through the --ui-cta tokens. */

.mira-cta {
  --cta-ease: cubic-bezier(.22, 1, .36, 1);

  min-height: 100vh;
  padding: clamp(110px, 10vw, 160px) clamp(24px, 4vw, 76px) clamp(80px, 7vw, 120px);
}

.mira-cta__inner {
  display: grid;
  width: min(1600px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(60px, 7vw, 140px);
  align-items: start;
}

/* ---------- left ---------- */

.mira-cta__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mira-cta .mira-cta__title {
  max-width: 900px;
  margin: 0;
  color: var(--ui-cta-text);
  font-size: clamp(54px, 6.5vw, 112px);
  line-height: .9;
  letter-spacing: -.07em;
  text-align: left;
}

.mira-cta__description {
  max-width: 560px;
  margin: clamp(36px, 5vh, 72px) 0 0;
  color: rgba(var(--ui-cta-text-rgb), .66);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

/* Pill + circle: the pill is solid (inverse of the section), the circle is an
   outline that fills and slides 5px on hover. */
.mira-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  border-radius: 999px;
  color: var(--ui-cta-text);
  text-decoration: none;
}

.mira-cta__button-text {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 34px;
  border-radius: 999px;
  background: var(--ui-cta-text);
  color: var(--ui-cta);
  font-size: var(--fs-ui);
  font-weight: 700;
  transition: transform .35s var(--cta-ease);
}

.mira-cta__button-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(var(--ui-cta-text-rgb), .22);
  border-radius: 999px;
  transition:
    background-color .28s ease,
    color .28s ease,
    border-color .28s ease,
    transform .35s var(--cta-ease);
}

.mira-cta__button-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--cta-ease);
}

@media (hover: hover) and (pointer: fine) {
.mira-cta__button:hover .mira-cta__button-text { transform: translateY(-2px); }
}

@media (hover: hover) and (pointer: fine) {
.mira-cta__button:hover .mira-cta__button-arrow {
  border-color: var(--ui-cta-text);
  background: var(--ui-cta-text);
  color: var(--ui-cta);
  transform: translateX(5px);
}
}

@media (hover: hover) and (pointer: fine) {
.mira-cta__button:hover .mira-cta__button-arrow svg { transform: translateX(2px); }
}

.mira-cta__button:focus-visible {
  outline: 2px solid var(--ui-cta-text);
  outline-offset: 5px;
}

/* ---------- right: 2×2 grid ---------- */

.mira-cta__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 5vw, 80px) clamp(24px, 3vw, 56px);
  align-content: start;
}

.mira-cta__card { min-width: 0; }

.mira-cta__image {
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(var(--ui-cta-text-rgb), .08);
}

.mira-cta__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82);
  transition: transform .65s var(--cta-ease), filter .5s ease;
}

@media (hover: hover) and (pointer: fine) {
.mira-cta__card:hover .mira-cta__image img {
  transform: scale(1.035);
  filter: saturate(1);
}
}

.mira-cta__card h3 {
  margin: 20px 0 0;
  color: var(--ui-cta-text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.035em;
}

.mira-cta__card p {
  max-width: 320px;
  margin: 10px 0 0;
  color: rgba(var(--ui-cta-text-rgb), .66);
  font-size: var(--fs-small);
  line-height: 1.55;
}

/* ---------- responsive ---------- */

@media (max-width: 1279.98px) {
  .mira-cta__inner {
    grid-template-columns: 1fr .9fr;
    gap: 64px;
  }
}

@media (max-width: 1023.98px) {
  .mira-cta { min-height: auto; }

  .mira-cta__inner {
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .mira-cta__grid { max-width: 850px; }
}

@media (max-width: 767.98px) {
  .mira-cta { padding: 110px 24px 72px; }

  .mira-cta .mira-cta__title { font-size: clamp(52px, 14vw, 74px); }

  /* the four services are a carousel (scripts/mobile-rail.js),
     2026-09-23, on request */
  .mira-cta__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc(100vw - 72px);
    gap: 14px;
  }
  .mira-cta__card { scroll-snap-align: start; }

  .mira-cta__card p { max-width: 420px; }
}

@media (max-width: 479.98px) {
  .mira-cta__button-text { padding: 0 24px; }
}
