
:root {
  --teal: #0f7173;
  --teal-dark: #0a5557;
  --teal-soft: #e5f7f4;
  --orange: #f28c45;
  --orange-soft: #ffe2d2;
  --yellow: #ffd75f;
  --yellow-soft: #fff4cf;
  --cream: #fffaf0;
  --ink: #263c3d;
  --muted: #617577;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(13, 84, 86, 0.10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Avenir, "Avenir Next", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--orange); }

.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}
.narrow { max-width: 820px; }
.center { text-align: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 240, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 113, 115, 0.12);
}
.brand-row {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0 0.35rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--teal);
  min-width: max-content;
}
.brand img { width: 58px; height: 58px; }
.brand strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: .04em;
  line-height: 1;
}
.brand em {
  display: block;
  color: var(--orange);
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 1.1rem;
  line-height: 1.2;
}
.tagline {
  margin: 0;
  color: var(--orange);
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 1.15rem;
  text-align: right;
}

.site-nav {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 0.55rem;
}
.nav-menu {
  width: auto;
  max-width: 100%;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.18rem;
}
.nav-menu > li {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-menu a,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 40px;
  padding: 0.5rem 0.58rem;
  color: var(--teal-dark);
  font: inherit;
  font-weight: 650;
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
}
.nav-menu a:hover,
.dropdown-toggle:hover {
  background: var(--teal-soft);
  color: var(--teal);
}

/* Keep the Past Projects parent tab neutral when moving through dropdown links. */
.has-dropdown.open > .dropdown-toggle,
.has-dropdown:hover > .dropdown-toggle,
.has-dropdown:focus-within > .dropdown-toggle {
  background: transparent !important;
  color: var(--teal-dark) !important;
  box-shadow: none !important;
}
.has-dropdown > .dropdown-toggle:hover,
.has-dropdown > .dropdown-toggle:focus-visible {
  background: var(--teal-soft) !important;
  color: var(--teal) !important;
}
.support-link {
  white-space: nowrap !important;
  flex-shrink: 0;
  background: var(--orange) !important;
  color: white !important;
  padding-left: 0.9rem !important;
  padding-right: 0.9rem !important;
}
.support-link:hover { background: var(--teal) !important; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 260px;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  background: white;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 113, 115, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  width: 100%;
  justify-content: flex-start;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
.mobile-menu-toggle {
  display: none;
  border: 0;
  background: var(--teal);
  color: white;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 700;
}

.page-hero {
  background:
    radial-gradient(circle at top left, rgba(255, 215, 95, 0.42), transparent 35%),
    radial-gradient(circle at bottom right, rgba(15, 113, 115, 0.17), transparent 42%),
    linear-gradient(135deg, #fff9e8, #e9f8f5);
  padding: 4.5rem 0 4rem;
  text-align: center;
}
.page-hero h1 {
  max-width: 900px;
  margin: 0.4rem auto 1rem;
  color: var(--teal-dark);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}
.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.16rem;
}
.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-size: 0.8rem;
  letter-spacing: .16em;
  font-weight: 800;
  text-transform: uppercase;
}

.content-section,
.home-intro,
.values-section,
.timeline-section,
.supporter-section,
.impact-strip {
  padding: 4rem 0;
}
.tinted { background: #eef9f6; }
h2 {
  color: var(--teal-dark);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.15;
  margin-top: 0;
}
h3 { color: var(--teal-dark); margin-top: 0; }
p { margin: 0 0 1rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 2rem;
  align-items: center;
}
.soft-card,
.value-card,
.work-card,
.contact-card,
.project-list article,
.supporter-grid article {
  background: white;
  border: 1px solid rgba(15, 113, 115, 0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.soft-card { padding: 1.8rem; }
.check-list { padding-left: 1.1rem; margin: 0; }
.check-list li { margin-bottom: .55rem; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  font-weight: 800;
  white-space: nowrap;
}
.btn.primary { background: var(--teal); color: white; }
.btn.secondary { background: var(--yellow-soft); color: var(--teal-dark); }
.btn:hover { transform: translateY(-1px); }
.text-link { font-weight: 800; }

.impact-strip { text-align: center; background: #fffdf7; }
.impact-note {
  max-width: 720px;
  margin: 0.5rem auto 1.5rem;
  color: var(--muted);
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.impact-card {
  border-radius: 22px;
  padding: 1.6rem 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.impact-yellow { background: var(--yellow-soft); }
.impact-teal { background: #dff5f1; }
.impact-peach { background: var(--orange-soft); }
.impact-number {
  font-size: 2.2rem;
  font-weight: 850;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.impact-label {
  font-weight: 700;
  color: #344b4c;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.value-card,
.work-card { padding: 1.6rem; }
.work-card a { font-weight: 800; }

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.project-list article { padding: 1rem 1.2rem; }
.project-list.compact h3 { margin-bottom: 0.25rem; }
.project-list.compact p { margin-bottom: 0; color: var(--muted); }

.timeline {
  display: grid;
  gap: 1rem;
  max-width: 900px;
}
.timeline div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  background: white;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.timeline span { font-weight: 850; color: var(--orange); }
.timeline p { margin: 0; }

.supporter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.supporter-grid article {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-weight: 800;
  color: var(--teal-dark);
}
.contact-card {
  padding: 1.4rem;
  margin: 1.4rem auto;
  max-width: 560px;
}
.small-note { color: var(--muted); font-size: .95rem; }

.site-footer {
  background: var(--teal-dark);
  color: white;
  padding-top: 3rem;
}
.site-footer a { color: #fff4cf; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-logo { width: 76px; height: 76px; background: white; border-radius: 18px; padding: 6px; }
.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  padding: 1rem;
  background: rgba(0,0,0,.16);
  font-size: .9rem;
}


@media (min-width: 1051px) and (max-width: 1180px) {
  .nav-menu a,
  .dropdown-toggle {
    font-size: 0.92rem;
    padding-left: 0.48rem;
    padding-right: 0.48rem;
  }
  .support-link {
    padding-left: 0.72rem !important;
    padding-right: 0.72rem !important;
  }
}

@media (max-width: 1050px) {
  .brand-row { align-items: flex-start; }
  .site-nav { justify-content: flex-end; padding-bottom: .7rem; }
  .mobile-menu-toggle { display: inline-flex; margin-left: auto; }
  .nav-menu {
    width: auto;
    display: none;
    position: absolute;
    top: 100%;
    left: 18px;
    right: 18px;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: .7rem;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a,
  .dropdown-toggle { justify-content: flex-start; width: 100%; text-align: left; }
  .dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border: 0;
    opacity: 1;
    pointer-events: auto;
    display: none;
    padding-left: 1rem;
  }
  .has-dropdown.open .dropdown-menu { display: block; transform: none; }
}

@media (max-width: 768px) {
  .brand-row { flex-direction: column; gap: .4rem; }
  .tagline { text-align: left; font-size: 1rem; }
  .page-hero { padding: 3.2rem 0; }
  .split,
  .card-grid,
  .impact-grid,
  .project-list,
  .supporter-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .timeline div { grid-template-columns: 1fr; gap: .2rem; }
  .content-section,
  .home-intro,
  .values-section,
  .timeline-section,
  .supporter-section,
  .impact-strip { padding: 3rem 0; }
}


/* V43 urgent logo and navigation corrections */
.brand-row {
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
  color: var(--teal-dark);
}
.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-name {
  display: inline-block;
  white-space: nowrap;
  font-family: Avenir, "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.02rem, 2.1vw, 1.45rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--teal-dark);
}
.brand strong,
.brand em {
  font-family: Avenir, "Avenir Next", "Segoe UI", Arial, sans-serif;
}
.site-nav {
  width: min(1240px, calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-menu {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.18rem;
  margin-left: auto;
  margin-right: auto;
}
.nav-menu > li {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-menu a,
.dropdown-toggle,
.support-link {
  white-space: nowrap !important;
}
.support-link {
  min-width: max-content;
}
/* Keep Past Projects neutral when the pointer is inside the dropdown list. */
.has-dropdown.open > .dropdown-toggle,
.has-dropdown:hover > .dropdown-toggle,
.has-dropdown:focus-within > .dropdown-toggle,
.has-dropdown.dropdown-open > .dropdown-toggle {
  background: transparent !important;
  color: var(--teal-dark) !important;
  box-shadow: none !important;
}
.has-dropdown > .dropdown-toggle:hover {
  background: transparent !important;
  color: var(--teal-dark) !important;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: var(--teal-soft);
  color: var(--teal);
}
@media (max-width: 900px) {
  .brand-row {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .tagline {
    text-align: center;
  }
  .brand-name {
    white-space: normal;
    text-align: left;
  }
}
@media (max-width: 520px) {
  .brand {
    justify-content: center;
  }
  .brand img {
    width: 54px;
    height: 54px;
  }
  .brand-name {
    font-size: 1rem;
  }
}


/* V44 urgent corrections: restored logo treatment, one-line brand, centered nav, no wrapping Support Us */
.brand-row {
  justify-content: center !important;
  align-items: center !important;
  gap: 1.25rem !important;
  text-align: center;
}
.brand {
  min-width: max-content !important;
  flex: 0 0 auto;
}
.brand img {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain;
}
.brand-name {
  display: inline-block !important;
  white-space: nowrap !important;
  font-family: Avenir, "Avenir Next", "Segoe UI", Arial, sans-serif !important;
  font-weight: 800 !important;
  font-style: normal !important;
  letter-spacing: 0.01em !important;
  color: var(--teal-dark) !important;
  line-height: 1 !important;
}
.tagline {
  flex: 0 1 auto;
}
.site-nav {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: min(1240px, calc(100% - 36px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.nav-menu {
  width: 100% !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  gap: 0.14rem !important;
}
.nav-menu a,
.dropdown-toggle,
.support-link {
  white-space: nowrap !important;
}
.support-link {
  min-width: max-content !important;
  padding-left: 0.85rem !important;
  padding-right: 0.85rem !important;
}
.has-dropdown.open > .dropdown-toggle,
.has-dropdown:hover > .dropdown-toggle,
.has-dropdown:focus-within > .dropdown-toggle,
.has-dropdown.dropdown-open > .dropdown-toggle {
  background: transparent !important;
  color: var(--teal-dark) !important;
  box-shadow: none !important;
}
.has-dropdown > .dropdown-toggle:hover,
.has-dropdown > .dropdown-toggle:focus-visible {
  background: transparent !important;
  color: var(--teal-dark) !important;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: var(--teal-soft) !important;
  color: var(--teal) !important;
}
.section-kicker {
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-top: -0.35rem;
}
@media (max-width: 900px) {
  .brand-row {
    flex-direction: column !important;
    gap: 0.35rem !important;
  }
  .brand-name {
    white-space: nowrap !important;
    font-size: clamp(0.92rem, 4vw, 1.2rem) !important;
  }
  .tagline {
    text-align: center !important;
  }
}
@media (max-width: 520px) {
  .brand img {
    width: 48px !important;
    height: 48px !important;
  }
  .brand-name {
    font-size: 0.92rem !important;
  }
}
