@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* =========================================
   1. BASE STYLES (Desktop & Global)
   ========================================= */
:root {
    --footer-bg-color: #1a1a1a;
    --footer-text-color: #a3a3a3;
    --footer-link-hover-color: #ffffff;
    --footer-heading-color: #ffffff;
    --footer-border-color: #3a3a3a;
    --footer-social-icon-hover-bg: #333333;
    --footer-accent-color: #007bff;
}

.unique-footer {
    font-family: 'Roboto', sans-serif;
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 60px 0 20px 0;
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden; /* Prevents horizontal scroll on small screens */
}

.unique-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    /* Base grid: Fits as many columns as possible, min width 220px */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.unique-footer .footer-about,
.unique-footer .footer-links,
.unique-footer .footer-contact,
.unique-footer .footer-newsletter {
    padding: 0 5px; /* Reduced side padding to fit grid better */
}

/* Logo Section */
.unique-footer .footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.unique-footer .footer-logo img {
    height: 40px;
    margin-right: 12px;
    object-fit: contain;
}

.unique-footer .footer-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--footer-heading-color);
}

.unique-footer .footer-about p {
    margin-bottom: 20px;
}

/* Headings */
.unique-footer h4 {
    color: var(--footer-heading-color);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.unique-footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--footer-accent-color);
    transition: left 0.3s ease, transform 0.3s ease;
}

/* Links List */
.unique-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.unique-footer ul li {
    margin-bottom: 12px;
}

.unique-footer ul li a {
    color: var(--footer-text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.unique-footer ul li a:hover {
    color: var(--footer-link-hover-color);
    transform: translateX(5px); /* Move right on hover */
}

/* Contact Section */
.unique-footer .footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.unique-footer .footer-contact a {
    color: var(--footer-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.unique-footer .footer-contact a:hover {
    color: var(--footer-link-hover-color);
}

/* Newsletter Form */
.unique-footer .newsletter-form {
    display: flex;
    margin-top: 15px;
    position: relative;
}

.unique-footer .newsletter-form input {
    width: 100%;
    padding: 12px;
    border-radius: 4px 0 0 4px;
    border: 1px solid var(--footer-border-color);
    background-color: #2a2a2a;
    color: white;
    font-family: inherit;
    outline: none;
}

.unique-footer .newsletter-form input:focus {
    border-color: var(--footer-accent-color);
}

.unique-footer .newsletter-form button {
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    border: none;
    background-color: var(--footer-accent-color);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.unique-footer .newsletter-form button:hover {
    background-color: #0056b3;
}

/* Social Icons (Standard & Image based) */
.unique-footer .footer-socials {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.unique-footer .footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2a2a2a;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.unique-footer .footer-socials a:hover {
    background-color: var(--footer-accent-color);
    transform: translateY(-3px);
}

/* Image based socials support */
.unique-footer .footer-socials-img {
    margin-top: 15px;
}
.unique-footer .footer-socials-img img {
    height: 32px;
    width: 32px;
    margin-right: 8px;
    vertical-align: middle;
    transition: transform 0.2s;
}
.unique-footer .footer-socials-img a:hover img {
    transform: scale(1.1);
}

/* Footer Bottom */
.unique-footer .footer-bottom {
    text-align: center;
    padding: 25px 0 0;
    margin-top: 50px;
    border-top: 1px solid var(--footer-border-color);
    font-size: 13px;
}

.unique-footer .footer-bottom a {
    color: var(--footer-text-color);
    text-decoration: none;
    margin: 0 10px;
    display: inline-block;
}

.unique-footer .footer-bottom a:hover {
    color: var(--footer-link-hover-color);
}


/* =========================================
   2. MEDIA QUERIES (Responsive Logic)
   ========================================= */

/* --- Tablet (Max 786px) --- */
@media screen and (max-width: 786px) {
    .unique-footer { padding: 50px 0 20px; }
    
    .unique-footer .footer-container {
        /* Force 2 columns layout on tablet (2x2 grid) */
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* On tablet, we usually keep text left-aligned for readability, 
       unlike mobile where we center. */
}

/* --- Large Mobile (Max 650px) --- */
@media screen and (max-width: 650px) {
    .unique-footer { padding: 40px 0 20px; }

    .unique-footer .footer-container {
        /* Stack everything in 1 column */
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    /* Center Align Components */
    .unique-footer .footer-logo { justify-content: center; }
    
    .unique-footer h4::after {
        left: 50%;
        transform: translateX(-50%); /* Centers the underline */
    }

    .unique-footer .footer-socials { justify-content: center; }
    .unique-footer .footer-contact p { justify-content: center; }
    
    /* Ensure list items don't have the hover slide effect when centered 
       (looks weird centering + sliding) */
    .unique-footer ul li a:hover { transform: none; padding-left: 5px; }
}

/* --- Standard Mobile (Max 540px) --- */
@media screen and (max-width: 540px) {
    .unique-footer .footer-logo-text { font-size: 20px; }
    .unique-footer h4 { font-size: 16px; margin-bottom: 15px; }
    
    .unique-footer .newsletter-form input { padding: 10px; }
    
    /* Stack footer bottom links vertically */
    .unique-footer .footer-bottom a {
        display: block;
        margin: 5px 0;
    }
}

/* --- Small Mobile (Max 430px) --- */
@media screen and (max-width: 430px) {
    .unique-footer .footer-container { padding: 0 15px; }
    
    /* Adjust Newsletter Form for tight width */
    .unique-footer .newsletter-form {
        flex-direction: column; /* Stack input on top of button */
        gap: 10px;
    }
    
    .unique-footer .newsletter-form input {
        border-radius: 4px;
        width: 100%;
        box-sizing: border-box; /* Ensures padding doesn't break width */
    }
    
    .unique-footer .newsletter-form button {
        width: 100%;
        border-radius: 4px;
        padding: 10px;
    }
}

/* --- Tiny Mobile (Max 320px) --- */
@media screen and (max-width: 320px) {
    .unique-footer { padding: 30px 0 15px; }
    .unique-footer .footer-container { gap: 30px; }
    
    .unique-footer .footer-logo img { height: 30px; }
    .unique-footer .footer-logo-text { font-size: 18px; }
    
    /* Reduce margins */
    .unique-footer .footer-about p { font-size: 13px; margin-bottom: 15px; }
    .unique-footer ul li { margin-bottom: 8px; }
    
    /* Wrap socials if too many */
    .unique-footer .footer-socials { gap: 8px; }
    .unique-footer .footer-socials a { width: 35px; height: 35px; }
}

/* --- Micro / Watch (Max 220px) --- */
@media screen and (max-width: 220px) {
    /* Extreme minimal view */
    .unique-footer .footer-logo { flex-direction: column; gap: 5px; }
    .unique-footer .footer-logo-text { font-size: 16px; }
    
    /* Hide non-critical descriptions to save space */
    .unique-footer .footer-about p { display: none; }
    
    .unique-footer h4 { font-size: 14px; margin-bottom: 10px; }
    .unique-footer h4::after { display: none; /* Remove underline */ }
    
    .unique-footer ul li { font-size: 12px; }
    
    /* Simplify button */
    .unique-footer .newsletter-form button { font-size: 12px; text-transform: uppercase; }
    
    .unique-footer .footer-bottom { font-size: 10px; margin-top: 20px; }
}