/* ============================================
   ENDOWING PEOPLE - FULL REDESIGN
   Based on Original Mockups
   ============================================ */

/* ----- CSS VARIABLES ----- */
:root {
    /* Primary Colors */
    --ep-green-dark: #2E7D32;
    --ep-green: #4CAF50;
    --ep-green-light: #81C784;
    --ep-green-pale: #E8F5E9;
    
    /* Accent Colors */
    --ep-yellow: #CDDC39;
    --ep-yellow-light: #E6EE9C;
    --ep-teal: #26A69A;
    --ep-teal-light: #80CBC4;
    
    /* Neutrals */
    --ep-dark: #333333;
    --ep-gray: #666666;
    --ep-gray-light: #999999;
    --ep-off-white: #FAFAFA;
    --ep-white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Playfair Display', 'Georgia', serif;
    --font-body: 'ProximaNova-Regular', 'Open Sans', 'Roboto', sans-serif;
    --font-body-bold: 'ProximaNova-Bold', 'Open Sans', 'Roboto', sans-serif;
    
    /* Spacing */
    --section-padding: 80px;
    --container-width: 1200px;
}

/* ----- RESET & BASE ----- */
body {
    font-family: var(--font-body) !important;
    color: var(--ep-dark);
    line-height: 1.7;
    background-color: var(--ep-white);
}

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.entry-title {
    font-family: var(--font-heading) !important;
    color: var(--ep-dark);
    font-weight: 700;
    line-height: 1.3;
}

h1, .heading-size-1 { font-size: 48px; }
h2, .heading-size-2 { font-size: 36px; }
h3, .heading-size-3 { font-size: 28px; }
h4, .heading-size-4 { font-size: 22px; }

p, .entry-content, 
.elementor-widget-text-editor {
    font-family: var(--font-body) !important;
    font-size: 17px;
    line-height: 1.8;
    color: var(--ep-gray);
}

/* ----- LINKS ----- */
a {
    color: var(--ep-green) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: var(--ep-green-dark) !important;
}

/* ----- BUTTONS ----- */
button,
.button,
.wp-block-button__link,
.elementor-button,
input[type="submit"],
.gform_button {
    background: var(--ep-green) !important;
    color: var(--ep-white) !important;
    font-family: var(--font-body-bold) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 14px 32px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover,
.button:hover,
.wp-block-button__link:hover,
.elementor-button:hover,
input[type="submit"]:hover,
.gform_button:hover {
    background: var(--ep-green-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* Secondary/Outline Button */
.btn-outline,
.elementor-button.btn-outline {
    background: transparent !important;
    border: 2px solid var(--ep-green) !important;
    color: var(--ep-green) !important;
}

.btn-outline:hover {
    background: var(--ep-green) !important;
    color: var(--ep-white) !important;
}

/* ----- HEADER / NAVIGATION ----- */
#masthead,
.site-header,
header.elementor-section {
    background: var(--ep-white) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
}

.hfe-nav-menu a,
.primary-menu a,
.menu-item a {
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    color: var(--ep-dark) !important;
    font-weight: 500;
    text-transform: none;
    padding: 10px 18px !important;
    transition: color 0.3s ease;
}

.hfe-nav-menu a:hover,
.primary-menu a:hover,
.menu-item a:hover {
    color: var(--ep-green) !important;
}

/* Donate Button in Nav */
.menu-item.donate-btn a,
.hfe-nav-menu .donate-btn a {
    background: var(--ep-green) !important;
    color: var(--ep-white) !important;
    border-radius: 4px !important;
    padding: 12px 24px !important;
}

.menu-item.donate-btn a:hover {
    background: var(--ep-green-dark) !important;
}

/* ----- HERO SECTION ----- */
.hero-section,
.elementor-section.hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    background: var(--ep-white);
}

/* Yellow decorative blob */
.hero-section::before {
    content: '';
    position: absolute;
    right: -100px;
    top: -50px;
    width: 600px;
    height: 600px;
    background: var(--ep-yellow);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    z-index: 0;
    opacity: 0.7;
}

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

/* Hero Typography */
.hero-section h1,
.hero-section .elementor-heading-title {
    font-size: 52px !important;
    line-height: 1.2 !important;
    margin-bottom: 24px;
    color: var(--ep-dark) !important;
}

.hero-section h2 {
    font-size: 24px !important;
    font-weight: 400 !important;
    color: var(--ep-gray) !important;
    margin-bottom: 32px;
}

/* ----- CONTENT SECTIONS ----- */
.elementor-section,
.wp-block-group {
    padding: 60px 0;
}

/* Alternating backgrounds */
.elementor-section:nth-child(even) {
    background: var(--ep-off-white);
}

/* Section with green background */
.section-green,
.elementor-section.green-bg {
    background: var(--ep-green-pale) !important;
}

/* Section headings */
.section-heading,
.elementor-widget-heading .elementor-heading-title {
    position: relative;
    margin-bottom: 40px;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--ep-green);
    margin-top: 16px;
}

.section-heading.center::after {
    margin: 16px auto 0;
}

/* ----- CARDS & BOXES ----- */
.ep-card,
.elementor-widget-icon-box {
    background: var(--ep-white);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ep-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Icon styling in cards */
.elementor-icon,
.ep-icon {
    background: var(--ep-green-pale) !important;
    color: var(--ep-green) !important;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.elementor-icon i {
    font-size: 28px;
    color: var(--ep-green) !important;
}

/* ----- LISTS ----- */
ul.ep-list,
.elementor-widget-text-editor ul {
    list-style: none;
    padding: 0;
}

ul.ep-list li,
.elementor-widget-text-editor ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

ul.ep-list li::before,
.elementor-widget-text-editor ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--ep-green);
    font-weight: bold;
}

/* ----- IMAGES & MEDIA ----- */
.ep-image-frame,
img.framed {
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Diagonal stripe frame effect */
.diagonal-frame {
    position: relative;
}

.diagonal-frame::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ep-green) 50%, var(--ep-yellow) 50%);
    z-index: -1;
    border-radius: 8px;
}

/* ----- TESTIMONIALS ----- */
.testimonial,
.ep-testimonial {
    background: var(--ep-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
}

.testimonial::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 80px;
    color: var(--ep-green-light);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--ep-dark);
}

/* ----- STATS / NUMBERS ----- */
.stat-box {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    color: var(--ep-green);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--ep-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ----- FORMS ----- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    font-family: var(--font-body) !important;
    font-size: 16px;
    padding: 14px 18px;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    background: var(--ep-white);
    transition: border-color 0.3s ease;
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--ep-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

label {
    font-weight: 600;
    color: var(--ep-dark);
    margin-bottom: 8px;
    display: block;
}

/* ----- FOOTER ----- */
#site-footer,
footer.elementor-section,
.footer-section {
    background: var(--ep-dark) !important;
    color: var(--ep-white) !important;
    padding: 60px 0 30px;
}

#site-footer h3,
#site-footer h4,
.footer-section h3,
.footer-section h4 {
    color: var(--ep-white) !important;
    font-size: 20px;
    margin-bottom: 24px;
}

#site-footer p,
#site-footer a,
.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8) !important;
}

#site-footer a:hover,
.footer-section a:hover {
    color: var(--ep-yellow) !important;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: background 0.3s ease;
}

.footer-social a:hover {
    background: var(--ep-green);
}

/* Copyright bar */
.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.6) !important;
}

/* ----- UTILITY CLASSES ----- */
.text-center { text-align: center; }
.text-green { color: var(--ep-green) !important; }
.bg-green { background: var(--ep-green) !important; }
.bg-green-pale { background: var(--ep-green-pale) !important; }
.bg-yellow { background: var(--ep-yellow) !important; }
.bg-white { background: var(--ep-white) !important; }
.bg-dark { background: var(--ep-dark) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 10px !important; }
.mb-2 { margin-bottom: 20px !important; }
.mb-3 { margin-bottom: 30px !important; }
.mb-4 { margin-bottom: 40px !important; }

.py-5 { padding-top: 50px !important; padding-bottom: 50px !important; }
.py-6 { padding-top: 60px !important; padding-bottom: 60px !important; }

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
    h1, .heading-size-1 { font-size: 40px; }
    h2, .heading-size-2 { font-size: 32px; }
    .hero-section h1 { font-size: 42px !important; }
    .stat-number { font-size: 44px; }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
    }
    
    h1, .heading-size-1 { font-size: 32px; }
    h2, .heading-size-2 { font-size: 26px; }
    h3, .heading-size-3 { font-size: 22px; }
    
    .hero-section h1 { font-size: 34px !important; }
    .hero-section { padding: 60px 0 40px; }
    
    .hero-section::before {
        width: 300px;
        height: 300px;
        right: -100px;
        top: -100px;
    }
    
    button, .button, .elementor-button {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
    
    .stat-number { font-size: 36px; }
}

@media (max-width: 480px) {
    h1, .heading-size-1 { font-size: 28px; }
    .hero-section h1 { font-size: 28px !important; }
}

/* ----- ANIMATIONS ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ----- WORDFENCE/PLUGIN OVERRIDES ----- */
.wf-hide { display: none !important; }

/* ----- ELEMENTOR SPECIFIC OVERRIDES ----- */
.elementor-widget-heading .elementor-heading-title {
    font-family: var(--font-heading) !important;
}

.elementor-widget-text-editor {
    font-family: var(--font-body) !important;
}

.elementor-button-wrapper .elementor-button {
    font-family: var(--font-body-bold) !important;
}

/* Remove default Twenty Twenty styles that conflict */
.singular .entry-header {
    padding: 0;
    background: none;
}

.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: 100%;
}

#site-content {
    padding-top: 0;
}

/* ============================================
   END REDESIGN STYLES
   ============================================ */

/* ============================================
   HOMEPAGE SPECIFIC STYLES
   ============================================ */

/* Hero section - first section on homepage */
.elementor-page-43 .elementor-element-caffbcb,
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

/* Add yellow decorative blob to hero */
.elementor-page-43 .elementor-element-caffbcb::after {
    content: '';
    position: absolute;
    right: -150px;
    top: -100px;
    width: 500px;
    height: 500px;
    background: #CDDC39;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

.elementor-page-43 .elementor-element-caffbcb .elementor-container {
    position: relative;
    z-index: 1;
}

/* What We Do section styling */
.elementor-element-89c6291 {
    background: #f8f9fa !important;
}

/* Newsletter section */
.elementor-element-8266808 {
    background: var(--ep-green-pale) !important;
}

/* Section padding adjustments */
.elementor-page-43 .elementor-section {
    padding: 60px 0;
}

/* Better heading styles for homepage */
.elementor-page-43 .elementor-heading-title {
    color: #333333 !important;
}

.elementor-page-43 h2.elementor-heading-title {
    font-size: 36px !important;
    margin-bottom: 30px;
}

/* Fix list styling in content */
.elementor-widget-text-editor ul {
    padding-left: 0;
    list-style: none;
}

.elementor-widget-text-editor ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.7;
}

.elementor-widget-text-editor ul li::before {
    content: '•';
    color: #4CAF50;
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    left: 8px;
    top: -2px;
}

/* Header improvements */
.elementor-element-e1861f6 {
    background: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    padding: 10px 0 !important;
}

/* Navigation styling */
.hfe-nav-menu a.hfe-menu-item {
    color: #333333 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 10px 16px !important;
    transition: color 0.3s ease;
}

.hfe-nav-menu a.hfe-menu-item:hover {
    color: #4CAF50 !important;
}

/* Mobile navigation */
.hfe-nav-menu__toggle {
    color: #333333 !important;
}

/* Footer styling */
.elementor-element-47 .elementor-section,
#site-footer .elementor-section {
    background: #2D2D2D !important;
}

.elementor-47 .elementor-heading-title,
.elementor-47 p,
.elementor-47 a {
    color: rgba(255,255,255,0.9) !important;
}

.elementor-47 a:hover {
    color: #CDDC39 !important;
}

/* Social icons in header */
.elementor-social-icon {
    background: transparent !important;
}

.elementor-social-icon i {
    color: #4CAF50 !important;
}

.elementor-social-icon:hover {
    background: #4CAF50 !important;
}

.elementor-social-icon:hover i {
    color: #ffffff !important;
}

/* Image styling */
.elementor-widget-image img {
    border-radius: 8px;
}

/* Better spacing for text content */
.elementor-widget-text-editor p {
    margin-bottom: 18px;
    color: #555555;
}

/* Donate button in navigation - if exists */
.menu-item-donate a,
.hfe-nav-menu .donate a {
    background: #4CAF50 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 10px 20px !important;
}

/* Contact form styling improvements */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper textarea {
    border: 2px solid #e0e0e0 !important;
    padding: 14px !important;
    border-radius: 4px !important;
    font-size: 16px !important;
}

.gform_wrapper input:focus,
.gform_wrapper textarea:focus {
    border-color: #4CAF50 !important;
    outline: none !important;
}

.gform_button {
    background: #4CAF50 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: background 0.3s ease !important;
}

.gform_button:hover {
    background: #388E3C !important;
}

/* Mailchimp form styling */
#mc_embed_signup input.email {
    border: 2px solid #e0e0e0 !important;
    padding: 14px !important;
    border-radius: 4px 0 0 4px !important;
}

#mc_embed_signup input[type="submit"] {
    background: #4CAF50 !important;
    color: #ffffff !important;
    border-radius: 0 4px 4px 0 !important;
}

/* Page title hiding for Elementor pages */
.elementor_header_footer .entry-header {
    display: none;
}

/* Remove extra padding from site content */
.elementor_header_footer #site-content {
    padding: 0;
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 1024px) {
    .elementor-page-43 .elementor-element-caffbcb::after {
        width: 350px;
        height: 350px;
        right: -100px;
    }
}

@media (max-width: 768px) {
    .elementor-page-43 .elementor-section {
        padding: 40px 0;
    }
    
    .elementor-page-43 h2.elementor-heading-title {
        font-size: 28px !important;
    }
    
    .elementor-page-43 .elementor-element-caffbcb::after {
        display: none;
    }
    
    .hfe-nav-menu a.hfe-menu-item {
        padding: 12px 20px !important;
    }
}
