/* ==========================================================================
   TRC Foundation Styles & Variables (2026 Modern Standard)
   ========================================================================== */
:root {
    /* Brand Colors */
    --trc-navy: #143351;
    --trc-teal: #338F9C;
    --trc-orange: #F48545;
    --trc-white: #FFFFFF;
    
    /* UI Colors */
    --text-main: #2C3E50;
    --text-muted: #546E7A;
    --bg-light: #F8F9FA;
    
    /* Header Dimensions */
    --header-height: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Subtle React-Style Animated Background --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    padding-top: calc(var(--header-height) + 40px); /* Space for floating header */
    min-height: 100vh;
    position: relative;
    background-color: var(--bg-light);
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    /* Soft, abstract moving gradient */
    background: linear-gradient(120deg, #f0f4f8, #e0f2f1, #fff3e0, #f8f9fa);
    background-size: 300% 300%;
    animation: subtleBG 25s ease-in-out infinite;
}

@keyframes subtleBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }

/* ==========================================================================
   Updated Floating Glass Effect Header (Matching Screenshot Exactly)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 96%;
    max-width: 1400px;
    z-index: 1000;
    
    /* Soft Rounded Corners & Outer Glass */
    background: rgba(255, 255, 255, 0.4); /* More transparent outer layer */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px; /* Soft square instead of pill */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Inner Navigation Box */
.main-nav {
    background: rgba(255, 255, 255, 0.85); /* Solid glass inner box */
    border-radius: 8px; /* Slightly rounded */
    padding: 6px 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.nav-list {
    display: flex;
    align-items: center;
}

/* Dividers and Item Styling */
.nav-item {
    padding: 5px 15px;
    border-right: 1px solid rgba(20, 51, 81, 0.15); /* The thin vertical divider */
}

.nav-item:last-child {
    border-right: none; /* No divider on the last item */
}

.nav-item a {
    color: var(--trc-navy);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item a:hover {
    color: var(--trc-teal);
}

.nav-item a .chevron {
    font-size: 11px;
    font-weight: bold;
    margin-top: 2px;
}

/* 3D Glowing Donate Button */
.donate-btn {
    background: var(--trc-orange);
    color: var(--trc-white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* 3D and Glow Effect */
    box-shadow: 0 4px 0 #c2612a, 0 8px 20px rgba(244, 133, 69, 0.4); 
    transform: translateY(0);
    transition: all 0.2s ease;
}

.donate-btn:hover {
    transform: translateY(2px); /* Pushes down */
    box-shadow: 0 2px 0 #c2612a, 0 4px 10px rgba(244, 133, 69, 0.4); /* Reduced shadow on press */
}

.mobile-menu-toggle { display: none; }

/* ==========================================================================
   Premium Glass Effect Footer (2026 Standard) - UPDATED
   ========================================================================== */
.site-footer {
    width: 96%;
    max-width: 1400px;
    margin: 80px auto 40px;
    padding: 60px 40px 30px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-main-logo {
    height: 65px;
    width: auto;
    margin-bottom: 25px;
}

.funder-title {
    font-weight: 600;
    color: var(--trc-navy);
    margin-bottom: 15px;
    font-size: 15px;
}

/* Headings & Dividers */
.footer-col h3 {
    color: var(--trc-navy);
    font-size: 20px;
    font-weight: 700;
}
.footer-col h3 i {
    color: var(--trc-orange);
    margin-right: 8px;
}

.footer-divider-main {
    height: 3px;
    background: var(--trc-teal);
    width: 50px;
    border-radius: 5px;
    margin: 15px 0 25px;
}

/* Information Blocks */
.info-block {
    border-bottom: 1px dashed rgba(20, 51, 81, 0.2);
    padding-bottom: 18px;
    margin-bottom: 18px;
}
.info-block.last-block {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.info-block h4 {
    color: var(--trc-teal);
    font-size: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-block p, .info-block li {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 6px;
}

/* ==========================================
   Bottom Footer Section (Funders, Legal & Credits)
   ========================================== */
.footer-bottom {
    border-top: 1px solid rgba(20, 51, 81, 0.1);
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

/* Funder Logo Wrapper (Light soft blue/teal background for visibility) */
.footer-funders-section {
    text-align: center;
    width: 100%;
}

.funder-logo-wrapper {
    background: #143351;
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: inline-block;
    border: 1px solid rgba(20, 51, 81, 0.1);
}

.funder-logo {
    max-width: 65%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--trc-navy);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(20, 51, 81, 0.2);
}
.social-links a:hover {
    background: var(--trc-orange);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(244, 133, 69, 0.4);
}

/* Legal Text */
.legal-text {
    max-width: 900px;
}

.legal-text p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.6;
}
.legal-text i {
    color: var(--trc-teal);
    margin-right: 5px;
}

/* BrandScales Logo (Made Massive & Professional) */
.brandscales-credit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brandscales-credit img {
    height: 150px;
    width: auto;
    transition: transform 0.3s ease;
}

.brandscales-credit a:hover img {
    transform: scale(1.05);
}