/* =====================================================
   Har Har Mahadev Ambulance Services - Blue & White theme
   Font: Georgia, serif
===================================================== */

:root {
    --navy: #0a2a5e;
    --navy-dark: #061b3f;
    --blue: #1565d8;
    --blue-dark: #0d47a1;
    --sky: #eaf2ff;
    --ink: #1b2a41;
    --muted: #5d6b82;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(10, 42, 94, .12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Georgia", serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.75;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

img.img-missing {
    visibility: hidden;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.bg-sky {
    background: var(--sky);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid transparent;
    cursor: pointer;
    transition: .3s;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
}

.btn-primary:hover {
    background: var(--navy);
}

.btn-light {
    background: #fff;
    color: var(--blue-dark);
}

.btn-light:hover {
    background: var(--navy);
    color: #fff;
}

.btn-outline {
    border-color: #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--navy);
}

/* ---------- Top header ---------- */
.topbar {
    background: var(--navy-dark);
    color: #fff;
    font-size: 14px;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.topbar-left i {
    color: #6ea8fe;
    margin-right: 6px;
}

.topbar-right {
    gap: 8px;
}

.topbar-right a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .1);
    transition: .3s;
}

.topbar-right a:hover {
    background: var(--blue);
}

/* ---------- Navbar (3 columns) ---------- */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 18px rgba(10, 42, 94, .08);
}

.nav-wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    min-height: 86px;
}

.brand img {
    height: 68px;
    width: auto;
    object-fit: contain;
}

.nav-links ul {
    display: flex;
    justify-content: center;
    gap: 34px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    padding: 6px 0;
    border-bottom: 3px solid transparent;
    transition: .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

.nav-links .btn {
    border-bottom: 2px solid transparent;
    color: #fff;
}

.nav-links .btn:hover {
    color: #fff;
}

.mobile-only {
    display: none;
}

.burger {
    display: none;
    background: none;
    border: 0;
    font-size: 32px;
    color: var(--navy);
    cursor: pointer;
}

/* ---------- Hero slider ---------- */
.hero {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: var(--navy);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    transition: opacity .9s;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(6, 27, 63, .92), rgba(10, 42, 94, .6) 55%, rgba(21, 101, 216, .15));
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 700px;
}

.slide-tag {
    display: inline-block;
    background: #fff;
    color: var(--blue-dark);
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 20px;
}

.slide-content h1 {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 18px;
}

.slide-content h1 span {
    color: #8bbcff;
}

.slide-content p {
    font-size: 17px;
    color: #e3eeff;
    margin-bottom: 30px;
    max-width: 600px;
}

.slide-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, .92);
    color: var(--navy);
    font-size: 20px;
    transition: .3s;
}

.slider-arrow:hover {
    background: var(--blue);
    color: #fff;
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.slider-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
}

.slider-dots button.active {
    background: #fff;
}

/* ---------- Section headings ---------- */
.sec-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.sec-tag {
    display: inline-block;
    background: var(--sky);
    color: var(--blue);
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.bg-sky .sec-tag {
    background: #fff;
}

.sec-head h2 {
    font-size: 36px;
    color: var(--navy);
    margin: 12px 0 10px;
    line-height: 1.3;
}

.sec-head h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    border-radius: 4px;
    background: var(--blue);
    margin: 14px auto 0;
}

.sec-head p {
    color: var(--muted);
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
}

.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 27, 63, .72);
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 44px;
    margin-bottom: 8px;
}

.crumbs {
    font-size: 15px;
    color: #cfe0ff;
}

.crumbs a:hover {
    color: #fff;
}

.crumbs i {
    margin: 0 6px;
    font-size: 12px;
}

/* ---------- About (image left, text right) ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-img {
    position: relative;
}

.split-img img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-height: 340px;
    object-fit: cover;
    background: var(--sky);
}

/* .split-img::before {
    content: "";
    position: absolute;
    left: -16px;
    top: -16px;
    width: 60%;
    height: 60%;
    border: 4px solid var(--blue);
    border-radius: var(--radius);
    z-index: -1;
} */

.exp-badge {
    position: absolute;
    right: -14px;
    bottom: 26px;
    background: var(--blue);
    color: #fff;
    padding: 18px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.exp-badge strong {
    display: block;
    font-size: 32px;
    line-height: 1.1;
}

.split-text .sec-tag {
    margin-bottom: 8px;
}

.split-text h2 {
    font-size: 34px;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 16px;
}

.split-text p {
    color: var(--muted);
    margin-bottom: 14px;
}

.tick-list {
    margin: 18px 0 26px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.tick-list li {
    font-weight: 700;
    color: var(--navy);
}

.tick-list i {
    color: var(--blue);
    margin-right: 8px;
}

/* ---------- Stat strip ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.stat {
    background: var(--sky);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
}

.stat i {
    font-size: 30px;
    color: var(--blue);
}

.stat strong {
    display: block;
    font-size: 22px;
    color: var(--navy);
}

.stat span {
    color: var(--muted);
    font-size: 14px;
}

/* ---------- Service cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.s-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .35s;
    border-bottom: 4px solid var(--blue);
}

.s-card:hover {
    transform: translateY(-8px);
}

.s-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--sky);
}

.s-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.s-card:hover .s-img img {
    transform: scale(1.08);
}

.s-icon {
    position: absolute;
    left: 22px;
    bottom: -26px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--blue);
    color: #fff;
    font-size: 24px;
    border: 4px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.s-body {
    padding: 42px 24px 26px;
}

.s-body h3 {
    font-size: 21px;
    color: var(--navy);
    margin-bottom: 8px;
}

.s-body p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 14px;
}

.s-body a {
    color: var(--blue);
    font-weight: 700;
}

.s-body a i {
    margin-left: 4px;
    transition: .3s;
}

.s-body a:hover i {
    margin-left: 10px;
}

/* ---------- Why choose us ---------- */
.why {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    color: #fff;
}

.why .sec-head h2 {
    color: #fff;
}

.why .sec-head h2::after {
    background: #8bbcff;
}

.why .sec-head p {
    color: #cfe0ff;
}

.why .sec-tag {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-box {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    padding: 32px 26px;
    transition: .3s;
}

.why-box:hover {
    background: rgba(255, 255, 255, .14);
    transform: translateY(-5px);
}

.why-box i {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.why-box h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.why-box p {
    color: #d4e3ff;
    font-size: 15px;
}

/* ---------- Gallery (4 columns) ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.g-item {
    position: relative;
    display: block;
    height: 250px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--sky);
    box-shadow: var(--shadow);
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.g-item:hover img {
    transform: scale(1.12);
}

.g-item::after {
    content: "\F52A";
    font-family: "bootstrap-icons";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #fff;
    background: rgba(21, 101, 216, .72);
    opacity: 0;
    transition: .35s;
}

.g-item:hover::after {
    opacity: 1;
}

.center-btn {
    text-align: center;
    margin-top: 40px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(6, 27, 63, .94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-height: 88vh;
    max-width: 92vw;
    border-radius: 10px;
}

.lightbox button {
    position: absolute;
    border: 0;
    cursor: pointer;
    background: #fff;
    color: var(--navy);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 20px;
}

.lightbox .lb-close {
    top: 22px;
    right: 22px;
}

.lightbox .lb-prev {
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox .lb-next {
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
}

/* ---------- Info cards (hours / payment) ---------- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px 26px;
    border-top: 4px solid var(--blue);
}

.info-card i.big {
    font-size: 34px;
    color: var(--blue);
}

.info-card h3 {
    color: var(--navy);
    font-size: 20px;
    margin: 8px 0;
}

.info-card p,
.info-card li {
    color: var(--muted);
    font-size: 15px;
}

.info-card li {
    padding: 4px 0;
}

.info-card li strong {
    color: var(--navy);
}

/* ---------- FAQ ---------- */
.faq {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    overflow: hidden;
}

.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.faq-q i {
    color: var(--blue);
    transition: .3s;
}

.faq-item.open .faq-q i {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s;
}

.faq-a p {
    padding: 0 22px 20px;
    color: var(--muted);
}

.faq-item.open .faq-a {
    max-height: 260px;
}

/* ---------- CTA ---------- */
.cta {
    background: linear-gradient(120deg, var(--blue-dark), var(--blue));
    color: #fff;
    padding: 60px 0;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 6px;
}

.cta p {
    color: #dbe9ff;
}

/* ---------- Vision & Mission ---------- */
.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.vm-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 34px;
    border-top: 5px solid var(--blue);
}

.vm-card .vm-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: var(--sky);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 18px;
}

.vm-card h3 {
    font-size: 26px;
    color: var(--navy);
    margin-bottom: 10px;
}

.vm-card p {
    color: var(--muted);
}

.vm-card ul {
    margin-top: 12px;
}

.vm-card li {
    color: var(--muted);
    padding: 5px 0;
}

.vm-card li i {
    color: var(--blue);
    margin-right: 8px;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.c-details h2,
.c-form h2 {
    font-size: 30px;
    color: var(--navy);
    margin-bottom: 8px;
}

.c-details>p {
    color: var(--muted);
    margin-bottom: 22px;
}

.c-item {
    display: flex;
    gap: 16px;
    background: var(--sky);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 14px;
}

.c-item .ic {
    min-width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.c-item h4 {
    color: var(--navy);
    font-size: 17px;
}

.c-item p,
.c-item a {
    color: var(--muted);
    font-size: 15px;
    display: block;
    line-height: 1.6;
}

.c-item a:hover {
    color: var(--blue);
}

.c-form {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px;
    border-top: 5px solid var(--blue);
}

.c-form form input,
.c-form form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid #cdd9ee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: .3s;
}

.c-form form input:focus,
.c-form form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(21, 101, 216, .15);
}

.c-form form textarea {
    height: 130px;
    resize: none;
}

.hp {
    position: absolute;
    left: -9999px;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 15px;
}

.alert.ok {
    background: #e6f6ec;
    color: #17653a;
}

.alert.err {
    background: #fdecec;
    color: #a32121;
}

.map-wrap {
    margin-top: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-wrap iframe {
    width: 100%;
    height: 430px;
    border: 0;
    display: block;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-dark);
    color: #fff;
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr .8fr 1.1fr 1.3fr;
    gap: 40px;
}

.f-logo img {
    height: 74px;
    width: auto;
    background: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.f-col p {
    color: #b9c9e6;
    font-size: 15px;
}

.f-col h4 {
    font-size: 19px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.f-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    border-radius: 3px;
    background: #6ea8fe;
}

.f-links li {
    margin-bottom: 11px;
}

.f-links a {
    color: #b9c9e6;
    font-size: 15px;
    transition: .3s;
}

.f-links a i {
    color: #6ea8fe;
    font-size: 11px;
    margin-right: 6px;
}

.f-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.f-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    color: #b9c9e6;
    font-size: 15px;
}

.f-contact li i {
    color: #6ea8fe;
    margin-top: 4px;
}

.f-contact a:hover {
    color: #fff;
}

.f-social {
    display: flex;
    gap: 9px;
    margin-top: 18px;
}

.f-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.f-social a:hover {
    background: var(--blue);
}

.copyright {
    margin-top: 55px;
    padding: 20px 0;
    background: #04122b;
    text-align: center;
    font-size: 14px;
    color: #b9c9e6;
}

.to-top {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 900;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .nav-wrap {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    .nav-btn {
        display: none;
    }

    .burger {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        box-shadow: 0 12px 24px rgba(10, 42, 94, .12);
        display: none;
        padding: 14px 4%;
    }

    .nav-links.open {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }

    .nav-links a {
        display: inline-block;
        padding: 8px 0;
    }

    .mobile-only {
        display: block;
        margin-top: 6px;
    }

    .slide-content h1 {
        font-size: 40px;
    }

    .card-grid,
    .why-grid,
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split,
    .contact-grid,
    .vm-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .topbar-inner {
        flex-direction: column;
        gap: 8px;
    }

    .topbar-left {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .section {
        padding: 55px 0;
    }

    .hero {
        height: 580px;
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slider-arrow {
        display: none;
    }

    .sec-head h2,
    .split-text h2 {
        font-size: 27px;
    }

    .card-grid,
    .why-grid,
    .info-grid,
    .footer-grid,
    .tick-list {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .g-item {
        height: 240px;
    }

    .page-banner {
        height: 240px;
    }

    .page-banner h1 {
        font-size: 32px;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
    }

    .c-form {
        padding: 24px;
    }

    .brand img {
        height: 56px;
    }

    .exp-badge {
        right: 8px;
    }

    .split-img::before {
        display: none;
    }
}