/* ==========================================================================
   MASTER 5-COLUMN FOOTER SYSTEM (IDENTICAL ACROSS ALL PAGES)
   ========================================================================== */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
    color: #94a3b8 !important;
    padding: 64px 0 0 0 !important;
    margin-top: 60px !important;
    border-top: 4px solid var(--colors-brand-green, #0D9B6F) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2) !important;
    position: relative;
    z-index: 10;
    width: 100%;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/foot/foot-negative.png');
    background-repeat: repeat;
    background-size: 150px 150px;
    background-position: center center;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.footer > * {
    position: relative;
    z-index: 2;
}

.footer .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent !important;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

@media (min-width: 640px) {
    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

@media (min-width: 900px) {
    .footer-main-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 32px;
    }
}

@media (min-width: 1180px) {
    .footer-main-grid {
        grid-template-columns: 1.3fr 1fr 1fr 1fr 1.3fr;
        gap: 28px;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
}

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

.footer-logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
    transition: transform 0.2s ease;
    background: transparent !important;
}

.footer-logo-img:hover {
    transform: translateY(-2px);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8 !important;
    margin: 0;
}

.footer-about-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--colors-brand-green, #0D9B6F) !important;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.footer-about-cta:hover {
    color: #34d399 !important;
    gap: 10px;
}

.footer-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.footer-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.78rem;
    color: #e2e8f0 !important;
    font-weight: 600;
}

.footer-col-title {
    color: var(--colors-brand-green, #0D9B6F) !important;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 18px 0;
    position: relative;
    padding-bottom: 8px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--colors-brand-green, #0D9B6F);
    border-radius: 2px;
}

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

.footer-nav-list li {
    margin: 0;
    padding: 0;
}

.footer-nav-link {
    color: #cbd5e1 !important;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.footer-nav-link:hover {
    color: var(--colors-brand-green, #0D9B6F) !important;
    transform: translateX(4px);
    text-shadow: 0 0 8px rgba(13, 155, 111, 0.3);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-style: normal;
    font-size: 0.88rem;
    color: #cbd5e1 !important;
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a {
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: var(--colors-brand-green, #0D9B6F) !important;
}

.footer-map-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--colors-brand-green, #0D9B6F) !important;
    text-decoration: none;
    margin-top: 2px;
}

.footer-map-link:hover {
    text-decoration: underline;
}

/* Newsletter Box */
.footer-newsletter-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-top: 10px;
}

.footer-newsletter-card h4 {
    color: #ffffff !important;
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.footer-newsletter-card p {
    font-size: 0.78rem;
    color: #94a3b8 !important;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.footer-newsletter-form {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-newsletter-input {
    flex: 1 1 140px;
    min-width: 0;
    padding: 9px 12px;
    font-size: 0.84rem;
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    border-radius: 6px;
    color: #ffffff !important;
    outline: none;
    transition: border-color 0.2s ease;
}

.footer-newsletter-input:focus {
    border-color: var(--colors-brand-green, #0D9B6F) !important;
    box-shadow: 0 0 0 2px rgba(13, 155, 111, 0.2);
}

.footer-newsletter-btn {
    background: var(--colors-brand-green, #0D9B6F) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    padding: 9px 14px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-newsletter-btn:hover {
    background: #0b825d !important;
    transform: translateY(-1px);
}

.footer-newsletter-disclaimer {
    font-size: 0.72rem;
    color: #64748b !important;
    margin-top: 6px;
    display: block;
}

/* Social Media */
.footer-social-section {
    margin-top: 18px;
}

.footer-social-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    display: block;
}

.footer-social-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-social-icon:hover {
    background: var(--colors-brand-green, #0D9B6F) !important;
    border-color: var(--colors-brand-green, #0D9B6F) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(13, 155, 111, 0.4);
}

/* Bottom Bar */
.footer-bottom-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #090d16 !important;
    padding: 20px 0;
    font-size: 0.82rem;
    color: #64748b !important;
    width: 100%;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-legal-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal-links a {
    color: #94a3b8 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: var(--colors-brand-green, #0D9B6F) !important;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE CENTER-ALIGNMENT OVERRIDES
   ========================================================================== */
@media (max-width: 899px) {
    .footer-main-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 36px !important;
    }

    .footer-col {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 500px !important;
    }

    .footer-brand {
        align-items: center !important;
        text-align: center !important;
    }

    .footer-logo-img {
        align-self: center !important;
        margin: 0 auto !important;
    }

    .footer-desc {
        text-align: center !important;
    }

    .footer-about-cta {
        justify-content: center !important;
        margin: 0 auto !important;
    }

    .footer-trust-badges {
        justify-content: center !important;
        align-items: center !important;
        margin: 6px auto 0 !important;
    }

    .footer-col-title {
        text-align: center !important;
        margin: 0 auto 16px auto !important;
        display: inline-block !important;
        position: relative !important;
        padding-bottom: 8px !important;
    }

    .footer-col-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .footer-nav-list {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .footer-nav-link {
        justify-content: center !important;
        text-align: center !important;
    }

    .footer-nav-link:hover {
        transform: translateY(-2px) !important;
    }

    .footer-contact-info {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .footer-contact-item {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 4px !important;
        width: 100% !important;
    }

    .footer-contact-item > div {
        text-align: center !important;
    }

    .footer-map-link {
        justify-content: center !important;
        margin: 4px auto 0 !important;
    }

    .footer-newsletter-card {
        max-width: 420px !important;
        width: 100% !important;
        margin: 14px auto 0 !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .footer-newsletter-form {
        justify-content: center !important;
    }

    .footer-social-section {
        text-align: center !important;
        width: 100% !important;
    }

    .footer-social-title {
        text-align: center !important;
    }

    .footer-social-row {
        justify-content: center !important;
    }
}
