/* --- PASTEL PALETTE SCHEMA --- */
:root {
    --pastel-peach: #FFF5F2;    /* Main Background */
    --pastel-sage: #E8F0E6;     /* Secondary Background */
    --pastel-sky: #EBF4FF;      /* Accent Background */
    --action-rose: #FF8A8A;     /* Primary Action / Buttons */
    --text-charcoal: #333333;   /* High Readability Text */
    --text-muted: #7A7A7A;
}

body {
    background-color: var(--pastel-peach);
    color: var(--text-charcoal);
    font-family: 'Inter', sans-serif;
}

/* Ensure these are the only base styles for reveal */
.reveal {
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}
/* Simple hidden state without !important */
.reveal, 
.reveal-sub, 
.reveal-line-1, 
.reveal-line-2 {
    opacity: 0;
    visibility: hidden;
}
/* Ensure the display-1 doesn't clip the descenders of the italic text */
.display-1 {
    line-height: 1.1;
    overflow: hidden; /* This creates a "mask" effect as text slides up */
}

/* Add this to style.css */
.col-lg-6.reveal { transform: translateX(-30px); } /* Images slide right */
.col-lg-5.reveal { transform: translateX(30px); }  /* Text slides left */

/* Update these for the Cinematic Feel */
.reveal-sub {
    display: inline-block;
    will-change: transform, letter-spacing;
}

.reveal-line-1, .reveal-line-2 {
    will-change: transform, filter, opacity;
    /* This ensures the scaling doesn't look blurry on high-res screens */
    backface-visibility: hidden; 
}

/* Ensure the container has enough room for the letter-spacing expansion */
.reveal-hero {
    overflow: visible;
}
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Override existing classes with the new palette */
.bg-stone { background-color: var(--pastel-peach) !important; }
.bg-sage { background-color: var(--pastel-sage) !important; }

/* Rounded design for a "soft" non-profit feel */
.bento-item, .portfolio-card img, .btn {
    border-radius: 24px !important;
}

.btn-talk-footer {
    background: var(--action-rose) !important;
    color: white !important;
    border: none;
    padding: 18px 45px;
    border-radius: 50px !important;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-talk-footer:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 138, 138, 0.3);
}
/* Primary Action Button */
.btn-talk-footer, .btn-primary-charity {
    background: var(--action-rose) !important;
    color: white !important;
    border: none;
    padding: 18px 45px;
    border-radius: 50px !important;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-talk-footer:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 138, 138, 0.3);
}

/* --- PASTEL ICON BOXES --- */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;

    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.reveal:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}
.icon-box:hover {
    transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 25px -10px rgba(0,0,0,0.1);
}
/* Hover lift for any card-like element */
.service-card, .icon-box + h4 {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
}


/* Specific Pastel Backgrounds for Icons */
.icon-water { background-color: #EBF4FF; color: #5D9CEC; }
.icon-edu { background-color: #E8F0E6; color: #8CC152; }
.icon-health { background-color: #FFF3CD; color: #F6BB42; }
.icon-growth { background-color: #F8D7DA; color: #ED5565; }

/* Ensure Service Images always have height */
.rounded-5.overflow-hidden {
    min-height: 400px; /* Safety fallback */
    background: var(--pastel-peach); /* Soft placeholder while loading */
    display: block;
    width: 100%;
}

.object-fit-cover {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}
.reveal img {
    opacity: 1 !important;
    visibility: visible !important;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050; /* Higher than Bootstrap's sticky-top */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    /* Hide initially so GSAP can "pop" it in */
    opacity: 0;
    visibility: hidden;
    border: none;
    background-color: #333; /* Matches your charcoal theme */
    color: #fff;
}

#backToTop:hover {
    background-color: var(--action-rose, #FF8A8A); /* Optional: uses your pastel rose */
    color: #fff;
}