/* =========================================================
   SARAVANA HOSPITAL - RESPONSIVE FOOTER
   File: footer.css
========================================================= */

.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    background:
        radial-gradient(circle at 8% 12%, rgba(32, 167, 160, 0.22), transparent 25%),
        radial-gradient(circle at 92% 6%, rgba(74, 119, 218, 0.24), transparent 28%),
        linear-gradient(145deg, #091c41 0%, #102d61 55%, #173f7d 100%);
}

.site-footer::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), #69d8ce, var(--brand-600));
}

.site-footer::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -140px;
    bottom: 32px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    box-shadow:
        0 0 0 58px rgba(255, 255, 255, 0.025),
        0 0 0 116px rgba(255, 255, 255, 0.018);
    pointer-events: none;
}

.footer-shell {
    width: min(100%, var(--page-width));
    margin: 0 auto;
    padding: clamp(64px, 7vw, 96px) clamp(20px, 4vw, 58px) clamp(48px, 5vw, 72px);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1.55fr) minmax(150px, 0.7fr) minmax(190px, 0.9fr) minmax(280px, 1.2fr);
    gap: clamp(34px, 4vw, 68px);
    align-items: start;
}

.footer-about,
.footer-column {
    min-width: 0;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    text-decoration: none;
}

.footer-logo-wrap {
    display: grid;
    place-items: center;
    width: 76px;
    height: 68px;
    padding: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 17px;
    box-shadow: 0 13px 30px rgba(0, 0, 0, 0.18);
}

.footer-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-brand-copy strong {
    color: #ffffff;
    font-size: clamp(21px, 2vw, 27px);
    font-weight: 830;
    letter-spacing: -0.025em;
}

.footer-brand-copy span {
    margin-top: 4px;
    color: #74d9d2;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-description {
    max-width: 58ch;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    line-height: 1.85;
    text-align: left;
}

.footer-call-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    margin-top: 28px;
    padding: 10px 18px 10px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 15px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    transition: background-color 180ms ease, border-color 180ms ease,
        transform 180ms ease, box-shadow 180ms ease;
}

.footer-call-button > svg {
    width: 38px;
    height: 38px;
    padding: 9px;
    fill: #ffffff;
    background: var(--accent);
    border-radius: 12px;
}

.footer-call-button span {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.footer-call-button small {
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.footer-call-button strong {
    margin-top: 3px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.footer-call-button:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.17);
    transform: translateY(-2px);
}

.footer-column > h2 {
    position: relative;
    padding-bottom: 15px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.footer-column > h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #6edbd2);
    border-radius: 999px;
}

.footer-links,
.footer-contact-list {
    margin: 23px 0 0;
    padding: 0;
    list-style: none;
}

.footer-links {
    display: grid;
    gap: 11px;
}

.footer-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 2px 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    font-weight: 560;
    line-height: 1.5;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

.footer-links a::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    transform: rotate(45deg);
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-contact {
    display: grid;
    gap: 22px;
}

.footer-contact > h2 {
    margin-bottom: 1px;
}

.footer-contact-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
}

.footer-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: rgba(32, 167, 160, 0.15);
    border: 1px solid rgba(105, 216, 206, 0.26);
    border-radius: 13px;
}

.footer-icon svg {
    width: 20px;
    height: 20px;
    fill: #6edbd2;
}

.footer-contact-item h3 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.footer-contact-item address,
.footer-contact-list {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-style: normal;
    line-height: 1.75;
}

.footer-contact-list {
    display: grid;
    gap: 3px;
    margin-top: 0;
}

.footer-contact-list a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 180ms ease;
}

.footer-contact-list a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
}

.footer-contact-list a span {
    color: #79d9d2;
    font-size: 12px;
}

.footer-email-list {
    gap: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(2, 12, 32, 0.28);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(100%, var(--page-width));
    min-height: 72px;
    margin: 0 auto;
    padding: 18px clamp(20px, 4vw, 58px);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.63);
    font-size: 12px;
    line-height: 1.6;
}

.footer-bottom p:last-child {
    text-align: right;
}

.footer-bottom span {
    color: #78ded6;
    font-weight: 760;
}

@media (max-width: 1120px) {
    .footer-grid {
        grid-template-columns: minmax(300px, 1.4fr) repeat(2, minmax(170px, 0.8fr));
    }

    .footer-contact {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-contact > h2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(145px, 0.75fr));
        gap: 38px 28px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-description {
        max-width: 75ch;
    }

    .footer-contact {
        grid-template-columns: 1fr 1fr;
    }

    .footer-contact-item:first-of-type {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .footer-shell {
        padding: 58px 18px 42px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 38px 24px;
    }

    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-description {
        font-size: 13px;
        line-height: 1.78;
    }

    .footer-contact {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-contact-item:first-of-type {
        grid-column: auto;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-height: 92px;
        padding: 20px 18px;
        text-align: center;
    }

    .footer-bottom p:last-child {
        text-align: center;
    }
}

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

    .footer-brand {
        align-items: flex-start;
    }

    .footer-logo-wrap {
        width: 66px;
        height: 60px;
        border-radius: 14px;
    }

    .footer-call-button {
        width: 100%;
    }
}
