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

:root {
  --white: #ffffff;
  --bg: #fafaf8;
  --text: #2d3436;
  --text-soft: #636e72;
  --text-faint: #b2bec3;
  --sage: #7fb685;
  --sage-light: #e8f5e9;
  --peach: #e8977a;
  --peach-light: #fef0ec;
  --lavender: #b8a9c9;
  --lavender-light: #f3eff8;
  --gold: #d4a853;
  --gold-light: #fdf6e7;
  --border: #eee;
  --border-soft: #f4f4f2;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 3rem;
}

.nav.scrolled .nav-logo { color: var(--text); }
.nav.scrolled .nav-links a { color: var(--text-soft); }
.nav.scrolled .nav-links a:hover { color: var(--text); }
.nav.scrolled .nav-cta {
  border-color: var(--text) !important;
  color: var(--text) !important;
}
.nav.scrolled .nav-cta:hover {
  background: var(--text) !important;
  color: var(--white) !important;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  transition: color 0.3s;
}

.nav-links a:hover { color: #fff; }

.nav-cta {
  padding: 0.45rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.4) !important;
  border-radius: 100px;
  color: #fff !important;
  font-weight: 500 !important;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: rgba(255,255,255,0.15) !important;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 40, 35, 0.25) 0%,
    rgba(30, 40, 35, 0.05) 35%,
    rgba(30, 40, 35, 0.15) 65%,
    rgba(250, 250, 248, 0.6) 92%,
    rgba(250, 250, 248, 1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 750px;
  padding: 0 2rem;
  margin-top: -5vh;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.75rem;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  text-shadow: 0 1px 10px rgba(0,0,0,0.1);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
}

/* ===== Stats ===== */
.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 3rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.stat { text-align: center; }

.stat-number {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

/* ===== Section Shared ===== */
.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--sage);
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 480px;
  line-height: 1.7;
}

/* ===== Browse Categories ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.cat-card {
  display: block;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  position: relative;
}

.cat-card:hover {
  border-color: var(--sage);
  box-shadow: 0 4px 20px rgba(127, 182, 133, 0.1);
  transform: translateY(-2px);
}

.cat-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.cat-card .count {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.cat-card .arrow {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 1rem;
  color: var(--text-faint);
  transition: all 0.3s;
}

.cat-card:hover .arrow {
  color: var(--sage);
  transform: translateX(3px);
}

/* ===== Featured Opportunities ===== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.feat-card {
  display: block;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
}

.feat-card:hover {
  border-color: #ddd;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.feat-card-tier {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.tier-1 { background: var(--gold-light); color: #8b6914; }
.tier-2 { background: var(--lavender-light); color: #7c6b94; }
.tier-3 { background: var(--border-soft); color: var(--text-soft); }

.feat-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
  line-height: 1.3;
  color: var(--text);
}

.feat-card .org {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}

.feat-card .desc {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.feat-card .meta {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.feat-card .tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  background: var(--bg);
  border-radius: 6px;
  color: var(--text-soft);
}

/* ===== Pill Links ===== */
.link-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pill {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 400;
  transition: all 0.3s;
  background: var(--white);
}

.pill:hover {
  border-color: var(--sage);
  color: var(--sage);
  background: var(--sage-light);
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  margin: 0 2rem 3rem;
  background: var(--sage-light);
  border-radius: 24px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.cta-section p {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.btn-sage {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--sage);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.3s;
}

.btn-sage:hover {
  background: #6da573;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(127, 182, 133, 0.3);
}

/* ===== Footer ===== */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--white);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: 0.8rem;
  color: var(--text-soft);
  max-width: 380px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--sage); }

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-faint);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .hero { max-height: none; min-height: 85vh; }
  .hero-content { padding: 0 1.25rem; }
  .stats { flex-wrap: wrap; gap: 1.5rem; padding: 2.5rem 1.25rem; }
  .stat-number { font-size: 2rem; }
  .section { padding: 3.5rem 1.25rem; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
}
