@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

:root {
  --primary-purple: #4F2683;
  --dark-navy: #3A1B63;
  --text-charcoal: #1E1E24;
  --body-grey: #475569;
  --off-white: #F4F5F7;
  --pure-white: #FFFFFF;
  --border-line: #E2E8F0;
  --accent-gold: #D4AF37;
  --transition-speed: 0.25s;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--body-grey);
  background-color: var(--pure-white);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .serif-font {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-charcoal);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--dark-navy);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 70px 0;
}

.section-padding-sm {
  padding: 40px 0;
}

.bg-offwhite {
  background-color: var(--off-white);
}

.bg-purewhite {
  background-color: var(--pure-white);
}

.bg-purple {
  background-color: var(--primary-purple);
  color: var(--pure-white);
}

.bg-darknavy {
  background-color: var(--dark-navy);
  color: var(--pure-white);
}

.text-center {
  text-align: center;
}

.text-purple {
  color: var(--primary-purple);
}

.text-white {
  color: var(--pure-white) !important;
}

.border-bottom {
  border-bottom: 1px solid var(--border-line);
}

.border-top {
  border-top: 1px solid var(--border-line);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-purple);
  color: var(--pure-white);
  border-color: var(--primary-purple);
}

.btn-primary:hover {
  background-color: var(--dark-navy);
  border-color: var(--dark-navy);
  color: var(--pure-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-purple);
  border-color: var(--primary-purple);
}

.btn-secondary:hover {
  background-color: var(--primary-purple);
  color: var(--pure-white);
}

.btn-white {
  background-color: var(--pure-white);
  color: var(--primary-purple);
  border-color: var(--pure-white);
}

.btn-white:hover {
  background-color: var(--off-white);
  color: var(--dark-navy);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--pure-white);
  border-color: var(--pure-white);
}

.btn-outline-white:hover {
  background-color: var(--pure-white);
  color: var(--primary-purple);
}

.btn-row {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* Badges & Pills */
.pill-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: rgba(79, 38, 131, 0.1);
  color: var(--primary-purple);
  margin-bottom: 12px;
}

.pill-badge-white {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--pure-white);
}

/* Mandatory Reinvestment Clause Banner */
.reinvestment-clause-banner {
  background-color: #EDE7F6;
  border-left: 4px solid var(--primary-purple);
  padding: 16px 24px;
  margin: 32px 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
  color: var(--dark-navy);
  font-weight: 600;
}

/* Header & Nav */
.site-header {
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--pure-white);
  border-bottom: 1px solid var(--border-line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-zone {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.logo-shield {
  width: 44px;
  height: 44px;
  background: var(--primary-purple);
  border-radius: 8px 8px 22px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pure-white);
  flex-shrink: 0;
}

.logo-shield svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-charcoal);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--primary-purple);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-matrix {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-charcoal);
  text-transform: uppercase;
  padding: 8px 4px;
  position: relative;
  transition: color var(--transition-speed) ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-purple);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-purple);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-search-btn {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid var(--border-line);
  background: transparent;
  color: var(--text-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.header-search-btn:hover {
  background: var(--off-white);
  border-color: var(--primary-purple);
  color: var(--primary-purple);
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-line);
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-charcoal);
}

/* Mobile Nav Drawer */
.mobile-nav-panel {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--pure-white);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
  border-top: 1px solid var(--border-line);
}

.mobile-nav-panel.open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.mobile-nav-item {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-line);
  color: var(--text-charcoal);
  display: block;
}

/* Hero Banner */
.hero-container {
  position: relative;
  height: 520px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 30, 36, 0.78) 0%, rgba(79, 38, 131, 0.65) 100%);
}

.hero-card {
  position: relative;
  z-index: 2;
  background: var(--pure-white);
  max-width: 620px;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-line);
}

.hero-card h1 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
  color: var(--text-charcoal);
}

.hero-summary-2sentence {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body-grey);
  margin-bottom: 24px;
}

/* Inner Page Hero Header */
.page-hero-banner {
  background-color: var(--dark-navy);
  color: var(--pure-white);
  padding: 56px 0;
  position: relative;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(58, 27, 99, 0.92) 0%, rgba(79, 38, 131, 0.85) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.page-hero-content h1 {
  color: var(--pure-white);
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.page-hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Statistics Matrix */
.stats-section {
  background: var(--pure-white);
  padding: 60px 0;
  border-bottom: 1px solid var(--border-line);
}

.mission-block-wrapper {
  max-width: 900px;
  margin: 0 auto 50px auto;
  text-align: center;
}

.mission-paragraph-uninterrupted {
  font-size: 1.1rem;
  line-height: 1.78;
  color: var(--body-grey);
  background: var(--off-white);
  padding: 32px 36px;
  border-radius: 8px;
  border-left: 5px solid var(--primary-purple);
  text-align: left;
  margin-top: 20px;
}

.stats-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-line);
  padding-top: 40px;
}

.stat-box {
  text-align: center;
  padding: 0 24px;
}

.stat-box:not(:last-child) {
  border-right: 1px solid var(--border-line);
}

.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-purple);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-subtext {
  font-size: 0.85rem;
  color: var(--body-grey);
  margin-top: 6px;
}

/* Campaign Section ("All in.") */
.campaign-section {
  background: var(--primary-purple);
  color: var(--pure-white);
  padding: 90px 0;
}

.campaign-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.campaign-title-giant {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 5.5rem;
  line-height: 0.95;
  color: var(--pure-white);
  margin-bottom: 24px;
}

.campaign-desc {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.campaign-focus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.campaign-focus-item {
  border-top: 2px solid rgba(255, 255, 255, 0.6);
  padding-top: 16px;
  text-align: right;
  transition: all var(--transition-speed) ease;
}

.campaign-focus-item:hover {
  border-top-color: var(--pure-white);
  transform: translateX(-6px);
}

.campaign-focus-item span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--pure-white);
  text-transform: uppercase;
}

.campaign-focus-item p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
  margin-bottom: 0;
}

/* Activity & Initiative Cards Grid */
.activity-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.activity-card-horizontal {
  display: flex;
  background: var(--pure-white);
  border: 1px solid var(--border-line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.activity-card-horizontal:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.activity-card-img {
  width: 40%;
  position: relative;
  overflow: hidden;
  background-color: var(--off-white);
}

.activity-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-card-body {
  width: 60%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.activity-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.activity-card-summary {
  font-size: 0.92rem;
  color: var(--body-grey);
  line-height: 1.58;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* Content Columns & Standard Card Grids */
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.standard-card {
  background: var(--pure-white);
  border: 1px solid var(--border-line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.standard-card.bordered-purple {
  border-top: 4px solid var(--primary-purple);
}

/* Institutional Tables */
.table-responsive {
  overflow-x: auto;
  margin: 24px 0;
}

.institutional-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.institutional-table th {
  background-color: var(--off-white);
  color: var(--text-charcoal);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border-line);
  font-family: 'Open Sans', sans-serif;
}

.institutional-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-line);
  color: var(--body-grey);
}

.institutional-table tr:hover {
  background-color: #FAFAFB;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-charcoal);
  margin-bottom: 8px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-charcoal);
  background: var(--pure-white);
  transition: border-color var(--transition-speed) ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(79, 38, 131, 0.12);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--body-grey);
  cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--primary-purple);
  width: 18px;
  height: 18px;
}

/* Modal for AJAX Submissions */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 30, 36, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  background: var(--pure-white);
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  padding: 36px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: modalSlideDown 0.3s ease-out;
}

@keyframes modalSlideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-icon-shield {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #E8F5E9;
  color: #2E7D32;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.modal-icon-shield svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
}

/* Footer & Sub-Footer */
.pre-footer-bar {
  background: var(--off-white);
  border-top: 1px solid var(--border-line);
  padding: 20px 0;
  font-size: 0.92rem;
}

.pre-footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.pre-footer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--body-grey);
}

.pre-footer-item svg {
  color: var(--primary-purple);
  flex-shrink: 0;
}

.site-footer {
  background: var(--dark-navy);
  color: var(--pure-white);
  padding: 70px 0 40px 0;
}

.footer-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--pure-white);
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary-purple);
}

.footer-disclosure-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  transition: all var(--transition-speed) ease;
  display: inline-block;
}

.footer-links-list a:hover {
  color: var(--pure-white);
  transform: translateX(4px);
}

.sub-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 30px;
  text-align: center;
}

.sub-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sub-footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

.sub-footer-links a:hover {
  color: var(--pure-white);
  text-decoration: underline;
}

.sub-footer-copyright {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* Callout Box */
.institutional-callout {
  background: var(--off-white);
  border: 1px solid var(--border-line);
  border-radius: 8px;
  padding: 32px;
  margin: 36px 0;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .nav-matrix, .header-actions .btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .stats-grid-3col {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .stat-box:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border-line);
    padding-bottom: 30px;
  }
  .campaign-grid-2col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .campaign-focus-item {
    text-align: left;
  }
  .activity-grid-2col {
    grid-template-columns: 1fr;
  }
  .footer-grid-4col {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  .grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.65rem;
  }
  .hero-container {
    height: auto;
    min-height: 480px;
    padding: 30px 0;
  }
  .hero-card {
    padding: 24px;
    margin: 0 16px;
  }
  .activity-card-horizontal {
    flex-direction: column;
  }
  .activity-card-img {
    width: 100%;
    height: 200px;
  }
  .activity-card-body {
    width: 100%;
  }
  .campaign-title-giant {
    font-size: 3.8rem;
  }
  .footer-grid-4col {
    grid-template-columns: 1fr;
  }
  .grid-3col, .grid-2col {
    grid-template-columns: 1fr;
  }
  .pre-footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-row {
    flex-direction: column;
    width: 100%;
  }
  .btn-row .btn {
    width: 100%;
  }
}
