/* ===================================
   ROOT
=================================== */

:root {
  --forest-dark: #173d3d;
  --forest: #147a59;
  --fern: #2f8f68;
  --cream: #f7f4ed;
  --fire: #ff7a1a;
  --white: #fff;
  --text: #1f2937;
  --shadow: 0 10px 30px rgb(0 0 0 / 12%);
  --radius: 20px;
  --transition: 0.3s ease;
  --container: 1200px;
}

/* ===================================
   RESET
=================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

ul {
  margin: 0;
  padding-left: 20px;
}

/* ===================================
   TYPOGRAPHY
=================================== */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  color: var(--forest-dark);
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 20px;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

p {
  line-height: 1.8;
}

/* ===================================
   CONTAINER
=================================== */

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.narrow {
  max-width: 850px;
  margin: 0 auto;
}

/* ===================================
   BUTTONS
=================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: var(--fern);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgb(255 255 255 / 60%);
}

.btn-secondary:hover {
  background: rgb(255 255 255 / 10%);
}

/* ===================================
   HEADER
=================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgb(23 61 61 / 85%);
  backdrop-filter: blur(12px);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.logo {
  width: 80px;
}

.desktop-nav {
  display: flex;
  gap: 24px;
}

.desktop-nav a {
  color: var(--white);
  font-size: 0.95rem;
  transition: var(--transition);
}

.desktop-nav a:hover {
  color: #9be2c6;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* ===================================
   MOBILE MENU
=================================== */

.mobile-menu {
  position: fixed;
  top: 80px;
  right: -100%;
  width: 280px;
  height: calc(100vh - 80px);
  background: var(--forest-dark);
  display: flex;
  flex-direction: column;
  padding: 30px;
  gap: 20px;
  transition: 0.4s ease;
  z-index: 999;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  color: white;
  font-size: 1.1rem;
}

/* ===================================
   HERO
=================================== */

.hero {
  position: relative;
  min-height: 100vh;
  background: url("../assets/hero-bg.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgb(0 0 0 / 45%), rgb(0 0 0 / 65%));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 900px;
  padding: 20px;
}

.hero-logo {
  width: 200px;
  margin: 0 auto 20px;
}

.hero-date {
  color: #e4f8ed;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  color: white;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: white;
}

.hero-city {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #d8ede4;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ===================================
   INTRO
=================================== */

.intro {
  padding: 100px 0;
  text-align: center;
}

.intro p {
  font-size: 1.15rem;
}

/* ===================================
   SECTION HEADERS
=================================== */

section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 50px;
}

.section-header.center {
  text-align: center;
}

.section-label {
  display: inline-block;
  color: var(--forest);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ===================================
   HISTORY TIMELINE
=================================== */

.history-section {
  background: linear-gradient(180deg, #f7f4ed 0%, #eef6f1 100%);
}

.history-intro {
  max-width: 900px;
  margin-bottom: 60px;
  font-size: 1.1rem;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--fern);
  opacity: 0.3;
}

.timeline-card {
  position: relative;
  display: flex;
  gap: 30px;
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.timeline-year {
  min-width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
}

.timeline-content {
  flex: 1;
}

/* ===================================
   FESTIVAL FEATURES
=================================== */

.festival-section {
  background: white;
}

.festival-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--cream);
  padding: 28px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-card ul {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===================================
   CHARITY
=================================== */

.charity-section {
  background: linear-gradient(rgb(23 61 61 / 95%), rgb(23 61 61 / 95%));
  color: white;
}

.charity-section h2 {
  color: white;
}

.charity-section p {
  text-align: center;
}

.charity-section blockquote {
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
  font-size: 1.4rem;
  font-style: italic;
  color: #dff7ec;
}

/* ===================================
   FERN PROGRESS
=================================== */

.fern-progress {
  width: 100%;
  max-width: 700px;
  height: 28px;
  margin: 50px auto 0;
  background: rgb(255 255 255 / 12%);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.fern-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, #63d891, #2f8f68);
  transition: 1s ease;
}

.fern-progress-value {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: white;
  font-weight: 700;
}

/* ===================================
   REPORT
=================================== */

.report-section {
  background: #eef6f1;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.report-card {
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.report-year {
  display: inline-block;
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 10px;
}

.report-card h3 {
  color: var(--fire);
  margin-bottom: 10px;
}

/* ===================================
   PROGRAM
=================================== */

.program-section {
  background: white;
}

#program-container {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  #program-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.program-day {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 30px;
}

.program-day h3 {
  margin-bottom: 20px;
}

.program-event {
  display: flex;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid rgb(0 0 0 / 8%);
}

.program-time {
  color: var(--forest);
  font-weight: 700;
}

/* ===================================
   LOCATIONS
=================================== */

.locations-section {
  background: #eef6f1;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.location-card {
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.location-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===================================
   GALLERY
=================================== */

.gallery-section {
  background: white;
}

.gallery-slider-wrapper {
  position: relative;
}

.gallery-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  margin-bottom: 16px;
  scroll-behavior: smooth;
}

.gallery-grid::-webkit-scrollbar {
  display: none;
}

.gallery-grid img {
  flex: 0 0 85%;
  min-width: 85%;
  max-width: 85%;
  scroll-snap-align: center;
  margin-bottom: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(23, 61, 61, 0.35);
  opacity: 0.25;
  transition: opacity 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
}

.gallery-prev:hover,
.gallery-next:hover {
  opacity: 0.5;
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

.gallery-prev::before,
.gallery-next::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.gallery-prev::before {
  transform: rotate(-135deg);
}

.gallery-next::before {
  transform: rotate(45deg);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(23, 61, 61, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
}

.gallery-dot.active {
  background: var(--forest);
}

@media (min-width: 768px) {
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .gallery-grid img {
    flex: none;
    min-width: auto;
    max-width: 100%;
    scroll-snap-align: none;
  }

  .gallery-prev,
  .gallery-next,
  .gallery-dots {
    display: none;
  }
}

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===================================
   DONATE
=================================== */

.donate-section {
  background: linear-gradient(180deg, #173d3d, #0e2a2a);
  color: white;
}

.donate-section h2 {
  color: white;
}

.donate-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.donate-qr img {
  width: 250px;
  background: white;
  padding: 16px;
  border-radius: 20px;
}

.donate-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===================================
   PARTNERS
=================================== */

.partners-section {
  background: #eef6f1;
}

.partners-placeholder {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  font-size: 1.1rem;
}

.partners {
  padding: 72px 0;
  background: #fff8fb;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.partner-card {
  background: #fff;
  border: 1px solid rgb(210 32 110 / 8%);
  border-radius: 20px;
  min-height: 120px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgb(30 20 40 / 5%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgb(30 20 40 / 10%);
}

.partner-card img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: saturate(1);
}

@media (width <= 640px) {
  .partners {
    padding: 56px 0;
  }

  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .partner-card {
    min-height: 110px;
    padding: 16px;
    border-radius: 16px;
  }

  .partner-card img {
    max-height: 56px;
  }
}

/* ===================================
   FOOTER
=================================== */

.footer {
  background: var(--forest-dark);
  color: white;
  padding: 80px 0 30px;
}

.footer h3 {
  color: white;
  margin-bottom: 10px;
}

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

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 2px 10px;
}

.footer-column a {
  color: #dff7ec;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 15%);
  text-align: center;
  opacity: 0.8;
}

.organizers,
.contact-info {
  div {
    padding: 10px 0;
  }
}

/* ===================================
   FLOATING DONATE BUTTON
=================================== */

.floating-donate-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  background: var(--fire);
  color: white;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgb(0 0 0 / 25%);
  transition: var(--transition);
}

.floating-donate-btn:hover {
  transform: translateY(-3px);
}

/* ===================================
   ANIMATIONS
=================================== */

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   RESPONSIVE
=================================== */

@media (width >= 768px) {
  .gallery-grid {
    columns: 2;
  }
}

@media (width >= 1200px) {
  .gallery-grid {
    columns: 3;
  }
}

@media (width <= 992px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (width <= 768px) {
  section {
    padding: 70px 0;
  }

  .timeline::before {
    display: none;
  }

  .timeline-card {
    flex-direction: column;
  }

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

  .program-event {
    flex-direction: column;
    gap: 5px;
  }

  .floating-donate-btn {
    right: 15px;
    left: 15px;
    bottom: 15px;
    text-align: center;
  }

  .hero-logo {
    width: 150px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (width <= 480px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .btn {
    width: 100%;
  }
}
