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

:root {
  --bg: #ffffff;
  --surface: #f9f9f9;
  --text: #111111;
  --text-muted: #666666;
  --border: #e5e5e5;
  --font-display: 'DM Serif Display', serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 64px;
}

/* ─── Nav ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0) opacity(0.933);
}

.nav-logo-text {
  position: relative;
  top: 4px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ─── Hero ─── */
.hero {
  padding: 60px 0 160px;
  text-align: center;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-metric {
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counter-number {
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 18rem);
  color: var(--text);
  line-height: 0.9;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.counter-label {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ─── Projects ─── */
.projects {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 64px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.project-header-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.project-header-btn:hover {
  background: #fafafa;
}

.project-title-group h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 8px;
}

.project-title-group p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
}

.project-toggle-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 24px;
}

.project-toggle-icon::before,
.project-toggle-icon::after {
  content: '';
  position: absolute;
  background: var(--text);
  border-radius: 2px;
}

.project-toggle-icon::before {
  width: 14px;
  height: 2px;
}

.project-toggle-icon::after {
  width: 2px;
  height: 14px;
  transition: transform 0.3s ease;
}

.project-header-btn[aria-expanded="true"] .project-toggle-icon::after,
.team-header-btn[aria-expanded="true"] .project-toggle-icon::after {
  transform: scaleY(0);
}

.project-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-body-inner {
  padding: 0 40px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-header-btn[aria-expanded="true"] + .project-body .project-body-inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.project-metric {
  display: flex;
  flex-direction: column;
}

.project-number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6rem);
  color: var(--text);
  line-height: 1;
  margin-bottom: 12px;
}

.project-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.project-accordions {
  display: flex;
  flex-direction: column;
}

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

.accordion summary {
  padding: 24px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
}

.accordion[open] summary::after {
  content: '−';
}

.accordion-content {
  padding-bottom: 24px;
}

.accordion-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.accordion-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.accordion-content ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--border);
  font-weight: bold;
}

/* ─── Team & Partners ─── */
.team {
  padding: 120px 0;
  background: var(--bg);
}

.team-header-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0 0 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.team-header-btn h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
  margin: 0;
}

.team-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 64px;
  padding-top: 64px;
  margin-bottom: 40px;
  text-align: center;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  /* Add background-image: url('path-to-image.jpg'); here later */
  background-size: cover;
  background-position: center;
}

.team-member h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.team-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-contact a {
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
}

.team-contact a:hover {
  opacity: 0.6;
}

.partners-block {
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.partners-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 40px;
  text-align: center;
}

.partners-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  overflow-x: auto;
  padding-bottom: 24px;
  /* Hide scrollbar for a cleaner look but keep it scrollable */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.partners-list::-webkit-scrollbar {
  display: none;
}

.partner-item {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-muted);
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.partner-item:hover {
  opacity: 1;
  color: var(--text);
}

/* ─── Volunteer ─── */
.volunteer {
  padding: 120px 0 140px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ─── Partners ─── */
.partners {
  padding: 80px 0 120px;
  background: var(--bg);
}

.partners-block {
  border-top: 1px solid var(--border);
  padding-top: 64px;
  text-align: center;
}

.volunteer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.volunteer h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
  margin-bottom: 16px;
}

.volunteer p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.volunteer-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-row {
  display: flex;
  gap: 16px;
}

.volunteer-form input,
.volunteer-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.volunteer-form input:focus,
.volunteer-form textarea:focus {
  border-color: var(--text);
}

.btn {
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}

.btn:hover {
  opacity: 0.8;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  min-height: 1.2em;
  margin-top: 8px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
  .nav {
    padding: 24px 0;
  }
  
  .hero {
    padding: 60px 0 80px;
  }

  .project-header-btn {
    padding: 24px;
  }

  .project-body-inner {
    padding: 0 24px 32px;
  }

  .form-row {
    flex-direction: column;
  }
}

/* ─── 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);
}
