/* Task 4 owns this file (ar-media-text). Plain CSS, ar- prefixed classes only; shared tokens and components live in base.css. */
/* Figma 267:1134: 1320 frame, 590px text column + 482px figure, 96px apart. The hairline above belongs to the pricing section. */
.ar-media-text { box-sizing: border-box; width: var(--ar-frame); margin: 0 auto; padding-inline: var(--ar-frame-inset); }   /* same frame and inset as .ar-pricing__grid */
.ar-media-text__grid {
  display: grid;
  grid-template-columns: minmax(0, 590fr) minmax(0, 482fr);
  column-gap: 96px;
  align-items: center;
  /* Bottom 55 (vs 64 top) is an empirical offset: with align-items: center it lands the figure at Figma's y=166 inside the 720 slot
     while the text stays at the top. */
  padding: 64px 0 55px;
  min-height: 720px;   /* Figma slot 267:1134 is 1440x720; centres the figure against the text */
  box-sizing: border-box;
}
.ar-media-text__text { align-self: start; }
.ar-media-text .ar-label { font-size: 17.6px; line-height: 30.8px; letter-spacing: 2.816px; }
.ar-media-text .ar-label + .ar-h2 { margin-top: 24px; }
.ar-media-text .ar-h2 { max-width: 548px; }
.ar-media-text__body { margin-top: 24px; font-size: 17.6px; line-height: 30.8px; max-width: 640px; }
.ar-media-text__body p + p { margin-top: 24px; }
.ar-media-text__figure { margin: 0; }
.ar-media-text__photo { aspect-ratio: 482 / 362; border-bottom: 6px solid var(--ar-red); overflow: hidden; background: var(--ar-gray); }
.ar-media-text__caption {
  margin: 14.4px 0 0;
  font: 600 13.6px/20.4px var(--ar-font-body);
  letter-spacing: 1.088px;
  text-transform: uppercase;
  color: var(--ar-navy);
}

@media (max-width: 1100px) {
  .ar-media-text__grid { column-gap: 48px; min-height: 0; }
}
@media (max-width: 800px) {
  .ar-media-text__grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; padding: 48px 0 56px; }
  .ar-media-text__figure { max-width: 560px; }
}
@media (max-width: 600px) {
  .ar-media-text .ar-label { font-size: 14px; line-height: 24px; letter-spacing: 2.2px; }
  .ar-media-text__body { font-size: 16px; line-height: 28px; }
  .ar-media-text__caption { font-size: 12px; line-height: 18px; letter-spacing: 0.9px; }
}
