/* === CSS Variables === */
:root {
  --bg: #FAFAF8;
  --bg-alt: #F3F2EE;
  --text: #1a1a2e;
  --text-muted: #6b6b7b;
  --text-light: #9999a8;
  --gold: #C4A44A;
  --gold-hover: #B8933A;
  --gold-light: #F5ECD7;
  --gold-bg: #FBF8F0;
  --white: #FFFFFF;
  --border: #E8E6DF;
  --border-light: #F0EFEA;
  --shadow: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-lg: 16px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* === Typography === */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }

.serif { font-family: var(--font-serif); }
.sans { font-family: var(--font-sans); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }

.overline {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
}

/* === Layout === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 7rem 0; }
.section-sm { padding: 5rem 0; }

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color var(--transition);
  white-space: nowrap;
}

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

.nav-links a.btn-donate {
  background: var(--gold);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  transition: all var(--transition);
}

.nav-links a.btn-donate:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 164, 74, 0.3);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 0.3rem; }
.dropdown-toggle svg { width: 12px; height: 12px; transition: transform var(--transition); }
.dropdown:hover .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}

.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.dropdown-menu a:hover { background: var(--gold-bg); color: var(--gold) !important; }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 2rem;
  z-index: 99;
}

.mobile-nav.active { display: block; }

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--text); }

.mobile-nav .sub-link { padding-left: 1.5rem; font-size: 0.8rem; color: var(--text-light); }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px;
  transition: all var(--transition);
  text-align: center;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 164, 74, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-lg { padding: 1rem 2.5rem; }

/* === Hero === */
.hero {
  padding: 10rem 0 6rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--gold-light);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 2rem;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* === Mission Cards === */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mission-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all var(--transition);
}

.mission-card:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-md);
}

.mission-card .icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.mission-card .icon-circle svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
  stroke: var(--gold);
}

.mission-card h3 { margin-bottom: 0.75rem; }
.mission-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* === Service Cards === */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-md);
}

.service-card .option-num {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  transition: gap var(--transition);
}

.service-link:hover { gap: 0.75rem; }
.service-link svg { width: 16px; height: 16px; }

/* === Audience Tags === */
.audience-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.audience-tag {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition);
  background: var(--white);
}

.audience-tag:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}

/* === Testimony === */
.testimony {
  text-align: center;
  position: relative;
}

.testimony .quote-mark {
  font-size: 10rem;
  line-height: 0.5;
  color: var(--gold-light);
  font-family: var(--font-serif);
  margin-bottom: -1rem;
  user-select: none;
}

.testimony blockquote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.testimony .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
}

.testimony cite { font-style: normal; }
.testimony cite strong { display: block; color: var(--gold); font-size: 0.95rem; }
.testimony cite span { display: block; color: var(--text-light); font-size: 0.85rem; margin-top: 0.25rem; }

/* === Steps === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  text-align: center;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gold-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  transition: all var(--transition);
}

.step-item:hover .step-num { background: var(--gold); color: var(--white); }
.step-item h4 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.step-item p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* === CTA Box === */
.cta-box {
  background: var(--gold-bg);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
}

.cta-box.dark {
  background: var(--text);
  border-color: var(--text);
}

.cta-box.dark h2 { color: var(--white); }
.cta-box.dark p { color: rgba(255,255,255,0.6); }

/* === Divider === */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 auto;
  max-width: 1200px;
}

.divider-full {
  border: none;
  border-top: 1px solid var(--border-light);
}

/* === Footer === */
.footer {
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-light);
}

/* === Page Header (for sub-pages) === */
.page-header {
  padding: 10rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* === Content blocks for sub-pages === */
.content-block {
  padding: 5rem 0;
}

.content-block.alt {
  background: var(--bg-alt);
}

.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-row.reverse { direction: rtl; }
.content-row.reverse > * { direction: ltr; }

.content-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.content-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-text ul {
  margin: 1.5rem 0;
}

.content-text ul li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.6;
}

.content-text ul li::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.55rem;
}

.content-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.content-image.placeholder {
  background: linear-gradient(135deg, var(--gold-bg), var(--gold-light));
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--gold);
}

/* === Form === */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
}

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

.form-group textarea { min-height: 140px; resize: vertical; }

/* === FAQ === */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
}

.faq-item summary {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq-item summary .icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 0.8rem;
  color: var(--text-light);
}

details[open] summary .icon { transform: rotate(45deg); border-color: var(--gold); color: var(--gold); }
.faq-item .faq-answer { padding-top: 1rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; padding-left: 0; }

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover { background: var(--gold); }
.back-to-top svg { width: 20px; height: 20px; }

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { height: 64px; }

  .hero { padding: 7rem 0 4rem; }
  .section { padding: 4rem 0; }
  .section-sm { padding: 3rem 0; }

  .mission-grid,
  .steps-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 2rem; }

  .content-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .cta-box { padding: 2.5rem; }

  .testimony blockquote { font-size: 1.2rem; }

  .container, .container-sm { padding: 0 1.25rem; }
  .nav-inner { padding: 0 1.25rem; }
  .mobile-nav { padding: 1.25rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .mission-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .mission-card { padding: 1.5rem; }
}
