/* ============================================
   HELP SUGAR — Main Stylesheet (complete)
   ============================================ */

/* --- Custom Properties --- */
:root {
  --pink-deep:    #D63B7A;
  --pink-blush:   #F9C6D4;
  --pink-soft:    #FFF0F4;
  --mauve:        #C2788A;
  --cream:        #FFF8F9;
  --gold-accent:  #E8A87C;
  --text-dark:    #2D1F25;
  --text-medium:  #6B4C56;
  --white:        #FFFFFF;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pink-deep);
  text-decoration: none;
}

/* --- Utility --- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 2rem;
}

/* --- Fade-In Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .heart-particle,
  .fade-in,
  .btn-donate,
  .confetti-heart {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  [data-parallax] {
    transform: none !important;
  }
}

/* ============================================
   HERO SECTION — Full-Width Banner
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}

.hero-banner-img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(45, 31, 37, 0.85) 0%,
    rgba(45, 31, 37, 0.5) 35%,
    rgba(214, 59, 122, 0.15) 70%,
    transparent 100%
  );
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 2;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* Mobile-only image: hidden on desktop */
.hero-mobile-image {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 800px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 20px rgba(45, 31, 37, 0.4);
}

.heart-icon {
  display: inline-block;
  animation: heartbeat 1.6s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%      { transform: scale(1.15); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.1); }
  56%      { transform: scale(1); }
}

.hero-subtitle {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--pink-blush);
  margin-bottom: 1rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-hook {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* --- Donate Button (used globally) --- */
.btn-donate {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  background: var(--pink-deep);
  padding: 1rem 2.6rem;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  animation: donateGlow 2.2s ease-in-out infinite;
  text-decoration: none;
}

.btn-donate:hover {
  background: #c02f6a;
  transform: translateY(-2px);
}

@keyframes donateGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 59, 122, 0.5); }
  50%      { box-shadow: 0 0 0 14px rgba(214, 59, 122, 0); }
}

/* --- Floating Hearts --- */
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.7; }
  100% { transform: translateY(-110vh) rotate(25deg); opacity: 0; }
}

.heart-particle {
  position: fixed;
  bottom: -30px;
  font-size: clamp(12px, 2vw, 20px);
  animation: floatUp linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   STORY SECTION
   ============================================ */
.story {
  background: var(--white);
  padding: 100px 0;
  position: relative;
}

.story-container {
  max-width: 780px;
  will-change: transform;
}

.story-pull-quote {
  border-left: 4px solid var(--pink-blush);
  padding: 0.8rem 1.5rem;
  margin-bottom: 2.5rem;
}

.story-pull-quote p {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--pink-deep);
  font-style: italic;
}

.story-text p {
  font-family: 'Lato', sans-serif;
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.paw-divider {
  text-align: center;
  font-size: 1.2rem;
  margin: 1.2rem 0;
  opacity: 0.5;
}

.story-cta {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--pink-blush);
}

.story-cta-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text-medium);
  margin-bottom: 1.2rem;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
  background: var(--cream);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.gallery-parallax-bg {
  position: absolute;
  top: -60px;
  left: -10%;
  width: 120%;
  height: calc(100% + 120px);
  background:
    radial-gradient(ellipse at 20% 50%, rgba(214, 59, 122, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(232, 168, 124, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(249, 198, 212, 0.1) 0%, transparent 60%);
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}

.gallery .container {
  position: relative;
  z-index: 1;
}

.gallery-subtitle {
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--mauve);
  margin-bottom: 2.5rem;
}

.gallery-grid {
  columns: 3;
  column-gap: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-blush), var(--mauve));
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  border-radius: 20px;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 0 0 rgba(214, 59, 122, 0);
  transition: box-shadow 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.gallery-item:hover::after {
  box-shadow: inset 0 0 0 4px rgba(214, 59, 122, 0.5), 0 12px 40px rgba(214, 59, 122, 0.25);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(45, 31, 37, 0.75), transparent);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 0 0 20px 20px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 3;
  pointer-events: none;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-video {
  position: relative;
}

.gallery-item video {
  object-fit: cover;
}

.gallery-item img[src=""],
.gallery-item img:not([src]) {
  min-height: 200px;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-img,
.lightbox-video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: var(--white);
  background: rgba(45, 31, 37, 0.6);
  border: none;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: var(--pink-deep);
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--white);
  background: rgba(45, 31, 37, 0.5);
  border: none;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10000;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--pink-deep);
}

/* ============================================
   DONATE SECTION
   ============================================ */
.donate {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: var(--pink-soft);
}

.donate-parallax-bg {
  position: absolute;
  top: -60px;
  left: -10%;
  width: 120%;
  height: calc(100% + 120px);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(249, 198, 212, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(194, 120, 138, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(214, 59, 122, 0.08) 0%, transparent 70%);
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}

.donate-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.donate .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.donate-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 1.15rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.donate-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto 2rem;
}

.donate-card {
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donate-card:hover {
  transform: translateY(-4px);
}

.donate-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.donate-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.donate-card p {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.donate-card-primary {
  background: var(--white);
  box-shadow: 0 8px 32px rgba(214, 59, 122, 0.15);
}

.donate-card-primary:hover {
  box-shadow: 0 16px 48px rgba(214, 59, 122, 0.22);
}

.donate-card-secondary {
  background: var(--white);
  border: 2px solid var(--pink-blush);
  box-shadow: 0 4px 16px rgba(214, 59, 122, 0.08);
}

.donate-card-secondary:hover {
  box-shadow: 0 12px 36px rgba(214, 59, 122, 0.16);
}

/* Share buttons */
.share-buttons,
.share-row {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pink-deep);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.share-btn:hover {
  background: #c02f6a;
  transform: translateY(-3px);
}

.share-btn svg {
  fill: currentColor;
}

.donate-trust {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text-medium);
  font-style: italic;
  max-width: 550px;
  margin: 0 auto;
}

/* Confetti hearts */
@keyframes confettiRise {
  0%   { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-300px) scale(0.5) rotate(30deg); opacity: 0; }
}

.confetti-heart {
  position: absolute;
  bottom: 0;
  font-size: 1.2rem;
  animation: confettiRise 3s ease-out forwards;
  pointer-events: none;
}

/* ============================================
   RECOVERY UPDATES SECTION
   ============================================ */
.updates {
  background: var(--white);
  padding: 100px 0;
  position: relative;
}

.updates-container {
  max-width: 780px;
  will-change: transform;
}

.update-card {
  background: var(--white);
  border-radius: 16px;
  border-top: 5px solid var(--pink-deep);
  padding: 2rem 2.2rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 4px 20px rgba(214, 59, 122, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.update-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(214, 59, 122, 0.14);
}

.update-date {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--mauve);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.update-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--pink-deep);
  margin-bottom: 1rem;
}

.update-body p {
  font-family: 'Lato', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.update-photo {
  margin-top: 1.2rem;
}

/* Images and videos inside update cards:
   max-width capped at 390px (iPhone screen width)
   so they never blow up huge on desktop */
.update-photo img,
.update-photo video {
  max-width: 100%;
  width: 100%;
  max-width: 390px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(214, 59, 122, 0.1);
}

/* ============================================
   THANK YOU SECTION
   ============================================ */
.thankyou {
  background: var(--cream);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.thankyou-container {
  max-width: 700px;
}

.paw-watermark {
  position: absolute;
  font-size: 14rem;
  opacity: 0.04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.thankyou-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--pink-deep);
  margin-bottom: 1.2rem;
}

.thankyou-body {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.share-row {
  margin-bottom: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--text-dark);
  color: var(--pink-blush);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.95rem;
  line-height: 2;
}

.footer-social {
  margin-bottom: 0.8rem;
}

.footer-social a {
  color: var(--gold-accent);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--white);
}

.footer-dot {
  margin: 0 0.6rem;
  color: var(--mauve);
}

.site-footer a {
  color: var(--gold-accent);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-domain {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 0.3rem;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-dark);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  z-index: 10001;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   RESPONSIVE — Tablets & Phones (768px and below)
   ============================================ */
@media (max-width: 768px) {

  /* Hero: stacked layout — Sugar's photo on top, text below */
  .hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(160deg, var(--pink-soft) 0%, var(--pink-blush) 60%, var(--mauve) 100%);
  }

  .hero-banner,
  .hero-overlay,
  .hero-grain {
    display: none;
  }

  .hero-mobile-image {
    display: block;
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: env(safe-area-inset-top, 0);
  }

  .hero-mobile-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 8px 30px rgba(214, 59, 122, 0.2);
  }

  .hero-content {
    padding: 2rem 1.5rem 3rem;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    color: var(--text-dark);
    text-shadow: none;
  }

  .hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--mauve);
    text-shadow: none;
  }

  .hero-hook {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--text-medium);
    text-shadow: none;
    margin-bottom: 1.5rem;
  }

  /* General */
  .container {
    width: 92%;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 1.5rem;
  }

  .story,
  .gallery,
  .donate,
  .updates,
  .thankyou {
    padding: 60px 0;
  }

  .btn-donate {
    font-size: 1rem;
    padding: 0.9rem 2rem;
    max-width: 340px;
    width: 100%;
    text-align: center;
  }

  /* Story */
  .story-pull-quote {
    padding: 0.6rem 1rem;
    margin-bottom: 1.8rem;
  }

  .story-pull-quote p {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
  }

  .story-text p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .paw-divider {
    margin: 0.8rem 0;
  }

  /* Gallery */
  .gallery-grid {
    columns: 2;
    column-gap: 14px;
  }

  .gallery-item {
    margin-bottom: 14px;
  }

  .gallery-caption {
    opacity: 1;
    transform: translateY(0);
  }

  /* Donate */
  .donate-cards {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .donate-card {
    padding: 2rem 1.5rem;
  }

  .share-btn {
    width: 44px;
    height: 44px;
  }

  /* Updates — media stays phone-sized */
  .update-card {
    padding: 1.4rem 1.3rem;
  }

  .update-photo img,
  .update-photo video {
    max-width: 100%;
  }

  /* Thank you */
  .thankyou-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
  }

  .thankyou-body {
    font-size: 1rem;
  }

  /* Footer */
  .footer-social {
    font-size: 0.9rem;
  }

  .footer-dot {
    margin: 0 0.3rem;
  }

  /* Lightbox */
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* ============================================
   RESPONSIVE — Small phones (480px and below)
   ============================================ */
@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  .hero-mobile-image img {
    border-radius: 0 0 20px 20px;
  }

  .hero-content {
    padding: 1.5rem 1rem 2.5rem;
  }

  .story,
  .gallery,
  .donate,
  .updates,
  .thankyou {
    padding: 48px 0;
  }

  .gallery-grid {
    columns: 1;
    column-gap: 0;
  }

  .gallery-item {
    margin-bottom: 16px;
  }

  .donate-card {
    padding: 1.6rem 1.2rem;
  }

  .update-card {
    padding: 1.2rem 1rem;
  }

  .lightbox-prev,
  .lightbox-next {
    display: none;
  }

  .lightbox-close {
    top: 0.8rem;
    right: 0.8rem;
    width: 42px;
    height: 42px;
    font-size: 2rem;
  }
}
