/* ===== Footer — Anil Ambulance ===== */
.ah-ft {
    --ah-navy: #0b2545; --ah-red: #e0182d; --ah-red-dark: #b80f21; --ah-green: #1fa855;
    position: relative; overflow: hidden; border-top: 3px solid var(--ah-red);
    font-family: 'Montserrat', sans-serif; color: #a9b6c9; font-size: 15px;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(224, 24, 45, .14), transparent 70%),
        radial-gradient(500px 280px at 0% 100%, rgba(26, 115, 232, .10), transparent 70%),
        #0a1628;
}
.ah-ft a { text-decoration: none; }
.ah-ft a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

/* ---- CTA strip ---- */
.ah-ft-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    margin: 56px 0 0; padding: 26px 32px; border-radius: 18px;
    background: linear-gradient(115deg, var(--ah-red) 0%, var(--ah-red-dark) 100%);
    box-shadow: 0 24px 50px -28px rgba(224, 24, 45, .7);
    position: relative; overflow: hidden;
}
.ah-ft-cta::after {
    content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, .07); pointer-events: none;
}
.ah-ft-ecg { position: absolute; left: 0; top: 50%; width: 100%; height: 80px; transform: translateY(-50%); pointer-events: none; }
.ah-ft-ecg path {
    fill: none; stroke: rgba(255, 255, 255, .11); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
    stroke-dasharray: 1; stroke-dashoffset: 1; animation: ah-ft-ecg 4s linear infinite;
}
@keyframes ah-ft-ecg { 0% { stroke-dashoffset: 1; } 60%, 100% { stroke-dashoffset: 0; } }
.ah-ft-cta-txt { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }
.ah-ft-cta-ic {
    flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .16); color: #fff; font-size: 24px;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .07);
    position: relative;
}
.ah-ft-cta-ic::after {
    content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45);
    animation: ah-ft-pulse 2s ease-out infinite;
}
@keyframes ah-ft-pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---- Trust row ---- */
.ah-ft-trust {
    list-style: none; margin: 24px 0 0 !important; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08);
}
.ah-ft-trust li { display: flex; align-items: center; gap: 14px; padding: 20px 22px; }
.ah-ft-trust li + li { border-left: 1px solid rgba(255, 255, 255, .08); }
.ah-ft-trust i {
    flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(224, 24, 45, .12); border: 1px solid rgba(224, 24, 45, .35); color: #ff5a6b; font-size: 19px;
}
.ah-ft-trust strong { display: block; color: #fff; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.ah-ft-trust span { color: #8f9db2; font-size: 13px; line-height: 1.4; }
.ah-ft-cta h3 { margin: 0; color: #fff; font-size: 22px; font-weight: 800; line-height: 1.25; }
.ah-ft-cta p { margin: 2px 0 0 !important; color: rgba(255, 255, 255, .85); font-size: 14.5px; }
.ah-ft-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.ah-ft-btn {
    height: 52px; padding: 0 24px; border-radius: 12px;
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 15.5px; font-weight: 700; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.ah-ft-btn--call { background: #fff; color: var(--ah-red); }
.ah-ft-btn--call:hover { color: var(--ah-red-dark); transform: translateY(-2px); }
.ah-ft-btn--wa { background: var(--ah-green); color: #fff; }
.ah-ft-btn--wa:hover { background: #178a45; color: #fff; transform: translateY(-2px); }

/* ---- Main grid ---- */
.ah-ft-main {
    display: grid; grid-template-columns: 1.1fr 1.6fr 1.1fr; gap: 48px;
    padding: 44px 0 32px;
}
.ah-ft-logo {
    display: inline-block; padding: 10px 14px; border-radius: 14px; background: #fff;
    box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .6);
}
.ah-ft-logo img { display: block; height: 56px; width: auto; }
.ah-ft-about { margin: 18px 0 0 !important; font-size: 14.5px; line-height: 1.7; color: #a9b6c9; }
.ah-ft-rating {
    display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px;
    border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
    color: #8f9db2; font-size: 12.5px; line-height: 1.35;
}
.ah-ft-rating strong { color: #fff; font-size: 15px; font-weight: 700; }
.ah-ft-rating em { font-style: normal; color: #fbbc04; letter-spacing: 1px; }
.ah-ft-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 20px; }
.ah-ft-social { display: flex; gap: 8px; }
.ah-ft-social a {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
    color: #fff; font-size: 17px; transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.ah-ft-social a:hover { background: var(--ah-red); border-color: var(--ah-red); color: #fff; transform: translateY(-2px); }

.ah-ft-h {
    margin: 6px 0 24px; padding-bottom: 14px; position: relative;
    color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.ah-ft-h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--ah-red); }

.ah-ft-links {
    list-style: none; margin: 0 !important; padding: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px;
}
.ah-ft-links a {
    position: relative; display: block; padding: 6px 0 6px 16px;
    color: #b5c2d4; font-size: 14.5px; font-weight: 500; line-height: 1.4;
    transition: color .2s ease, padding .2s ease;
}
.ah-ft-links a::before {
    content: ""; position: absolute; left: 0; top: calc(6px + .7em - 3px); width: 6px; height: 6px; border-radius: 50%;
    border: 1.5px solid #4a5b73; transition: background .2s ease, border-color .2s ease;
}
.ah-ft-links a:hover { color: #fff; padding-left: 20px; }
.ah-ft-links a:hover::before { background: var(--ah-red); border-color: var(--ah-red); }

.ah-ft-contact { list-style: none; margin: 0 !important; padding: 0; display: grid; gap: 14px; }
.ah-ft-contact li { display: flex; gap: 14px; align-items: flex-start; }
.ah-ft-contact .ah-ft-ic {
    flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(224, 24, 45, .14); color: #ff5a6b; font-size: 17px;
}
.ah-ft-contact small { display: block; color: #7f8ea3; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ah-ft-contact address, .ah-ft-contact a { margin: 0; color: #e4ebf5; font-size: 14.5px; font-style: normal; line-height: 1.55; font-weight: 500; }
.ah-ft-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ah-ft-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.ah-ft-contact .ah-ft-phones a {
    padding: 7px 10px; border-radius: 10px; text-align: center; white-space: nowrap;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
    font-size: 13.5px; font-weight: 600; transition: background .2s ease, border-color .2s ease;
}
.ah-ft-contact .ah-ft-phones a:hover { background: rgba(224, 24, 45, .16); border-color: rgba(224, 24, 45, .5); text-decoration: none; }
.ah-ft-contact .ah-ft-dir { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; color: #ff6b7a; font-size: 13px; font-weight: 600; }
.ah-ft-contact .ah-ft-dir:hover { color: #fff; }
.ah-ft-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; order: 2; }
.ah-ft-nav a { color: #b5c2d4 !important; font-weight: 500 !important; }
.ah-ft-nav a:hover { color: #fff !important; }

/* ---- Bottom bar ---- */
.ah-ft-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; color: #8796ab;
}
.ah-ft-bottom a { color: #dbe4f0; font-weight: 600; }
.ah-ft-bottom a:hover { color: #fff; }
.ah-ft-top {
    order: 3;
    display: inline-flex; align-items: center; gap: 8px; color: #dbe4f0;
}
.ah-ft-top i {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .08); transition: background .2s ease;
}
.ah-ft-top:hover i { background: var(--ah-red); }

/* ---- Responsive ---- */
@media (max-width: 1199.98px) {
    .ah-ft-main { grid-template-columns: 1fr 1fr; gap: 40px; }
    .ah-ft-col--links { grid-column: 1 / -1; order: 3; }
    .ah-ft-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px) {
    .ah-ft-cta { padding: 24px; }
    .ah-ft-trust { grid-template-columns: 1fr 1fr; }
    .ah-ft-trust li:nth-child(3) { border-left: 0; }
    .ah-ft-trust li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
    .ah-ft-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767.98px) {
    .ah-ft-cta { margin-top: 40px; flex-direction: column; align-items: flex-start; }
    .ah-ft-cta h3 { font-size: 19px; }
    .ah-ft-cta-btns, .ah-ft-btn { width: 100%; }
    .ah-ft-btn { justify-content: center; flex: 1; }
    .ah-ft-main { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 32px; }
    .ah-ft-col--links { order: 0; }
    .ah-ft-bottom { flex-direction: column; text-align: center; padding-bottom: 90px; }
    .ah-ft-nav { order: 0; justify-content: center; }
    .ah-ft-top { order: 3; }
    .ah-ft-trust li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
}
@media (max-width: 575.98px) {
    .ah-ft-links { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 575.98px) {
    .ah-ft-contact li > div { flex: 1; min-width: 0; }
    .ah-ft-phones { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
    .ah-ft-contact .ah-ft-phones a { padding: 9px 8px; font-size: 13px; }
    .ah-ft-contact a { overflow-wrap: anywhere; }
    .ah-ft-bottom { gap: 16px; padding-top: 22px; font-size: 12.5px; line-height: 1.7; }
    .ah-ft-nav { gap: 8px 20px; }
    .ah-ft-nav a { font-size: 13.5px; }
    .ah-ft-bottom > div { max-width: 300px; margin: 0 auto; }
    .ah-ft-top {
        height: 40px; padding: 0 8px 0 16px; border-radius: 30px; font-size: 13px; font-weight: 600;
        background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
    }
    .ah-ft-top i { width: 28px; height: 28px; border-radius: 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .ah-ft * { transition: none !important; }
    .ah-ft-ecg path, .ah-ft-cta-ic::after { animation: none; }
    .ah-ft-ecg path { stroke-dashoffset: 0; }
}
