/* GLOBAL SETTINGS */
:root {
    --primary: #111110;
    --secondary: #B8860B;
    --background: #F5F2EC;
    --text: #111110;
    --light-grey: #F7F7F7;
    --dark: #111111;
    --muted: #6B6860;
}

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

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
}

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

/* Utility Classes for GSAP */
.hero-animate,
.gsap-fade-up,
.gsap-fade-left,
.gsap-fade-right {
    will-change: transform, opacity;
}

/* Donation Modal Styles */
.donation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.donation-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.donation-modal-card {
    background: var(--background);
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.donation-modal-overlay.active .donation-modal-card {
    transform: translateY(0);
}

.donation-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s;
}

.donation-modal-close:hover {
    color: var(--primary);
}

.donation-modal-title {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.donation-modal-subtitle {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 25px;
}

.donation-details {
    background: var(--light-grey);
    padding: 20px;
    border-radius: 6px;
    text-align: left;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.donation-modal-copy {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.detail-row {
    margin-bottom: 12px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-caption {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

/* Page Transitions */
html.js-loaded body {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

html.js-loaded body.page-loaded {
    opacity: 1;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.08), rgba(184, 134, 11, 0.12));
  border: 1px solid rgba(184, 134, 11, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 24px rgba(184, 134, 11, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(25px);
  transition: 
    opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    visibility 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
  stroke-width: 1.75px;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.15), rgba(184, 134, 11, 0.22));
  border-color: rgba(184, 134, 11, 0.45);
  box-shadow: 0 8px 30px rgba(184, 134, 11, 0.25);
  transform: translateY(-4px);
}

.back-to-top:hover svg {
  transform: translateY(-3px);
}

/* Hide native scrollbar on desktop view */
@media (min-width: 1024px) {
  ::-webkit-scrollbar {
    display: none;
  }
  html {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
}