/* footer-section.css */

.footer {
    background-color: #FFF9E6;
    padding: 3rem 0 2rem;
}

.footer__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3.5rem;
}

/* Top Section */
.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Brand & Navigation */
.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
}

.footer__logo {
    width: 120px;
}

.footer__logo-img {
    width: 130%;
    height: auto;
    display: block;
}

.footer__nav {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer__nav-link {
    color: #111;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer__nav-link:hover {
    color: #FDB913;
}

/* Newsletter */
.footer__newsletter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
    text-align: right;
    flex: 1;
    max-width: 500px;
}

.footer__newsletter-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #111;
    margin: 0;
}

.footer__newsletter-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.footer__newsletter-input {
    flex: 1;
    padding: 0.75rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: #fff;
    min-width: 0;
}

.footer__newsletter-input:focus {
    border-color: #FDB913;
}

.footer__newsletter-input::placeholder {
    color: #999;
}

.footer__newsletter-btn {
    background-color: #FDB913;
    color: #111;
    border: none;
    padding: 0.75rem 1.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer__newsletter-btn:hover {
    background-color: #E5A610;
    transform: translateY(-2px);
}

.footer__newsletter-btn:active {
    transform: translateY(0);
}

/* Bottom Section */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    gap: 2rem;
}

.footer__links {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer__link {
    color: #111;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer__link:hover {
    color: #FDB913;
}

/* Social Icons */
.footer__social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 32px;
    height: 32px;
}

.footer__social-link:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.footer__social-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* -------------------------------------------------
   Responsive Design
   ------------------------------------------------- */
@media (max-width: 1200px) {
    .footer__container {
        padding: 0 3rem;
    }

    .footer__nav {
        gap: 2rem;
    }

    .footer__links {
        gap: 2rem;
    }
}
@media (max-width: 992px) {
    .footer__container {
        padding: 0 2rem;
    }

    .footer__top {
        flex-direction: column;
        gap: 3rem;
        align-items: center;
        /* Center children horizontally */
        text-align: center;
        /* Center text */
    }

    .footer__newsletter {
        align-items: center;
        /* Center form elements */
        text-align: center;
        /* Center text */
        max-width: 100%;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: center;
        /* Center all bottom items */
        gap: 2rem;
        text-align: center;
    }

    .footer__social {
        align-self: center;
        /* Ensures social icons stay centered */
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer__container {
        padding: 0 1.5rem;
    }

    .footer__top {
        padding-bottom: 2rem;
        gap: 2.5rem;
        align-items: center;
        text-align: center;
    }

    .footer__nav {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
        /* Center nav links */
    }

    .footer__nav-link {
        font-size: 0.9rem;
    }


    .footer__links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
        /* Center footer links */
    }

    .footer__link {
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .footer__container {
        padding: 0 1rem;
    }

    .footer__logo {
        width: 100px;
        /* display: block; */
        margin: 0 auto;
        /* Center logo */
    }

    .footer__nav {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        /* Center nav links vertically stacked */
    }

    .footer__newsletter-text {
        font-size: 0.85rem;
    }



    .footer__links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        /* Center links in column */
    }

    .footer__bottom {
        padding-top: 1.5rem;
        gap: 1.5rem;
        align-items: center;
    }

    .footer__social-link {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer__top {
        gap: 2rem;
        align-items: center;
        text-align: center;
    }

    .footer__nav-link {
        font-size: 0.85rem;
    }

    .footer__link {
        font-size: 0.8rem;
    }

    .footer__social {
        gap: 0.75rem;
        justify-content: center;
        /* Center social icons */
    }

    .footer__social-link {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 360px) {
    .footer__container {
        padding: 0 0.75rem;
    }

    .footer__logo {
        width: 90px;
        margin: 0 auto;
        display: block;
    }
}

.footer__newsletter-message {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border-radius: 0.3rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.footer__newsletter-message.success {
    display: block;
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.footer__newsletter-message.error {
    display: block;
    background-color: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.footer__newsletter-input.error {
    border-color: #ff4444;
    animation: shake 0.5s;
}

.footer__newsletter-btn.success {
    background-color: #28a745;
    color: white;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .footer__newsletter-form {
        width: 100%;
    }

    .footer__newsletter-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer__newsletter-input {
        width: 100%;
    }

    .footer__newsletter-btn {
        width: 100%;
    }
}