/**
 * Footer Component Styles
 * BEM Methodology
 * Mobile-first responsive design
 * Based on Figma design node-id=181-1427
 */

/* ==========================================================================
   Footer Block
   ========================================================================== */

.site-footer {
    background-color: var(--color-grey-08);
    color: var(--color-white);
}

/* ==========================================================================
   Footer Main Container
   ========================================================================== */

.site-footer__main {
    padding: 60px 0;
    max-width: 357px;
    margin: 0 auto;
}

/* ==========================================================================
   Logo and Newsletter Section
   ========================================================================== */

.site-footer__logo-newsletter {
    margin-bottom: 50px;
}

/* ==========================================================================
   Footer Logo Block
   ========================================================================== */

.site-footer__logo {
    height: 34px;
    width: 113.33px;
    margin-bottom: 20px;
}

.site-footer__logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   Newsletter Form Block
   ========================================================================== */

.site-footer__newsletter {
    background-color: var(--color-grey-08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--card-border-radius);
    height: 52px;
    position: relative;
    /* width: 357px; */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-footer__newsletter:focus-within {
    border-color: var(--color-purple-60);
    box-shadow: 0 0 0 2px rgba(112, 59, 247, 0.2);
}

.site-footer__newsletter-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    position: absolute;
    left: 20px;
    top: 16px;
}

.site-footer__newsletter-input {
    position: absolute;
    left: 54px;
    top: 14px;
    /* width: 261px; */
    height: 24px;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: 14px;
    line-height: 24px;
    letter-spacing: -0.084px;
    padding: 0;
    outline: none;
}

.site-footer__newsletter-input::placeholder {
    color: var(--color-grey-60);
}

.site-footer__newsletter-input:focus {
    outline: none;
}

.site-footer__newsletter-submit {
    position: absolute;
    right: 20px;
    top: 14px;
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.site-footer__newsletter-submit:hover {
    transform: scale(1.1);
}

.site-footer__newsletter-submit-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   Footer Links Container
   ========================================================================== */

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================================================
   Footer Links Row Block
   ========================================================================== */

.site-footer__links-row {
    display: flex;
    width: 100%;
    position: relative;
    min-height: 212px;
    gap: 40px;
}

/* ==========================================================================
   Footer Links Column Block
   ========================================================================== */

.site-footer__links-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-footer__column-title {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: 16px;
    line-height: 24px;
    color: var(--color-grey-60);
    letter-spacing: -0.096px;
    white-space: nowrap;
}

.site-footer__links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__link {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: 14px;
    line-height: 24px;
    color: var(--color-white);
    letter-spacing: -0.084px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.site-footer__link:hover {
    color: var(--color-purple-60);
}

.site-footer__link:focus {
    outline: 2px solid var(--color-purple-60);
    outline-offset: 2px;
}

/* ==========================================================================
   Footer Divider Element
   ========================================================================== */

.site-footer__divider {
    position: absolute;
    left: 178.5px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Social Icons Block
   ========================================================================== */

.site-footer__social {
    height: 60px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    margin-bottom: 20px;
    width: 357px;
    position: relative;
}

/* ==========================================================================
   Social Button Element
   ========================================================================== */

.site-footer__social-button {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: var(--color-grey-08);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.site-footer__social-button[data-node-id="181-1497"] {
    left: 30.5px;
}

.site-footer__social-button[data-node-id="181-1498"] {
    left: 98.5px;
}

.site-footer__social-button[data-node-id="181-1499"] {
    left: 166.5px;
}

.site-footer__social-button[data-node-id="181-1500"] {
    left: 234.5px;
}

/* Desktop social button positioning */
@media (min-width: 1200px) {
    .site-footer__social-button[data-node-id-desktop="139-7329"] {
        left: 0;
        width: 40px;
        height: 40px;
    }

    .site-footer__social-button[data-node-id-desktop="139-7332"] {
        left: 48px;
        width: 40px;
        height: 40px;
    }

    .site-footer__social-button[data-node-id-desktop="139-7335"] {
        left: 96px;
        width: 40px;
        height: 40px;
    }

    .site-footer__social-button[data-node-id-desktop="139-7338"] {
        left: 144px;
        width: 40px;
        height: 40px;
    }
}

.site-footer__social-button:hover {
    transform: scale(1.05);
    background-color: var(--color-purple-60);
}

.site-footer__social-button:focus {
    outline: 2px solid var(--color-purple-60);
    outline-offset: 2px;
}

.site-footer__social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ==========================================================================
   Footer Bottom Links
   ========================================================================== */

.site-footer__bottom {
    background-color: var(--color-grey-10);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__sub-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.site-footer__bottom-link {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: 14px;
    line-height: 24px;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer__bottom-link:hover {
    color: var(--color-purple-60);
}

.site-footer__copyright {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: 14px;
    line-height: 24px;
    color: var(--color-grey-60);
    letter-spacing: -0.084px;
    text-align: center;
}

/* ==========================================================================
   Footer Responsive Design
   ========================================================================== */

/* Tablet and up */
@media (min-width: 768px) {
    .site-footer__main {
        padding: 60px 24px;
        max-width: 728px;
    }

    .site-footer__links-row {
        min-height: 200px;
    }

    .site-footer__links-column {
        min-width: 200px;
    }

    .site-footer__social {
        gap: 64px;
    }
}

/* Desktop and up */
@media (min-width: 1200px) {
    .site-footer__main {
        padding: 80px 40px;
        max-width: 1441px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 80px;
    }

    .site-footer__logo-newsletter {
        margin-bottom: 0;
        flex: 0 0 326px;
        max-width: 326px;
    }

    .site-footer__newsletter {
        width: 305px;
    }

    .site-footer__newsletter-input {
        width: 209px;
    }

    .site-footer__links {
        flex: 1;
        max-width: 875px;
        margin: 0;
    }

    .site-footer__links-row {
        display: flex;
        gap: 0;
        min-height: auto;
        justify-content: space-between;
    }

    .site-footer__links-row:first-child {
        display: none; /* Hide mobile rows */
    }

    .site-footer__links-row:last-child {
        display: flex;
        flex-direction: row;
    }

    .site-footer__links-column {
        flex: 0 0 auto;
        min-width: auto;
        margin-right: 0;
    }

    .site-footer__links-column .site-footer__links-column {
        margin-bottom: 0;
    }

    .site-footer__divider {
        display: none;
    }

    .site-footer__bottom {
        padding: 24px 40px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    }

    .site-footer__social {
        order: 2;
        margin-bottom: 0;
        width: auto;
        position: relative;
        height: 40px;
        gap: 8px;
    }

    .site-footer__sub-links {
        order: 1;
        align-items: flex-start;
        gap: 10px;
    }

    .site-footer__copyright {
        text-align: left;
    }
}