/*
Theme Name: AB'z Invest
Theme URI: https://abzinvest.com/
Author: AB'z Invest Development Team
Author URI: https://abzinvest.com/
Description: A professional WordPress theme for AB'z Invest, featuring enhanced header and footer implementations, optimized for performance and SEO, with SQLite3 database integration.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abzinvest
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme was built for AB'z Invest, a leading provider of premium eco-friendly building materials and sustainable solutions with over 30 years of experience.
*/

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #1D2430;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.3;
}

a {
    color: #0F131A;
    text-decoration: none;
}

a:hover {
    color: #FFC44D;
}

img {
    max-width: 100%;
    height: auto;
}

/* Enhanced Header Styles */
.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-contact .contact-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.top-bar-contact .contact-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #495057;
}

.top-bar-contact .contact-link:hover {
    color: #0F131A;
}

.top-bar-contact .contact-icon,
.top-bar-social .social-icon {
    margin-right: 6px;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.top-bar-social {
    display: flex;
    gap: 12px;
}

.top-bar-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-bar-social .social-link:hover {
    background-color: #0F131A;
    color: #fff;
    transform: translateY(-2px);
}

.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.header-branding {
    display: flex;
    align-items: center;
}

.site-logo-wrapper {
    margin-right: 15px;
}

.site-logo-wrapper img {
    max-height: 60px;
    width: auto;
}

.header-nav-wrapper {
    display: flex;
    align-items: center;
}

.header-nav-container {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.main-navigation a {
    text-decoration: none;
    color: #1D2430;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.main-navigation a:hover {
    color: #FFC44D;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFC44D;
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.header-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 4px;
    color: #1D2430;
    transition: all 0.3s ease;
    text-decoration: none;
}

.header-action-btn:hover {
    background-color: #f8f9fa;
    color: #0F131A;
}

.header-action-btn .action-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 15px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #1D2430;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.header-search-wrap {
    background-color: #f8f9fa;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.search-input-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.header-search-input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 50px;
    border: 1px solid #dee2e6;
    border-radius: 30px;
    font-size: 1rem;
}

.header-search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 30px;
    background-color: #0F131A;
    color: white;
}

.header-search-submit .action-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: #fff;
    z-index: 1001;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mobile-menu-close:hover {
    background-color: #f5f5f5;
}

.mobile-nav {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    margin-bottom: 5px;
}

.mobile-menu-list a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #1D2430;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-list a:hover {
    background-color: #f8f9fa;
    color: #FFC44D;
}

/* Enhanced Footer Styles */
.site-footer {
    background-color: #0F131A;
    color: #fff;
    padding-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget-title {
    color: #FFC44D;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.footer-widget-title .title-icon {
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    fill: #FFC44D;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
}

.text-widget p {
    color: #adb5bd;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #343a40;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social .social-link:hover {
    background-color: #FFC44D;
    color: #0F131A;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FFC44D;
}

.footer-links .link-arrow {
    margin-right: 8px;
    color: #FFC44D;
}

.footer-contact-item {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.footer-contact-icon {
    margin-right: 12px;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    fill: #FFC44D;
    flex-shrink: 0;
}

.footer-contact-text {
    flex-grow: 1;
}

.footer-contact-text strong {
    display: block;
    color: #FFC44D;
    margin-bottom: 3px;
}

.footer-contact-text a {
    color: #e9ecef;
    text-decoration: none;
}

.footer-contact-text a:hover {
    color: #FFC44D;
}

.newsletter-form {
    margin-top: 15px;
}

.newsletter-input-wrapper {
    display: flex;
    gap: 8px;
}

#footer-newsletter-email {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background-color: #343a40;
    color: #fff;
}

#footer-newsletter-email::placeholder {
    color: #adb5bd;
}

.newsletter-submit {
    background-color: #FFC44D;
    color: #0F131A;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.newsletter-submit:hover {
    background-color: #e6af45;
}

.footer-bottom {
    border-top: 1px solid #343a40;
    padding: 20px 0;
}

.footer-bottom-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.footer-copyright {
    color: #adb5bd;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #FFC44D;
}

.footer-bottom-social {
    display: flex;
    gap: 12px;
}

.footer-bottom-social .social-link-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #343a40;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom-social .social-link-bottom:hover {
    background-color: #FFC44D;
    color: #0F131A;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .top-bar-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-main {
        flex-wrap: wrap;
    }
    
    .header-actions {
        order: 3;
        width: 100%;
        justify-content: flex-end;
        margin-top: 15px;
        margin-left: 0;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        display: none;
    }
    
    .top-bar-contact .contact-item {
        margin-right: 10px;
    }
    
    .footer-bottom-social {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .top-bar-contact .contact-item {
        margin-right: 5px;
    }
    
    .top-bar-contact .contact-text {
        display: none;
    }
    
    .top-bar-contact .contact-icon {
        margin-right: 0;
    }
    
    .header-actions .action-text {
        display: none;
    }
    
    .footer-bottom-container {
        gap: 10px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 8px;
    }
}

/* Accessibility Enhancements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #0F131A;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1002;
}

.skip-link:focus {
    top: 6px;
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
}

.theme-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: opacity 0.3s ease;
}

.sun-icon, .moon-icon {
    position: absolute;
    top: 0;
    left: 0;
}

.sun-icon {
    opacity: 1;
}

.moon-icon {
    opacity: 0;
}

/* Dark mode active */
[data-theme="dark"] .sun-icon {
    opacity: 0;
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
}

/* CTA Section */
.cta-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    position: relative;
    margin: 0;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 19, 26, 0.85);
}

.cta-content {
    position: relative;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    gap: 8px;
}

.btn-primary {
    background-color: #FFC44D;
    color: #0F131A;
}

.btn-primary:hover {
    background-color: #e6af45;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 196, 77, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #FFC44D;
    border: 2px solid #FFC44D;
}

.btn-outline:hover {
    background-color: #FFC44D;
    color: #0F131A;
}

/* Modal Styles */
.quote-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1003;
    align-items: center;
    justify-content: center;
}

.quote-modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.quote-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote-modal-header h2 {
    margin: 0;
    color: #0F131A;
}

.quote-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.quote-modal-close:hover {
    background-color: #f5f5f5;
}

.quote-modal-body {
    padding: 20px;
}

.quote-form-group {
    margin-bottom: 20px;
}

.quote-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #0F131A;
}

.quote-form-group input,
.quote-form-group textarea,
.quote-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.quote-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.quote-form-submit {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
}

.required {
    color: #e74c3c;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}