/* --- Footer Styles --- */
footer {
    background-color: #1c1c1c;
    background-image: linear-gradient(to bottom, #222023, #1e2c47);
    color: #fff;
    padding: 40px 20px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

footer .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

footer a {
    color: #fff;
    text-decoration: none; /* Add this to remove underlines from links */
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap; /* Allow wrapping for small screens */
    gap: 20px; /* Space between logo and social icons */
}

.footerlogo a {
    display: flex;
    align-items: center;
    height: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
}

.footerlogo img {
    height: 40px; /* Base height for logo */
    width: auto;
    max-width: 100%;
    display: block;
}

footer hr {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px; /* Space between columns */
}

.footer-contact,
.workinghours {
    flex: 1; /* Allow items to grow and shrink */
    min-width: 280px; /* Minimum width to prevent content crunching */
    margin-bottom: 20px;
}

.footer-contact hr {
    margin: 15px 0;
}

.footer-social {
    margin-left: auto; /* Pushes social icons to the right */
    display: flex;
    align-items: center;
    gap: 10px; /* Space between social icons */
}

.footer-social a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s ease;
    /* Removed margin-left and padding-left here as gap handles spacing */
}

.footer-social a:not(:first-child) {
    border-left: 1px solid #fff;
    padding-left: 10px; /* Add padding after the border */
}

.footer-social a:hover {
    color: #007bff;
}

.footer-social h3 {
    margin-left: 15px; /* Adjust as needed, might not be necessary if you only have icons */
}

.workinghours p {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Base font sizes for common elements */
footer p,
footer a {
    font-size: 15px;
    line-height: 1.6;
}

footer h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.designer{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-self: start;
}


/* --- Responsive Adjustments --- */

/* Small screens (mobile first) */
@media (max-width: 767px) {
    .footer-top {
        flex-direction: column; /* Stack logo and social vertically */
        align-items: center;
        text-align: center;
    }

    .footer-social {
        margin: 20px auto 0; /* Center social icons below logo */
        justify-content: center;
    }

    .footer-social a:not(:first-child) {
        border-left: none; /* Remove border between social icons on mobile */
        padding-left: 0; /* Remove padding when border is gone */
    }
    
    .footer-social a {
        font-size: 24px; /* Slightly larger icons for better touch targets */
    }

    .footer-content {
        flex-direction: column; /* Stack contact and working hours vertically */
        align-items: center;
        text-align: center;
    }

    .footer-contact,
    .workinghours {
        width: 100%; /* Full width for stacked items */
        margin-left: 0;
        margin-right: 0;
    }

    .footer-contact p,
    .workinghours p,
    footer a {
        font-size: 14px; /* Smaller text for mobile */
    }

    footer h3 {
        font-size: 18px; /* Smaller headings for mobile */
    }

    .footerlogo img {
        height: 35px; /* Adjust logo size for smaller screens */
    }
}

/* Medium screens (tablets) */
@media (min-width: 768px) and (max-width: 1024px) {
    .footer-top {
        justify-content: space-between; /* Keep logo and social on opposite ends */
    }

    .footer-contact,
    .workinghours {
        min-width: unset; /* Remove min-width for more flexible layout */
        width: calc(33% - 20px); /* Distribute space more evenly, accounting for gap */
        text-align: left; /* Align text to the left for better readability */
    }

    .footer-content {
        justify-content: space-around; /* Distribute content with space around */
        gap: 15px;
    }

    .footerlogo img {
        height: 45px; /* Slightly larger logo for tablets */
    }

    footer p,
    footer a {
        font-size: 15px;
    }

    footer h3 {
        font-size: 20px;
    }
}

/* Large screens (desktops and up) */
@media (min-width: 1025px) {
    .footer-contact {
        width: 30%; /* Original width */
    }

    .workinghours {
        margin-left: 50px; /* Maintain original margin */
    }

    .footerlogo img {
        height: 50px; /* Larger logo for desktop */
    }

    footer p,
    footer a {
        font-size: 16px;
    }

    footer h3 {
        font-size: 22px;
    }
}