@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --primary-color: #1F2A37;
  --accent-color: #C89B3C;
  --secondary-color: #2A7F62;
  --text-dark: #1F2A37;
  --text-medium: #475569;
  --text-light: #64748B;
  --bg-cream: #F5F5F0;
  --bg-light: #FDFCF8;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --success: #2A7F62;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 12px 0 rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 25px 50px rgba(15, 23, 42, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.78;
  color: var(--text-dark);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', Georgia, serif;
  line-height: 1.2;
  font-weight: 400;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  margin-bottom: 0.75rem;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

.logo:hover {
  color: var(--accent-color);
}

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

.nav-links a {
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s cubic-bezier(0.33, 1, 0.68, 1);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--text-dark);
  outline: none;
}

.hero {
  background: linear-gradient(135deg, rgba(31, 42, 55, 0.97), rgba(42, 127, 98, 0.95)), 
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="800"><rect fill="%231F2A37" width="1920" height="800"/><circle cx="300" cy="200" r="120" fill="rgba(200,155,60,0.06)"/><circle cx="1600" cy="600" r="180" fill="rgba(42,127,98,0.05)"/></svg>');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 7.5rem 0;
  position: relative;
}

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

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.75rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0.92;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.33, 1, 0.68, 1);
  border: 2px solid transparent;
  cursor: pointer;
  min-width: 160px;
  text-align: center;
  letter-spacing: 0.01em;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background: #B88A2F;
  border-color: #B88A2F;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(200, 155, 60, 0.25);
  outline: none;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover,
.btn-outline:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-accent {
  background: var(--accent-color);
  color: var(--white);
  border-color: var(--accent-color);
}

.btn-accent:hover,
.btn-accent:focus {
  background: #B88A2F;
  border-color: #B88A2F;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(200, 155, 60, 0.3);
}

.btn-secondary {
  background: var(--white);
  color: var(--text-dark);
  border-color: var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--bg-light);
  border-color: var(--accent-color);
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-medium);
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-weight: 300;
}

.card {
  background: var(--white);
  border-radius: 0.5rem;
  padding: 2.5rem;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.card-header {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  font-family: 'Libre Baskerville', serif;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.impact-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  text-align: center;
  border-left: 3px solid var(--accent-color);
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--secondary-color);
}

.impact-card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  fill: var(--accent-color);
  opacity: 0.9;
}

.impact-card h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}

.qr-section {
  background: var(--bg-light);
  padding: 3.5rem 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  text-align: center;
  margin: 3rem 0;
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.qr-code {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  display: inline-block;
  box-shadow: var(--shadow);
}

.qr-link {
  font-size: 0.875rem;
  color: var(--text-light);
  word-break: break-all;
  max-width: 100%;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-radius: 0.375rem;
  font-family: 'Monaco', 'Courier New', monospace;
  border: 1px solid var(--border-light);
}

.funds-bar {
  display: flex;
  height: 4rem;
  border-radius: 0.5rem;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.funds-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  letter-spacing: 0.02em;
}

.funds-segment:hover {
  flex-grow: 1.05;
  filter: brightness(1.1);
}

.funds-segment.direct {
  background: var(--secondary-color);
}

.funds-segment.program {
  background: var(--accent-color);
}

.funds-segment.operations {
  background: #475569;
}

.donation-options {
  display: grid;
  gap: 2rem;
  margin: 3rem 0;
}

.donation-method {
  background: var(--white);
  border-radius: 0.5rem;
  padding: 2.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.donation-method:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.method-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.method-title svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-color);
}

.bank-details {
  display: grid;
  gap: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-light);
  border-radius: 0.375rem;
  border: 1px solid var(--border-light);
  transition: all 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

.detail-row:hover {
  background: var(--white);
  border-color: var(--border);
}

.detail-label {
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-value {
  font-family: 'Monaco', 'Courier New', monospace;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9375rem;
}

.btn-copy {
  padding: 0.5rem 1rem;
  background: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.33, 1, 0.68, 1);
  letter-spacing: 0.02em;
}

.btn-copy:hover,
.btn-copy:focus {
  background: #B88A2F;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 155, 60, 0.3);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 0.9375rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.33, 1, 0.68, 1);
  background: var(--white);
  color: var(--text-dark);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(200, 155, 60, 0.1);
}

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

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-dark);
  color: var(--white);
  padding: 1.125rem 1.75rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-xl);
  transform: translateY(150%);
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  z-index: 1000;
  max-width: 320px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.toast.show {
  transform: translateY(0);
}

.toast.success {
  background: var(--secondary-color);
}

footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  color: var(--accent-color);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  display: block;
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
  transition: color 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

.footer-section a:hover,
.footer-section a:focus {
  color: var(--accent-color);
  padding-left: 0.25rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.icon {
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.125rem;
  }

  nav {
    padding: 1rem 0;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 0.8125rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .impact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 1.75rem;
  }

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

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .toast {
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

  .qr-section {
    padding: 2.5rem 1.5rem;
  }
}

/* Featured Photos on Homepage */
.featured-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.featured-photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 4/3;
}

.featured-photo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.featured-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .featured-photos {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.gallery-item {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  padding: 1.5rem;
}

.gallery-caption h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.gallery-caption p {
  font-size: 0.9375rem;
  color: var(--text-medium);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-item img {
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
