/* ===== Google Font ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #1B3A5C;
  --gold: #C5972C;
  --light-gold: #F5E6C8;
  --white: #FFFFFF;
  --dark-navy: #0F2440;
  --light-gray: #f7f7f7;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
  color: var(--navy);
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid #e0e0e0;
  z-index: 1000;
  padding: 10px 0;
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: block;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
  transform: scaleX(1);
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--gold);
}

/* Dropdown */
.dropdown > a::after {
  content: " \25BE" !important;
  font-size: 0.7rem;
  position: static;
  background: none;
  transform: none;
  height: auto;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  list-style: none;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--navy);
  transition: background 0.2s;
}

.dropdown-menu li a:hover {
  background: var(--light-gold);
}

.btn-donate-nav {
  display: inline-block;
  background: var(--gold);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-left: 8px;
  transition: background 0.2s;
}

.btn-donate-nav:hover {
  background: #b0861f;
  color: var(--white) !important;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hamburger X animation */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, rgba(15,36,64,0.85) 0%, rgba(27,58,92,0.8) 60%, rgba(197,151,44,0.7) 100%),
              url('../img/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 80px 20px 90px;
}

.hero .logo-hero {
  width: 240px;
  margin-bottom: 24px;
  border-radius: 8px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero .tagline {
  font-style: italic;
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 8px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subtitle {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Page Header (inner pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--dark-navy), var(--navy));
  color: var(--white);
  text-align: center;
  padding: 50px 20px;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.2rem;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
  font-size: 1.05rem;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #b0861f;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border: 2px solid var(--white);
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

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

.btn-navy {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

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

/* ===== Section shared ===== */
.section {
  padding: 70px 20px;
}

.section-alt {
  background: var(--light-gold);
}

.section-gray {
  background: var(--light-gray);
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 16px;
}

.section .section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  color: #555;
}

/* ===== Two-column layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.two-col img {
  border-radius: 8px;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.two-col-text h2 {
  text-align: left;
  margin-bottom: 16px;
}

.two-col-text p {
  color: #555;
  margin-bottom: 16px;
  font-size: 1.02rem;
}

/* ===== SVG Icon Styles ===== */
.icon-svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.pillar-icon .icon-svg,
.cta-card-icon .icon-svg {
  width: 48px;
  height: 48px;
}

/* ===== Three CTA Cards ===== */
.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.cta-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 36px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cta-card-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.cta-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.cta-card p {
  font-size: 0.92rem;
  opacity: 0.85;
  margin-bottom: 20px;
}

.cta-card a {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.cta-card a:hover {
  opacity: 0.8;
}

/* ===== Pillars Grid ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.pillar-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.pillar-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.pillar-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.pillar-card p {
  font-size: 0.9rem;
  color: #666;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.cta-banner .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Pricing Info Box ===== */
.pricing-box {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 24px auto 0;
  max-width: 500px;
  text-align: center;
}

.pricing-box h3 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 1.02rem;
  color: #444;
}

.pricing-item:last-child {
  border-bottom: none;
}

.pricing-item .price {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
}

/* ===== Content page (policies, phases, etc.) ===== */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 20px;
}

.content-page h2 {
  text-align: left;
  font-size: 1.6rem;
  margin: 32px 0 12px;
  color: var(--navy);
}

.content-page h3 {
  font-size: 1.2rem;
  margin: 24px 0 8px;
}

.content-page p {
  color: #444;
  margin-bottom: 12px;
  font-size: 1.02rem;
}

.content-page ul, .content-page ol {
  margin: 12px 0 20px 24px;
  color: #444;
}

.content-page li {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.content-page .intro-note {
  background: var(--light-gold);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 0 4px 4px 0;
  font-size: 1.02rem;
  color: #444;
}

/* Signature block */
.signature-block {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #ddd;
}

.signature-row {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.signature-field {
  flex: 1;
}

.signature-line {
  border-bottom: 1px solid #333;
  height: 40px;
}

.signature-field p {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
  margin-bottom: 0;
}

/* Phase cards */
.phase-card {
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 24px;
  transition: border-color 0.2s;
}

.phase-card:hover {
  border-color: var(--gold);
}

.phase-card h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.phase-card .phase-detail {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.phase-card .phase-detail span {
  font-size: 0.92rem;
  color: #555;
}

.phase-card .phase-detail strong {
  color: var(--navy);
}

/* ===== Opportunities list ===== */
.opp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.opp-list h3 {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.opp-list ul {
  list-style: none;
}

.opp-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: #444;
  font-size: 1.02rem;
  border-bottom: 1px solid #eee;
}

.opp-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ===== Apply form ===== */
.apply-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-section {
  margin-bottom: 32px;
}

.form-section h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-row.full {
  grid-template-columns: 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #555;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

.form-submit {
  text-align: center;
  margin-top: 24px;
}

/* ===== Form Success Message ===== */
.form-success {
  text-align: center;
  padding: 48px 24px;
  max-width: 500px;
  margin: 0 auto;
}

.form-success .success-icon {
  width: 64px;
  height: 64px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success .success-icon svg {
  width: 32px;
  height: 32px;
  stroke: #2e7d32;
}

.form-success h3 {
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.form-success p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.contact-info p {
  margin-bottom: 10px;
  color: #555;
}

.contact-info .placeholder {
  color: #999;
  font-style: italic;
  font-size: 0.9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

.contact-form button {
  align-self: flex-start;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark-navy);
  color: rgba(255,255,255,0.7);
  padding: 40px 20px;
}

.footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand .logo-footer {
  height: 45px;
  margin-bottom: 12px;
  border-radius: 4px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.footer-nav h4 {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 6px;
}

.footer-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-contact h4 {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.footer-contact a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  grid-column: 1 / -1;
}

.footer-bottom .nonprofit {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.footer-bottom .copyright {
  font-size: 0.8rem;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links > li > a {
    padding: 12px 16px;
  }

  .nav-links > li > a::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    border-left: 3px solid var(--gold);
    margin-left: 16px;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .hero {
    padding: 50px 20px 60px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero .logo-hero {
    width: 180px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .opp-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section {
    padding: 50px 20px;
  }

  .section h2 {
    font-size: 1.6rem;
  }
}

/* ===== Print Styles ===== */
@media print {
  @page {
    margin: 0.75in;
    @bottom-center {
      content: "Page " counter(page) " of " counter(pages);
      font-size: 9pt;
      color: #888;
    }
  }

  .navbar, .hamburger, .cta-banner, .footer, .hero, .page-header {
    display: none !important;
  }

  .content-page {
    padding: 0;
    max-width: 100%;
  }

  .content-page h2 {
    font-size: 14pt;
    margin-top: 20pt;
    page-break-after: avoid;
  }

  .content-page li {
    font-size: 11pt;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }

  button[onclick="window.print()"] {
    display: none !important;
  }

  .signature-block {
    page-break-before: always;
    margin-top: 0;
    padding-top: 48px;
    border-top: none;
  }
}
