/*
 Theme Name: Astra Child (Custom Homepage)
 Theme URI: https://wpastra.com/
 Description: Child theme for Astra to implement a custom Figma-designed homepage.
 Author: Your Name
 Author URI: https://example.com/
 Template: astra
 Version: 1.0.0
 Text Domain: astra-child
*/

/* Place minimal overrides here; homepage-specific styles live in assets/css/home.css */
/* Custom CSS for Minimal Footer (Neutral/White Theme) */

/* === GLOBAL STICKY FOOTER FIX === */
/* NOTE: Adjusting for common Astra/WordPress elements */
html {
    height: 100%;
}

body {
    /* CRITICAL: Force body to fill the screen */
    min-height: 100vh;
    /* CRITICAL: Use flex to stack content and footer */
    display: flex;
    flex-direction: column; 
    margin: 0;
    padding: 0;
}

/* Common Astra content wrapper that needs to stretch */
#content, .site-content {
    flex-grow: 1; 
}


/* === FOOTER STYLING === */
.minimal-footer {
    background-color: #ffffff; 
    color: #333;
    padding: 20px 15px 0; 
    border-top: 1px solid #eee; 
    width: 100%;
    box-sizing: border-box;
    /* Ensure it clears any floats in the body */
    clear: both; 
    display: block; 
}

.minimal-footer .footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto 5px; 
    padding-bottom: 15px;
    border-bottom: 1px solid #eee; 
    gap: 15px; 
}

.footer-info {
    flex: 1;
    max-width: 40%;
}
.footer-description {
    font-size: 0.9em;
    line-height: 1.3;
    margin: 0 0 10px 0; 
}

.social-icons a {
    color: #666; 
    font-size: 1.1em;
    margin-right: 10px;
    transition: color 0.3s;
}
.social-icons a:hover {
    color: #111827; /* Dark hover color */
}

.footer-newsletter {
    flex: 1.5;
    max-width: 50%; 
}
.footer-newsletter h4 {
    font-size: 1em;
    margin: 0 0 8px 0;
}

.footer-newsletter form {
    display: flex;
    gap: 5px;
}
.footer-newsletter input[type="email"] {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc; 
    border-radius: 4px;
    font-size: 0.85em;
}
.footer-newsletter button {
    padding: 8px 15px;
    background-color: #111827;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    text-transform: uppercase;
    transition: background-color 0.3s;
}
.footer-newsletter button:hover {
    background-color: #374151;
}

.footer-bottom {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75em;
    color: #666;
    padding: 8px 0;
}
.footer-bottom p { margin: 0; }
.footer-links a {
    color: #666;
    text-decoration: none;
    margin-left: 10px;
}
.footer-links a:hover {
    text-decoration: underline;
    color: #111827;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .minimal-footer .footer-content { flex-direction: column; max-width: 100%; gap: 20px; margin-bottom: 10px; }
    .footer-info, .footer-newsletter { max-width: 100%; width: 100%; }
    .footer-info { order: 2; text-align: center; }
    .footer-newsletter { order: 1; }
    .footer-newsletter form { flex-direction: column; }
    .footer-newsletter input[type="email"], .footer-newsletter button { width: 100%; }
    .footer-bottom { flex-direction: column; text-align: center; padding: 10px 0; }
    .footer-bottom p { margin-bottom: 4px; }
    .footer-links { margin-top: 4px; }
    .footer-links a { margin: 0 4px; }
}
