/**
 * Theme Name: Holy Mission Child
 * Author: Brainstorm Force
 * Author URI: http://wpastra.com/about/
 * Description: Child theme for Astra - styled to match the Non-Profit Organization 04 demo.
 * Version: 1.0.0
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: holy-mission-child
 * Template: astra
 */

/* ============================================================
   1. ASTRA COLOR PALETTE OVERRIDE (CSS Custom Properties)
   ============================================================ */
:root {
    --ast-global-color-0: #66b40b;          /* Primary Green */
    --ast-global-color-1: #5b9f0c;          /* Dark Green — hover states */
    --ast-global-color-2: #2c3a04;          /* Dark Olive — headings */
    --ast-global-color-3: #46512a;          /* Medium Olive — body text */
    --ast-global-color-4: #f7f9f1;          /* Light Cream — section backgrounds */
    --ast-global-color-5: #ffffff;          /* White */
    --ast-global-color-6: #d2d8c0;          /* Light Sage — card numbers, accents */
    --ast-global-color-7: #1a1a1a;          /* Near Black */
    --ast-global-color-8: #d2d8c0;          /* Light Sage (duplicate) */
    --ast-global-color-primary:   var(--ast-global-color-0);
    --ast-global-color-secondary: var(--ast-global-color-4);
}

/* ============================================================
   2. GLOBAL TYPOGRAPHY — DM Sans
   ============================================================ */
body,
.ast-single-post .entry-content,
.ast-separate-container .entry-content {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    color: #46512a;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.ast-archive-description .ast-archive-title,
.widget-title,
.widgettitle {
    font-family: 'DM Sans', sans-serif;
    color: #2c3a04;
    line-height: 1.15;
}

h1 { font-size: clamp(36px, 5vw, 80px);  font-weight: 600; }
h2 { font-size: clamp(28px, 3.5vw, 48px); font-weight: 600; }
h3 { font-size: clamp(22px, 2.5vw, 32px); font-weight: 600; }
h4 { font-size: 24px; font-weight: 600; }
h5 { font-size: 20px; font-weight: 600; }
h6 { font-size: 16px; font-weight: 600; }

p {
    font-family: 'DM Sans', sans-serif;
    color: #46512a;
    line-height: 1.6;
    margin-bottom: 1em;
}

a {
    color: #46512a;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: #66b40b; }

/* ============================================================
   3. HEADER — Transparent / Sticky
   ============================================================ */

/* Make header wrapper absolutely positioned over hero */
.main-header-bar-wrap {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
}

/* Transparent header bar */
#masthead,
.main-header-bar,
.ast-primary-header-bar,
.main-header-bar-wrap .main-header-bar {
    background-color: transparent !important;
    border-bottom: none;
    box-shadow: none;
}

/* Sticky header turns dark olive on scroll */
.ast-sticky-active #masthead,
.ast-sticky-active .main-header-bar,
.ast-header-sticked .main-header-bar,
.stuck .main-header-bar {
    background-color: #2c3a04 !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18) !important;
    transition: background-color 0.3s ease;
}

/* Site title / logo color on transparent header */
.ast-site-identity .site-title a,
.ast-site-identity .site-description {
    color: #ffffff;
}

/* Desktop nav links */
#ast-desktop-header .main-header-menu .menu-item > a,
.ast-primary-nav-menu > .menu-item > a,
.main-navigation .main-header-menu > .menu-item > a {
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 5px 14px;
    transition: color 0.3s ease;
}

#ast-desktop-header .main-header-menu .menu-item > a:hover,
.ast-primary-nav-menu > .menu-item:hover > a,
.ast-primary-nav-menu > .current-menu-item > a,
.ast-primary-nav-menu > .current-menu-ancestor > a,
.ast-primary-nav-menu > .current_page_item > a {
    color: #66b40b;
}

/* Header "Donate" button (Astra custom button / header HTML) */
.ast-header-html .ast-custom-button,
.ast-header-html a.ast-custom-button-link,
#ast-desktop-header .ast-custom-button,
.header-main-layout-1 .ast-custom-button {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 6px !important;
    padding: 10px 22px !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.ast-header-html .ast-custom-button:hover,
.ast-header-html a.ast-custom-button-link:hover {
    background-color: #ffffff !important;
    color: #2c3a04 !important;
}

/* Mobile header */
.ast-mobile-header-wrap .main-header-bar,
.ast-mobile-header-content-wrap .main-header-bar {
    background-color: #2c3a04 !important;
}
.ast-mobile-menu-trigger-minimal,
.menu-toggle {
    color: #ffffff !important;
}

/* ============================================================
   4. BUTTONS
   ============================================================ */

/* Primary filled button */
.wp-block-button__link,
.wp-block-button .wp-block-button__link,
.elementor-widget-button .elementor-button,
.elementor-button,
.ast-btn,
.button,
input[type="submit"],
button[type="submit"],
.woocommerce a.button,
.woocommerce button.button {
    background-color: #66b40b !important;
    color: #ffffff !important;
    border: 2px solid #66b40b !important;
    border-radius: 8px !important;
    padding: 16px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
}

.wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:hover,
.elementor-widget-button .elementor-button:hover,
.elementor-button:hover,
.ast-btn:hover,
.button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: #5b9f0c !important;
    border-color: #5b9f0c !important;
    color: #ffffff !important;
}

/* Outline / ghost button style */
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent !important;
    color: #2c3a04 !important;
    border: 2px solid #2c3a04 !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: #2c3a04 !important;
    color: #ffffff !important;
}

/* ============================================================
   5. HERO SECTION
   ============================================================ */

/* Text color inside hero / cover blocks */
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3,
.wp-block-cover p {
    color: #ffffff;
}

/* Elementor hero — first full-width section */
.elementor-section-full_width .elementor-section-wrap,
.e-con.e-full {
    width: 100%;
}

/* Arrow / text links (See Proof →, View Financials →) */
.arrow-link,
.elementor-icon-list-item a,
.wp-block-group a.text-link {
    color: #2c3a04;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.arrow-link:hover {
    color: #66b40b;
    border-bottom-color: #66b40b;
}

/* ============================================================
   6. CARDS / INITIATIVE SECTION
   ============================================================ */

/* White card wrapper (used in the 3-column numbered cards) */
.elementor-widget-wrap.e-con-full,
.wp-block-group.is-style-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 2px 24px rgba(44, 58, 4, 0.07);
}

/* Numbered headings (01. 02. 03.) */
.elementor-heading-title.card-number {
    color: #d2d8c0;
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 12px;
}

/* ============================================================
   7. ABOUT / GENERAL CONTENT SECTIONS
   ============================================================ */

/* Section eyebrow label (ABOUT US, OUR STORIES…) */
.section-eyebrow,
.elementor-heading-title.is-eyebrow {
    color: #46512a;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

/* Photo grid inside about section */
.about-photo-grid img {
    border-radius: 12px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   8. IMPACT STATS SECTION
   ============================================================ */

.stat-number,
.elementor-counter-number-wrapper {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    color: #2c3a04;
    line-height: 1;
}

.stat-label,
.elementor-counter-title {
    font-family: 'DM Sans', sans-serif;
    color: #46512a;
    font-size: 16px;
    font-weight: 500;
    margin-top: 8px;
}

/* ============================================================
   9. STORIES SECTION
   ============================================================ */

/* Story card hover lift */
.elementor-post__card,
.elementor-post {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.elementor-post__card:hover,
.elementor-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(44, 58, 4, 0.12);
}

/* Story card title */
.elementor-post__title a {
    color: #2c3a04;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    transition: color 0.3s ease;
}
.elementor-post__title a:hover { color: #66b40b; }

/* ============================================================
   10. PARTNER LOGOS
   ============================================================ */

.elementor-image-box-img img,
.partner-logo img {
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.elementor-image-box-img img:hover,
.partner-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================================
   11. FOOTER
   ============================================================ */

#colophon,
.site-footer {
    background-color: #2c3a04 !important;
    color: #d2d8c0;
}

.site-footer p,
.ast-small-footer,
.footer-adv,
.ast-footer-widget-area p,
.ast-footer-widget-area li {
    font-family: 'DM Sans', sans-serif;
    color: #d2d8c0;
    font-size: 15px;
    line-height: 1.8;
}

.site-footer a,
.ast-footer-widget-area a,
.ast-small-footer a {
    color: #d2d8c0;
    text-decoration: none;
    transition: color 0.3s ease;
}
.site-footer a:hover,
.ast-footer-widget-area a:hover { color: #66b40b; }

/* Footer widget headings */
.site-footer .widget-title,
.site-footer .widgettitle,
.ast-footer-widget-area .widget-title {
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

/* Footer bottom bar */
.ast-small-footer {
    background-color: #1e2a02 !important;
    border-top: 1px solid rgba(210, 216, 192, 0.15);
}

.ast-footer-copyright {
    color: rgba(210, 216, 192, 0.7);
    font-size: 13px;
}

/* Footer overlay (Astra footer adv row) */
.footer-adv-overlay,
.ast-footer-adv-overlay,
.footer-adv .footer-adv-overlay {
    background-color: #2c3a04 !important;
}

/* ============================================================
   12. ELEMENTOR GLOBAL OVERRIDES
   ============================================================ */

/* All Elementor heading widgets */
.elementor-widget-heading .elementor-heading-title {
    font-family: 'DM Sans', sans-serif;
}

/* All Elementor text / editor widgets */
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-widget-text-editor li {
    font-family: 'DM Sans', sans-serif;
    color: #46512a;
}

/* Elementor icon list */
.elementor-icon-list-text {
    color: #46512a;
    font-family: 'DM Sans', sans-serif;
}

/* Elementor divider */
.elementor-divider-separator {
    border-color: #d2d8c0;
}

/* Elementor counter widget */
.elementor-counter .elementor-counter-number-wrapper {
    color: #2c3a04;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
}

/* Elementor button — exact sizing from reference */
.elementor-widget-button .elementor-button {
    font-size: 18px;
    padding: 18px 32px;
    border-radius: 8px;
}

/* ============================================================
   13. WORDPRESS BLOCK EDITOR (GUTENBERG) OVERRIDES
   ============================================================ */

.entry-content .wp-block-group {
    font-family: 'DM Sans', sans-serif;
}

/* Cover block overlay */
.wp-block-cover__gradient-background {
    background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
}

/* ============================================================
   14. FORMS
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #2c3a04;
    border: 1.5px solid #d2d8c0;
    border-radius: 6px;
    padding: 12px 16px;
    width: 100%;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: #66b40b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 180, 11, 0.12);
}

label {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2c3a04;
    margin-bottom: 6px;
    display: block;
}

/* ============================================================
   15. MISC UTILITIES
   ============================================================ */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Image border-radius for editorial images */
.entry-content img,
.wp-block-image img {
    border-radius: 8px;
}

/* ============================================================
   16. RESPONSIVE
   ============================================================ */

@media (max-width: 920px) {
    /* Mobile header: always show solid bg */
    .main-header-bar-wrap {
        position: relative;
    }
    .main-header-bar,
    #masthead,
    .ast-primary-header-bar {
        background-color: #2c3a04 !important;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }

    .wp-block-button__link,
    .elementor-button,
    .ast-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }

    .wp-block-button__link,
    .elementor-button {
        width: 100%;
        text-align: center;
    }
}
