@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

/* ─── Design Tokens ──────────────────────────────────────────── */
:root {
  --ieeep-dark-blue: #005488;
  --ieeep-light-blue: #00aeef;
  --ieeep-ink: #4d4d4d;
  --ieeep-bg: #FFFDF8;
  --ieeep-shadow: 0 18px 40px rgba(0, 84, 136, 0.10);
}

/* ─── Base ───────────────────────────────────────────────────── */
body {
  background-color: var(--ieeep-bg);
  color: var(--ieeep-ink);
  font-family: "Roboto", sans-serif;
}

h1,
h2,
h3 {
  color: var(--ieeep-dark-blue);
  font-family: "Roboto", sans-serif;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1.02;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}

a {
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ieeep-light-blue);
}

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar {
  background-color: var(--ieeep-dark-blue) !important;
  box-shadow: 0 10px 25px rgba(0, 84, 136, 0.15);
}

/* Title / brand text */
.navbar-title,
.navbar-brand,
.navbar-brand:hover,
.navbar-brand:focus {
  color: #ffffff !important;
  font-weight: 700;
}

/* Nav links */
.navbar .nav-link {
  color: #ffffff !important;
  font-weight: 600;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #D8F4FF !important;
}

/* Active page link */
.navbar .nav-link.active {
  color: #D8F4FF !important;
  border-bottom: 2px solid #D8F4FF;
}

/* Logo image if used */
.navbar-brand img {
  height: 2rem;
  width: auto;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.nav-footer {
  background-color: var(--ieeep-dark-blue);
  color: #ffffff;
}

.nav-footer a,
.nav-footer .nav-footer-left,
.nav-footer .nav-footer-center,
.nav-footer .nav-footer-right {
  color: #ffffff;
}

.nav-footer a:hover,
.nav-footer a:focus {
  color: #D8F4FF;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.quarto-title-banner {
  min-height: clamp(360px, 40vw, 620px);
}

.quarto-title-banner .quarto-title {
  grid-column: screen-start / screen-end;
  margin-inline: auto;
  max-width: min(1280px, calc(100% - 4rem));
  padding-top: clamp(4.5rem, 10vw, 8rem);
  padding-bottom: clamp(4.5rem, 10vw, 8rem);
  width: 100%;
}

.quarto-title-banner h1.title {
  color: #ffffff;
  max-width: 30ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.hero {
  display: block;
  margin: 1.5rem 0 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: transparent;
  border: 1px solid rgba(0, 84, 136, 0.10);
  border-radius: 1.75rem;
  box-shadow: var(--ieeep-shadow);
}

.hero-copy p,
p {
  font-size: 1.08rem;
  line-height: 1.7;
}

/* ─── Eyebrow Label ──────────────────────────────────────────── */
.eyebrow {
  color: var(--ieeep-light-blue);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

/* ─── Grids ──────────────────────────────────────────────────── */
.stats-row,
.feature-grid,
.contact-grid {
  display: grid;
  gap: 1.1rem;
  margin: 1.5rem 0 2rem;
}

.stats-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ─── Cards ──────────────────────────────────────────────────── */
.stat-card,
.feature-card,
.contact-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 84, 136, 0.10);
  border-radius: 1.25rem;
  box-shadow: var(--ieeep-shadow);
  padding: 1.25rem;
}

.stat-number {
  color: var(--ieeep-light-blue);
  font-family: "Roboto", sans-serif;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-weight: 600;
  line-height: 1.55;
}

.feature-card h3,
.contact-card h3 {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  margin-top: 0;
}

.feature-card i,
.contact-card i,
.eyebrow i {
  color: var(--ieeep-light-blue);
}

/* ─── Callout ────────────────────────────────────────────────── */
.callout-note {
  margin-top: 2rem;
}

/* ─── Grantee Map ────────────────────────────────────────────── */
.grantee-map {
  border: 1px solid rgba(0, 84, 136, 0.14);
  border-radius: 1rem;
  box-shadow: var(--ieeep-shadow);
  display: block;
  height: min(72vh, 680px);
  margin: 1.5rem 0 2.5rem;
  min-height: 480px;
  width: 100%;
}

/* ─── Reports ────────────────────────────────────────────────── */
.reports-section {
  margin: 3rem 0 4rem;
}

.reports-section__header {
  align-items: end;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.reports-section__header h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  margin: 0;
}

.reports-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 84, 136, 0.14);
  border-left: 0.45rem solid rgba(0, 174, 239, 0.38);
  border-radius: 1.25rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 4.75rem minmax(0, 1fr) auto;
  min-height: 9.25rem;
  padding: 1.75rem 2rem;
  position: relative;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.report-card:hover,
.report-card:focus-within {
  border-left-color: var(--ieeep-light-blue);
  box-shadow: 0 16px 34px rgba(0, 84, 136, 0.12);
  transform: translateY(-3px);
}

.report-card__icon {
  align-items: center;
  background: rgba(0, 174, 239, 0.10);
  border-radius: 1rem;
  color: var(--ieeep-dark-blue);
  display: flex;
  font-size: 1.75rem;
  height: 4.75rem;
  justify-content: center;
  width: 4.75rem;
}

.report-card__body h3 {
  color: var(--ieeep-dark-blue);
  font-size: 1.45rem;
  line-height: 1.35;
  margin: 0;
}

.report-card__button,
.report-global-button {
  align-items: center;
  background: var(--ieeep-dark-blue);
  border-radius: 0.9rem;
  color: #ffffff;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 700;
  gap: 0.55rem;
  justify-content: center;
  line-height: 1;
  min-height: 3.5rem;
  padding: 0.9rem 1.35rem;
  text-decoration: none;
  white-space: nowrap;
}

.report-card__button:hover,
.report-card__button:focus,
.report-global-button:hover,
.report-global-button:focus {
  background: #003f66;
  color: #ffffff;
}

.report-card__button i,
.report-global-button i {
  font-size: 1.1rem;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats-row,
  .feature-grid,
  .contact-grid,
  .reports-grid {
    grid-template-columns: 1fr;
  }

  .reports-section__header {
    align-items: start;
    flex-direction: column;
  }

  .report-card {
    grid-template-columns: 4.25rem minmax(0, 1fr);
    padding: 1.25rem;
  }

  .report-card__icon {
    font-size: 1.5rem;
    height: 4.25rem;
    width: 4.25rem;
  }

  .report-card__button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero {
    padding: 1.25rem;
  }

  .quarto-title-banner {
    min-height: 320px;
  }

  .quarto-title-banner .quarto-title {
    max-width: calc(100% - 2rem);
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .quarto-title-banner h1.title {
    max-width: 100%;
  }

  .grantee-map {
    height: 70vh;
    min-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
