/* =========================================================================
   Progress Report Template
   Enqueued only when the "template-progress-report.php" template is used.
   ========================================================================= */

/* Narrow the theme container specifically for this template */
.progress-report__page .container {
  max-width: 1120px;
}

/* --- Hero --- */
.pr-hero {
  padding: 4rem 0 5rem;
}

.pr-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 5rem;
  align-items: start;
  justify-content: space-between;
}

.pr-hero__kicker {
  font-size: 2rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin: 0 0 2rem;
  text-transform: uppercase;
}

.pr-hero__heading {
  margin: 0 0 2.5rem;
  line-height: 1;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pr-hero__heading-main {
  font-family: Recife, serif;
  font-size: clamp(2.75rem, 6vw, 4rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
}

.pr-hero__subheading {
  font-family: Raleway, sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.pr-hero__report {
  max-width: 380px;
  margin-top: 1rem;
}

.pr-hero__download {
  display: block!important;
  width: fit-content;
  margin: 1.5rem 0 0 auto;
}

.pr-hero__cover img {
  width: 100%;
  height: auto;
  display: block;
}

.pr-hero__download {
  display: block;
  width: fit-content;
  margin: 1.5rem 0 0 auto;
}

.pr-hero__intro {
  font-size: 1.6rem;
  line-height: 1.55;
}

.pr-hero__intro p {
  margin: 0 0 1.25rem;
}

.pr-hero__intro p:last-child {
  margin-bottom: 0;
}

/* --- Testimonials (each is its own <section>) --- */
.pr-testimonial-section {
  padding: 5rem 0;
}

.pr-testimonial {
  display: grid;
  grid-template-columns: minmax(0, 45%) minmax(0, 42%);
  justify-content: space-between;
  gap: 3rem;
  align-items: center;
  position: relative;
}

/* Media-left variant: swap children order */
.pr-testimonial--media-left .pr-testimonial__text {
  order: 2;
}

.pr-testimonial--media-left .pr-testimonial__media {
  order: 1;
}

/* When there's no media, narrow the text so it doesn't stretch */
.pr-testimonial--no-media {
  grid-template-columns: minmax(0, 55ch);
  justify-content: start;
}

.pr-testimonial__text {
  position: relative;
  z-index: 1;
}

.pr-testimonial__quote {
  font-family: Recife, serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.35;
  margin: 0 0 2.5rem;
  font-weight: 300;
}

.pr-testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pr-testimonial__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pr-testimonial__name {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.4;
  max-width: 42ch;
}

.pr-testimonial__name strong {
  font-weight: 700;
}

.pr-testimonial__role {
  font-weight: 400;
  opacity: 0.85;
}

/* Generic video embed (used by testimonials and impact video) */
.pr-video-embed {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  background: #000;
  text-decoration: none;
}

.pr-video-embed img,
.pr-video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
}

a.pr-video-embed:hover .pr-video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}

.pr-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background 0.2s ease;
  display: block;
  pointer-events: none;
}

.pr-video-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 20px solid #1b2a4a;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

/* Decorative shapes (green SVG pillars) — positioned on the text column */
.pr-testimonial--deco-shape-1 .pr-testimonial__text::before,
.pr-testimonial--deco-shape-2 .pr-testimonial__text::before,
.pr-testimonial--deco-shape-3 .pr-testimonial__text::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 60px;
  height: 130px;
  left: -2.5rem;
  top: -4.5rem;
}

.pr-testimonial--deco-shape-1 .pr-testimonial__text::before {
  background-image: url("../img/progress-report/pillar-1.svg");
}

.pr-testimonial--deco-shape-2 .pr-testimonial__text::before {
  background-image: url("../img/progress-report/pillar-2.svg");
}

.pr-testimonial--deco-shape-3 .pr-testimonial__text::before {
  background-image: url("../img/progress-report/pillar-3.svg");
}

/* --- Impact Video --- */
.pr-impact-video {
  padding: 5rem 0;
}

.pr-impact-video__grid {
  display: grid;
  grid-template-columns: minmax(0, 45%) minmax(0, 42%);
  justify-content: space-between;
  gap: 3rem;
  align-items: center;
}

/* Media-left variant: swap children order */
.pr-impact-video--media-left .pr-impact-video__meta  { order: 2; }
.pr-impact-video--media-left .pr-impact-video__media { order: 1; }

.pr-impact-video__title {
  font-family: Raleway, sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: #1b2a4a;
  letter-spacing: 0.02em;
  margin: 0 0 1.25rem;
}

.pr-impact-video__desc {
  font-family: Recife, sans-serif;
  font-size: 2rem;
  line-height: 1.5;
  margin: 0;
}

/* --- Final CTA --- */
.pr-final-cta {
  padding: 4rem 0 5rem;
}

.pr-final-cta__wrapper {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr) minmax(0, 260px);
  gap: 3rem;
  align-items: center;
}

.pr-final-cta__logo-col {
  display: flex;
  justify-content: center;
}

.pr-final-cta__logo {
  max-width: 240px;
  height: auto;
  display: block;
}

.pr-final-cta__text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.pr-final-cta__title-right {
  font-family: Raleway, sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: #1b2a4a;
  letter-spacing: 0.02em;
}

.pr-final-cta__title-right p {
  margin: 0;
}

.pr-final-cta__cover-col {
  display: flex;
  justify-content: center;
}

.pr-final-cta__cover-col img {
  max-width: 220px;
  height: auto;
  display: block;
}

/* --- Shared buttons (Hero download + Final CTA button) --- */
.pr-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 1px solid #1b2a4a;
  border-radius: 999px;
  background: transparent;
  color: #1b2a4a;
  font-family: Raleway, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.pr-btn:hover,
.pr-btn:focus {
  background: #1b2a4a;
  color: #fff;
}

/* Accessibility helper (may already exist in the theme) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {

  .pr-hero__grid,
  .pr-impact-video__grid,
  .pr-final-cta__wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pr-testimonial {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pr-testimonial--media-left .pr-testimonial__text {
    order: 0;
  }

  .pr-testimonial--media-left .pr-testimonial__media {
    order: 1;
  }

  .pr-final-cta__wrapper {
    justify-items: center;
    text-align: center;
  }

  .pr-final-cta__text-col {
    align-items: center;
  }
}