/* ============================================================
   FOOTER — High-End Corporate Redesign
   ============================================================ */

.site-footer {
    background: var(--gradient-brand);
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

/* Subtle premium wash to avoid a flat gradient */
.site-footer::before {
    content: '';
    position: absolute;
    inset: -40px;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.10) 0%, transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 0;
}

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

/* ── Newsletter Strip — white bridge between page and footer ── */
.footer-newsletter {
    background: #ffffff;
    border-top: 4px solid transparent;
    border-image: linear-gradient(135deg, #112959, #1b6179, #2aa596) 1;
    border-bottom: 1px solid rgba(17, 41, 89, 0.08);
    padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.footer-newsletter-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.newsletter-copy h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 700;
    color: #112959;
    margin: 0 0 0.55rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.newsletter-copy p {
    font-size: 0.95rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.7;
    max-width: 52ch;
}

.footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.85rem;
    align-items: center;
    flex-shrink: 0;
}

.footer-cta-actions .btn {
    min-width: 160px;
}

/* Override footer btn-primary to use gradient on white strip */
.footer-newsletter .btn-primary {
    background: linear-gradient(135deg, #112959, #1b6179, #2aa596) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.footer-newsletter .btn-outline-light {
    border-color: rgba(17, 41, 89, 0.3) !important;
    color: #112959 !important;
}

.footer-newsletter .btn-outline-light:hover {
    background: rgba(17, 41, 89, 0.06) !important;
}

@media (max-width: 768px) {
    .footer-newsletter-inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .footer-cta-actions {
        justify-content: flex-start;
    }
    .footer-cta-actions .btn {
        width: 100%;
    }
}

/* ── Footer Body ── */
.footer-body {
    padding: 6.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-body-inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    align-items: start;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Brand Column ── */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.55rem;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
}

.footer-logo-img {
    height: 46px;
    width: auto;
    filter: brightness(0) invert(1); /* Ensure logo is white on dark background */
}

.footer-brand-statement {
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    padding-left: 1.25rem;
    position: relative;
    max-width: 34ch;
}

.footer-tone {
    font-size: 0.78rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55);
    margin: -0.6rem 0 0 1.25rem;
    max-width: 30ch;
    letter-spacing: -0.005em;
}

.footer-brand-statement + .footer-tone::before {
    content: '';
    display: block;
    width: 22px;
    height: 1px;
    background: var(--gradient-brand);
    opacity: 0.55;
    margin: 0 0 0.55rem -1.25rem;
}

.footer-brand-statement::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    bottom: 0.55rem;
    width: 2px;
    background: var(--gradient-brand);
    opacity: 0.75;
}

.footer-hq {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.4);
    font-style: normal;
}

.footer-hq strong {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* ── Social Icons ── */
.footer-social {
    display: flex;
    gap: 0.6rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.social-btn:hover {
    background-color: var(--clr-secondary);
    border-color: var(--clr-secondary);
    color: #fff;
}

/* ── Links Grid ── */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 2.35rem;
    row-gap: 2rem;
    align-items: start;
}

.footer-col-heading {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.95rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.58rem;
}

.footer-link-list a {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
    line-height: 1.45;
}

.footer-link-list a:hover {
    color: #ffffff;
}

.footer-link-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-brand);
    opacity: 0.52;
    transition: width 0.25s ease;
}

.footer-link-list a:hover::after {
    width: 100%;
}

/* ── Bottom Bar ── */
.footer-bottom {
    padding: 1.4rem 0;
    background-color: rgba(17, 41, 89, 0.28);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-copyright {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
    letter-spacing: 0.2px;
}

.footer-legal {
    display: flex;
    gap: 1.75rem;
}

.footer-legal a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.28);
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: color 0.2s;
    line-height: 1.4;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .footer-body-inner {
        grid-template-columns: 280px 1fr;
        gap: 3.5rem;
    }
}

@media (max-width: 1024px) {
    .footer-newsletter-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-body-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
}
