:root {
  --text-color: #fdf8f3;
  --body-bg: #0d1a13;
  --bg-overlay: radial-gradient(circle at 10% 20%, rgba(255, 214, 102, 0.14) 0 18%, transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(210, 69, 69, 0.18) 0 14%, transparent 30%),
    radial-gradient(circle at 20% 85%, rgba(102, 191, 144, 0.18) 0 18%, transparent 35%),
    linear-gradient(135deg, rgba(9, 33, 23, 0.9), rgba(6, 19, 15, 0.94));
  --bg-photo: url('img/background.png');
  --main-bg: rgba(12, 32, 24, 0.72);
  --border-color: rgba(255, 255, 255, 0.28);
  --footer-color: rgba(242, 234, 224, 0.9);
  --muted-color: rgba(242, 234, 224, 0.85);
  --link-color: #ffd166;
  --accent-red: #d24545;
  --accent-green: #2c6a4c;
  --accent-gold: #ffd166;
  color-scheme: dark;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root[data-theme="light"] {
  --text-color: #143325;
  --body-bg: #f8f4ef;
  --bg-overlay: radial-gradient(circle at 12% 18%, rgba(210, 69, 69, 0.12) 0 16%, transparent 36%),
    radial-gradient(circle at 80% 12%, rgba(44, 106, 76, 0.18) 0 14%, transparent 36%),
    radial-gradient(circle at 25% 90%, rgba(255, 209, 102, 0.16) 0 20%, transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 245, 241, 0.92));
  --bg-photo: url('img/background.png');
  --main-bg: rgba(255, 255, 255, 0.9);
  --border-color: rgba(20, 51, 37, 0.16);
  --footer-color: rgba(20, 51, 37, 0.85);
  --muted-color: rgba(20, 51, 37, 0.7);
  --link-color: #b43838;
  --accent-red: #b43838;
  --accent-green: #1e5c42;
  --accent-gold: #e3a83b;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-color);
  background-color: var(--body-bg);
  background-image: var(--bg-overlay), var(--bg-photo);
  background-size: cover, cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transition: background-color 0.3s ease, color 0.3s ease, background-image 0.6s ease;
}

main {
  width: min(960px, calc(100% - 2.4rem));
  margin: 1.2rem auto 2.4rem;
  padding: 2.6rem 2.2rem 3rem;
  backdrop-filter: blur(5px);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)), var(--main-bg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.06em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

p {
  margin-bottom: 2rem;
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  line-height: 1.6;
}

.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.holiday-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  margin: 0 auto 0.8rem;
  color: #1a120a;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.9), rgba(255, 255, 255, 0.92));
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  text-transform: uppercase;
}

a.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.8rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  min-width: 200px;
}

a.cta-button.primary {
  color: #1a120a;
  background: linear-gradient(135deg, var(--accent-gold), #ffb347, var(--accent-red));
  box-shadow: 0 12px 30px rgba(255, 179, 71, 0.45);
}

a.cta-button.secondary {
  color: var(--text-color);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(4px);
}

a.cta-button:focus-visible {
  outline: 3px solid #b3ffe4;
  outline-offset: 4px;
}

a.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 44px rgba(210, 69, 69, 0.38);
}

a.cta-button.secondary:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  background: rgba(255, 255, 255, 0.16);
}


.site-footer {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  text-align: left;
  color: var(--footer-color);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.footer-text {
  margin: 0;
  color: var(--muted-color);
  line-height: 1.5;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-link {
  color: var(--link-color);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
}

.support-notice {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  color: var(--muted-color);
}

.support-notice a {
  color: var(--link-color);
  font-weight: 600;
  text-decoration: none;
}

.support-notice a:hover,
.support-notice a:focus-visible {
  text-decoration: underline;
}

.info-section {
  margin: 2rem 0 0;
  padding: 1.25rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  text-align: left;
}

.info-section h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.info-section ol {
  padding-left: 1.1rem;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.info-section li + li {
  margin-top: 0.35rem;
}

.info-section .muted {
  color: var(--muted-color);
  margin: 0;
}

.content-section {
  margin: 2rem 0 0;
  padding: 1.4rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  text-align: left;
}

.content-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.section-lead {
  margin: 0 0 1.2rem;
  color: var(--muted-color);
  font-size: 1rem;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted-color);
}

.faq-section .faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
}

.faq-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted-color);
  line-height: 1.55;
}

.giving-section {
  background: linear-gradient(135deg, rgba(44, 106, 76, 0.16), rgba(210, 69, 69, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.highlight-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.highlight-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--text-color);
  line-height: 1.5;
}

.highlight-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-gold);
  font-size: 1rem;
}

.garland {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(210, 69, 69, 0.35) 0%, rgba(44, 106, 76, 0.0) 90%);
  mask-image: radial-gradient(circle at 8% 60%, rgba(0, 0, 0, 0.8) 0 14%, transparent 30%),
    radial-gradient(circle at 18% 30%, rgba(0, 0, 0, 0.8) 0 14%, transparent 30%),
    radial-gradient(circle at 38% 55%, rgba(0, 0, 0, 0.8) 0 14%, transparent 32%),
    radial-gradient(circle at 62% 35%, rgba(0, 0, 0, 0.8) 0 14%, transparent 30%),
    radial-gradient(circle at 82% 60%, rgba(0, 0, 0, 0.8) 0 14%, transparent 32%);
  -webkit-mask-image: radial-gradient(circle at 8% 60%, rgba(0, 0, 0, 0.8) 0 14%, transparent 30%),
    radial-gradient(circle at 18% 30%, rgba(0, 0, 0, 0.8) 0 14%, transparent 30%),
    radial-gradient(circle at 38% 55%, rgba(0, 0, 0, 0.8) 0 14%, transparent 32%),
    radial-gradient(circle at 62% 35%, rgba(0, 0, 0, 0.8) 0 14%, transparent 30%),
    radial-gradient(circle at 82% 60%, rgba(0, 0, 0, 0.8) 0 14%, transparent 32%);
  mask-size: 120px 80px;
  mask-repeat: repeat;
  -webkit-mask-size: 120px 80px;
  -webkit-mask-repeat: repeat;
  opacity: 0.55;
}

.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #0e1f19;
  background: linear-gradient(135deg, #86f2c9, #36d9a5);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(40, 203, 152, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.6s ease;
  opacity: 0;
  pointer-events: auto;
  animation: fadeInButtons 1s ease forwards;
  animation-delay: 2s;
}

@keyframes fadeInButtons {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 0.95;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.info-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(40, 203, 152, 0.45);
  opacity: 1;
}

.info-button:focus-visible {
  outline: 3px solid #0f5132;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.92), 0 16px 40px rgba(40, 203, 152, 0.45);
  opacity: 1;
}

@media (max-width: 480px) {
  .floating-buttons {
    bottom: calc(12px + env(safe-area-inset-bottom));
    right: calc(12px + env(safe-area-inset-right));
    gap: 8px;
  }
  .info-button {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.12));
  color: var(--text-color);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  outline: none;
  background: rgba(255, 255, 255, 0.3);
}

.theme-toggle:active {
  transform: translateY(0);
}

@media (max-width: 900px) {
  body {
    align-items: flex-start;
    padding: 0.6rem;
    background-attachment: scroll;
  }

  main {
    margin-top: 1.4rem;
    padding: 2.2rem 1.6rem 2.6rem;
  }

  p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
  }

  .cta-group {
    width: 100%;
    justify-content: center;
  }

  a.cta-button {
    width: min(100%, 360px);
  }
}

@media (max-width: 640px) {
  main {
    width: min(720px, calc(100% - 1.4rem));
    padding: 1.8rem 1.4rem 2rem;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  a.cta-button {
    width: 100%;
  }

  .info-section,
  .content-section {
    padding: 1.1rem 1rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .floating-buttons {
    right: calc(10px + env(safe-area-inset-right));
  }
}
