/* Footer IVF-Life v2 — isolated from the header menu and legacy footer blocks. */
.ivf-footer-v2 {
    color: #282b5c;
    background: #f4f1ed;
}
.ivf-footer-v2, .ivf-footer-v2 * { box-sizing: border-box; }
.ivf-footer-v2 a { text-decoration: none; }
.ivf-footer-v2 a:hover { text-decoration: none; }
.ivf-footer-v2 a:focus-visible,
.ivf-footer-v2 button:focus-visible {
    outline: 3px solid #018aa0;
    outline-offset: 4px;
}
/* NewsletterSend is deliberately not rebuilt: maintain OctoberCMS form, validation, and consent. */
.ivf-footer-v2 .ivf-footer-v2__newsletter {
    border-bottom: 1px solid rgba(40,43,92,.36);
}
.ivf-footer-v2__layout {
    width: 100%;
    padding: 0 clamp(22px, 3vw, 64px);
    display: grid;
    grid-template-columns: minmax(220px, 25.5%) minmax(0, 1fr);
    grid-template-areas:
        "brand nav"
        "social nav"
        "appointment nav"
        "google google"
        "clinics clinics"
        "badges badges"
        "legal legal";
    grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto;
    column-gap: clamp(20px, 3vw, 60px);
}
.ivf-footer-v2__brand {
    grid-area: brand;
    min-width: 0;
    padding: 34px 8px 0 0;
}
.ivf-footer-v2__brand img {
    max-width: min(100%, 245px);
    height: auto;
    display: block;
}
.ivf-footer-v2__brand p {
    max-width: 315px;
    font-size: 15px;
    line-height: 1.45;
    margin: 12px 0 0;
}
.ivf-footer-v2__social {
    grid-area: social;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 14px 0 8px;
}
.ivf-footer-v2__social a {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    background: #292c5e;
    color: #fff;
    padding: 7px;
}
.ivf-footer-v2__social .svg { display: block; width: 21px; height: 21px; }
.ivf-footer-v2__appointment {
    grid-area: appointment;
    padding: 5px 0 28px;
}
.ivf-footer-v2__appointment-link {
    width: min(100%, 310px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 22px;
    background: #008ba0;
    color: #fff !important;
    font-size: 16px;
    line-height: 1.25;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color .18s ease;
}
.ivf-footer-v2__appointment-link:hover { background: #007085; }
.ivf-footer-v2__appointment-link span { font-size: 25px; line-height: .8; }
.ivf-footer-v2__nav {
    grid-area: nav;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    column-gap: clamp(14px, 2vw, 36px);
    padding: 35px 0 28px;
}
.ivf-footer-v2__nav-group { min-width: 0; padding-left: clamp(8px, 1.2vw, 24px); border-left: 1px solid rgba(40,43,92,.25); }
.ivf-footer-v2__nav-heading {
    margin: 0 0 15px;
    font-size: clamp(15px, 1.15vw, 20px);
    line-height: 1.2;
    font-weight: 700;
    color: #282b5c;
}
.ivf-footer-v2__accordion { display: none !important; }
.ivf-footer-v2__nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.ivf-footer-v2__nav-links a {
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.35;
    font-weight: 400 !important;
    color: #282b5c;
    transition: color .15s ease;
}
.ivf-footer-v2__nav-links a:hover { color: #008ba0; }
.ivf-footer-v2__google {
    grid-area: google;
    border-top: 1px solid rgba(40,43,92,.36);
    border-bottom: 1px solid rgba(40,43,92,.36);
    padding: 20px 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ivf-footer-v2__google-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 560px;
    width: min(100%, 560px);
    border-radius: 999px;
    transition: transform .18s ease;
}
.ivf-footer-v2__google-link:hover { transform: translateY(-1px); }
.ivf-footer-v2__google-link img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 999px;
}
.ivf-footer-v2__clinics {
    grid-area: clinics;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    border-top: 1px solid rgba(40, 43, 92, .36);
    gap: clamp(18px, 3vw, 58px);
    padding: 22px 0 27px;
}
.ivf-footer-v2__clinics-mobile-heading { display: none; }
.ivf-footer-v2__clinic { min-width: 0; }
.ivf-footer-v2__clinic + .ivf-footer-v2__clinic { border-left: 1px solid rgba(40,43,92,.25); padding-left: clamp(18px, 2vw, 40px); }
.ivf-footer-v2__clinic-name {
    font-weight: 700;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.35;
    margin-bottom: 12px;
}
.ivf-footer-v2__clinic a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: clamp(12px, .87vw, 14px);
    color: #008ba0;
    line-height: 1.45;
    margin: 12px 0 0;
    min-width: 0;
}
.ivf-footer-v2__clinic a:hover { text-decoration: underline; }
.ivf-footer-v2__clinic a img {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
    margin-top: 1px;
}
.ivf-footer-v2__badges {
    grid-area: badges;
    border-top: 1px solid rgba(40,43,92,.36);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: clamp(10px, 1.4vw, 26px);
    padding: 20px 8px;
    min-width: 0;
}
.ivf-footer-v2__badges > img {
    display: block;
    width: auto;
    height: auto;
    min-width: 0;
    max-height: clamp(42px, 4.7vw, 75px);
    max-width: min(11.5%, 140px);
    object-fit: contain;
    filter: grayscale(1);
}
.ivf-footer-v2__legal {
    grid-area: legal;
    border-top: 1px solid rgba(40,43,92,.56);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 8px;
    gap: 30px;
    font-size: 14px;
    line-height: 1.5;
}
.ivf-footer-v2__policies { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.ivf-footer-v2__policies a { color: inherit; white-space: nowrap; }
.ivf-footer-v2__policies a:not(:last-child)::after {
    content: '·';
    margin-left: 9px;
    color: #282b5c;
}
.ivf-footer-v2__policies a:hover { color: #008ba0; }
.ivf-footer-v2__copyright { white-space: nowrap; }

@media (min-width: 768px) and (max-width: 1100px) {
    .ivf-footer-v2__layout { grid-template-columns: minmax(190px, 23%) minmax(0,1fr); column-gap: 14px; }
    .ivf-footer-v2__nav { column-gap: 8px; }
    .ivf-footer-v2__nav-group { padding-left: 10px; }
    .ivf-footer-v2__nav-heading { font-size: 14px; }
    .ivf-footer-v2__nav-links a { font-size: 13px; }
    .ivf-footer-v2__social { gap: 5px; }
    .ivf-footer-v2__social a { width: 30px; height: 30px; min-width: 30px; }
}

@media (max-width: 767px) {
    .ivf-footer-v2__layout {
        padding: 0 22px;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .ivf-footer-v2__nav { order: 1; }
    .ivf-footer-v2__google { order: 2; }
    .ivf-footer-v2__clinics { order: 3; }
    .ivf-footer-v2__social { order: 4; }
    .ivf-footer-v2__badges { order: 5; }
    .ivf-footer-v2__legal { order: 6; }
    /* Logo already appears in the global mobile header. Avoid a second logo inside the footer. */
    .ivf-footer-v2__brand { display: none; }
    .ivf-footer-v2__appointment { display: none; }
    .ivf-footer-v2__nav {
        display: block;
        padding: 12px 0 0;
    }
    .ivf-footer-v2__nav-group {
        border: 0;
        border-bottom: 1px solid rgba(40,43,92,.4);
        padding: 0;
    }
    .ivf-footer-v2__nav-group:first-child { border-top: 1px solid rgba(40,43,92,.4); }
    .ivf-footer-v2__nav-heading { display: none; }
    .ivf-footer-v2__accordion {
        display: flex !important;
        width: 100%;
        border: 0;
        appearance: none;
        background: transparent;
        color: #282b5c;
        font-size: 19px;
        font-weight: 700;
        padding: 17px 0;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        cursor: pointer;
    }
    .ivf-footer-v2__chevron {
        display: inline-block;
        width: 11px;
        height: 11px;
        border-bottom: 2px solid currentColor;
        border-right: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform .2s ease;
        margin: -5px 4px 0 0;
    }
    .ivf-footer-v2__nav-group.is-open .ivf-footer-v2__chevron { transform: rotate(225deg); margin-top: 5px; }
    .ivf-footer-v2__nav-links { display: none; padding: 0 5px 18px; gap: 13px; }
    .ivf-footer-v2__nav-group.is-open .ivf-footer-v2__nav-links { display: flex; }
    .ivf-footer-v2__nav-links a { font-size: 15px; }
    .ivf-footer-v2__google { border-top: 0; padding: 21px 0; }
    .ivf-footer-v2__google-link { width: 100%; max-width: 520px; }
    /* Contact details remain accessible through clinic links in accordion. */
    .ivf-footer-v2__clinics {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 18px 0 8px;
        text-align: center;
    }
    .ivf-footer-v2__clinics-mobile-heading {
        display: block;
        font-size: 17px;
        line-height: 1.4;
        font-weight: 600;
        margin: 0 0 14px;
        text-align: left;
    }
    .ivf-footer-v2__clinic { padding: 0 0 15px; }
    .ivf-footer-v2__clinic + .ivf-footer-v2__clinic {
        border-left: 0;
        border-top: 1px solid rgba(40,43,92,.15);
        padding: 16px 0 15px;
    }
    .ivf-footer-v2__clinic-name { font-size: 14px; text-align: left; }
    .ivf-footer-v2__clinic a { font-size: 13px; text-align: left; width: max-content; max-width: 100%; }
    .ivf-footer-v2__social {
        border-top: 1px solid rgba(40,43,92,.36);
        border-bottom: 1px solid rgba(40,43,92,.36);
        padding: 18px 0;
        justify-content: center;
        gap: 9px;
    }
    .ivf-footer-v2__social a { width: 36px; height: 36px; min-width: 36px; }
    /* Mobile mockup approved without the accreditation strip. */
    .ivf-footer-v2__badges { display: none; }
    .ivf-footer-v2__badges > img { max-width: 22%; max-height: 45px; }
    .ivf-footer-v2__legal {
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 20px 0 28px;
        font-size: 13px;
    }
    .ivf-footer-v2__policies { justify-content: center; gap: 6px; }
    .ivf-footer-v2__policies a:not(:last-child)::after { margin-left: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .ivf-footer-v2__appointment-link,
    .ivf-footer-v2__nav-links a,
    .ivf-footer-v2__google-link,
    .ivf-footer-v2__chevron { transition: none !important; }
}