/* ---------- ROOT & GLOBAL ---------- */

:root {
  --bg-base: #fffbf4;
  --text-main: #111111;
  --text-muted: #555555;
  --accent-dark: #151515;
  --accent-light: #fafafa;
  --border-subtle: #e3ded3;
  --border-strong: #151515;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --transition-fast: 0.2s ease;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  line-height: 1.6;
  background:
    radial-gradient(1200px 800px at 70% -10%,
      rgba(255, 230, 150, 0.6) 0%,
      rgba(255, 230, 150, 0.35) 28%,
      rgba(0, 100, 255, 0.12) 58%,
      var(--bg-base) 85%,
      var(--bg-base) 100%);
  background-color: var(--bg-base);
  background-repeat: no-repeat;
  background-attachment: scroll;
}

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

a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  text-underline-offset: 0.24em;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ---------- LAYOUT HELPERS ---------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section--tight {
  padding: 40px 0;
}

.section-header {
  margin-bottom: 32px;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 700;
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--accent-dark);
  /* background-color: var(--accent-dark); */
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.btn:hover {
  background-color: #333333;
  color: var(--accent-light);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn--ghost:hover {
  background-color: var(--accent-dark);
  color: var(--accent-light);
}

/* ---------- HEADER ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Header when scrolled */
.header--scrolled {
  background-color: rgba(255, 251, 244, 0.96);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 999px;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.nav a:hover {
  background-color: #f2ebde;
  color: #000000;
}

.nav a.is-active {
  background-color: var(--accent-dark);
  color: var(--accent-light);
}

.nav-lang {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.9;
  border: 1px solid var(--border-subtle);
}

.nav-toggle {
  display: none;
  /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--accent-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- HERO ---------- */

.hero-splash {
  margin: 0 0 36px 0;
}

.hero-splash__inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-splash__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero-splash__title {
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin-bottom: 18px;
}

.hero-splash__subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin: 0 auto 18px;
  max-width: 620px;
}

.hero-splash__image {
  margin: 16px auto 22px;
  width: min(70vw, 380px);
  height: auto;
}

/* ---------- HOME: INITIATIVE CARDS ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.intro-card {
  padding: 22px 20px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background-color: rgba(255, 251, 244, 0.98);
  box-shadow: var(--shadow-soft);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intro-card h2 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.intro-card .tagline {
  font-size: 0.98rem;
  color: var(--text-muted);
}

.intro-card__image {
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ---------- NEWSLETTER HORIZONTAL (MODERNIZED) ---------- */

.newsletter-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 56px 64px;
  border: 1px solid var(--border-subtle);
  /* border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); */
}

.newsletter-horizontal__content {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  align-items: center;
}

.newsletter-horizontal__logo {
  width: 360px;
  height: auto;
  margin-bottom: 0.5rem;
}

.newsletter-horizontal__content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 440px;
  /* margin-bottom: 1.5rem; */
}

.newsletter-horizontal__image {
  flex: 0 1 40%;
  display: flex;
  align-items: flex-end;
  /* make the image sit on the bottom line */
  justify-content: center;
  position: relative;
}

.newsletter-horizontal__image img {
  max-width: 75%;
  height: auto;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  /* subtle rounding only at bottom if desired */
  object-fit: contain;
  align-self: flex-end;
  /* ensure bottom alignment inside flex container */
  margin-bottom: -1px;
  /* closes the 1px gap from antialiasing */
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .newsletter-horizontal {
    flex-direction: column-reverse;
    text-align: center;
    padding: 40px 28px;
    gap: 28px;
  }

  .newsletter-horizontal__logo {
    margin: 0 auto 0.5rem;
  }

  .newsletter-horizontal__content p {
    margin: 0 auto 1.25rem;
  }

  .newsletter-horizontal__image img {
    max-width: 300px;
  }
}

/* ---------- NEWSLETTER SIMPLE ---------- */
.newsletter-simple {
  text-align: center;
  margin: 4rem 0;
}

.newsletter-simple p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #222;
  font-weight: 500;
}

.newsletter-simple .ml-embedded {
  max-width: 420px;
  margin: 0 auto;
}

#newsletter {
  scroll-margin-top: 90px;
}

/* ---------- PARTNERS GRID ---------- */

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}

.partners-grid img {
  width: 240px;
  height: 170px;
  object-fit: contain;
  object-position: center;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.partners-grid img:hover {
  opacity: 1;
}

/* ---------- FESTIVAL: STATS & PROJECTS ---------- */

.stats {
  margin: 56px 0 0 0;
  padding: 56px 0;
  background-color: #fff7ea;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 28px;
}

.stat-item {
  flex: 1 1 180px;
  max-width: 260px;
  text-align: center;
}

.stat-number {
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 0.25rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* PROJECT GRID */

.projects {
  padding: 56px 0 40px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--border-strong);
}

.project-card__body {
  padding: 16px 16px 12px;
}

.project-card h3 {
  font-size: 1.06rem;
  margin-bottom: 4px;
}

.project-card p {
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent-dark);
  margin-top: 6px;
}

.project-card a::after {
  content: "↗";
  font-size: 0.8em;
}

.project-card__image {
  margin-top: 6px;
  height: 200px;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ugf-preview {
  position: relative;
  display: block;
  /* ensures the section wraps around the image */
  overflow: hidden;
}

.ugf-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.ugf-preview a::after {
  content: "↗";
  font-size: 0.8em;
}

/* Button overlay */
.ugf-preview .btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background-color: rgba(21, 21, 21, 0.8);
  /* translucent dark background for contrast */
  color: #fff;
  border-color: transparent;
  backdrop-filter: blur(4px);
  text-decoration: none;
}

/* Optional hover effect */
.ugf-preview .btn:hover {
  background-color: #000;
  color: #fff;
}

/* ---------- OFFLINE EVENTS ---------- */

.event-card {
  /* display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background-color: #ffffff;
  box-shadow: var(--shadow-soft);
    overflow: hidden; */
  margin: 64px 0;
}

/* .event-card__content {
  flex: 1 1 45%;
  padding: 40px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
} */

.event-card__meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.event-card__title {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.event-card__content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.event-card__gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 0 36px 0;
}

.event-card__gallery img {
  flex: 0 0 auto;
  width: auto;
  height: 240px;
  object-fit: cover;
  scroll-snap-align: start;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.event-card__gallery img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Reverse layout for alternating visual rhythm
.event-card--reverse {
  flex-direction: row-reverse;
  background-color: #fefbf6;
} */

/* Responsive */
@media (max-width: 900px) {
  .event-card {
    flex-direction: column;
    margin-bottom: 48px;
  }

  .event-card__content {
    padding: 28px 24px;
  }

  .event-card__gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    padding: 8px 12px 16px;
  }

  .event-card__gallery img {
    height: 180px;
  }
}

/* ---------- TEXT PAGES (ABOUT / NEWSLETTER) ---------- */

.text-page {
  padding: 64px 0 72px;
}

.text-page .container {
  max-width: 800px;
}

.text-page h1 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  margin-bottom: 1rem;
}

.text-page h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.text-page p,
.text-page li {
  font-size: 1rem;
  color: var(--text-muted);
}

.text-page ul {
  padding-left: 1.2rem;
  margin: 0 0 1.5rem;
}

.text-page a {
  text-decoration: underline;
}

/* Newsletter-specific visual */

.newsletter-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.newsletter-hero .hero-splash__title {
  font-size: clamp(2.1rem, 3.4vw, 2.6rem);
}

.newsletter-hero .hero-splash__subtitle {
  max-width: 540px;
}

/* ---------- FOOTER ---------- */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 26px;
  background-color: rgba(255, 251, 244, 0.98);
  margin-top: 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.footer-logo img {
  height: 60px;
  opacity: 0.8;
}

.footer-column {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-column h4 {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--text-main);
}

.footer-column a {
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer-column a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- RESPONSIVE ---------- */


@media (max-width: 768px) {
  .header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    gap: 0;
    padding-inline: 14px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    /* keep your existing properties */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: var(--bg-base);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    flex-direction: column;
    gap: 12px;
    z-index: 40;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    display: flex;
    /* safe now */
  }

  .nav a {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    width: 100%;
  }

  /* hamburger animation */
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .section,
  .text-page {
    padding: 48px 0;
  }

  .intro-grid {
    gap: 20px;
  }

  .project-card__image {
    height: 150px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-splash {
    padding-top: 40px;
  }

  .hero-splash__title {
    font-size: 2rem;
  }

  .hero-splash__subtitle {
    font-size: 0.96rem;
  }

  .container {
    padding: 0 16px;
  }
}
