/* ============================================================
   VARNI CORPORATION
   GLOBAL FOOTER COMPONENT

   File:
   assets/css/footer.css

   Design:
   - International medical corporate
   - Same logo environment as navbar
   - White main footer
   - Navy CTA and bottom bar
   - Selective glass treatment
   - Stable hover states
   - No vertical hover movement
   ============================================================ */

html,
body {
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
}

.footer-premium {
    margin: 0;
    padding: 0;
}

.footer-bottom-bar {
    margin: 0;
}

.footer-bottom {
    margin-bottom: 0;
}





/* ============================================================
   01. FOOTER TOKENS
   ============================================================ */

.footer-premium {
    --footer-navy: #062b4f;
    --footer-navy-deep: #041f3a;
    --footer-blue: #0878c9;
    --footer-blue-dark: #0563aa;
    --footer-red: #d62828;

    --footer-text: #172f43;
    --footer-copy: #617487;
    --footer-muted: #8293a2;

    --footer-border: #dce7ef;
    --footer-border-soft: #eaf0f4;

    --footer-white: #ffffff;
    --footer-surface: #f6fafc;

    --footer-shadow:
        0 20px 60px rgba(5, 43, 79, 0.08);

    --footer-shadow-strong:
        0 30px 80px rgba(5, 43, 79, 0.16);

    position: relative;

    width: 100%;

    background: var(--footer-white);

    color: var(--footer-text);

    overflow: hidden;
}

.footer-premium *,
.footer-premium *::before,
.footer-premium *::after {
    box-sizing: border-box;
}


/* ============================================================
   02. TOP CTA AREA
   ============================================================ */

.footer-cta-wrap {
    position: relative;

    padding: 78px 0 0;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7fafc 100%
        );
}

.footer-cta-panel {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;

    min-height: 270px;

    padding: 52px 58px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(70, 181, 241, 0.18),
            transparent 26%
        ),
        radial-gradient(
            circle at 4% 100%,
            rgba(214, 40, 40, 0.08),
            transparent 24%
        ),
        linear-gradient(
            135deg,
            var(--footer-navy-deep) 0%,
            var(--footer-navy) 58%,
            #084b7c 100%
        );

    box-shadow: var(--footer-shadow-strong);

    overflow: hidden;
}

.footer-cta-panel::before {
    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    top: -230px;
    right: 90px;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;

    pointer-events: none;
}

.footer-cta-panel::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -100px;
    bottom: -140px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

    pointer-events: none;
}

.footer-cta-content,
.footer-cta-action {
    position: relative;
    z-index: 2;
}

.footer-cta-content {
    max-width: 770px;
}

.footer-cta-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 18px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.72rem;
    line-height: 1.3;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.footer-cta-label i {
    color: #6ec8f5;

    font-size: 1rem;
}

.footer-cta-content h2 {
    max-width: 760px;

    margin: 0;

    color: var(--footer-white);

    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
    font-weight: 750;
}

.footer-cta-content p {
    max-width: 690px;

    margin: 18px 0 0;

    color: rgba(255, 255, 255, 0.70);

    font-size: 0.98rem;
    line-height: 1.75;
}

.footer-cta-action {
    flex: 0 0 auto;
}

.footer-cta-btn {
    min-width: 190px;
    min-height: 58px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    padding: 15px 23px;

    border-radius: 10px;

    background: var(--footer-white);

    color: var(--footer-navy-deep);

    font-size: 0.91rem;
    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.14);

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.footer-cta-btn:hover,
.footer-cta-btn:focus {
    background: var(--footer-red);

    color: var(--footer-white);

    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.20);
}

.footer-cta-btn i {
    font-size: 1rem;

    transition: transform 0.2s ease;
}

.footer-cta-btn:hover i {
    transform: translate(2px, -2px);
}


/* ============================================================
   03. WHITE MAIN FOOTER
   ============================================================ */

.footer-main-white {
    position: relative;

    padding: 80px 0 0;

    background:
        radial-gradient(
            circle at 92% 12%,
            rgba(8, 120, 201, 0.045),
            transparent 20%
        ),
        var(--footer-white);
}

.footer-main-row {
    position: relative;
    z-index: 2;
}


/* ============================================================
   04. BRAND COLUMN
   ============================================================ */

.footer-brand {
    max-width: 410px;
}

.footer-logo-link {
    display: inline-block;

    margin-bottom: 23px;

    text-decoration: none;
}

.footer-logo {
    display: block;

    width: auto;
    max-width: 235px;
    height: auto;
    max-height: 82px;

    object-fit: contain;
}

.footer-description {
    max-width: 390px;

    margin: 0;

    color: var(--footer-copy);

    font-size: 0.92rem;
    line-height: 1.8;
}


/* ============================================================
   05. TRUST PILLS
   ============================================================ */

.footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 24px;
}

.footer-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 38px;

    padding: 7px 11px;

    border: 1px solid var(--footer-border);
    border-radius: 8px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.96),
            rgba(246, 250, 252, 0.88)
        );

    color: var(--footer-text);

    font-size: 0.74rem;
    font-weight: 650;
}

.footer-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--footer-blue);

    font-size: 0.93rem;
}


/* ============================================================
   06. SOCIAL LINKS
   ============================================================ */

.footer-social {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-top: 23px;
}

.footer-social a {
    width: 39px;
    height: 39px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--footer-border);
    border-radius: 9px;

    background: var(--footer-white);

    color: var(--footer-navy);

    text-decoration: none;

    font-size: 1rem;

    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.footer-social a:hover,
.footer-social a:focus {
    border-color: var(--footer-blue);

    background: var(--footer-blue);

    color: var(--footer-white);

    box-shadow:
        0 10px 26px rgba(8, 120, 201, 0.16);
}


/* ============================================================
   07. FOOTER COLUMNS
   ============================================================ */

.footer-column {
    height: 100%;
}

.footer-title {
    position: relative;

    margin: 4px 0 24px;

    padding-bottom: 13px;

    color: var(--footer-navy-deep);

    font-size: 0.98rem;
    line-height: 1.3;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.footer-title::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 32px;
    height: 2px;

    border-radius: 99px;

    background:
        linear-gradient(
            90deg,
            var(--footer-red),
            var(--footer-blue)
        );
}

.footer-links {
    list-style: none;

    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    position: relative;

    display: inline-flex;
    align-items: center;

    color: var(--footer-copy);

    text-decoration: none;

    font-size: 0.86rem;
    line-height: 1.5;
    font-weight: 500;

    transition:
        color 0.22s ease,
        padding-left 0.22s ease;
}

.footer-links a::before {
    content: "";

    width: 0;
    height: 1px;

    margin-right: 0;

    background: var(--footer-red);

    opacity: 0;

    transition:
        width 0.22s ease,
        margin-right 0.22s ease,
        opacity 0.22s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    padding-left: 0;

    color: var(--footer-blue);
}

.footer-links a:hover::before,
.footer-links a:focus::before {
    width: 12px;

    margin-right: 7px;

    opacity: 1;
}


/* ============================================================
   08. CONTACT COLUMN
   ============================================================ */

.footer-contact-column {
    max-width: 340px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 11px;
    padding: 13px;

    border: 1px solid var(--footer-border);
    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.96),
            rgba(247, 251, 253, 0.88)
        );

    color: inherit;

    text-decoration: none;

    box-shadow:
        0 10px 30px rgba(5, 43, 79, 0.035);

    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.footer-contact-item:hover,
.footer-contact-item:focus {
    border-color: rgba(8, 120, 201, 0.34);

    background: var(--footer-white);

    box-shadow:
        0 15px 38px rgba(5, 43, 79, 0.07);
}

.footer-contact-icon {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #eaf6fd;

    color: var(--footer-blue);

    font-size: 1rem;
}

.footer-contact-text {
    min-width: 0;
}

.footer-contact-text small {
    display: block;

    margin-bottom: 2px;

    color: var(--footer-muted);

    font-size: 0.66rem;
    line-height: 1.3;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-contact-text strong {
    display: block;

    color: var(--footer-text);

    font-size: 0.79rem;
    line-height: 1.4;
    font-weight: 650;

    overflow-wrap: anywhere;
}


/* ============================================================
   09. WHATSAPP CARD
   ============================================================ */

.footer-whatsapp {
    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 12px;
    padding: 14px;

    border: 1px solid #d9ebe1;
    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            #f4fbf7,
            #ffffff
        );

    color: inherit;

    text-decoration: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.footer-whatsapp:hover,
.footer-whatsapp:focus {
    border-color: #93cba7;

    background: #ffffff;

    box-shadow:
        0 15px 38px rgba(19, 128, 66, 0.08);
}

.footer-whatsapp-icon {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #e7f7ed;

    color: #168a47;

    font-size: 1.1rem;
}

.footer-whatsapp-text {
    min-width: 0;

    padding-right: 24px;
}

.footer-whatsapp-text small {
    display: block;

    margin-bottom: 2px;

    color: #71877a;

    font-size: 0.66rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-whatsapp-text strong {
    display: block;

    color: #174d2c;

    font-size: 0.8rem;
    font-weight: 700;
}

.footer-wa-arrow {
    position: absolute;

    top: 50%;
    right: 14px;

    transform: translateY(-50%);

    color: #168a47;

    font-size: 0.9rem;
}


/* ============================================================
   10. DIVIDER
   ============================================================ */

.footer-divider {
    height: 1px;

    margin: 38px 0 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--footer-border),
            transparent
        );
}


/* ============================================================
   11. CORPORATE PROOF BAR
   ============================================================ */

.footer-proof-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    margin-top: 0;

    border-left: 1px solid var(--footer-border-soft);
    border-right: 1px solid var(--footer-border-soft);

    background: var(--footer-white);
}

.footer-proof-item {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 82px;

    padding: 17px 20px;

    text-align: center;
}

.footer-proof-item:not(:last-child) {
    border-right: 1px solid var(--footer-border-soft);
}

.footer-proof-item strong {
    color: var(--footer-navy-deep);

    font-size: 1.18rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.footer-proof-item span {
    color: var(--footer-copy);

    font-size: 0.74rem;
    line-height: 1.35;
    font-weight: 600;
}

.footer-proof-recognition strong {
    color: var(--footer-red);
}


/* ============================================================
   12. BOTTOM BAR
   ============================================================ */

.footer-bottom-bar {
    position: relative;

    background:
        linear-gradient(
            110deg,
            var(--footer-navy-deep),
            var(--footer-navy)
        );
}

.footer-bottom {
    min-height: 72px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;

    color: rgba(255, 255, 255, 0.64);
}

.footer-copyright {
    font-size: 0.74rem;
    line-height: 1.5;
}

.footer-copyright span {
    color: rgba(255, 255, 255, 0.42);
}

.footer-bottom-center {
    color: rgba(255, 255, 255, 0.48);

    font-size: 0.68rem;
    line-height: 1.5;
    letter-spacing: 0.035em;
    text-align: center;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.68);

    text-decoration: none;

    font-size: 0.72rem;
    font-weight: 550;

    transition: color 0.2s ease;
}

.footer-legal a:hover,
.footer-legal a:focus {
    color: var(--footer-white);
}

.footer-legal span {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.30);
}


/* ============================================================
   13. ACCESSIBILITY
   ============================================================ */

.footer-premium a:focus-visible,
.footer-premium button:focus-visible {
    outline: 3px solid rgba(8, 120, 201, 0.28);
    outline-offset: 3px;
}


/* ============================================================
   14. LARGE TABLET
   ============================================================ */

@media (max-width: 1199.98px) {

    .footer-cta-panel {
        padding: 46px;
    }

    .footer-cta-content h2 {
        font-size: 2.45rem;
    }

    .footer-bottom {
        grid-template-columns: 1fr auto;
    }

    .footer-bottom-center {
        display: none;
    }

}


/* ============================================================
   15. TABLET
   ============================================================ */

@media (max-width: 991.98px) {

    .footer-cta-wrap {
        padding-top: 60px;
    }

    .footer-cta-panel {
        align-items: flex-start;
        flex-direction: column;

        min-height: auto;

        gap: 30px;

        padding: 42px;
    }

    .footer-cta-action {
        width: 100%;
    }

    .footer-cta-btn {
        width: 100%;
    }

    .footer-main-white {
        padding-top: 65px;
    }

    .footer-brand {
        max-width: 620px;
    }

    .footer-contact-column {
        max-width: none;
    }

    .footer-proof-bar {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .footer-proof-item:nth-child(2) {
        border-right: 0;
    }

    .footer-proof-item:nth-child(-n + 2) {
        border-bottom:
            1px solid var(--footer-border-soft);
    }

}


/* ============================================================
   16. MOBILE
   ============================================================ */

@media (max-width: 767.98px) {

    .footer-cta-wrap {
        padding-top: 45px;
    }

    .footer-cta-panel {
        padding: 32px 25px;

        border-radius: 18px;
    }

    .footer-cta-content h2 {
        font-size: 2rem;
    }

    .footer-cta-content p {
        font-size: 0.9rem;
    }

    .footer-main-white {
        padding-top: 55px;
    }

    .footer-logo {
        max-width: 205px;
    }

    .footer-description {
        font-size: 0.88rem;
    }

    .footer-divider {
        margin-top: 45px;
    }

    .footer-proof-item {
        min-height: 74px;

        padding: 14px;
    }

    .footer-proof-item strong {
        font-size: 1.05rem;
    }

    .footer-proof-item span {
        font-size: 0.68rem;
    }

    .footer-bottom {
        grid-template-columns: 1fr;

        gap: 10px;

        padding-top: 19px;
        padding-bottom: 19px;

        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

}


/* ============================================================
   17. SMALL MOBILE
   ============================================================ */

@media (max-width: 575.98px) {

    .footer-cta-label {
        align-items: flex-start;

        font-size: 0.64rem;
    }

    .footer-cta-content h2 {
        font-size: 1.8rem;
    }

    .footer-trust {
        align-items: stretch;
        flex-direction: column;
    }

    .footer-trust-item {
        width: 100%;
    }

    .footer-title {
        margin-top: 0;
    }

    .footer-proof-bar {
        grid-template-columns: 1fr;
    }

    .footer-proof-item,
    .footer-proof-item:nth-child(2) {
        border-right: 0;
    }

    .footer-proof-item:not(:last-child),
    .footer-proof-item:nth-child(-n + 2) {
        border-bottom:
            1px solid var(--footer-border-soft);
    }

}


/* ============================================================
   18. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .footer-premium *,
    .footer-premium *::before,
    .footer-premium *::after {
        animation: none !important;
        transition: none !important;
    }

}



/* ============================================================
   FOOTER CONTACT — COMPACT PROFESSIONAL LIST
   ============================================================ */

.footer-contact-list {
    display: flex;
    flex-direction: column;
}


.footer-contact-row {
    position: relative;

    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;

    min-height: 72px;

    padding: 12px 4px;

    border-bottom: 1px solid var(--footer-border-soft);

    color: inherit;
    text-decoration: none;

    transition:
        border-color 0.22s ease,
        background-color 0.22s ease;
}


.footer-contact-row:first-child {
    padding-top: 3px;
}


.footer-contact-row:last-child {
    border-bottom: 0;
}


.footer-contact-row:hover,
.footer-contact-row:focus {
    color: inherit;
}


.footer-contact-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dbeaf4;
    border-radius: 10px;

    background: #f2f9fd;

    color: var(--footer-blue);

    font-size: 1rem;

    transition:
        background-color 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease;
}


.footer-contact-content {
    min-width: 0;
}


.footer-contact-content small {
    display: block;

    margin-bottom: 4px;

    color: var(--footer-muted);

    font-size: 0.64rem;
    line-height: 1.2;
    font-weight: 700;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}


.footer-contact-content strong {
    display: block;

    color: var(--footer-navy-deep);

    font-size: 0.82rem;
    line-height: 1.4;
    font-weight: 700;

    overflow-wrap: anywhere;
}


.footer-contact-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #a5b6c3;

    font-size: 0.82rem;

    transition: color 0.22s ease;
}


.footer-contact-row:hover .footer-contact-icon {
    border-color: var(--footer-blue);

    background: var(--footer-blue);

    color: #ffffff;
}


.footer-contact-row:hover .footer-contact-arrow {
    color: var(--footer-blue);
}


/* WhatsApp variation */

.footer-contact-whatsapp .footer-contact-icon {
    border-color: #d7eee0;

    background: #edf9f1;

    color: #168a47;
}


.footer-contact-whatsapp:hover .footer-contact-icon {
    border-color: #168a47;

    background: #168a47;

    color: #ffffff;
}


.footer-contact-whatsapp:hover .footer-contact-arrow {
    color: #168a47;
}


.footer-links a {
    padding: 3px 0;

    color: #526b7f;

    font-size: 0.88rem;
    font-weight: 520;
}

.footer-links li {
    margin-bottom: 13px;
}

.footer-links a:hover {
    color: var(--footer-blue);
}