/* EHR Footer v1.0.0 */
.ehr-footer,
.ehr-footer * { box-sizing:border-box; }

.ehr-footer {
    width:100%;
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    color:#fff;
}

.ehr-footer-shell {
    width:min(100% - 48px, 1280px);
    margin:0 auto;
}

.ehr-footer-main {
    background:#081a36;
    padding:58px 0 48px;
}

.ehr-footer-grid {
    display:grid;
    grid-template-columns:1.65fr repeat(3,1fr);
    gap:48px;
}

.ehr-footer-logo {
    display:inline-block;
    margin-bottom:17px;
    color:#fff !important;
    text-decoration:none !important;
    font-size:27px;
    font-weight:700;
}

.ehr-footer-brand p {
    margin:0 0 22px;
    max-width:350px;
    color:rgba(255,255,255,.72);
    font-size:14px;
    line-height:1.7;
}

.ehr-footer-socials {
    display:flex;
    gap:10px;
}

.ehr-footer-socials a {
    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.26);
    border-radius:50%;
    color:#fff !important;
    text-decoration:none !important;
    font-size:14px;
    font-weight:700;
}

.ehr-footer-column h3 {
    margin:4px 0 18px;
    color:#fff;
    font-size:16px;
    font-weight:700;
}

.ehr-footer-column a {
    display:block;
    margin:0 0 12px;
    color:rgba(255,255,255,.72) !important;
    text-decoration:none !important;
    font-size:14px;
    line-height:1.5;
}

.ehr-footer-column a:hover,
.ehr-footer-socials a:hover {
    color:#fff !important;
}

.ehr-footer-bottom {
    background:#06142b;
    border-top:1px solid rgba(255,255,255,.09);
}

.ehr-footer-bottom-inner {
    min-height:68px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.ehr-footer-bottom p {
    margin:0;
    color:rgba(255,255,255,.55);
    font-size:13px;
}

.ehr-footer-bottom a {
    margin-left:20px;
    color:rgba(255,255,255,.6) !important;
    text-decoration:none !important;
    font-size:13px;
}

@media (max-width:900px) {
    .ehr-footer-grid {
        grid-template-columns:1.5fr 1fr 1fr;
        gap:35px;
    }
    .ehr-footer-column:last-child {
        grid-column:2 / 4;
    }
}

@media (max-width:700px) {
    .ehr-footer-shell { width:min(100% - 32px, 1280px); }

    .ehr-footer-grid {
        grid-template-columns:1fr 1fr;
        gap:35px 25px;
    }

    .ehr-footer-brand {
        grid-column:1 / -1;
    }

    .ehr-footer-column:last-child {
        grid-column:auto;
    }

    .ehr-footer-bottom-inner {
        padding:20px 0;
    }

    .ehr-footer-bottom a {
        margin:0 18px 0 0;
    }
}

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

/* v1.1.0: Footer starts directly after the preceding section */
.ehr-footer {
    margin: 0 !important;
    padding: 0 !important;
    clear: both;
}

.ehr-footer-main {
    margin-top: 0 !important;
}

.ehr-footer-logo-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 82px;
    object-fit: contain;
    object-position: left center;
}

/* Prevent theme/footer wrapper spacing from being inherited */
#ehr-footer,
footer#ehr-footer {
    position: relative;
    top: auto;
    min-height: 0;
}


/* v1.1.4 safe spacing protection */
#ehr-footer {
    display: block !important;
    position: relative !important;
    clear: both !important;
    margin-top: 0 !important;
}


/* v1.1.5 precise white-gap protection */
#ehr-footer,
footer#ehr-footer {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding-top: 0 !important;
    clear: both !important;
}


/* v1.1.6 Footer CTA */
.ehr-footer-cta {
    width: 100%;
    background: linear-gradient(100deg, #244d9c 0%, #7d438d 42%, #d22a76 70%, #ff6b2c 100%);
}

.ehr-footer-cta-inner {
    min-height: 142px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 0;
}

.ehr-footer-cta-copy h2 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 700;
}

.ehr-footer-cta-copy p {
    margin: 0;
    max-width: 640px;
    color: rgba(255,255,255,.92);
    font-size: 15px;
    line-height: 1.55;
}

.ehr-footer-cta-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.ehr-footer-btn {
    min-width: 170px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 7px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    transition: opacity .2s ease, transform .2s ease;
}

.ehr-footer-btn:hover {
    opacity: .92;
    transform: translateY(-1px);
}

.ehr-footer-btn-primary {
    background: #fff;
    color: #9b2f63 !important;
    border: 1px solid #fff;
}

.ehr-footer-btn-secondary {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.9);
}

@media (max-width: 900px) {
    .ehr-footer-cta-inner {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
    }
    .ehr-footer-cta-actions { justify-content: flex-start; }
}

@media (max-width: 600px) {
    .ehr-footer-cta-inner { padding: 28px 0; gap: 22px; }
    .ehr-footer-cta-copy h2 { font-size: 23px; }
    .ehr-footer-cta-copy p { font-size: 14px; }
    .ehr-footer-cta-actions { width: 100%; }
    .ehr-footer-btn { width: 100%; }
}
