/*
 Theme Name:   Astra Child - AwwwStore
 Theme URI:    https://awwwstore.com
 Description:  AwwwStore custom child theme for Astra, optimized for SEO and GEO.
 Author:       AwwwStore Team
 Author URI:   https://awwwstore.com
 Template:     astra
 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:  astra-child
*/

/* === Related Posts Grid Fix === */
.ast-related-posts-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}
@media (max-width: 960px) {
    .ast-related-posts-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 600px) {
    .ast-related-posts-wrapper {
        grid-template-columns: 1fr !important;
    }
}
.ast-related-post .post-thumb-img-content img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}
.ast-related-post .ast-related-post-content {
    padding: 0;
}
.ast-related-posts-wrapper-block .ast-related-posts-title {
    font-size: 1.3rem !important;
    margin-bottom: 16px !important;
}


/* ========================================================================
   Professional Footer — Dark Navy Design System
   ======================================================================== */

/* Main footer container */
.site-footer {
    background: #0a192f !important;
    color: #cbd5e1 !important;
    border-top: none !important;
}

/* Primary footer wrap (widget area) */
.site-footer .site-primary-footer-wrap {
    background: transparent !important;
    border-top: none !important;
    padding: 60px 0 40px !important;
}

/* All footer text defaults to light color */
.site-footer,
.site-footer p,
.site-footer .widget,
.site-footer .widget p {
    color: #94a3b8 !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
}

/* Footer widget titles */
.site-footer .widget-title,
.site-footer .uagb-heading-text,
.site-footer .wp-block-heading {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid rgba(255, 107, 53, 0.4) !important;
    display: inline-block !important;
    text-transform: uppercase !important;
}

/* Footer links */
.site-footer a,
.site-footer .widget a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, padding-left 0.2s ease !important;
}
.site-footer a:hover,
.site-footer .widget a:hover {
    color: #ff6b35 !important;
}

/* Footer navigation menu */
.site-footer .footer-navigation .ast-nav-menu {
    gap: 6px !important;
}
.site-footer .footer-navigation .ast-nav-menu li {
    margin: 0 !important;
    padding: 0 !important;
}
.site-footer .footer-navigation .ast-nav-menu li a {
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
    padding: 5px 0 !important;
    display: inline-block !important;
    position: relative !important;
    transition: color 0.2s ease, padding-left 0.2s ease !important;
}
.site-footer .footer-navigation .ast-nav-menu li a::before {
    content: '›' !important;
    position: absolute !important;
    left: -2px !important;
    opacity: 0 !important;
    color: #ff6b35 !important;
    font-weight: 700 !important;
    transition: opacity 0.2s ease, left 0.2s ease !important;
}
.site-footer .footer-navigation .ast-nav-menu li a:hover {
    color: #ff6b35 !important;
    padding-left: 14px !important;
}
.site-footer .footer-navigation .ast-nav-menu li a:hover::before {
    opacity: 1 !important;
    left: 0 !important;
}

/* Get Free Quote button in footer menu */
.site-footer .footer-navigation .ast-nav-menu li:last-child a {
    background: #ff6b35 !important;
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    margin-top: 8px !important;
    display: inline-block !important;
    transition: background 0.3s ease, transform 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3) !important;
}
.site-footer .footer-navigation .ast-nav-menu li:last-child a::before {
    content: none !important;
}
.site-footer .footer-navigation .ast-nav-menu li:last-child a:hover {
    background: #e55a2b !important;
    color: #fff !important;
    padding-left: 24px !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
}

/* Social icons section */
.site-footer .ast-footer-social-1-wrap .ast-social-element-style-filled .ast-builder-social-element {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    width: 38px !important;
    height: 38px !important;
    transition: all 0.3s ease !important;
}
.site-footer .ast-footer-social-1-wrap .ast-builder-social-element:hover {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4) !important;
}
.site-footer .ast-footer-social-1-wrap .ast-builder-social-element svg {
    fill: #cbd5e1 !important;
    width: 18px !important;
    height: 18px !important;
    transition: fill 0.3s ease !important;
}
.site-footer .ast-footer-social-1-wrap .ast-builder-social-element:hover svg {
    fill: #ffffff !important;
}

/* Copyright section */
.site-footer .ast-footer-copyright {
    color: #64748b !important;
    font-size: 0.85rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 24px !important;
    margin-top: 16px !important;
}
.site-footer .ast-footer-copyright p {
    color: #64748b !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
}

/* Below footer bar */
.site-footer .site-below-footer-wrap {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 16px 0 !important;
}

/* Contact info widget — better spacing */
.site-footer [data-section="sidebar-widgets-footer-widget-3"] p {
    margin-bottom: 12px !important;
    line-height: 1.6 !important;
}
.site-footer [data-section="sidebar-widgets-footer-widget-3"] a {
    color: #ff6b35 !important;
    font-weight: 500 !important;
}
.site-footer [data-section="sidebar-widgets-footer-widget-3"] a:hover {
    color: #ff8c5a !important;
    text-decoration: underline !important;
}

/* Grid row spacing tweaks */
.site-footer .ast-builder-grid-row {
    gap: 40px !important;
}

/* Responsive footer */
@media (max-width: 921px) {
    .site-footer .site-primary-footer-wrap {
        padding: 40px 0 32px !important;
    }
    .site-footer .ast-builder-grid-row {
        gap: 32px !important;
    }
}
@media (max-width: 544px) {
    .site-footer .site-primary-footer-wrap {
        padding: 32px 0 24px !important;
    }
    .site-footer .ast-builder-grid-row {
        gap: 24px !important;
    }
    .site-footer .footer-navigation .ast-nav-menu li:last-child a {
        text-align: center !important;
        width: 100% !important;
    }
}


/* ========================================================================
   WPForms — Match site design system
   ======================================================================== */
.wpforms-submit {
    background: #ff6b35 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3) !important;
    letter-spacing: 0.02em !important;
}
.wpforms-submit:hover {
    background: #e55a2b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
}

/* WPForms field styling */
.wpforms-field input[type='text'],
.wpforms-field input[type='email'],
.wpforms-field input[type='tel'],
.wpforms-field textarea {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.wpforms-field input:focus,
.wpforms-field textarea:focus {
    border-color: #ff6b35 !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1) !important;
    outline: none !important;
}


/* ========================================================================
   Mobile Responsive Fine-tuning
   ======================================================================== */

/* Prevent horizontal overflow on all pages */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* WPForms mobile adjustments */
@media (max-width: 768px) {
    .wpforms-submit {
        width: 100% !important;
        text-align: center !important;
    }
    .wpforms-field input[type='text'],
    .wpforms-field input[type='email'],
    .wpforms-field input[type='tel'],
    .wpforms-field textarea {
        font-size: 16px !important;
    }
}

/* Footer UAGB icon list mobile */
@media (max-width: 544px) {
    .site-footer .uagb-icon-list__label {
        font-size: 0.85rem !important;
        word-break: break-word !important;
    }
    .site-footer .uagb-heading-text {
        font-size: 1rem !important;
    }
}

/* Core page hero mobile tweaks */
@media (max-width: 768px) {
    body.awww-core-page .lp-hero {
        padding: 60px 20px 40px !important;
    }
    body.awww-core-page .lp-hero h1 {
        font-size: 1.5rem !important;
    }
    body.awww-core-page .lp-hero-desc {
        font-size: 0.95rem !important;
    }
    body.awww-core-page .lp-hero-stats {
        flex-direction: column !important;
        gap: 12px !important;
    }
}
@media (max-width: 480px) {
    body.awww-core-page .lp-hero h1 {
        font-size: 1.3rem !important;
    }
    body.awww-core-page .lp-hero-actions {
        flex-direction: column !important;
    }
    body.awww-core-page .lp-hero-actions a {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
}


/* Fix: Footer Contact Info UAGB icon list text visibility */
.site-footer .uagb-icon-list__label,
.site-footer .wp-block-uagb-icon-list-child,
.site-footer .uagb-icon-list__content-wrap,
.site-footer .wp-block-uagb-icon-list {
    color: #cbd5e1 !important;
}
.site-footer .uagb-icon-list__label {
    font-size: 0.93rem !important;
    line-height: 1.7 !important;
}
