/* Base palette inspired by reference */
:root {
  --brand-primary: #3bb0e3;
  --brand-primary-dark: #2a90bf;
  --brand-secondary: #2f4057;
  --brand-accent: #f6a623;
  --brand-soft: #f2f7fb;
  --brand-gray: #6c7685;
  --brand-dark: #1f2833;
  --bg-hero: linear-gradient(120deg, rgba(59,176,227,0.85), rgba(47,64,87,0.85));
}

* { box-sizing: border-box; }

body.site-body {
  font-family: "Source Sans Pro", Arial, sans-serif;
  color: #2b2b2b;
  background-color: #f8f9fb;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  background: var(--brand-primary);
}

.bg-primary-ice {
  background: #64c4ec;
}

.site-navbar {
  background: white;
  border-bottom: 1px solid #e6ecf2;
}

.site-navbar .nav-link {
  font-weight: 600;
  color: var(--brand-secondary);
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: var(--brand-primary-dark);
}

.brand-mark {
  width: 38px;
  height: 38px;
  background: var(--brand-primary);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.btn-brand {
  background: var(--brand-primary);
  border: none;
  color: white;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
}
.btn-brand:hover {
  background: var(--brand-primary-dark);
  color: white;
}

.hero {
  background: var(--bg-hero), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1400&q=80') center/cover;
  color: white;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero .overlay-badge {
  background: rgba(255,255,255,0.12);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-secondary);
}

.muted-link { color: var(--brand-gray); }

.card-feature {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  background: white;
}

.card-feature img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card-feature .card-body {
  padding: 1.4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--brand-accent);
  font-size: 0.8rem;
}

.cause-progress {
  height: 6px;
  border-radius: 999px;
  background: #e6ecf2;
  overflow: hidden;
}
.cause-progress .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), #5bc5f2);
}

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

.stat-card {
  background: white;
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  border: 1px solid #e6ecf2;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.stat-card .value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-secondary);
}

.section-muted {
  background: var(--brand-soft);
  padding: 3rem 0;
}

.impact-hero {
  background: linear-gradient(90deg, rgba(47,64,87,0.8), rgba(47,64,87,0.55)), url('https://images.unsplash.com/photo-1509099836639-18ba02e2e3a0?auto=format&fit=crop&w=1400&q=80') center/cover;
  color: white;
  padding: 4rem 0;
}

.search-card {
  background: linear-gradient(120deg, #2f4057, #4a627f);
  color: white;
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

.gallery-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.site-footer {
  background: linear-gradient(120deg, #1f2833, #283343);
}

.footer-link {
  color: #cfd6df;
}
.footer-link:hover { color: white; text-decoration: none; }

.newsletter-form input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
}
.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.7);
}

.donor-card {
  background: white;
  border: 1px solid #e6ecf2;
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.contact-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border: 1px solid #e6ecf2;
}

.form-label {
  font-weight: 600;
  color: var(--brand-secondary);
}

.hero-cta .btn {
  min-width: 150px;
}

.curtain {
  position: fixed;
  inset: 0;
  z-index: 1040;
}

.launch-hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, #64c4ec, #2f4057);
  color: white;
  text-align: center;
  padding: 2rem;
}

.curtain-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 50%;
  background: url('/assets/images/curtain.jpg') center/cover no-repeat;
  transition: transform 1s ease-in-out;
  z-index: 1040;
}

.curtain-panel.left {
  left: 0;
  transform: translateX(0);
}

.curtain-panel.right {
  right: 0;
  transform: translateX(0);
}

.curtain-panel.left.open-left {
  transform: translateX(-100%);
  transition-duration: 1.6s;
}

.curtain-panel.right.open-right {
  transform: translateX(100%);
  transition-duration: 1.6s;
}

.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1060;
}

.confetti-piece {
  position: absolute;
  top: -10%;
  width: 12px;
  height: 24px;
  border-radius: 4px;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  to {
    transform: translateY(120vh) rotate(540deg);
    opacity: 0;
  }
}

.launch-button {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;
  box-shadow: 0 18px 40px rgba(0,0,0,0.3);
}

.launch-button.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
}

.launch-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 18px;
  padding: 2.4rem;
  max-width: 620px;
  width: 100%;
  box-shadow: 0 18px 48px rgba(0,0,0,0.2);
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  color: var(--brand-secondary);
  background: #e6f4fb;
}

@media (max-width: 992px) {
  .hero {
    min-height: 60vh;
    padding: 3rem 0;
  }
}

@media (max-width: 576px) {
  .site-navbar .navbar-brand {
    font-size: 0.95rem;
  }
  .launch-card {
    padding: 1.6rem;
  }
}
