/*
Theme Name: Millie's Might Child Theme
Theme URI: https://www.milliesmight.com
Description: Custom child theme for Millie's Might Foundation — a pediatric cancer nonprofit in memory of Amelia SueAnn Cox ("Mighty Millie"). Built on Kadence with ladybug red & ribbon gold brand colors. Includes all images from milliesmight.com.
Author: Millie's Might Foundation
Author URI: https://www.milliesmight.com
Template: kadence
Version: 2.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: milliesmight-child
Tags: nonprofit, charity, pediatric-cancer, ladybug, kadence-child
*/

/* ============================================================
   BRAND DESIGN SYSTEM
   ============================================================ */
:root {
    --mm-red: #D32F2F;
    --mm-red-dark: #B71C1C;
    --mm-red-light: #FFCDD2;
    --mm-gold: #F9A825;
    --mm-gold-dark: #F57F17;
    --mm-gold-light: #FFF9C4;
    --mm-black: #1A1A1A;
    --mm-dark-gray: #333333;
    --mm-medium-gray: #666666;
    --mm-light-gray: #F5F5F5;
    --mm-cream: #FFFDF5;
    --mm-white: #FFFFFF;
    --mm-font-heading: 'Playfair Display', Georgia, serif;
    --mm-font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --mm-shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --mm-shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --mm-shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --mm-radius-sm: 6px;
    --mm-radius-md: 12px;
    --mm-radius-lg: 20px;
}

body { font-family: var(--mm-font-body); color: var(--mm-black); background-color: var(--mm-cream); line-height: 1.7; }
h1,h2,h3,h4,h5,h6 { font-family: var(--mm-font-heading); color: var(--mm-black); line-height: 1.3; }
a { color: var(--mm-red); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--mm-red-dark); }
img { max-width: 100%; height: auto; }

/* Buttons */
.mm-btn, .wp-block-button__link {
    display: inline-block; padding: 14px 32px; border-radius: var(--mm-radius-sm);
    font-family: var(--mm-font-body); font-weight: 700; font-size: 1rem;
    text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer;
    transition: all 0.3s ease; border: none; text-decoration: none;
}
.mm-btn-primary, .wp-block-button.is-style-fill .wp-block-button__link {
    background-color: var(--mm-red); color: var(--mm-white);
}
.mm-btn-primary:hover, .wp-block-button.is-style-fill .wp-block-button__link:hover {
    background-color: var(--mm-red-dark); color: var(--mm-white);
    transform: translateY(-2px); box-shadow: var(--mm-shadow-md);
}
.mm-btn-secondary { background-color: var(--mm-gold); color: var(--mm-black); }
.mm-btn-secondary:hover { background-color: var(--mm-gold-dark); transform: translateY(-2px); box-shadow: var(--mm-shadow-md); }
.mm-btn-outline { background-color: transparent; border: 2px solid var(--mm-red); color: var(--mm-red); }
.mm-btn-outline:hover { background-color: var(--mm-red); color: var(--mm-white); }

/* Header */
.site-header, .wp-block-template-part.site-header {
    background-color: var(--mm-white); box-shadow: var(--mm-shadow-sm);
    position: sticky; top: 0; z-index: 100;
}
.site-header .custom-logo { max-height: 60px; width: auto; }
.site-header .wp-block-navigation a {
    font-family: var(--mm-font-body); font-weight: 600; font-size: 0.95rem;
    text-transform: uppercase; letter-spacing: 0.5px; color: var(--mm-black); padding: 8px 16px;
}
.site-header .wp-block-navigation a:hover { color: var(--mm-red); }
.header-donate-btn {
    background-color: var(--mm-red) !important; color: var(--mm-white) !important;
    border-radius: var(--mm-radius-sm) !important; padding: 10px 24px !important;
}
.header-donate-btn:hover { background-color: var(--mm-red-dark) !important; }

/* Hero */
.mm-hero {
    position: relative; min-height: 85vh; display: flex; align-items: center;
    justify-content: center; text-align: center; overflow: hidden;
}
.mm-hero h1 { font-size: 4rem; color: var(--mm-white); text-shadow: 2px 2px 8px rgba(0,0,0,0.3); margin-bottom: 16px; }
.mm-hero .tagline { font-size: 1.5rem; color: var(--mm-white); font-style: italic; opacity: 0.95; margin-bottom: 32px; }

/* Hero circular photo of Millie */
.wp-block-cover .mm-millie-photo img {
    width: 280px !important; height: 280px !important;
    object-fit: cover; border-radius: 50% !important;
    border: 4px solid var(--mm-gold) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transition: transform 0.4s ease;
}
.wp-block-cover .mm-millie-photo img:hover {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .wp-block-cover .mm-millie-photo img {
        width: 200px !important; height: 200px !important;
    }
}

/* Ensure all cover block text has strong contrast */
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover p {
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Sections */
.mm-section { padding: 80px 0; }
.mm-section-title { font-size: 2.5rem; text-align: center; margin-bottom: 16px; position: relative; }
.mm-section-title::after { content: '\1F41E'; display: block; font-size: 1.5rem; margin-top: 12px; }
.mm-section-subtitle { text-align: center; color: var(--mm-medium-gray); font-size: 1.1rem; max-width: 700px; margin: 0 auto 48px; }

/* Millie Photo Feature */
.mm-millie-photo {
    border-radius: var(--mm-radius-lg); box-shadow: var(--mm-shadow-lg);
    border: 4px solid var(--mm-gold); overflow: hidden;
}
.mm-millie-photo img { width: 100%; height: auto; display: block; }

/* Donation */
.mm-donate-card {
    background: var(--mm-white); border-radius: var(--mm-radius-md);
    padding: 48px; max-width: 600px; margin: 0 auto; box-shadow: var(--mm-shadow-lg); text-align: center;
}
.mm-donate-card h3 { color: var(--mm-red); font-size: 1.8rem; margin-bottom: 12px; }

/* Events */
.mm-event-card {
    background: var(--mm-cream); border-radius: var(--mm-radius-md);
    overflow: hidden; box-shadow: var(--mm-shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 24px;
}
.mm-event-card:hover { transform: translateY(-4px); box-shadow: var(--mm-shadow-lg); }
.mm-event-card .event-date-badge {
    background: var(--mm-red); color: var(--mm-white);
    padding: 12px 16px; text-align: center; font-weight: 700; font-size: 1.1rem;
}
.mm-event-card .event-details { padding: 24px; }

/* Gallery */
.mm-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.mm-gallery-item {
    border-radius: var(--mm-radius-md); overflow: hidden;
    box-shadow: var(--mm-shadow-sm); transition: transform 0.3s ease;
}
.mm-gallery-item:hover { transform: scale(1.02); }
.mm-gallery-item img { width: 100%; height: 250px; object-fit: cover; }

/* Newsletter */
.mm-newsletter { background: var(--mm-red); color: var(--mm-white); padding: 60px 0; text-align: center; }
.mm-newsletter h2 { color: var(--mm-white); }
.mm-newsletter input[type="email"] {
    padding: 14px 20px; border: 2px solid rgba(255,255,255,0.4);
    border-radius: var(--mm-radius-sm); background: rgba(255,255,255,0.15);
    color: var(--mm-white); font-size: 1rem; width: 100%; max-width: 400px;
}

/* Contact */
.mm-contact-form { max-width: 700px; margin: 0 auto; }
.mm-contact-form .wpcf7-form-control {
    width: 100%; padding: 14px 16px; border: 2px solid #E0E0E0;
    border-radius: var(--mm-radius-sm); font-family: var(--mm-font-body); font-size: 1rem;
    transition: border-color 0.3s ease;
}
.mm-contact-form .wpcf7-form-control:focus { border-color: var(--mm-red); outline: none; }
.mm-contact-form .wpcf7-submit {
    background-color: var(--mm-red); color: var(--mm-white); border: none;
    padding: 14px 40px; font-weight: 700; text-transform: uppercase; cursor: pointer;
    border-radius: var(--mm-radius-sm);
}

/* WooCommerce */
.woocommerce ul.products li.product {
    border-radius: var(--mm-radius-md); overflow: hidden; box-shadow: var(--mm-shadow-sm);
}
.woocommerce ul.products li.product .price { color: var(--mm-red); font-weight: 700; }
.woocommerce a.button, .woocommerce button.button {
    background-color: var(--mm-red) !important; color: var(--mm-white) !important;
    border-radius: var(--mm-radius-sm) !important;
}

/* Footer */
.site-footer {
    background-color: var(--mm-black); color: rgba(255,255,255,0.8); padding: 60px 0 24px;
}
.site-footer h3, .site-footer h4 { color: var(--mm-gold); font-size: 1.1rem; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--mm-gold); }
.site-footer .social-links a {
    display: inline-block; width: 40px; height: 40px; line-height: 40px;
    text-align: center; border-radius: 50%; background: rgba(255,255,255,0.1); margin-right: 8px;
    transition: background 0.3s ease;
}
.site-footer .social-links a:hover { background: var(--mm-red); color: var(--mm-white); }
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 40px;
    text-align: center; font-size: 0.85rem;
}
.site-footer .interserver-credit a { color: var(--mm-gold); text-decoration: underline; }

/* GiveWP */
.give-form-wrap .give-btn { background-color: var(--mm-red) !important; border-radius: var(--mm-radius-sm) !important; }
.give-progress-bar .give-progress span { background: linear-gradient(90deg, var(--mm-red) 0%, var(--mm-gold) 100%) !important; }

/* Tribe Events */
.tribe-events .tribe-events-calendar-month__day--current { background-color: var(--mm-red-light); }
#tribe-events .tribe-events-button { background: var(--mm-red) !important; }

/* Responsive */
@media (max-width: 768px) {
    .mm-hero h1 { font-size: 2.5rem; }
    .mm-hero .tagline { font-size: 1.1rem; }
    .mm-section-title { font-size: 1.75rem; }
    .mm-donate-card { padding: 32px 24px; }
}
@media (max-width: 480px) {
    .mm-hero h1 { font-size: 2rem; }
}

/* ============================================================
   IMAGE SIZING & CAPTIONS (moved out of inline block styles so
   the block markup stays valid in the block editor)
   ============================================================ */
.mm-hero-photo img {
    width: 280px;
    height: 280px;
    object-fit: cover;
}
.mm-millie-photo figcaption,
.mm-millie-photo .wp-element-caption {
    text-align: center;
    font-style: italic;
    color: #666;
}

/* Block borders set width + color; WordPress does not add a style, so make them solid */
.wp-block-image img[style*="border-width"] {
    border-style: solid;
}
