/* Base Layout & Theme Background */
.flow-footer-wrapper {
    background-color: #033c4d; /* Theme dark teal */
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
}

/* Watermark SVG background treatment */
.footer-watermark-svg {
position: absolute;
  bottom: -40%;
  left: 0%;
  width: 80em;
  height: auto;
  color: #ffffff;
  opacity: 0.03;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Inner containment wrappers */
.footer-top {
    position: relative;
}

.footer-top-container,
.footer-bottom-container {
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2; 
}


/* ==========================================================================
   1. DESKTOP DEFAULT STYLES (Screen widths >= 992px)
   ========================================================================== */

.footer-top {
    padding: 80px 15vw 50px 15vw !important;
    width: 100%;
    position: relative;;
}

/* Set up split grid layout */
.footer-top-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-title {
    font-style: italic;
    font-weight: 700;
    font-size: 58px;
    line-height: 1;
    text-transform: none;
    margin: 0 0 40px 0;
    color: #ffffff;
    letter-spacing: -1px;
}

.footer-contact-column {
    max-width: 75%;
    flex: 1;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 3px;
    text-decoration: none;
}

.contact-item .contact-text {
    font-size: 18px;
    line-height: 1.35;
    color: #e6f5fc;
    text-decoration: none;
}

.contact-item a.contact-text:hover {
    text-decoration: underline;
}

/* Logo Sizing */
.footer-logo-column {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
}

.footer-brand-logo {
    max-width: 340px;
    margin-top: -50px; 
    height: auto;
    display: block;
}

/* Bottom Black Strip */
.footer-bottom {
    background-color: #000000;
    padding: 15px 0;
}

.footer-bottom-container {
    display: flex;
    max-width: 1320px;
    width: 100%;
    padding: 0 24px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
}

.legal-links {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 25px;
}

.legal-links > :last-child {
    display: block !important;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin-left: auto;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.social-links a:hover {
    transform: scale(1.08);
}


/* ==========================================================================
   2. TABLET & MOBILE OVERRIDES (Screen widths < 992px)
   ========================================================================== */

@media (max-width: 991.98px) {
    .footer-watermark-svg {
        bottom: -35%;
        left: -50%;
        width: 65em;
    }

    .footer-top {
        padding: 50px 0 40px 0 !important;
        width: 90vw;
        margin: 0 auto;
    }

    .footer-top-container {
        gap: 45px;
    }

    .footer-title {
        font-size: 44px;
        margin: 0 0 30px 0;
    }

    .footer-contact-column {
        flex: none;
    }

    .contact-item .contact-text {
        font-size: 16px;
    }

    .footer-logo-column {
        flex: none;
        justify-content: flex-end;
    }

    .footer-brand-logo {
        max-width: 40%;
        margin-top: 0;
    }

    .footer-bottom {
        padding: 30px 0;
    }

    .footer-bottom-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px 20px;
        width: 90vw;
        margin: 0 auto;
        padding: 0;
    }

    .legal-links {
        display: contents; 
    }

    .legal-links > :last-child {
        display: none !important;
    }

    .social-links {
        display: flex;
        gap: 10px;
        margin-left: 0;
    }
}
