/* Footer Styles - Red & Black Theme - Reduced Spacing */
.footer {
    background-color: #000;
    color: #fff;
    padding: 40px 0 20px;
    position: relative;
}

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

/* Contact Section - Reduced Spacing */
.contact-section {
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(211, 47, 47, 0.3);
    margin-bottom: 25px;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 300px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(211, 47, 47, 0.4);
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--snh-red);
}

.contact-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.35), rgba(211, 47, 47, 0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(211, 47, 47, 0.5);
}

.contact-item:hover .contact-icon {
    background: rgba(211, 47, 47, 0.45);
    border-color: #ff5252;
    transform: scale(1.05);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    fill: #ff6b6b;
}

.contact-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.contact-info p {
    margin: 0;
    color: #f2f2f2;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 500;
}

.contact-info a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ff8a80;
}

.contact-item:hover .contact-info p {
    color: #ffffff;
}

/* Footer Content - Reduced Spacing */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    margin-bottom: 25px;
}

/* Brand Section */
.footer-brand {
    flex: 1.2;
    min-width: 260px;
}

.footer-brand h2 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.footer-brand h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--snh-red);
}

.footer-brand p {
    color: #999;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 13px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon svg {
    width: 16px;
    height: 16px;
    fill: #999;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--snh-red);
    border-color: var(--snh-red);
    transform: translateY(-2px);
}

.social-icon:hover svg {
    fill: #fff;
}

/* Footer Links Container */
.footer-links-container {
    display: flex;
    gap: 50px;
    flex: 1;
    min-width: 260px;
}

.footer-links {
    flex: 1;
}

.footer-links h3 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--snh-red);
}

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

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

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--snh-red);
    transform: translateX(4px);
}

/* Newsletter Section */
.newsletter {
    flex: 1;
    min-width: 280px;
}

.newsletter h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    position: relative;
    padding-bottom: 8px;
}

.newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--snh-red);
}

.newsletter p {
    color: #999;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 13px;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.newsletter-input {
    flex: 1;
    min-width: 160px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 13px;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--snh-red);
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-input::placeholder {
    color: #666;
}

.newsletter-btn {
    padding: 10px 20px;
    background: var(--snh-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 13px;
}

.newsletter-btn:hover {
    background: var(--snh-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

/* AutoTrader Box */
.autotrader-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    max-width: 100%;
    margin-top: 15px;
    border: 1px solid rgba(211, 47, 47, 0.2);
    transition: all 0.3s ease;
}

.autotrader-box:hover {
    border-color: var(--snh-red);
    background: rgba(211, 47, 47, 0.05);
    transform: translateY(-2px);
}

.autotrader-logo {
    max-width: 100px;
    margin-bottom: 8px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.autotrader-box .rating {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    margin: 0;
}

.autotrader-box .rating span {
    color: var(--snh-red);
    font-weight: 700;
    font-size: 16px;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 12px;
}

.footer-copyright p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-content {
        gap: 30px;
    }

    .footer-links-container {
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px;
    }

    .contact-section {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .contact-container {
        flex-direction: column;
        gap: 15px;
    }

    .contact-item {
        min-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 20px;
    }

    .footer-brand,
    .footer-links-container,
    .newsletter {
        min-width: 100%;
    }

    .footer-links-container {
        flex-direction: column;
        gap: 25px;
    }

    .footer-links h3::after,
    .newsletter h3::after {
        left: 0;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }

    .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 15px;
    }

    .contact-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 20px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon svg {
        width: 24px;
        height: 24px;
    }

    .contact-info h3 {
        font-size: 16px;
    }

    .contact-info p {
        font-size: 14px;
    }

    .footer-brand h2 {
        font-size: 22px;
    }

    .footer-links h3,
    .newsletter h3 {
        font-size: 15px;
    }

    .autotrader-box {
        text-align: left;
    }
}

/* Footer Logo - White with Border Radius */
.footer-logo {
    margin-bottom: 18px;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1); /* Makes the logo white */
    border-radius: 12px; /* Adds border radius */
}

/* If you want rounded corners on specific sides */
.footer-logo img {
    border-radius: 12px 12px 12px 12px; /* All corners */
}

/* Or different radius for each corner */
.footer-logo img {
    border-radius: 12px 12px 12px 12px; /* Top-Left, Top-Right, Bottom-Right, Bottom-Left */
}

/* For circular logo (if logo is square) */
.footer-logo img {
    border-radius: 50%;
}

/* With background and padding for better visibility */
.footer-logo img {
    max-width: 180px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1); /* Optional: subtle background */
    padding: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-logo img {
        max-width: 140px;
        margin: 0 auto;
        border-radius: 8px;
    }
}
