:root {
  --white: #FBFBF9;
  --off-white: #F3F3EF;
  --near-white: #F8F8F6;
  --light-gray: #C8C8C2;
  --mid-gray: #7A7A72;
  --dark-gray: #3D3D38;
  --body-gray: #5E5E58;
  --charcoal: #1E1E1B;
  --section-light: #EEEEEA;
  --black: #0E0E0C;
  --green: #74C042;
  --shadow: rgba(0,0,0,0.1);
  --shadow-lg: rgba(0,0,0,0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 75px; }

body {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 500;
  background: var(--white);
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.accent { color: var(--green); }
.tight-period { margin-left: -0.06em; }

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5vw;
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(116, 192, 66, 0.30);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  border-bottom-color: rgba(116, 192, 66, 0.2);
}

.nav-logo img { height: 56px; width: auto; }

.nav-links {
  position: fixed;
  top: 0;
  left: 200px;
  right: 80px;
  height: 76px;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
  z-index: 101;
}

.nav-links a {
  text-decoration: none;
  color: var(--charcoal);
  font-family: 'Teko', sans-serif;
  font-size: 1.25rem;
  font-weight: 450;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  transform: scaleY(1.1);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { width: 100%; }

.mobile-toggle { display: none; cursor: pointer; background: none; border: none; padding: 12px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.mobile-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--dark-gray);
  margin: 6px 0;
  border-radius: 1px;
}

#page-main { display: block; }
#page-main.hidden { display: none; }

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: clamp(7rem, calc(50vh - 11rem), 22rem) 5vw 4rem;
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  color: var(--charcoal);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 12px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green) 30%, transparent 30%);
  z-index: 2;
}

.hero-content {
  max-width: min(540px, 40vw);
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-flex;
  align-items: baseline;
  gap: 1rem;
  font-family: 'Teko', sans-serif;
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 2rem;
  white-space: nowrap;
  opacity: 0;
  animation: slideRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-label::before,
.section-label::before {
  content: '';
  width: 24px; height: 22px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22' fill='none' stroke='%23222' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M1 10L12 2L23 10'/%3E%3Cpath d='M3 9V20H9V14H15V14H15V20H21V9'/%3E%3Cpath d='M9 14H15V20'/%3E%3Cpath d='M17 5V2H20V7.5'/%3E%3C/svg%3E") no-repeat center/contain;
}

.hero h1 {
  font-family: 'Teko', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  position: relative;
  overflow-x: clip;
  transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: block;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide.active { opacity: 1; transform: translateX(0); }
.hero-slide.exit { opacity: 1; transform: translateX(-100%); }

.hero p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body-gray);
  max-width: 520px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--green);
  color: var(--black);
  padding: 1rem 2.5rem;
  font-family: 'Teko', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(116, 192, 66, 0.3); }
.btn-primary:hover::before { left: 100%; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dark-gray);
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--light-gray);
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.btn-secondary:hover { border-color: var(--green); color: var(--green); }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  z-index: 3;
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.hero-photo-wrap {
  position: absolute;
  top: 76px; right: 0;
  width: 52%;
  height: calc(100vh - 76px);
  overflow: hidden;
  z-index: 0;
  clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: 0;
  animation: heroPhotoIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  will-change: clip-path;
}

@keyframes heroPhotoIn {
  from { opacity: 0; clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 8% 100%); }
  to   { opacity: 1; clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%); }
}

.hero-photo-img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: 55% 25%;
  display: block;
  will-change: transform;
}

.stat { text-align: left; }

.stat-number {
  font-family: 'Teko', sans-serif;
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  font-weight: 500;
  color: var(--black);
  line-height: 1;
}

.stat-label {
  font-family: 'Teko', sans-serif;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-top: 0.25rem;
}

section { padding: 8rem 5vw; }

.section-label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: 'Teko', sans-serif;
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: 'Teko', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--black);
  line-height: 1.0;
  max-width: 650px;
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--body-gray);
  max-width: 540px;
  margin-bottom: 3.5rem;
}

.services { background: var(--section-light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
}

.service-card {
  background: var(--dark-gray);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  border-left: 4px solid transparent;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.service-card-bg {
  position: absolute;
  inset: -15% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 60%, transparent 100%);
  transition: background 0.4s ease;
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.05) 100%);
}

.service-card-content { position: relative; z-index: 1; padding: 2rem; }

.service-card:hover {
  border-left-color: var(--green);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.service-card h3 {
  font-family: 'Teko', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.about-section { background: var(--near-white); padding-top: 0; padding-bottom: 0; }
.about-section-inner { padding: 7rem 5vw 5rem; }
.about-body { background: var(--near-white); padding-top: 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
  max-width: 1300px;
}

.about-text h3, .join-panel h3 {
  font-family: 'Teko', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--black);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--body-gray);
  margin-bottom: 1.25rem;
}

.about-join { display: flex; align-items: flex-start; }

.join-panel {
  background: rgba(116, 192, 66, 0.10);
  border-left: 4px solid var(--green);
  padding: 2rem;
  width: 100%;
}

.join-panel p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--body-gray);
  margin-bottom: 1.75rem;
}

.careers-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--body-gray);
  max-width: 540px;
  margin-top: 0.75rem;
}

.values-section { background: var(--near-white); padding-top: 0; }

.values-divider {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green) 25%, transparent 25%);
}

.values-inner { padding: 5rem 5vw 5rem; }

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 1100px;
}

.value-card {
  padding: 2rem;
  background: rgba(116, 192, 66, 0.12);
  border-left: 4px solid var(--green);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card:hover { transform: translateX(8px); box-shadow: -4px 0 20px var(--shadow); }

.value-card h4 {
  font-family: 'Teko', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.value-card p { font-size: 0.95rem; line-height: 1.7; color: var(--body-gray); }

.gives-section { background: var(--section-light); padding-top: 7rem; padding-bottom: 5rem; }
.gives-affiliations { background: var(--section-light); }
.gives-intro { max-width: 700px; }
.gives-intro p { font-size: 1.15rem; line-height: 1.8; color: var(--body-gray); }

.gives-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
}

.gives-card {
  background: var(--near-white);
  padding: 2.75rem 2rem;
  border-top: 4px solid var(--green);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gives-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px var(--shadow-lg); }
.gives-card img { max-width: 180px; height: auto; margin-bottom: 1.25rem; display: block; }
.gives-card img.hbf-logo { max-width: 130px; }

.gives-card h3 {
  font-family: 'Teko', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--black);
  margin-bottom: 0.6rem;
}

.gives-card p { font-size: 1rem; line-height: 1.7; color: var(--body-gray); }

.contact-header { padding-top: 7rem; padding-bottom: 1.5rem; background: var(--near-white); }
.contact-form-section { background: var(--near-white); padding-top: 1.5rem; padding-bottom: 6rem; }
.contact-form-wrap { max-width: 620px; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-family: 'Teko', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.form-input {
  background: var(--off-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 3px solid transparent;
  padding: 0.95rem 1.1rem;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 1rem;
  color: var(--charcoal);
  outline: none;
  width: 100%;
  transition: all 0.3s ease;
}

.form-input:focus { border-left-color: var(--green); background: var(--white); box-shadow: 0 4px 12px var(--shadow); }
textarea.form-input { resize: vertical; min-height: 140px; }
.contact-submit { align-self: flex-start; }
.contact-success { display: none; font-size: 0.9rem; color: var(--green); font-weight: 600; margin-top: 0.5rem; }

footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.4);
  padding: 1.5rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 3px solid var(--green);
}

footer img { height: 30px; filter: brightness(10); opacity: 0.7; }
footer p { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.footer-info { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.reveal { opacity: 0; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.fade-up { transform: translateY(40px); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .nav-links { display: none; position: static; height: auto; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 76px; left: 0; right: 0;
    height: auto;
    background: rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem 5vw;
    gap: 1.5rem;
    border-bottom: 3px solid var(--green);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 999;
  }
  .hero-label { align-items: center; white-space: normal; }
  section { padding: 4rem 5vw; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .gives-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-label { white-space: normal; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .hero-photo-wrap { display: none; }
  .hero-content { max-width: 100%; }
  .hero { min-height: auto; padding: 7rem 5vw 4rem; }
  .hero h1 { font-size: clamp(3rem, 10vw, 5rem); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .footer-info { align-items: flex-start; }
}
