/* =============================================
   IMPACT REPORTS PAGE — styles.css
   Depends on ../css/styles.css for tokens,
   header, footer, nav, .btn-green
============================================= */

/* ---- TEAL BUTTON (matches site's teal CTA style) ---- */
.btn-teal {
  display: inline-block;
  background-color: #41BED0;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 100px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-teal:hover {
  background-color: #2fa3b8;
  transform: scale(1.03);
}

/* =============================================
   HERO
============================================= */
#ir-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #2a2a2a;

  /* Placeholder gradient until real hero image is in assets */
  background-image: url('../assets/images/ir-hero-bg.webp');
  background-size: cover;
  background-position: center 30%;
}

.ir-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.ir-hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 110px;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.ir-hero-content h1 {
  font-family: var(--font-main);
  font-size: 64px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.05;
  margin: 0 0 16px;
}

.ir-hero-sub {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .ir-hero-content { padding: 80px 60px; }
  .ir-hero-content h1 { font-size: 50px; }
}

@media (max-width: 767px) {
  #ir-hero { min-height: 300px; }
  .ir-hero-content { padding: 60px 20px; }
  .ir-hero-content h1 { font-size: 38px; }
  .ir-hero-sub { font-size: 17px; }
}

/* =============================================
   OUR LATEST REPORT
   White bg, left text + button, right image
============================================= */
#ir-latest {
  background: #ffffff;
  padding: 100px 0 90px;
}

.ir-latest-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 110px;
  display: flex;
  align-items: center;
  gap: 80px;
}

.ir-latest-text {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ir-latest-text h2 {
  font-family: var(--font-main);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-dark);
  margin: 0;
}

.ir-latest-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0;
}

.ir-latest-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ir-latest-image img {
  width: 100%;
  height: auto;
  display: block;
  /* Slight drop shadow to lift the magazine off the bg */
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.14));
}

@media (max-width: 1024px) {
  #ir-latest { padding: 80px 0; }
  .ir-latest-inner {
    flex-direction: column;
    padding: 0 60px;
    gap: 60px;
  }
  .ir-latest-text { flex: none; width: 100%; }
  .ir-latest-text h2 { font-size: 36px; }
}

@media (max-width: 767px) {
  .ir-latest-inner { padding: 0 20px; gap: 40px; }
  .ir-latest-text h2 { font-size: 30px; }
  .btn-teal { font-size: 17px; padding: 15px 32px; }
}

/* =============================================
   2024 IN NUMBERS
   Light teal (#F0FAFB) bg, heading + 3 stat cards
============================================= */
#ir-numbers {
  background-color: #F0FAFB;
  padding: 90px 0 100px;
}

.ir-numbers-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 110px;
}

.ir-numbers-heading {
  font-family: var(--font-main);
  font-size: 46px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 60px;
  line-height: 1.1;
}

/* Stat cards row */
.ir-stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ir-stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 36px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Subtle shadow matching the live page */
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.ir-stat-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.ir-stat-icon svg {
  width: 100%;
  height: 100%;
}

.ir-stat-title {
  font-family: var(--font-main);
  font-size: 24px;
  font-weight: 700;
  color: #41BED0;
  margin: 0;
  line-height: 1.2;
}

.ir-stat-list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.ir-stat-list li {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
}

.ir-stat-list li strong {
  font-weight: 700;
  color: var(--color-dark);
}

@media (max-width: 1024px) {
  #ir-numbers { padding: 80px 0; }
  .ir-numbers-inner { padding: 0 60px; }
  .ir-numbers-heading { font-size: 36px; }
  .ir-stat-cards { gap: 20px; }
  .ir-stat-card { padding: 32px 28px; }
}

@media (max-width: 767px) {
  .ir-numbers-inner { padding: 0 20px; }
  .ir-stat-cards { grid-template-columns: 1fr; gap: 16px; }
  .ir-numbers-heading { font-size: 30px; margin-bottom: 40px; }
}

/* =============================================
   PAST IMPACT REPORTS
   White bg, heading + 3-col grid of report cards
============================================= */
#ir-past {
  background: #ffffff;
  padding: 100px 0 110px;
}

.ir-past-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 110px;
}

.ir-past-heading {
  font-family: var(--font-main);
  font-size: 46px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 70px;
  line-height: 1.1;
}

.ir-reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
}

.ir-report-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.ir-report-link {
  display: block;
  width: 100%;
}

.ir-report-cover {
  width: 100%;
  overflow: hidden;
}

.ir-report-cover img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  /* Slight drop shadow like the live site's 3D book mockup */
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.13));
}

.ir-report-link:hover .ir-report-cover img {
  transform: scale(1.03) translateY(-4px);
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.2));
}

/* Year badge pill — matches the coloured pills in screenshots */
.ir-year-badge {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  padding: 10px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.ir-year-badge:hover {
  opacity: 0.85;
  transform: scale(1.04);
}

/* Colour variants */
.ir-year-badge.teal       { background-color: #41BED0; }
.ir-year-badge.green      { background-color: #7EBB55; }
.ir-year-badge.orange     { background-color: #F78A3C; }
.ir-year-badge.orange-red { background-color: #E8643A; }

@media (max-width: 1024px) {
  #ir-past { padding: 80px 0; }
  .ir-past-inner { padding: 0 60px; }
  .ir-past-heading { font-size: 36px; margin-bottom: 50px; }
  .ir-reports-grid { gap: 50px 30px; }
}

@media (max-width: 767px) {
  .ir-past-inner { padding: 0 20px; }
  .ir-past-heading { font-size: 30px; margin-bottom: 36px; }
  .ir-reports-grid { grid-template-columns: 1fr; gap: 40px; }
  .ir-year-badge { font-size: 16px; padding: 9px 24px; }
}

/* =============================================
   THE LATEST (Stories)
   Light teal bg, heading + 3 story cards + CTA
============================================= */
#ir-stories {
  background-color: #F0FAFB;
  padding: 90px 0 100px;
}

.ir-stories-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 110px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.ir-stories-header h2 {
  font-family: var(--font-main);
  font-size: 46px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 16px;
  line-height: 1.1;
}

.ir-stories-header p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

/* Story cards grid — 3 columns matching screenshots */
.ir-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ir-story-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ir-story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13);
}

.ir-story-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #2a2a2a;
}

.ir-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ir-story-card:hover .ir-story-image img {
  transform: scale(1.05);
}

/* Arrow overlay (top-right, white circle) — matches screenshots */
.ir-story-arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-dark);
  font-weight: 700;
  pointer-events: none;
  transition: background 0.2s ease;
}

.ir-story-card:hover .ir-story-arrow {
  background: #ffffff;
}

/* Dark gradient at bottom of image so title text is legible */
.ir-story-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  pointer-events: none;
}

/* Story title — overlaid on image bottom */
.ir-story-body {
  padding: 20px 20px 22px;
}

.ir-story-body h3 {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.45;
  margin: 0;
}

/* Alternative: title shown over dark gradient (matching screenshots) */
/* The screenshots show title text over the dark image overlay */
/* Keeping it below image for cleaner readability */

.ir-stories-cta {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

@media (max-width: 1024px) {
  #ir-stories { padding: 80px 0; }
  .ir-stories-inner { padding: 0 60px; gap: 40px; }
  .ir-stories-header h2 { font-size: 36px; }
}

@media (max-width: 767px) {
  .ir-stories-inner { padding: 0 20px; gap: 36px; }
  .ir-stories-grid { grid-template-columns: 1fr; gap: 20px; }
  .ir-stories-header h2 { font-size: 30px; }
}