/**
 * Theme Name: Astra Child
 * Theme URI: https://wpastra.com/
 * Description: Astra Child Theme for VIN Verification Services
 * Author: Your Name
 * Author URI: https://yourwebsite.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
 */

/* Custom Footer Styles */
#custom-footer {
    background-color: #000;
    color: #f5f5f5;
    font-family: inherit;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.footer-main {
    padding: 60px 0 40px;
    position: relative;
}

/* Add subtle triangular pattern to the footer background */
.footer-main:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(135deg, rgba(128, 0, 128, 0.05) 25%, transparent 25%), 
                      linear-gradient(225deg, rgba(128, 0, 128, 0.05) 25%, transparent 25%), 
                      linear-gradient(315deg, rgba(128, 0, 128, 0.05) 25%, transparent 25%), 
                      linear-gradient(45deg, rgba(128, 0, 128, 0.05) 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: 0.5;
    z-index: -1;
}

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

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -15px;
}

.footer-column {
    flex: 1;
    padding: 0 15px;
    min-width: 200px;
    margin-bottom: 30px;
}

.about-column {
    flex: 1.5;
}

.contact-column {
    flex: 1.2;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-image {
    max-height: 60px;
    width: auto;
    filter: brightness(1.05);
    transition: filter 0.3s ease;
}

.footer-logo:hover .footer-logo-image {
    filter: brightness(1.2);
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.85;
    font-size: 14px;
    line-height: 1.7;
}

/* Vehicle icons styling */
.footer-vehicles {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.vehicle-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 12px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    width: 70px;
    text-align: center;
}

.vehicle-icon i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #39FF14;
    transition: all 0.3s ease;
}

.vehicle-icon .icon-label {
    font-size: 12px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.vehicle-icon:hover {
    transform: translateY(-5px);
    background-color: rgba(128, 0, 128, 0.15);
    box-shadow: 0 5px 15px rgba(57, 255, 20, 0.15);
}

.vehicle-icon:hover i {
    color: #fff;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.7);
}

.vehicle-icon:hover .icon-label {
    color: #39FF14;
}

/* Specific vehicle icon hover effects */
.car-icon:hover i {
    animation: carMove 1s ease infinite;
}

.bike-icon:hover i {
    animation: bikeMove 1s ease infinite;
}

.boat-icon:hover i {
    animation: boatMove 1.5s ease infinite;
}

.truck-icon:hover i {
    animation: truckMove 1s ease infinite;
}

@keyframes carMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

@keyframes bikeMove {
    0%, 100% { transform: translateX(0) rotate(0); }
    50% { transform: translateX(3px) rotate(2deg); }
}

@keyframes boatMove {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes truckMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

.footer-heading {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-heading:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #39FF14, rgba(128, 0, 128, 0.7));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-column:hover .footer-heading:after {
    width: 60px;
}

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

.footer-links li {
    margin-bottom: 12px;
    position: relative;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.footer-links a:before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #39FF14;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #39FF14;
    padding-left: 5px;
}

.footer-links a:hover:before {
    width: 100%;
}

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

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

.footer-contact-info i {
    color: #39FF14;
    margin-right: 12px;
    margin-top: 5px;
    transition: transform 0.3s ease;
}

.footer-contact-info li:hover i {
    transform: scale(1.2);
}

.footer-contact-info a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: #39FF14;
}

/* Newsletter Section */
.footer-newsletter {
    background-color: #111;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.footer-newsletter:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(57, 255, 20, 0.05), rgba(128, 0, 128, 0.05));
    z-index: 0;
}

.newsletter-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.newsletter-text {
    flex: 1;
    margin-right: 30px;
    margin-bottom: 20px;
}

.newsletter-text h3 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 20px;
}

.newsletter-text p {
    margin: 0;
    opacity: 0.8;
}

.newsletter-form {
    flex: 1;
    min-width: 300px;
}

.newsletter-subscribe-form {
    display: flex;
    max-width: 500px;
    position: relative;
}

.newsletter-subscribe-form input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-subscribe-form input[type="email"]:focus {
    border-color: #39FF14;
    box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.2);
    outline: none;
}

.newsletter-subscribe-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.subscribe-btn {
    padding: 0 25px;
    border: none;
    background: linear-gradient(45deg, #39FF14, #32CD32);
    color: #000;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    position: relative;
    overflow: hidden;
}

.subscribe-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.subscribe-btn:hover {
    background: linear-gradient(45deg, #32CD32, #39FF14);
    box-shadow: 0 5px 15px rgba(57, 255, 20, 0.3);
}

.subscribe-btn:hover:before {
    left: 100%;
}

/* Copyright Bar */
.footer-copyright {
    padding: 25px 0;
    background-color: #0a0a0a;
}

.copyright-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.copyright-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-legal-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #39FF14;
    transition: width 0.3s ease;
}

.footer-legal-links a:hover {
    color: #39FF14;
}

.footer-legal-links a:hover:after {
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .footer-row {
        flex-direction: column;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 40px;
    }
    
    /* Ensure the last column doesn't have extra margin */
    .footer-column:last-child {
        margin-bottom: 0;
    }
    
    .newsletter-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .newsletter-text {
        margin-right: 0;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .newsletter-form {
        width: 100%;
    }
    
    /* Make vehicle icons more prominent on tablets */
    .footer-vehicles {
        justify-content: flex-start;
    }
    
    .vehicle-icon {
        width: 65px;
    }
}

@media (max-width: 767px) {
    .footer-main {
        padding: 40px 0 20px;
    }
    
    .copyright-content {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright-text {
        margin-bottom: 15px;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
    
    .footer-legal-links a {
        margin: 0 10px 10px;
    }
}

@media (max-width: 480px) {
    .newsletter-subscribe-form {
        flex-direction: column;
    }
    
    .newsletter-subscribe-form input[type="email"] {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .subscribe-btn {
        border-radius: 4px;
        width: 100%;
        padding: 12px;
        margin-left: 0;
    }
    
    /* Stack vehicle icons on very small screens */
    .footer-vehicles {
        gap: 10px;
    }
    
    .vehicle-icon {
        width: calc(50% - 10px);
        flex-direction: row;
        justify-content: center;
    }
    
    .vehicle-icon i {
        margin-bottom: 0;
        margin-right: 5px;
    }
}

/* 1. Make the header sticky */
#masthead.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #000000;
    transition: border-bottom 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid transparent;
    margin-top: 0 !important; /* Override any negative margin */
    transform: none !important; /* Override any transform */
}

/* 2. Add space to the top of the body */
body {
    padding-top: 71px; /* Matches the header height of 71px */
}

/* 3. Style for the header WHEN SCROLLED */
#masthead.site-header.header-scrolled {
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(250, 250, 250, 0.08);
}

/* Remove margin-top from the first content element */
.site-content > :first-child {
    margin-top: 0 !important;
}

/* 4. Glowing underline hover effect for menu items */
#masthead .main-navigation ul li a {
    position: relative;
    text-decoration: none;
    padding-bottom: 2px; /* Space for the underline */
}

/* Pseudo-element for the underline */
#masthead .main-navigation ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px; /* Thickness of the underline */
    background-color: #39FF14; /* Neon green, adjust as needed */
    transition: width 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect: expand the underline and add glow */
#masthead .main-navigation ul li a:hover::after {
    width: 100%;
    box-shadow: 0 0 10px #39FF14, 0 0 20px #39FF14, 0 0 30px #39FF14; /* Glowing effect */
}

/* Optional: Style for active/current menu item */
#masthead .main-navigation ul li.current-menu-item a::after {
    width: 100%;
    box-shadow: 0 0 10px #39FF14, 0 0 20px #39FF14, 0 0 30px #39FF14;
}

