/* ==============================
   FOOTER MAIN STYLING
============================== */

.site-footer {
    position: relative;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    color: var(--light-text);
    background: var(--secondary-color);
}

.site-footer .container {
    width: 100%;
    max-width: 1320px;
    margin: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* ==============================
   NEWSLETTER SECTION
============================== */

.newsletter-section {
    position: relative;
    background: var(--primary-color);
    min-height: 117px;
    z-index: 2;
}

.newsletter-inner {
    min-height: 117px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    position: relative;
}

.newsletter-image {
    position: absolute;
    left: -125px;
    top: 0;
    width: 195px;
    height: 195px;
    border-radius: 50%;
    padding: 5px;
    background: var(--secondary-color);
    border: 3px solid var(--light-text);
    z-index: 5;
}

.newsletter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--light-text);
}

.newsletter-heading {
    margin-left: 0;
    padding-left: 0;
    flex: 0 0 38%;
}

.newsletter-heading h2 {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 5px;
    color: var(--light-text);
}

.newsletter-heading h2 strong {
    font-weight: 700;
}

.newsletter-heading p {
    font-size: 13px;
    margin: 0;
    color: var(--light-text);
}

.newsletter-heading a {
    color: var(--light-text);
    text-decoration: underline;
}

.newsletter-form {
    display: flex;
    width: 62%;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: var(--section-bg);
    padding: 0 25px;
    font-size: 16px;
    color: var(--heading-color);
}

.newsletter-form button {
    border: none;
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 0 22px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--light-text);
}

.newsletter-form button span {
    margin-left: 8px;
}

/* ==============================
   MAIN FOOTER
============================== */

.main-footer {
    background: var(--secondary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.18fr;
    min-height: 398px;
}

/* Company Section */

.footer-company {
    padding: 78px 45px 20px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--light-text);
    text-decoration: none;
}

.footer-brand-icon {
    width: 47px;
    height: 47px;
    border-radius: 50%;
    background: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: var(--light-text);
}

.footer-brand strong {
    display: block;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--light-text);
}

.footer-brand small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--light-text);
}

.company-description {
    max-width: 455px;
    margin: 24px 0 38px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.social-follow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--secondary-light);
    border-radius: 4px;
}

.social-follow strong {
    font-size: 15px;
    margin-right: 2px;
    color: var(--light-text);
}

.social-follow a {
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: var(--light-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.social-follow a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--secondary-color);
}

.copyright {
    margin: 38px 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

/* ==============================
   FOOTER LINKS
============================== */

.footer-links-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 77px 0 30px 32px;
}

.footer-link-column h3 {
    display: inline-block;
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 30px;
    color: var(--light-text);
    text-decoration: underline;
    text-underline-offset: 5px;
}

.footer-link-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-column ul li {
    margin-bottom: 19px;
}

.footer-link-column ul li a {
    position: relative;
    display: inline-block;
    padding-left: 30px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-link-column ul li a::before {
    content: "≫";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-light);
    font-size: 17px;
}

.footer-link-column ul li a:hover {
    color: var(--accent-color);
    padding-left: 35px;
}

/* ==============================
   CONTACT INFORMATION BAR
============================== */

.footer-contact-bar {
    background: var(--secondary-color);
    padding: 29px 0;
}

.footer-contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-icon {
    min-width: 34px;
    width: 34px;
    height: 34px;
    background: var(--accent-color);
    color: var(--secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.contact-item small {
    display: block;
    font-size: 12px;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
    display: block;
    color: var(--light-text);
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    text-decoration: none;
    line-height: 1.5;
}

/* ==============================
   BACK TO TOP
============================== */

.back-to-top {
    position: absolute;
    right: 23px;
    bottom: 65px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    transition: var(--transition);
}

.back-to-top:hover {
    color: var(--accent-color);
}

/* ==============================
   RESPONSIVE DESIGN
============================== */

@media (max-width: 1100px) {

    .newsletter-image {
        left: -15px;
        width: 130px;
        height: 130px;
    }

    .newsletter-heading {
        padding-left: 125px;
        flex: 1;
    }

    .newsletter-heading h2 {
        font-size: 29px;
    }

    .newsletter-form {
        width: 50%;
    }

    .footer-main-grid {
        grid-template-columns: 1fr 1.3fr;
    }

    .footer-links-area {
        gap: 15px;
        padding-left: 25px;
    }

    .footer-contact-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 25px;
    }
}

@media (max-width: 767px) {

    .newsletter-section {
        padding: 25px 0;
    }

    .newsletter-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .newsletter-image {
        position: relative;
        left: auto;
        top: auto;
        width: 95px;
        height: 95px;
        margin: 0 auto;
    }

    .newsletter-heading {
        padding: 0;
        text-align: center;
    }

    .newsletter-heading h2 {
        font-size: 28px;
    }

    .newsletter-heading p {
        font-size: 11px;
    }

    .newsletter-form {
        width: 100%;
        height: 50px;
    }

    .newsletter-form input {
        padding: 0 12px;
        font-size: 13px;
    }

    .newsletter-form button {
        padding: 0 12px;
        font-size: 12px;
    }

    .footer-main-grid {
        grid-template-columns: 1fr;
    }

    .footer-company {
        padding: 40px 10px 30px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    }

    .company-description {
        margin: 20px 0 25px;
        font-size: 14px;
    }

    .copyright {
        font-size: 12px;
        margin-top: 28px;
    }

    .footer-links-area {
        grid-template-columns: repeat(2, 1fr);
        padding: 35px 10px;
        gap: 30px 15px;
    }

    .footer-link-column h3 {
        font-size: 17px;
        margin-bottom: 20px;
    }

    .footer-link-column ul li {
        margin-bottom: 15px;
    }

    .footer-link-column ul li a {
        font-size: 13px;
    }

    .footer-contact-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-contact-bar {
        padding: 30px 10px;
    }

    .back-to-top {
        right: 7px;
        bottom: 25px;
        font-size: 9px;
    }
}

@media (max-width: 380px) {

    .footer-links-area {
        grid-template-columns: 1fr;
    }

    .newsletter-heading h2 {
        font-size: 24px;
    }

    .newsletter-form button {
        font-size: 11px;
    }

    .social-follow {
        gap: 8px;
        padding: 10px 12px;
    }
}