<?php
/**
 * Footer Template 6
 * 4 columns with newsletter subscription box
 */

if (!defined('ABSPATH')) exit;

$settings = $this->aiautotool_footer_settings;
?>
<style type="text/css">
.aiautotool_footer_6_site {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px 20px 30px;
    border-top: 1px solid #dee2e6;
}
.aiautotool_footer_6_site-footer {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}
.aiautotool_footer_6_footer-column h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #212529;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.aiautotool_footer_6_footer-column p {
    margin: 10px 0;
    color: #6c757d;
    line-height: 1.8;
    font-size: 14px;
}
.aiautotool_footer_6_footer-column a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 8px;
}
.aiautotool_footer_6_footer-column a:hover {
    color: #007bff;
    padding-left: 5px;
}
.aiautotool_footer_6_newsletter {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.aiautotool_footer_6_newsletter h4 {
    margin-bottom: 15px;
    color: #212529;
}
.aiautotool_footer_6_newsletter p {
    font-size: 13px;
    margin-bottom: 15px;
}
.aiautotool_footer_6_newsletter-form {
    display: flex;
    gap: 10px;
}
.aiautotool_footer_6_newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}
.aiautotool_footer_6_newsletter-form button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}
.aiautotool_footer_6_newsletter-form button:hover {
    background: #0056b3;
}
.aiautotool_footer_6_social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.aiautotool_footer_6_social-icons a {
    width: 38px;
    height: 38px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.aiautotool_footer_6_social-icons a:hover {
    background: #007bff;
    transform: translateY(-3px);
}
.aiautotool_footer_6_social-icons svg {
    width: 18px;
    height: 18px;
}
.aiautotool_footer_6_copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 13px;
}
@media only screen and (max-width: 992px) {
    .aiautotool_footer_6_site-footer {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media only screen and (max-width: 768px) {
    .aiautotool_footer_6_site-footer {
        grid-template-columns: 1fr;
    }
    .aiautotool_footer_6_newsletter-form {
        flex-direction: column;
    }
}
</style>

<div class="aiautotool_footer_6_site">
    <footer class="aiautotool_footer_6_site-footer">
        <div class="aiautotool_footer_6_footer-column">
            <h3><?php if(isset($settings['title'])){ echo $settings['title'] ==''? esc_html(get_bloginfo()):esc_html($settings['title']); }else{ echo esc_html( get_bloginfo()); }  ?></h3>
            <p><?php echo esc_html(get_bloginfo('description')); ?></p>
            <div class="aiautotool_footer_6_social-icons">
                <a href="<?php if(isset($settings['facebook'])){  echo $settings['facebook'] ==''? esc_html('#'):esc_url($settings['facebook']);}else{ echo esc_html('#'); } ?>">
                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path fill="#039be5" d="M24 5A19 19 0 1 0 24 43A19 19 0 1 0 24 5Z"></path><path fill="#fff" d="M26.572,29.036h4.917l0.772-4.995h-5.69v-2.73c0-2.075,0.678-3.915,2.619-3.915h3.119v-4.359c-0.548-0.074-1.707-0.236-3.897-0.236c-4.573,0-7.254,2.415-7.254,7.917v3.323h-4.701v4.995h4.701v13.729C22.089,42.905,23.032,43,24,43c0.875,0,1.729-0.08,2.572-0.194V29.036z"></path></svg>
                </a>
                <a href="<?php if(isset($settings['youtube'])){  echo $settings['youtube'] ==''? esc_html('#'):esc_url($settings['youtube']);}else{ echo  esc_html('#');} ?>">
                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path fill="#FF3D00" d="M43.2,33.9c-0.4,2.1-2.1,3.7-4.2,4c-3.3,0.5-8.8,1.1-15,1.1c-6.1,0-11.6-0.6-15-1.1c-2.1-0.3-3.8-1.9-4.2-4C4.4,31.6,4,28.2,4,24c0-4.2,0.4-7.6,0.8-9.9c0.4-2.1,2.1-3.7,4.2-4C12.3,9.6,17.8,9,24,9c6.2,0,11.6,0.6,15,1.1c2.1,0.3,3.8,1.9,4.2,4c0.4,2.3,0.9,5.7,0.9,9.9C44,28.2,43.6,31.6,43.2,33.9z"></path><path fill="#FFF" d="M20 31L20 17 32 24z"></path></svg>
                </a>
                <a href="<?php if(isset($settings['twitter'])){  echo $settings['twitter'] ==''? esc_html('#'):esc_url($settings['twitter']);}else{ echo esc_html('#');} ?>">
                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path fill="#03A9F4" d="M42,12.429c-1.323,0.586-2.746,0.977-4.247,1.162c1.526-0.906,2.7-2.351,3.251-4.058c-1.428,0.837-3.01,1.452-4.693,1.776C34.967,9.884,33.05,9,30.926,9c-4.08,0-7.387,3.278-7.387,7.32c0,0.572,0.067,1.129,0.193,1.67c-6.138-0.308-11.582-3.226-15.224-7.654c-0.64,1.082-1,2.349-1,3.686c0,2.541,1.301,4.778,3.285,6.096c-1.211-0.037-2.351-0.374-3.349-0.914c0,0.022,0,0.055,0,0.086c0,3.551,2.547,6.508,5.923,7.181c-0.617,0.169-1.269,0.263-1.941,0.263c-0.477,0-0.942-0.054-1.392-0.135c0.94,2.902,3.667,5.023,6.898,5.086c-2.528,1.96-5.712,3.134-9.174,3.134c-0.598,0-1.183-0.034-1.761-0.104C9.268,36.786,13.152,38,17.321,38c13.585,0,21.017-11.156,21.017-20.834c0-0.317-0.01-0.633-0.025-0.945C39.763,15.197,41.013,13.905,42,12.429"></path></svg>
                </a>
            </div>
        </div>

        <div class="aiautotool_footer_6_footer-column">
            <h3><?php esc_html_e('Company', 'ai-auto-tool'); ?></h3>
            <p><a href="<?php echo esc_url(home_url('/about')); ?>"><?php esc_html_e('About Us', 'ai-auto-tool'); ?></a></p>
            <p><a href="<?php echo esc_url(home_url('/services')); ?>"><?php esc_html_e('Services', 'ai-auto-tool'); ?></a></p>
            <p><a href="<?php echo esc_url(home_url('/team')); ?>"><?php esc_html_e('Our Team', 'ai-auto-tool'); ?></a></p>
            <p><a href="<?php echo esc_url(home_url('/careers')); ?>"><?php esc_html_e('Careers', 'ai-auto-tool'); ?></a></p>
        </div>

        <div class="aiautotool_footer_6_footer-column">
            <h3><?php esc_html_e('Support', 'ai-auto-tool'); ?></h3>
            <p><a href="<?php echo esc_url(home_url('/contact')); ?>"><?php esc_html_e('Contact', 'ai-auto-tool'); ?></a></p>
            <p><a href="<?php echo esc_url(home_url('/faq')); ?>"><?php esc_html_e('FAQ', 'ai-auto-tool'); ?></a></p>
            <p><a href="<?php echo esc_url(home_url('/privacy-policy')); ?>"><?php esc_html_e('Privacy Policy', 'ai-auto-tool'); ?></a></p>
            <p><a href="<?php echo esc_url(home_url('/terms')); ?>"><?php esc_html_e('Terms', 'ai-auto-tool'); ?></a></p>
        </div>

        <div class="aiautotool_footer_6_footer-column">
            <div class="aiautotool_footer_6_newsletter">
                <h4><?php esc_html_e('Newsletter', 'ai-auto-tool'); ?></h4>
                <p><?php esc_html_e('Subscribe to get updates', 'ai-auto-tool'); ?></p>
                <form class="aiautotool_footer_6_newsletter-form" onsubmit="return false;">
                    <input type="email" placeholder="<?php esc_attr_e('Your email', 'ai-auto-tool'); ?>" required>
                    <button type="submit"><?php esc_html_e('Subscribe', 'ai-auto-tool'); ?></button>
                </form>
            </div>
        </div>
    </footer>
    <div class="aiautotool_footer_6_copyright">
        <p>© <?php echo esc_html(date('Y')); ?> <?php if(isset($settings['title'])){ echo $settings['title'] ==''? esc_html(parse_url(home_url(), PHP_URL_HOST)):esc_html($settings['title']); }else{ echo esc_html(parse_url(home_url(), PHP_URL_HOST)); }  ?>. <?php esc_html_e('All rights reserved.', 'ai-auto-tool'); ?></p>
    </div>
</div>






