/* ========================================
   FOOTER SECTION
   ======================================== */

.footer-section {
    background-color: #2B2B2B;
    color: #FFFFFF;
}

.footer-container {
    padding: 88px 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    width: 211px;
    height: 24px;
    object-fit: contain;
}

.footer-tagline {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 110%;
    letter-spacing: 0%;
    color: #FFFFFF;
    margin: 0;
}

/* Social Icons */
.footer-socials {
    display: flex;
    gap: 11px;
    align-items: center;
}

.footer-social-link {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 200ms ease;
}

.footer-social-link:hover {
    opacity: 0.7;
}

.footer-social-link img {
    width: 24px;
    height: 24px;
}

/* Navigation Groups */
.footer-nav-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-nav-title {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 110%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: var(--color-grey);
    margin: 0;
}

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

.footer-nav-list a {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 110%;
    letter-spacing: 0%;
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 200ms ease;
}

.footer-nav-list a:hover {
    opacity: 0.7;
}

/* Subscribe */
.footer-subscribe {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-subscribe-title {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 110%;
    letter-spacing: 0%;
    color: #FFFFFF;
    margin: 0;
}

.footer-subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-subscribe-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 343px;
}

.footer-subscribe-input {
    width: 100%;
    height: 56px;
    padding: 12px 120px 12px 32px;
    border: 1px solid #FFFFFF;
    border-radius: 56px;
    background-color: transparent;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 110%;
    letter-spacing: 0%;
    color: #FFFFFF;
    box-sizing: border-box;
}

.footer-subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-subscribe-input:focus {
    outline: none;
    border-color: var(--color-fluoro);
}

.footer-subscribe-button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px 24px;
    background-color: transparent;
    border: none;
    border-radius: 56px;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 110%;
    letter-spacing: -3%;
    color: var(--color-fluoro);
    cursor: pointer;
    transition: opacity 200ms ease;
}

.footer-subscribe-button:hover {
    opacity: 0.9;
}

.footer-subscribe-disclaimer {
    font-family: "Roboto", system-ui, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 0%;
    color: var(--color-white);
    margin: 0;
}

.footer-subscribe-disclaimer a {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-subscribe-disclaimer a:hover {
    opacity: 0.7;
}

/* Legal Links */
.footer-legal-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 40px;
}

.footer-legal-links a {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 110%;
    letter-spacing: 0%;
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 200ms ease;
}

.footer-legal-links a:hover {
    opacity: 0.7;
}

/* Copyright */
.footer-copyright {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0%;
    color: var(--color-white);
    margin: 0;
}

/* ========================================
   DESKTOP STYLES
   ======================================== */
/* Brand Group */
.footer-brand-group {
    display: flex;
    flex-direction: column;
    gap: 32px;
    /* Maintain original mobile spacing */
}

/* Tablet Styles */
@media screen and (min-width: 768px) and (max-width: 1439px) {
    .footer-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 32px;
        row-gap: 40px;
        padding: 64px 32px;
    }

    /* Row 1: Brand (left), Nav 1 (right) */
    .footer-brand-group {
        grid-column: 1;
        grid-row: 1;
    }

    .footer-nav-group:nth-child(2) {
        /* What we do */
        grid-column: 2;
        grid-row: 1;
    }

    /* Row 2: Nav 2 (left), Nav 3 (right) */
    .footer-nav-group:nth-child(3) {
        /* Health goals */
        grid-column: 1;
        grid-row: 2;
    }

    .footer-nav-group:nth-child(4) {
        /* Who we are */
        grid-column: 2;
        grid-row: 2;
    }

    /* Row 3: Subscribe (full width or span 2) */
    .footer-subscribe {
        grid-column: 1 / span 2;
        grid-row: 3;
        align-items: center;
        text-align: center;
        margin-top: 16px;
    }

    .footer-subscribe-input-wrapper {
        width: 100%;
        max-width: 500px;
    }

    /* Row 4: Legal (left), Copyright (right) or both centered/stacked */
    .footer-legal-links {
        grid-column: 1;
        grid-row: 4;
        padding-top: 24px;
        flex-direction: column;
        gap: 16px;
    }

    .footer-copyright {
        grid-column: 2;
        grid-row: 4;
        text-align: right;
        align-self: end;
        padding-bottom: 24px;
    }
}

/* ========================================
   DESKTOP STYLES
   ======================================== */
@media screen and (min-width: 1440px) {
    .footer-container {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        /* Rows: 
           1. Top Content (Brand/Socials + Navs)
              Note: Navs span multiple logical rows in relation to brand?
              With wrapper, Brand+Socials is ONE item. Navs are separate items.
              We can just have:
              Row 1: Main Content
              Row 2: Subscribe (or implicit)
              Row 3: Legal
        */
        grid-template-rows: 1fr auto auto;
        column-gap: 40px;
        row-gap: 24px;
        padding: 112px 64px;
        align-items: start;
    }

    /* Column 1: Brand Group */
    .footer-brand-group {
        grid-column: 1;
        grid-row: 1;
        gap: 32px;
        /* Customize this for desktop proximity */
        /* To make social icons "under the tagline", we adjust gap */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .footer-socials {
        margin-top: 0;
    }

    /* Columns 2, 3, 4: Navigation */
    /* Note: nth-child(1) is footer-brand-group */

    .footer-nav-group:nth-child(2) {
        /* What we do */
        grid-column: 2;
        grid-row: 1;
    }

    .footer-nav-group:nth-child(3) {
        /* Health goals */
        grid-column: 3;
        grid-row: 1;
    }

    .footer-nav-group:nth-child(4) {
        /* Who we are */
        grid-column: 4;
        grid-row: 1;
    }

    /* Subscribe: Below Navs */
    .footer-subscribe {
        grid-column: 2 / -1;
        grid-row: 2;
        margin-top: 24px;
        max-width: 100%;
    }

    .footer-subscribe-input-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .footer-subscribe-form {
        max-width: 100%;
    }

    /* Legal & Copyright: Bottom Row */
    .footer-legal-links {
        grid-column: 1 / span 2;
        grid-row: 3;
        flex-direction: row;
        gap: 32px;
        align-self: end;
        padding-top: 64px;
    }

    .footer-copyright {
        grid-column: 3 / -1;
        grid-row: 3;
        text-align: right;
        align-self: end;
        padding-bottom: 4px;
    }
}