/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ---- CSS Variables ---- */
:root {
  --milk: #F8F9FA;
  --milk-light: #FFFFFF;
  --milk-dark: #E9ECEF;
  --plum: #002D62;
  --plum-light: #0047AB;
  --plum-dark: #00183F;
  --plum-glow: rgba(0, 45, 98, 0.12);

  --accent-warm: #F5A623;
  --accent-rose: #D97706;
  --accent-green: #5E9B76;

  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #8A8A8A;
  --text-on-plum: #F8F9FA;

  --shadow-sm: 0 2px 8px rgba(0, 45, 98, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 45, 98, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 45, 98, 0.14);
  --shadow-xl: 0 16px 60px rgba(0, 45, 98, 0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --header-height: 80px;
  --container-max: 1200px;
  --container-narrow: 900px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--milk);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--plum);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--plum-light);
}

ul,
ol {
  list-style: none;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--plum);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

p {
  color: var(--text-secondary);
  max-width: 72ch;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}


section {
  padding: 56px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-bottom: 16px;
  position: relative;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent-rose));
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-header p {
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-transform: none;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--plum);
  color: var(--milk);
  box-shadow: 0 4px 16px rgba(0, 45, 98, 0.25);
}

.btn-primary:hover {
  background: var(--plum-light);
  color: var(--milk);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 45, 98, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--plum);
  border: 2px solid var(--plum);
}

.btn-secondary:hover {
  background: var(--plum);
  color: var(--milk);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-rose));
  color: white;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 166, 35, 0.4);
}

.btn-danger {
  background: #dc3545;
  color: white;
  border-radius: var(--radius-full);
  padding: 10px 32px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.btn-danger:hover {
  background: #bb2d3b;
  box-shadow: 0 6px 18px rgba(220, 53, 69, 0.3);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* ---- Cards ---- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  margin-bottom: 8px;
}

.card-body p {
  font-size: 0.95rem;
}

/* ---- Navbar ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background: rgba(248, 249, 250, 0.4);
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
  border-bottom: 1px solid rgba(0, 45, 98, 0.06);
}

/* Gallery specific navbar background */
.gallery-page .header:not(.scrolled) {
  background: rgba(255, 255, 255, 1);
}

.header.scrolled {
  background: rgb(255, 255, 255);
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding-top: env(safe-area-inset-top, 0px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}


.logo-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--plum);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav a {
  padding: 8px 16px;
  font-size: 0.925rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--plum);
}

.header-donate {
  display: none;
  padding: 8px 20px;
  font-size: 0.85rem;
}

@media (max-width: 940px) {
  .header-donate {
    display: inline-flex;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--plum);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Mobile Nav ---- */
@media (max-width: 940px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--milk);
    flex-direction: column;
    padding: calc(var(--header-height) + 10px) 32px 32px;
    gap: 4px;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
  }

  .nav.open {
    right: 0;
  }

  .nav a {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 45, 98, 0.3);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  .mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
}

/* ---- Footer ---- */
.footer {
  background: var(--plum);
  color: var(--text-on-plum);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer h4 {
  color: var(--milk);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-about p {
  color: rgba(248, 249, 250, 0.75);
  font-size: 0.925rem;
  line-height: 1.8;
}

.footer-links a {
  display: block;
  color: rgba(248, 249, 250, 0.75);
  padding: 6px 0;
  font-size: 0.925rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--milk);
  padding-left: 6px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(248, 249, 250, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 249, 250, 0.75);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--milk);
  color: var(--plum);
  border-color: var(--milk);
}

.footer-bottom {
  border-top: 1px solid rgba(248, 249, 250, 0.1);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(248, 249, 250, 0.5);
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom a {
  color: rgba(248, 249, 250, 0.7);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--milk);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---- Floating Donate ---- */
.floating-donate {
  position: fixed;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  right: calc(28px + env(safe-area-inset-right, 0px));
  z-index: 900;
  animation: float-pulse 3s ease-in-out infinite;
}

.floating-donate .btn {
  box-shadow: 0 8px 32px rgba(0, 45, 98, 0.35);
  padding: 16px 28px;
  font-size: 0.95rem;
}

@keyframes float-pulse {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Utility ---- */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 16px;
}

.mt-4 {
  margin-top: 32px;
}

.mt-6 {
  margin-top: 48px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .footer-bottom {
    padding-bottom: 100px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  section {
    padding: 40px 0;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .footer-bottom {
    padding-bottom: 100px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 32px 0;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section-header h2 {
    margin-bottom: 12px;
  }

  .section-header p {
    font-size: 0.95rem;
  }
}

/* ---- Donate QR Modal ---- */
.donate-qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 45, 98, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  padding: 24px;
}

.donate-qr-modal.active {
  opacity: 1;
  pointer-events: all;
}

.donate-qr-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-xl);
}

.donate-qr-modal.active .donate-qr-content {
  transform: translateY(0);
}

.donate-qr-content h3 {
  margin-bottom: 8px;
  color: var(--plum);
}

.donate-qr-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.donate-qr-content img {
  width: 100%;
  max-width: 250px;
  margin: 0 auto 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--milk-dark);
  box-shadow: var(--shadow-sm);
}

.donate-qr-note {
  font-size: 0.85rem !important;
  color: var(--plum) !important;
  margin-bottom: 0 !important;
  font-style: italic;
}