/*
Theme Name: Thoughtful Hearts Foundation
Theme URI: https://thoughtfulhearts.org.ng
Author: SiSystems
Author URI: https://www.sisystems.ng
Description: A custom WordPress theme for Thoughtful Hearts Foundation — an NGO dedicated to the welfare, education, and empowerment of less privileged children and vulnerable communities across Nigeria. Fully compatible with Elementor page builder.
Version: 1.7.1
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thoughtful-hearts
Tags: charity, ngo, elementor, education, children, nonprofit, donation
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    --thf-teal: #4DBFB3;
    --thf-teal-dark: #2A9D8F;
    --thf-teal-light: #A8E0D8;
    --thf-pink: #E8828A;
    --thf-pink-dark: #D4636D;
    --thf-pink-light: #F5C6CA;
    --thf-gold: #F4A723;
    --thf-gold-light: #FCEBD0;

    /* Deeper red for calligraphic section labels (Who we are, What we do, etc.) */
    --thf-accent-red: #B83A4A;

    /* Deep forest green for body text — replaces gray-700 as default text color */
    --thf-deep-green: #143C2E;

    --thf-white: #FFFFFF;
    --thf-off-white: #FBF9F7;
    --thf-gray-50: #F7F5F3;
    --thf-gray-100: #EDEBE8;
    --thf-gray-200: #D6D3CF;
    --thf-gray-300: #B8B4AE;
    --thf-gray-500: #7A756E;
    --thf-gray-700: #143C2E; /* aliased to deep green for body text everywhere */
    --thf-gray-900: #0D2A20; /* darker deep green for headings */

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', 'Segoe UI', sans-serif;
    --font-accent: 'Dancing Script', cursive;

    --section-padding: 100px 0;
    --container-width: 1200px;

    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --shadow-sm: 0 2px 8px rgba(30, 28, 25, 0.06);
    --shadow-md: 0 8px 24px rgba(30, 28, 25, 0.08);
    --shadow-lg: 0 16px 48px rgba(30, 28, 25, 0.12);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--thf-gray-700);
    background-color: var(--thf-white);
    overflow-x: hidden;
}

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

a { color: var(--thf-teal-dark); text-decoration: none; transition: var(--transition-smooth); }
a:hover { color: var(--thf-pink-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--thf-gray-900);
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1em; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================
   UTILITIES
   ============================================ */
.container,
.thf-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section-padding { padding: var(--section-padding); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 2rem; }

.site-main { min-height: 60vh; }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-accent);
    color: var(--thf-accent-red);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 1px 0 rgba(184, 58, 74, 0.08);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--thf-gray-500);
    font-size: 1.05rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 999px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.2;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--thf-teal) 0%, var(--thf-teal-dark) 100%);
    color: var(--thf-white);
    box-shadow: 0 6px 20px rgba(42, 157, 143, 0.3);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(42, 157, 143, 0.4);
    color: var(--thf-white);
}

.btn--secondary {
    background: linear-gradient(135deg, var(--thf-pink) 0%, var(--thf-pink-dark) 100%);
    color: var(--thf-white);
    box-shadow: 0 6px 20px rgba(212, 99, 109, 0.3);
}
.btn--secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(212, 99, 109, 0.4);
    color: var(--thf-white);
}

.btn--outline-white {
    background: transparent;
    color: var(--thf-white);
    border-color: var(--thf-white);
}
.btn--outline-white:hover {
    background: var(--thf-white);
    color: var(--thf-teal-dark);
}

.btn--lg { padding: 16px 38px; font-size: 1rem; }
.btn--sm { padding: 10px 22px; font-size: 0.85rem; }
.btn--block { display: flex; width: 100%; }

.btn__loading { display: none; }
.btn[disabled], .btn.is-loading { opacity: 0.7; cursor: not-allowed; }
.btn.is-loading .btn__text { display: none; }
.btn.is-loading .btn__loading { display: inline-flex; }

/* ============================================
   HEADER
   ============================================ */
.thf-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    padding: 16px 0;
}

.thf-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
}

.thf-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.thf-logo { display: flex; align-items: center; flex-shrink: 0; }
.thf-logo img {
    height: 56px;
    width: auto;
    transition: var(--transition-smooth);
}
.thf-header.scrolled .thf-logo img { height: 48px; }

.thf-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.thf-nav a {
    color: var(--thf-gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
}

.thf-nav a:hover { color: var(--thf-teal-dark); }
.thf-nav a.active { color: var(--thf-teal-dark); }

.thf-nav a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--thf-teal);
    border-radius: 2px;
}

.thf-nav .thf-donate-btn {
    background: linear-gradient(135deg, var(--thf-teal) 0%, var(--thf-teal-dark) 100%);
    color: var(--thf-white);
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(42, 157, 143, 0.3);
}
.thf-nav .thf-donate-btn:hover {
    color: var(--thf-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(42, 157, 143, 0.4);
}
.thf-nav .thf-donate-btn::after { display: none !important; }

.thf-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1001;
}

.thf-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--thf-gray-900);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.thf-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.thf-menu-toggle.active span:nth-child(2) { opacity: 0; }
.thf-menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================
   PAGE HERO (sub-pages)
   ============================================ */
.page-hero {
    position: relative;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--thf-teal-dark) 0%, var(--thf-teal) 50%, var(--thf-pink) 100%);
    color: var(--thf-white);
    text-align: center;
    overflow: hidden;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(244,167,35,0.15), transparent 50%);
    pointer-events: none;
}

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

.page-hero__title {
    color: var(--thf-white);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.page-hero__subtitle {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 720px;
    margin: 0 auto;
}

.page-hero--donate {
    background: linear-gradient(135deg, var(--thf-pink-dark) 0%, var(--thf-pink) 50%, var(--thf-gold) 100%);
}

/* ============================================
   HERO (homepage)
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--thf-off-white) 0%, var(--thf-gray-50) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--thf-teal-light) 0%, transparent 70%);
    opacity: 0.4;
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--thf-pink-light) 0%, transparent 70%);
    opacity: 0.4;
    border-radius: 50%;
    pointer-events: none;
}

.hero__overlay { display: none; }
.hero__inner { position: relative; z-index: 1; }

.hero__content {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.hero__tagline {
    display: inline-block;
    font-family: var(--font-accent);
    color: var(--thf-accent-red);
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 1px 0 rgba(184, 58, 74, 0.08);
}

.hero__title {
    font-size: clamp(2.25rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--thf-gray-900);
}

.hero__text {
    font-size: 1.15rem;
    color: var(--thf-gray-700);
    margin-bottom: 36px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   IMPACT STATS
   ============================================ */
.impact-stats {
    padding: 80px 0;
    background: var(--thf-white);
    position: relative;
    margin-top: -1px;
}

.impact-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.impact-stats__item {
    text-align: center;
    padding: 32px 20px;
    background: var(--thf-off-white);
    border-radius: 20px;
    border: 1px solid var(--thf-gray-100);
    transition: var(--transition-smooth);
}

.impact-stats__item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--thf-teal-light);
}

.impact-stats__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--thf-teal-light) 0%, var(--thf-teal) 100%);
    color: var(--thf-white);
    border-radius: 16px;
}

.impact-stats__icon svg { width: 28px; height: 28px; }

.impact-stats__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--thf-gray-900);
    line-height: 1;
    margin-bottom: 8px;
}

.impact-stats__label {
    display: block;
    font-size: 0.95rem;
    color: var(--thf-gray-500);
    font-weight: 500;
}

/* ============================================
   ABOUT PREVIEW (homepage)
   ============================================ */
.about-preview {
    background: var(--thf-off-white);
    position: relative;
    overflow: hidden;
}

.about-preview__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-preview__image { position: relative; }

.about-preview__image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.about-preview__badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--thf-white);
    padding: 24px 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 4px solid var(--thf-gold);
}

.about-preview__badge-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--thf-pink-dark);
    line-height: 1;
}

.about-preview__badge-text {
    font-size: 0.85rem;
    color: var(--thf-gray-700);
    font-weight: 600;
    margin-top: 4px;
}

.about-preview__content h2 { margin-bottom: 24px; }
.about-preview__content p { font-size: 1.05rem; margin-bottom: 20px; }

.about-story { background: var(--thf-off-white); }
.about-story p { font-size: 1.05rem; margin-bottom: 20px; }

/* ============================================
   CAUSES
   ============================================ */
.causes { background: var(--thf-white); }

.causes__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.cause-card {
    background: var(--thf-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--thf-gray-100);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.cause-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.cause-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--thf-gray-100);
}

.cause-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cause-card:hover .cause-card__image img { transform: scale(1.05); }

.cause-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--thf-pink-dark);
    color: var(--thf-white);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cause-card__body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cause-card__title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--thf-gray-900);
}

.cause-card__title a { color: inherit; }
.cause-card__title a:hover { color: var(--thf-teal-dark); }

.cause-card__excerpt {
    color: var(--thf-gray-500);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.cause-card__progress { margin-bottom: 20px; }

.cause-card__progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--thf-gray-700);
}

.cause-card__progress-info span:last-child { color: var(--thf-teal-dark); }

.cause-card__progress-bar {
    height: 8px;
    background: var(--thf-gray-100);
    border-radius: 999px;
    overflow: hidden;
}

.cause-card__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--thf-teal) 0%, var(--thf-teal-dark) 100%);
    border-radius: 999px;
    transition: width 1s ease;
}

/* ============================================
   PROGRAMS
   ============================================ */
.programs { background: var(--thf-off-white); }

.programs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.program-card {
    background: var(--thf-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--thf-gray-100);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.program-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--thf-gray-100);
}

.program-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-card__image img { transform: scale(1.05); }

.program-card__body {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--thf-pink-light) 0%, var(--thf-pink) 100%);
    color: var(--thf-white);
}

.program-card__icon svg { width: 28px; height: 28px; }

.program-card:nth-child(2) .program-card__icon {
    background: linear-gradient(135deg, var(--thf-teal-light) 0%, var(--thf-teal) 100%);
}

.program-card:nth-child(3) .program-card__icon {
    background: linear-gradient(135deg, var(--thf-gold-light) 0%, var(--thf-gold) 100%);
}

.program-card__title { font-size: 1.35rem; margin-bottom: 12px; }

.program-card__text {
    color: var(--thf-gray-500);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.program-card__link {
    color: var(--thf-teal-dark);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.program-card__link:hover { color: var(--thf-pink-dark); gap: 8px; }

/* ============================================
   PROGRAM DETAIL (programs page)
   ============================================ */
.programs-page { background: var(--thf-white); }

.program-detail { padding: 80px 0; }

.program-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.program-detail__grid--reverse .program-detail__images { order: 2; }

.program-detail__images { position: relative; }

.program-detail__img-main {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.program-detail__img-secondary {
    position: absolute;
    bottom: -32px;
    right: -32px;
    width: 50%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--thf-white);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.program-detail__content h2 { margin-bottom: 20px; }
.program-detail__content p { font-size: 1.05rem; margin-bottom: 24px; }

.program-detail__highlights {
    list-style: none;
    margin: 24px 0 32px;
    padding: 0;
}

.program-detail__highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.98rem;
}

.program-detail__highlight::before {
    content: '✓';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--thf-teal);
    color: var(--thf-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 2px;
}

.program-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--thf-gray-200), transparent);
    margin: 0 auto;
    max-width: 1100px;
}

/* ============================================
   FOUNDER
   ============================================ */
.founder {
    background: linear-gradient(135deg, var(--thf-off-white) 0%, var(--thf-gray-50) 100%);
    position: relative;
    overflow: hidden;
}

.founder__grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    align-items: center;
}

.founder__image { position: relative; }

.founder__image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.founder__content h3 { margin-bottom: 16px; }
.founder__content p { font-size: 1.03rem; margin-bottom: 18px; }

.founder__quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--thf-teal-dark);
    padding: 24px 28px;
    border-left: 4px solid var(--thf-gold);
    background: var(--thf-white);
    border-radius: 0 16px 16px 0;
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}

.founder-bio { background: var(--thf-white); }

/* Founder bio: text wraps around floated image (about page) */
.founder-bio__intro {
    max-width: 1100px;
    margin: 0 auto 40px;
}

.founder-bio__flow {
    max-width: 1100px;
    margin: 0 auto;
}

.founder-bio__flow::after {
    content: '';
    display: block;
    clear: both;
}

.founder-bio__image {
    float: left;
    width: 42%;
    max-width: 420px;
    margin: 6px 32px 16px 0;
    shape-outside: margin-box;
}

.founder-bio__image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.founder-bio__flow p {
    font-size: 1.03rem;
    margin-bottom: 18px;
    line-height: 1.75;
}

.founder-bio__flow .founder__quote {
    clear: both;
    margin-top: 32px;
}

/* ============================================
   MISSION (about page)
   ============================================ */
.mission { background: var(--thf-white); }

.mission__statement {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.15rem;
    color: var(--thf-gray-700);
    line-height: 1.8;
}

.mission__objectives {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.mission__card {
    padding: 40px 28px;
    background: var(--thf-off-white);
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--thf-gray-100);
    transition: var(--transition-smooth);
}

.mission__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.mission__card--primary {
    background: linear-gradient(135deg, var(--thf-teal-light) 0%, var(--thf-teal) 100%);
    color: var(--thf-white);
    border-color: transparent;
}

.mission__card--primary h3 { color: var(--thf-white); }
.mission__card--primary p { color: rgba(255, 255, 255, 0.95); }

.mission__icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--thf-pink-light) 0%, var(--thf-pink) 100%);
    color: var(--thf-white);
}

.mission__card:nth-child(3) .mission__icon {
    background: linear-gradient(135deg, var(--thf-gold-light) 0%, var(--thf-gold) 100%);
}

.mission__card--primary .mission__icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--thf-white);
}

.mission__icon svg { width: 32px; height: 32px; }

.mission__card h3 { margin-bottom: 12px; font-size: 1.25rem; }
.mission__card p { color: var(--thf-gray-500); font-size: 0.95rem; margin: 0; }

/* ============================================
   BOARD OF TRUSTEES
   ============================================ */
.board { background: var(--thf-off-white); }

.board__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.board__member {
    background: var(--thf-white);
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--thf-gray-100);
}

.board__member:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--thf-teal-light);
}

.board__avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--thf-teal) 0%, var(--thf-pink) 100%);
    color: var(--thf-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    border: 4px solid var(--thf-white);
    box-shadow: var(--shadow-sm);
}

.board__member h4 { font-size: 1.1rem; margin-bottom: 6px; }

.board__role {
    font-size: 0.85rem;
    color: var(--thf-pink-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--thf-teal-dark) 0%, var(--thf-pink-dark) 100%);
    color: var(--thf-white);
    overflow: hidden;
    text-align: center;
}

.cta__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(244,167,35,0.2), transparent 50%);
    pointer-events: none;
}

.cta__inner { position: relative; z-index: 1; }

.cta__content {
    max-width: 760px;
    margin: 0 auto;
}

.cta__title {
    color: var(--thf-white);
    margin-bottom: 16px;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.cta__text {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 32px;
}

.cta__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page { background: var(--thf-white); }

.contact-page__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: start;
}

.contact-info__title { margin-bottom: 16px; }

.contact-info__items {
    list-style: none;
    padding: 0;
    margin: 32px 0;
}

.contact-info__item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.contact-info__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--thf-teal-light) 0%, var(--thf-teal) 100%);
    color: var(--thf-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info__icon svg { width: 22px; height: 22px; }

.contact-info__text { flex-grow: 1; }

.contact-info__text strong {
    display: block;
    color: var(--thf-gray-900);
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-info__text a { color: var(--thf-gray-700); }
.contact-info__text a:hover { color: var(--thf-teal-dark); }

.contact-info__social {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--thf-gray-100);
}

.contact-info__social h4 { margin-bottom: 16px; font-size: 1.05rem; }

.contact-info__social-links {
    display: flex;
    gap: 12px;
}

.contact-info__social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--thf-gray-100);
    color: var(--thf-gray-700);
    transition: var(--transition-smooth);
}

.contact-info__social-links a:hover {
    background: var(--thf-teal);
    color: var(--thf-white);
    transform: translateY(-3px);
}

.contact-info__social-links svg { width: 18px; height: 18px; }

/* Contact form */
.contact-form {
    background: var(--thf-off-white);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--thf-gray-100);
}

.contact-form__title { margin-bottom: 24px; }

.contact-form__form .form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--thf-gray-700);
    margin-bottom: 8px;
}

.form-group .required { color: var(--thf-pink-dark); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--thf-gray-200);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--thf-gray-900);
    background: var(--thf-white);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--thf-teal);
    box-shadow: 0 0 0 4px rgba(77, 191, 179, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: none;
}

.form-status.is-success {
    display: block;
    background: rgba(77, 191, 179, 0.12);
    color: var(--thf-teal-dark);
    border: 1px solid var(--thf-teal-light);
}

.form-status.is-error {
    display: block;
    background: rgba(212, 99, 109, 0.12);
    color: var(--thf-pink-dark);
    border: 1px solid var(--thf-pink-light);
}

.contact-map {
    margin-top: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-map iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* ============================================
   DONATE PAGE
   ============================================ */
.donate-page { background: var(--thf-white); }

.donate-page__intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--thf-gray-700);
}

.donate-page__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.donate-card {
    background: var(--thf-white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--thf-gray-100);
}

.donate-card--bank {
    background: linear-gradient(135deg, var(--thf-off-white) 0%, var(--thf-gray-50) 100%);
}

.donate-card__header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--thf-gold);
}

.donate-card__header h3 {
    margin: 0;
    color: var(--thf-gray-900);
}

.donate-card__body {
    /* container for body content */
}

.donate-page__online,
.donate-page__bank {
    /* grid item wrappers */
}

.contact-info {
    /* container for contact info section */
}

.donate-card__fallback {
    color: var(--thf-gray-500);
    font-size: 0.95rem;
    padding: 16px;
    background: var(--thf-gray-50);
    border-radius: 12px;
    border: 1px dashed var(--thf-gray-200);
}

/* Bank details */
.bank-details { margin: 0 0 24px; }

.bank-details__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--thf-gray-100);
    gap: 16px;
}

.bank-details__row:last-child { border-bottom: none; }

.bank-details__row--highlight {
    background: var(--thf-white);
    padding: 16px;
    border-radius: 12px;
    border: 2px dashed var(--thf-teal);
    margin-top: 8px;
}

.bank-details__label {
    font-size: 0.85rem;
    color: var(--thf-gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.bank-details__value {
    font-weight: 600;
    color: var(--thf-gray-900);
    text-align: right;
    flex-grow: 1;
    word-break: break-word;
}

.bank-details__row--highlight .bank-details__value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--thf-teal-dark);
    letter-spacing: 1px;
}

.bank-details__note {
    font-size: 0.9rem;
    color: var(--thf-gray-500);
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--thf-gold-light);
    border-radius: 10px;
}

/* Copy button */
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--thf-teal);
    color: var(--thf-white);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
}

.copy-btn:hover { background: var(--thf-teal-dark); }

.copy-btn__feedback {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--thf-gray-900);
    color: var(--thf-white);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.copy-btn.is-copied .copy-btn__feedback { opacity: 1; }

/* Donate impact */
.donate-impact { margin-bottom: 60px; }

.donate-impact__title { text-align: center; margin-bottom: 40px; }

.donate-impact__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.donate-impact__item {
    background: var(--thf-off-white);
    padding: 28px 20px;
    border-radius: 18px;
    text-align: center;
    border: 1px solid var(--thf-gray-100);
    transition: var(--transition-smooth);
}

.donate-impact__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--thf-gold);
}

.donate-impact__amount {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--thf-pink-dark);
    margin-bottom: 8px;
}

.donate-impact__item p {
    font-size: 0.9rem;
    color: var(--thf-gray-700);
    margin: 0;
}

/* Donate trust */
.donate-trust {
    background: var(--thf-off-white);
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    margin-bottom: 40px;
}

.donate-trust__content {
    max-width: 720px;
    margin: 0 auto;
}

.donate-trust__rc {
    display: inline-block;
    background: var(--thf-white);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--thf-teal-dark);
    margin-top: 16px;
    border: 1px solid var(--thf-gray-100);
}

/* GiveWP overrides */
.give-form-wrap { background: transparent !important; }

.give-btn,
.give-btn.give-default-level {
    background: linear-gradient(135deg, var(--thf-teal) 0%, var(--thf-teal-dark) 100%) !important;
    color: var(--thf-white) !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    transition: var(--transition-smooth) !important;
}

.give-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 157, 143, 0.3) !important;
}

/* ============================================
   FOOTER
   ============================================ */
.thf-footer {
    background: var(--thf-gray-900);
    color: var(--thf-gray-300);
    padding: 80px 0 0;
}

.thf-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 56px;
}

.thf-footer-about p {
    color: var(--thf-gray-300);
    font-size: 0.95rem;
    margin-bottom: 20px;
    margin-top: 16px;
}

.thf-footer-about .thf-logo img {
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 10px;
    border-radius: 8px;
}

.thf-footer h4 {
    color: var(--thf-white);
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.thf-footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 3px;
    background: var(--thf-gold);
    border-radius: 2px;
}

.thf-footer-links {
    list-style: none;
    padding: 0;
}

.thf-footer-links li { margin-bottom: 10px; }

.thf-footer-links a {
    color: var(--thf-gray-300);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.thf-footer-links a:hover {
    color: var(--thf-teal-light);
    transform: translateX(4px);
}

.thf-footer-links a::before {
    content: '→';
    color: var(--thf-teal);
}

.thf-footer-contact p {
    color: var(--thf-gray-300);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.thf-footer-contact p strong { color: var(--thf-white); }
.thf-footer-contact a { color: var(--thf-gray-300); }
.thf-footer-contact a:hover { color: var(--thf-teal-light); }

/* Social links */
.thf-social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.thf-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--thf-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.thf-social-link:hover {
    background: var(--thf-teal);
    color: var(--thf-white);
    transform: translateY(-3px);
}

.thf-social-link svg { width: 18px; height: 18px; }

.thf-footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--thf-gray-300);
}

.thf-footer-bottom a {
    color: var(--thf-teal-light);
    font-weight: 600;
}

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

/* ============================================
   ANIMATIONS — progressive enhancement
   Content is visible by default. Animations only
   activate when JS adds .js-ready to <html>.
   This means if JS fails or is slow, the page
   still renders fully — no invisible content.
   ============================================ */
.js-ready .animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-ready .animate-on-scroll.animated,
.js-ready .animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .js-ready .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   ELEMENTOR COMPATIBILITY
   ============================================ */
.elementor-page .site-main { padding-top: 0; }

.elementor-section,
.elementor-widget {
    font-family: var(--font-body);
}

/* ============================================
   CHILDREN'S DAY / FEATURED OUTREACH
   Single cover image — never stacks on mobile.
   ============================================ */
.childrens-day__cover {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.childrens-day__cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .childrens-day__cover img {
        aspect-ratio: 4 / 3;
    }
}

/* ============================================
   RESPONSIVE — TABLETS
   ============================================ */
@media (max-width: 991px) {
    :root { --section-padding: 70px 0; }

    .thf-menu-toggle { display: flex; }

    .thf-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--thf-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 0;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        transition: right 0.4s ease;
        z-index: 999;
    }

    .thf-nav.active { right: 0; }

    .thf-nav a {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid var(--thf-gray-100);
    }

    .thf-nav .thf-donate-btn {
        margin-top: 16px;
        width: 100%;
        text-align: center;
        justify-content: center;
        border-bottom: none;
    }

    .impact-stats__grid { grid-template-columns: repeat(2, 1fr); }

    .about-preview__grid,
    .program-detail__grid,
    .program-detail__grid--reverse,
    .founder__grid,
    .contact-page__grid,
    .donate-page__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .program-detail__grid--reverse .program-detail__images { order: 0; }

    .program-detail__img-secondary { right: 0; bottom: -24px; }

    .causes__grid,
    .programs__grid,
    .mission__objectives {
        grid-template-columns: repeat(2, 1fr);
    }

    .donate-impact__grid { grid-template-columns: repeat(2, 1fr); }

    .thf-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .thf-footer-about { grid-column: 1 / -1; }

    .about-preview__badge {
        right: 16px;
        bottom: -20px;
        padding: 18px 24px;
    }

    .about-preview__badge-number { font-size: 2rem; }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 767px) {
    :root { --section-padding: 60px 0; }

    .thf-logo img,
    .thf-header.scrolled .thf-logo img {
        height: 44px;
    }

    .hero {
        min-height: auto;
        padding: 130px 0 60px;
    }

    .hero__buttons,
    .cta__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__buttons .btn,
    .cta__buttons .btn {
        width: 100%;
    }

    .impact-stats { padding: 60px 0; }

    /* Impact stats stay as 2-column grid on mobile (not single column) */
    .impact-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .impact-stats__item {
        padding: 24px 12px;
    }

    .causes__grid,
    .programs__grid,
    .mission__objectives,
    .donate-impact__grid {
        grid-template-columns: 1fr;
    }

    .impact-stats__number { font-size: 1.9rem; }

    .thf-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .thf-footer-about { grid-column: auto; }

    .thf-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .donate-card,
    .donate-trust,
    .contact-form {
        padding: 28px 20px;
    }

    .bank-details__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .bank-details__value { text-align: left; }

    .program-detail__img-secondary {
        position: static;
        width: 100%;
        margin-top: 16px;
        border: none;
    }

    .founder-bio__image {
        float: none;
        width: 100%;
        max-width: 420px;
        margin: 0 auto 24px;
    }

    .founder__quote {
        font-size: 1.05rem;
        padding: 20px;
    }

    .section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
    .container,
    .thf-container {
        padding: 0 16px;
    }

    .btn { padding: 12px 22px; font-size: 0.9rem; }
    .btn--lg { padding: 14px 28px; }

    .page-hero { padding: 140px 0 70px; }
}
