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

:root {
  --sand: #f8f5f0;
  --linen: #fff9f4;
  --ink: #1c1b18;
  --clay: #c65b25;
  --soft-clay: rgba(198, 91, 37, 0.15);
  --deep-eggplant: #0f0b0d;
  --shadow: rgba(15, 15, 15, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(circle at top, #fffdfb, #f8f5f0 45%, #f0e8dd);
  color: var(--ink);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 249, 244, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: 'Merriweather', serif;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
  align-items: center;
}

.language-switcher {
  display: flex;
  gap: 0.4rem;
}

.language-switcher button {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-switcher button.active {
  background: var(--clay);
  color: #fff;
  border-color: var(--clay);
}

.nav-links a {
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--soft-clay);
}

.social-link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-weight: 600;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.hero {
  position: relative;
  margin-top: 1rem;
  border-radius: 32px;
  overflow: hidden;
  min-height: 460px;
  padding: 4rem 3rem;
  background: #0c0a0f;
  color: #fff;
}

.hero-slider {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(12, 10, 15, 0.7);
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s ease;
  filter: saturate(1.1) brightness(0.75);
}

.hero-slider .slide.active {
  opacity: 1;
  transform: scale(1.05);
}

.hero-spirits {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}

.hero-spirits span {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
  filter: blur(8px);
  animation: floatBall 8s ease-in-out infinite;
}

.hero-spirits span:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.hero-spirits span:nth-child(2) {
  bottom: 10%;
  right: 12%;
  animation-delay: 2s;
}

.hero-spirits span:nth-child(3) {
  top: 40%;
  right: 35%;
  animation-delay: 4s;
}

.hero-indicators {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 2;
}

.hero-indicators button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-indicators button.active {
  background: #fff;
  transform: scale(1.2);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(2.8rem, 4vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}
.hero-subheading {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

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

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% -10%, rgba(255, 255, 255, 0.08), transparent 45%),
    radial-gradient(circle at 80% 0, rgba(198, 91, 37, 0.2), transparent 50%);
  mix-blend-mode: screen;
  animation: heroGlow 10s ease-in-out infinite;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(198, 91, 37, 0.2), rgba(0, 0, 0, 0));
  opacity: 0.6;
  mix-blend-mode: multiply;
}

.hero-slider .slide {
  will-change: transform, opacity;
}

.section[data-animate="true"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(198, 91, 37, 0.08), transparent 60%);
  pointer-events: none;
}

.home .grid .card,
.home .timeline-list li,
.home .contact-card,
.home .qr-card,
.home .membership-card {
  transform: translateY(25px);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.home .grid .card.is-visible,
.home .timeline-list li.is-visible,
.home .contact-card.is-visible,
.home .qr-card.is-visible,
.home .membership-card.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.hero-actions .button.primary {
  animation: pulse 2.5s ease-in-out infinite;
}

.hero-actions .button.secondary {
  animation: floatButton 4s ease-in-out infinite;
}

@keyframes heroGlow {
  0% { opacity: 0.6; }
  50% { opacity: 0.4; }
  100% { opacity: 0.6; }
}

@keyframes floatButton {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}


.button {
  border-radius: 999px;
  padding: 0.95rem 1.9rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 20px 35px rgba(198, 91, 37, 0.45);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.button:hover {
  transform: translateY(-2px);
}

.section {
  margin-top: 4rem;
  animation: fadeInUp 1s ease;
}

.section-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.section p {
  color: #483a32;
  max-width: 780px;
  margin-bottom: 1.5rem;
}

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

.card {
  background: #fff;
  padding: 1.75rem;
  border-radius: 24px;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  animation: floatUp 1.2s ease;
}

.card h3 {
  font-size: 1.35rem;
  font-family: 'Merriweather', serif;
  margin-bottom: 0.6rem;
}

.card p {
  color: #3c2b25;
}

.gallery {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  border-radius: 18px;
  height: 220px;
  object-fit: cover;
  filter: saturate(1.1);
  animation: pulse 12s ease-in-out infinite;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.timeline-list li {
  background: #fff;
  border-radius: 22px;
  padding: 1.4rem 1.6rem;
  border-left: 5px solid var(--clay);
  box-shadow: 0 15px 35px rgba(14, 14, 17, 0.08);
  position: relative;
  overflow: hidden;
  animation: floatUp 1.2s ease;
}

.timeline-list li::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.timeline-list time {
  font-size: 0.85rem;
  color: #7a6c62;
}

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

.contact-card {
  background: #fff7ef;
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 1.1s ease;
}

.contact-card h3 {
  margin-top: 0;
  font-family: 'Merriweather', serif;
}

.contact-card p {
  margin-bottom: 0.6rem;
  color: #382c22;
}

.contact-card strong {
  color: var(--ink);
}

.policy {
  padding: 2rem 1.25rem 4rem;
}

.policy-card {
  background: #fff;
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  margin: 2rem auto;
  max-width: 950px;
}

.policy-card h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(2.4rem, 3vw, 3rem);
  margin-bottom: 1rem;
}

.policy-card h2 {
  font-family: 'Merriweather', serif;
  margin-top: 1.5rem;
}

.policy-card p {
  line-height: 1.6;
  color: #3d2e22;
}

.policy-card ul {
  padding-left: 1.2rem;
  color: #3d2e22;
}

.footer {
  margin-top: 4rem;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #5c4d42;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-icon-group {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-icon svg {
  width: 20px;
  height: 20px;
}

.footer-icon:hover {
  background: var(--soft-clay);
}

.donation-hero {
  background: #0f0b0d;
  color: #fff;
  padding: 2.75rem;
  border-radius: 28px;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.donation-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(198, 91, 37, 0.35), rgba(31, 21, 16, 0.75));
}

.donation-hero-content {
  position: relative;
  max-width: 760px;
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.qr-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
}

.qr-card img {
  width: 170px;
  height: 170px;
  border-radius: 16px;
  object-fit: cover;
}

.qr-label {
  font-weight: 600;
}

.membership-card {
  background: #1c181a;
  color: #fff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.35);
}

.membership-card button,
.qr-card button {
  margin-top: 0.8rem;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  border: none;
  background: var(--clay);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.membership-card button:hover,
.qr-card button:hover {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 1.5rem;
  }

  .header-inner {
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero-actions {
    flex-direction: column;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes floatBall {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 4px;
  flex-direction: column;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease;
}

.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
@media (max-width: 768px) {
  .header-inner {
    position: relative;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 1rem;
    flex-direction: column;
    gap: 0;
    background: var(--linen);
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9;
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a {
    padding: 0.6rem 0;
  }
}

.construction-doc {
  background: #fff;
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.15);
  margin-top: 2.5rem;
  text-align: center;
}

.construction-doc .button {
  margin-top: 1rem;
}


.construction-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.construction-gallery img {
  width: 100%;
  border-radius: 16px;
  height: 220px;
  object-fit: cover;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.construction-gallery div {
  background: #fff8f1;
  border-radius: 18px;
  padding: 1rem;
  text-align: center;
}

.checklist {
  margin-top: 2rem;
}

.checklist ul {
  list-style: disc;
  margin-left: 1.25rem;
}


.gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}
.gallery-overlay.is-visible {
  display: flex;
}
.gallery-overlay-content {
  position: relative;
  background: #0f0b0d;
  border-radius: 24px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}
.gallery-overlay-content img {
  max-width: min(90vw, 700px);
  max-height: 70vh;
  border-radius: 14px;
}
.gallery-overlay-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}
.gallery-overlay-actions {
  margin-top: 1rem;
}
.gallery-overlay-actions .button {
  margin: 0 auto;
}
