/* ==========================================================================
   GI Footer Core Layout Styles
   ========================================================================== */

.gi-main-footer {
    position: relative;
    background-color: #7a7a7a; /* Dark gray footer background */
    color: #ffffff;
    font-family: Arial, sans-serif;
    padding: 70px 0 30px 0; /* Extra top padding to make room for the floating banner */
    margin-top: 50px; /* Space above footer to let banner float over previous section */
}

.gi-container {
    width: 90%;
    margin: 0 auto;
}

/* ==========================================================================
   1. Floating Action Banner (Top Card)
   ========================================================================== */
.footer-cta-floating-card {
    position: absolute;
    top: -45px; /* Pulls it halfway above the footer background */
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 1000px;
    background-color: #ffffff;
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 10;
}

.cta-left-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #555555;
}

.cta-icon {
    font-size: 2rem;
    color: #666666;
}

.cta-left-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.cta-right-buttons {
    display: flex;
    gap: 15px;
}

.btn-cta-red {
    background-color: #ff0000;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-cta-red:hover {
    background-color: #cc0000;
}

.btn-cta-outline {
    background-color: transparent;
    color: #000000;
    border: 1.5px solid #000000;
    padding: 12px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-cta-outline:hover {
    background-color: #000000;
    color: #ffffff;
}

/* ==========================================================================
   2. Main Content Layout Matrix
   ========================================================================== */
.footer-main-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 25px;
    gap: 30px;
}

/* Column 1: Logo adjustments */
.footer-logo-block {
    flex: 1;
}

.footer-logo {
    max-width: 140px;
    height: auto;
}

/* Column 2: Navigation Map (PLAN) */
.footer-col-links {
    flex: 2;
    padding-left: 20px;
}

.footer-title-underline {
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: 2px solid #ffffff;
    display: inline-block;
    padding-bottom: 4px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.footer-nav-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-row a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-row a:hover {
    text-decoration: underline;
}

.pipe {
    color: #ffffff;
    font-weight: 300;
}

/* Column 3: Actions Group (Socials & Button Stack) */
.footer-col-actions {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 25px;
}

/* Round Social Icons Configuration */
.footer-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.footer-social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: #ffffff;
    color: #7a7a7a; /* Dark gray match */
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.footer-social-icons a:hover {
    transform: scale(1.1);
}

/* Large Center White Newsletter Box */
.newsletter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}

.btn-footer-newsletter {
    display: block;
    width: 100%;
    max-width: 260px;
    background-color: #ffffff;
    color: #000000;
    text-align: center;
    padding: 14px 0;
    font-weight: bold;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: opacity 0.2s ease;
}

.btn-footer-newsletter:hover {
    opacity: 0.9;
}

.newsletter-sub-text {
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* Decorative Break Line */
.footer-separator-line {
    border: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 15px 0;
}

/* ==========================================================================
   3. Bottom Row Legals & Distribution
   ========================================================================== */
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.7rem;
    letter-spacing: 0.3px;
    line-height: 1.5;
    color: #e0e0e0;
}

.bottom-left-distributors {
    flex: 1.5;
}

.underlined-bold-text {
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin: 0;
}

.bottom-right-address {
    flex: 1;
    text-align: right;
}

.bottom-right-address p {
    margin: 0 0 2px 0;
}

/* ==========================================================================
   Responsive Scaling (Mobile Breakpoints)
   ========================================================================== */
@media (max-width: 768px) {
    .footer-cta-floating-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        position: static;
        transform: none;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .cta-left-content {
        flex-direction: column;
    }

    .footer-main-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-col-links, .footer-col-actions {
        align-items: center;
        text-align: center;
        padding-left: 0;
        width: 100%;
    }

    .nav-row {
        justify-content: center;
    }

    .newsletter-wrapper {
        align-items: center;
    }

    .footer-bottom-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .bottom-right-address {
        text-align: center;
    }
}