/* ========================================
   FOOTER STYLES
   ======================================== */

/* ========================================
   SECTION 1: CTA BANNER
   ======================================== */

.footer-cta {
    position: relative;
    background: url("../backgrounds/home-cta-bg.png") center/cover no-repeat;
    border: 1px solid var(--color-brand-green-alpha-25);
    border-radius: var(--br-20);
    max-width: 1140px;
    margin: 0 auto var(--spacing-60);
    padding: 0 var(--spacing-24);
    overflow: hidden;
    box-shadow:
        0 0 60px var(--color-brand-green-alpha-8),
        0 4px 24px rgba(0, 0, 0, 0.4);
}

.footer-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 211, 47, 0.06) 0%,
        transparent 40%,
        transparent 60%,
        rgba(0, 211, 47, 0.04) 100%
    );
    border-radius: inherit;
    pointer-events: none;
}

.footer-cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--spacing-60) var(--spacing-40);
}

.footer-cta-title {
    font-family: var(--font-family-heading);
    font-size: var(--fs-36);
    font-weight: var(--fw-800);
    color: var(--color-text-white);
    text-transform: uppercase;
    letter-spacing: var(--ls-2);
    margin: 0 0 var(--spacing-12);
    line-height: var(--lh-1-2);
}

.footer-cta-subtitle {
    font-family: var(--font-family-body);
    font-size: var(--fs-16);
    font-weight: var(--fw-400);
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 var(--spacing-30);
    letter-spacing: var(--ls-0-5);
}

.footer-cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-16);
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background: var(--gradient-brand-primary);
    color: var(--color-text-white);
    font-family: var(--font-family-body);
    font-size: var(--fs-14);
    font-weight: var(--fw-600);
    border-radius: var(--br-8);
    text-decoration: none;
    letter-spacing: var(--ls-0-5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 12px var(--color-brand-green-alpha-25);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--color-brand-green-alpha-35);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background: transparent;
    color: var(--color-text-white);
    font-family: var(--font-family-body);
    font-size: var(--fs-14);
    font-weight: var(--fw-600);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--br-8);
    text-decoration: none;
    letter-spacing: var(--ls-0-5);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.btn-cta-secondary:hover {
    border-color: var(--color-brand-green-primary);
    background: var(--color-brand-green-alpha-10);
    transform: translateY(-2px);
}

/* ========================================
   SECTION 2: MAIN FOOTER
   ======================================== */

.site-footer {
    background: url("../backgrounds/footer-bg.png") center bottom/cover no-repeat !important;
    position: relative;
    overflow: hidden;
    padding-top: var(--spacing-60);
}

.footer-main {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-60);
    padding: var(--spacing-60) 0 var(--spacing-30);
    border-bottom: 1px solid #353535;
}

.footer-brand {
    flex: 0 0 240px;
}

.footer-logo img {
    width: 150px;
    height: auto;
}

.footer-tagline {
    color: var(--color-text-white);
    font-family: var(--font-family-body);
    font-size: var(--fs-16);
    font-weight: var(--fw-400);
    margin-top: var(--spacing-16);
    line-height: 1.5;
}

/* Footer Link Columns */
.footer-links-wrapper {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-40);
}

.footer-column {
    flex: 1;
    min-width: 0;
}

.footer-column-title {
    color: var(--color-brand-green-primary);
    font-family: var(--font-family-body);
    font-size: var(--fs-14);
    font-weight: var(--fw-800);
    text-transform: uppercase;
    margin-bottom: var(--spacing-20);
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-12);
}

.footer-links li a {
    color: var(--color-text-white);
    font-family: var(--font-family-body);
    font-size: var(--fs-14);
    font-weight: var(--fw-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links li a:hover {
    color: var(--color-brand-green-primary);
}

/* Updates Column Newsletter */
.footer-column-updates .newsletter-form {
    display: flex;
    align-items: center;
    gap: var(--spacing-8);
    background: linear-gradient(0deg, #0D1A1A, #0D1A1A);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 200px;
    padding: var(--spacing-6) var(--spacing-6) var(--spacing-6) var(--spacing-14);
    max-width: 240px;
}

.footer-column-updates .newsletter-form input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text-white);
    font-family: var(--font-family-body);
    font-size: var(--fs-14);
    outline: none;
    min-width: 0;
}

.footer-column-updates .newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-column-updates .newsletter-form .btn-subscribe {
    padding: var(--spacing-10);
    background: var(--color-brand-green-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
    height: 36px;
    width: 36px;
    flex-shrink: 0;
}

.footer-column-updates .newsletter-form .btn-subscribe:hover {
    background: var(--color-brand-green-dark);
}

/* Social Icons (inside Subscribe column) */
.footer-social-inline {
    display: flex;
    gap: var(--spacing-8);
    flex-wrap: wrap;
    margin-top: var(--spacing-16);
}

.footer-social-inline a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.footer-social-inline a:hover {
    transform: translateY(-2px);
}

.footer-social-inline a img {
    width: 20px;
    height: 20px;
}

/* Platform Download Section */
.footer-platform-section {
    text-align: center;
    padding: var(--spacing-30) 0;
    border-top: 1px solid #353535;
}

.platform-title {
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-family-body);
    font-size: var(--fs-14);
    font-weight: var(--fw-500);
    margin: 0 0 var(--spacing-20);
}

.platform-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-12);
    max-width: 900px;
    margin: 0 auto;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-8);
    padding: var(--spacing-10) var(--spacing-12);
    background: transparent;
    border: 1px solid var(--color-brand-green-primary);
    border-radius: var(--br-100);
    color: var(--color-text-white);
    font-family: var(--font-family-body);
    font-size: var(--fs-14);
    font-weight: var(--fw-500);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.platform-btn:hover {
    background: var(--color-brand-green-alpha-10);
    transform: translateY(-1px);
}

.platform-btn img,
.platform-btn i {
    width: 18px;
    height: 18px;
    font-size: 16px;
    color: var(--color-brand-green-primary);
}

.platform-btn .btn-text {
    white-space: nowrap;
}

/* ========================================
   SECTION 3: BOTTOM BAR
   ======================================== */

.footer-bottom-bar {
    border-top: 1px solid #353535;
    padding: var(--spacing-30) 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-20);
}

.footer-bottom-disclaimer {
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-family-body);
    font-size: 12px;
    font-weight: var(--fw-400);
    line-height: 1.6;
    margin: 0;
    max-width: 960px;
}

.footer-bottom-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-12);
}

.footer-bottom-copy {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-family-body);
    font-size: var(--fs-14);
    font-weight: var(--fw-400);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-24);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-family-body);
    font-size: var(--fs-12);
    font-weight: var(--fw-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--color-text-white);
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media screen and (max-width: 1300px) {
    .footer-links-wrapper{
        gap: var(--spacing-0);
    }
}

@media screen and (max-width: 1199.98px) {
    .footer-main {
        gap: var(--spacing-40);
    }
}
@media screen and (max-width: 1080px) {
    .footer-links-wrapper {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: var(--spacing-24) var(--spacing-20);
    }
    .footer-links-wrapper .footer-column {
        flex: none;
    }
    .footer-links-wrapper .footer-column{
        width: 17%;
    }
    .footer-links-wrapper .footer-column:last-child{
         width: 40%;
    }
    .footer-column-updates {
        grid-column: auto;
    }
    .footer-column-updates .newsletter-form {
        max-width: 360px;
        margin: 0 auto;
    }
}
@media screen and (max-width: 991.98px) {
    .footer-main {
        flex-direction: column;
        gap: var(--spacing-32);
    }
    .footer-brand {
        flex: none;
        width: 100%;
        text-align: center;
    }
    .footer-logo img {
        margin: 0 auto;
    }
    .footer-tagline {
        text-align: center;
    }
     .footer-links-wrapper .footer-column{
        width: 17%;
    }
    .footer-links-wrapper .footer-column:last-child{
         width: 38%;
    }
    ul.footer-links li a{
        padding: 12px 0;
    }
    .footer-social-inline {
        justify-content: center;
    }

    .platform-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-8);
    }
}

@media screen and (max-width: 767.98px) {
    .footer-cta {
        margin: 0 var(--spacing-16) var(--spacing-32);
        border-radius: 12px;
    }

    .footer-cta-inner {
        padding: var(--spacing-32) var(--spacing-16);
    }

    .footer-cta-buttons {
        flex-direction: column;
        gap: var(--spacing-12);
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
    }

    .footer-main {
        padding: var(--spacing-40) 0 var(--spacing-24);
    }

    .footer-brand {
        text-align: left;
    }

    .footer-logo img {
        margin: 0;
    }

    .footer-tagline,
    .footer-stat {
        text-align: left;
    }

    .footer-links-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-30) var(--spacing-24);
    }

    .footer-column-updates {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-column-updates .newsletter-form {
        max-width: 360px;
        margin: 0 auto;
    }

    .footer-social-inline {
        justify-content: center;
    }

    .platform-btn {
        padding: var(--spacing-8) var(--spacing-10);
        font-size: var(--fs-12);
    }

    .platform-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 575.98px) {
     .footer-links-wrapper .footer-column{
        width: 27%;
    }
    .footer-links-wrapper .footer-column:last-child{
         width: 100%;
    }

    .platform-btn {
        padding: var(--spacing-6) var(--spacing-12);
    }

    .platform-btn img,
    .platform-btn i {
        width: 14px;
        height: 14px;
        font-size: 13px;
    }
    .footer-social-inline a {
        width: auto;
    }
}
