﻿
:root {
    --orange: #C34A25;
    --orange-2: #E2661F;
    --blue: #004B82;
    --blue-deep: #06304F;
    --red: #C33030;
    --slate: #3C4854;
    --ink: #14202B;
    --paper: #FFFFFF;
    --wash: #F6F2EE;
    --line: #E4DCD4;
    --muted: #6B7683;
    /* one font for the whole site; Mukta only fills in the Devanagari (Marathi) glyphs Public Sans lacks */
    --site-font: 'Public Sans', 'Mukta', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --head: var(--site-font);
    --body: var(--site-font);
    --dev: var(--site-font);
    --nav-h: 88px;
}

    :root:not([data-theme="light"]) {
    }

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

html {
    overflow-x: hidden
}

/* clip (not hidden) so <body> never becomes a scroll box — that would break the sticky header */
body {
    overflow-x: clip
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

:focus-visible {
    outline: 3px solid var(--orange-2);
    outline-offset: 3px;
    border-radius: 4px
}

.wrap {
    width: min(1200px, 92vw);
    margin-inline: auto
}

/* ───────── HEADER ───────── */
.topbar {
    position: relative;
    overflow: hidden;
    background: var(--blue-deep);
    color: #C9DCEB;
    font-size: 13.5px;
    transform: translateY(-100%);
    animation: dropIn .55s .05s cubic-bezier(.22, .9, .3, 1) forwards;
}

    .topbar .wrap {
        display: flex;
        gap: 0;
        align-items: stretch;
        justify-content: space-between;
        min-height: 46px
    }

/* slanted emergency flag */
.tb-flag {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 26px 0 0;
    margin-right: 26px;
    color: #fff;
    font-weight: 600;
    font-family: var(--head);
    letter-spacing: .01em;
}

    .tb-flag::before {
        content: "";
        position: absolute;
        inset: 0 0 0 -50vw;
        z-index: 0;
        background: linear-gradient(100deg, var(--orange) 0%, var(--orange-2) 100%);
        transform: skewX(-18deg);
        transform-origin: bottom left;
    }

    .tb-flag > * {
        position: relative;
        z-index: 1
    }

.tb-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    position: relative
}

    .tb-dot::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 2px solid #fff;
        animation: pulse 2s ease-out infinite
    }

.tb-flag a {
    color: #fff
}

    .tb-flag a:hover {
        text-decoration: underline
    }

.tb-list {
    display: flex;
    gap: 22px;
    align-items: center;
    flex: 1
}

.tb-item {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap
}

    .tb-item svg {
        width: 18px;
        height: 18px;
        flex: none;
        color: var(--orange-2)
    }

a.tb-item {
    transition: color .25s
}

    a.tb-item:hover {
        color: #fff
    }

        a.tb-item:hover b {
            color: var(--orange-2)
        }

.tb-item b {
    color: #fff;
    font-weight: 600;
    letter-spacing: .01em
}

/* rotating notice */
.ticker {
    position: relative;
    overflow: hidden;
    height: 20px;
    min-width: 246px;
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .ticker svg {
        width: 18px;
        height: 18px;
        color: var(--orange-2);
        flex: none
    }

.ticker-track {
    position: relative;
    flex: 1;
    height: 20px
}

    .ticker-track span {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        white-space: nowrap;
        opacity: 0;
        transform: translateY(100%);
        animation: roll 15s linear infinite;
    }

        .ticker-track span:nth-child(2) {
            animation-delay: 5s
        }

        .ticker-track span:nth-child(3) {
            animation-delay: 10s
        }

@keyframes roll {
    0% {
        opacity: 0;
        transform: translateY(100%)
    }

    3%, 30% {
        opacity: 1;
        transform: translateY(0)
    }

    33% {
        opacity: 0;
        transform: translateY(-100%)
    }

    100% {
        opacity: 0;
        transform: translateY(-100%)
    }
}

.tb-right {
    display: flex;
    align-items: center;
    gap: 14px
}

.tb-social {
    display: flex;
    gap: 8px
}

    .tb-social a {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, .08);
        transition: background .25s, transform .25s;
    }

        .tb-social a:hover {
            background: var(--orange);
            transform: translateY(-2px)
        }

    .tb-social svg {
        width: 17px;
        height: 17px
    }

.nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%);
    animation: dropIn .6s .18s cubic-bezier(.22, .9, .3, 1) forwards;
    transition: box-shadow .3s;
}

    .nav.stuck {
        box-shadow: 0 10px 30px -18px rgba(6, 48, 79, .55)
    }

    .nav .wrap {
        display: flex;
        align-items: center;
        gap: 26px;
        height: var(--nav-h);
        transition: height .3s
    }

        .nav .wrap > .menu {
            height: auto
        }

    .nav.stuck .wrap {
        height: 70px
    }

.brand img {
    height: 54px;
    width: auto;
    transition: height .3s
}

.nav.stuck .brand img {
    height: 44px
}

.menu {
    display: flex;
    gap: 22px;
    margin-left: auto;
    align-self: stretch;
    align-items: stretch;
    white-space: nowrap
}

.mi {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%
}

.menu a {
    font-family: var(--head);
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    position: relative;
    padding: 10px 0;
    transition: color .25s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mi > a .chev {
    width: 12px;
    height: 12px;
    transition: transform .3s
}

.mi:hover > a .chev {
    transform: rotate(180deg)
}

.sub {
    position: absolute;
    top: calc(100% + 1px);
    left: -16px;
    min-width: 258px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 2px solid var(--orange);
    border-radius: 12px;
    box-shadow: 0 22px 44px -26px rgba(6, 48, 79, .65);
    padding: 8px;
    display: grid;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .28s, transform .28s, visibility .28s;
    z-index: 70;
}

.mi:hover > .sub,
.mi:focus-within > .sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.sub a {
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14.5px;
    white-space: normal;
    line-height: 1.4;
}

    .sub a::after {
        display: none
    }

    .sub a:hover {
        background: var(--wash);
        color: var(--orange)
    }

/* ---------- Services mega menu ----------
   The panel spans the header row (anchored to .nav .wrap, not to the menu item):
   three columns of rectangular service tiles + one wide feature card at the bottom. */
.nav .wrap {
    position: relative
}

.mi.mi-mega {
    position: static
}

.sub.mega {
    left: 50%;
    right: auto;
    width: min(1080px, calc(100vw - 48px));
    min-width: 0;
    translate: -50% 0;
    padding: 22px;
    gap: 18px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mega-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.mega-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.mega-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px;
    padding: 0 2px 10px;
    border-bottom: 1px solid var(--line);
    font-family: var(--head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    white-space: normal;
}

.mega-ic {
    flex: none;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--wash);
    color: var(--orange);
}

    .mega-ic svg {
        width: 17px;
        height: 17px
    }

/* rectangular tile */
.menu .sub a.mega-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    white-space: normal;
    transition: border-color .25s, background-color .25s, color .25s, transform .25s, box-shadow .25s;
}

    .menu .sub a.mega-tile:hover,
    .menu .sub a.mega-tile:focus-visible {
        border-color: var(--orange);
        background: var(--wash);
        color: var(--orange);
        transform: translateY(-1px);
        box-shadow: 0 10px 20px -16px rgba(6, 48, 79, .8);
    }

.mega-go {
    flex: none;
    width: 15px;
    height: 15px;
    color: var(--orange);
    opacity: .45;
    transition: opacity .25s, transform .25s;
}

.mega-tile:hover .mega-go,
.mega-tile:focus-visible .mega-go {
    opacity: 1;
    transform: translateX(3px)
}

/* the big rectangle at the end: all services */
.mega-feature {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-radius: 12px;
    background: linear-gradient(115deg, var(--blue) 0%, #06304F 100%);
    color: #fff;
    white-space: normal;
}

.mega-feature__text {
    flex: 1 1 auto;
    display: grid;
    gap: 3px;
    min-width: 0;
}

    .mega-feature__text b {
        font-family: var(--head);
        font-size: 17px
    }

    .mega-feature__text span {
        font-size: 13.5px;
        line-height: 1.45;
        opacity: .82
    }

.menu .sub a.mega-feature__btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 50px;
    background: var(--orange);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: background-color .25s, color .25s;
}

    .menu .sub a.mega-feature__btn .mega-go {
        color: #fff;
        opacity: 1
    }

    .menu .sub a.mega-feature__btn:hover,
    .menu .sub a.mega-feature__btn:focus-visible {
        background: #fff;
        color: var(--orange)
    }

        .menu .sub a.mega-feature__btn:hover .mega-go {
            color: var(--orange)
        }

.menu .sub a.mega-feature__call {
    flex: none;
    padding: 10px 4px;
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .menu .sub a.mega-feature__call:hover {
        background: none;
        color: #FFD9C7
    }

@media (max-width:1180px) {
    .mega-feature {
        flex-wrap: wrap
    }

    .mega-feature__text {
        flex-basis: 100%
    }
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    height: 2px;
    width: 100%;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s cubic-bezier(.22, .9, .3, 1);
}

.menu a:hover {
    color: var(--orange)
}

    .menu a:hover::after {
        transform: scaleX(1);
        transform-origin: left
    }

.menu a.on {
    color: var(--orange)
}

    .menu a.on::after {
        transform: scaleX(1)
    }

.nav-cta {
    display: flex;
    align-items: center;
    gap: 18px
}

/* button: skewed panel sweeps across, arrow badge straightens (ResQ-style) */
.btn {
    --bg: var(--orange);
    --fg: #fff;
    --fill: var(--blue);
    position: relative;
    z-index: 1;
    overflow: hidden;
    font-family: var(--head);
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.5;
    letter-spacing: .01em;
    white-space: nowrap;
    color: var(--fg);
    background: var(--bg);
    border: 1px solid transparent;
    border-radius: 50px;
    padding: 4px 4px 4px 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: color .3s ease-in-out, background-color .3s ease-in-out, border-color .3s ease-in-out;
}

    .btn::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -2px;
        width: 0;
        height: 106%;
        background: var(--fill);
        transform: skew(30deg);
        z-index: -1;
        transition: all .35s ease-in-out;
    }

    .btn:hover::after,
    .btn:focus-visible::after {
        width: 112%;
        transform: skew(0deg);
        left: -6px
    }

    .btn .ico {
        width: 38px;
        height: 38px;
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--fill);
        border: 1px solid var(--fill);
        color: #fff;
        border-radius: 50px;
        transform: rotate(-45deg);
        transition: all .35s ease-in-out;
    }

        .btn .ico svg {
            width: 15px;
            height: 15px
        }

    .btn:hover .ico,
    .btn:focus-visible .ico {
        transform: rotate(0deg);
        background: #fff;
        border-color: #fff;
        color: var(--fill);
    }

    .btn.ghost {
        --bg: transparent;
        --fg: var(--blue);
        --fill: var(--orange);
        border-color: var(--blue)
    }

        .btn.ghost:hover {
            color: #fff;
            border-color: var(--orange)
        }

.burger {
    display: none;
    width: 46px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    cursor: pointer
}

    .burger i {
        display: block;
        height: 2px;
        width: 20px;
        margin: 4px auto;
        background: var(--blue);
        transition: .3s
    }

    .burger[aria-expanded="true"] i:nth-child(1) {
        transform: translateY(6px) rotate(45deg)
    }

    .burger[aria-expanded="true"] i:nth-child(2) {
        opacity: 0
    }

    .burger[aria-expanded="true"] i:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg)
    }

.drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    background: #fff;
    z-index: 80;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.22, .9, .3, 1);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: -20px 0 60px -30px #06304F;
}

    .drawer.open {
        transform: translateX(0)
    }

.drawer {
    overflow-y: auto
}

    .drawer a {
        font-family: var(--head);
        font-weight: 600;
        padding: 13px 0;
        border-bottom: 1px solid var(--line);
        display: block
    }

.d-item {
    border-bottom: 1px solid var(--line)
}

    .d-item > button {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-family: var(--head);
        font-weight: 600;
        font-size: 16px;
        color: var(--ink);
        background: none;
        border: 0;
        padding: 13px 0;
        cursor: pointer;
        text-align: left;
    }

        .d-item > button svg {
            width: 14px;
            height: 14px;
            color: var(--orange);
            transition: transform .3s
        }

    .d-item.open > button svg {
        transform: rotate(180deg)
    }

.d-sub {
    display: grid;
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s ease
}

.d-item.open .d-sub {
    max-height: 340px
}

.d-sub a {
    border-bottom: 0;
    font-weight: 500;
    font-size: 14.5px;
    color: var(--slate);
    padding: 9px 0 9px 16px;
    border-left: 2px solid var(--line)
}

    .d-sub a:last-child {
        padding-bottom: 14px
    }

/* drawer: the long, grouped services list */
.d-item.open .d-sub.d-sub--mega {
    max-height: 1400px
}

.d-group {
    margin: 12px 0 2px;
    padding: 0 0 0 16px;
    border-left: 2px solid var(--orange);
    font-family: var(--head);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
}

/* close (x) button at the top of the drawer */
.d-close {
    align-self: flex-end;
    flex: none;
    width: 40px;
    height: 40px;
    margin: -8px -6px 4px 0;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--blue);
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

    .d-close svg {
        width: 18px;
        height: 18px
    }

    .d-close:hover,
    .d-close:focus-visible {
        background: var(--orange);
        border-color: var(--orange);
        color: #fff
    }

/* the call button in the drawer: ".drawer a" (block, no side padding, bottom
   border) was overriding .btn and breaking its pill + arrow-badge layout */
.drawer .d-cta {
    margin: 22px 0 0;
    padding: 0;
}

.drawer a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 4px 4px 4px 22px;
    border: 1px solid transparent;
    border-radius: 50px;
    font-size: 14.5px;
    color: var(--fg);
}

    .drawer a.btn .ico {
        width: 38px;
        height: 38px;
    }

/* the drawer sits under the sticky header on small screens; keep the
   burger above the scrim so it can close the menu */
.burger {
    position: relative;
    z-index: 90;
    padding: 0;
    flex: none;
    line-height: 0;
}

.scrim {
    position: fixed;
    inset: 0;
    background: rgba(6, 48, 79, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s;
    z-index: 70
}

    .scrim.on {
        opacity: 1;
        pointer-events: auto
    }

@keyframes dropIn {
    to {
        transform: translateY(0)
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: .7
    }

    70% {
        transform: scale(1.5);
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

/* ───────── PAGE BODY ───────── */
.hero {
    background: linear-gradient(180deg, #FDF7F3 0%, #fff 100%);
    padding: 74px 0 66px;
    border-bottom: 1px solid var(--line);
}

    .hero h1 {
        font-family: var(--head);
        font-weight: 700;
        font-size: clamp(34px, 5vw, 56px);
        line-height: 1.08;
        margin: 0 0 16px;
        letter-spacing: -.02em;
        max-width: 16ch;
    }

    .hero p {
        max-width: 60ch;
        color: var(--slate);
        font-size: 17.5px;
        margin: 0 0 26px
    }

    .hero .mar {
        font-family: var(--dev);
        color: var(--orange);
        font-weight: 700;
        font-size: 19px;
        margin-bottom: 10px
    }

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}
/*
section {
    padding: 70px 0
}
*/
.sec-head {
    margin-bottom: 34px;
    max-width: 62ch
}

    .sec-head h2 {
        font-family: var(--head);
        font-weight: 700;
        font-size: clamp(25px, 3.2vw, 34px);
        margin: 0 0 8px;
        letter-spacing: -.015em
    }

    .sec-head p {
        color: var(--muted);
        margin: 0
    }

.docs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px
}

.doc {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    background: #fff;
    border-top: 3px solid var(--orange)
}

    .doc h3 {
        font-family: var(--head);
        font-size: 19px;
        margin: 0 0 3px
    }

    .doc .deg {
        color: var(--blue);
        font-weight: 600;
        font-size: 14px;
        margin: 0 0 12px
    }

    .doc ul {
        margin: 0;
        padding-left: 18px;
        color: var(--slate);
        font-size: 14.5px
    }

.fac {
    background: var(--wash)
}

.svc {
    columns: 3;
    column-gap: 34px;
    list-style: none;
    padding: 0;
    margin: 0
}

    .svc li {
        padding: 9px 0 9px 26px;
        position: relative;
        break-inside: avoid;
        color: var(--slate)
    }

.fac li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 17px;
    width: 12px;
    height: 12px;
    background: var(--orange);
    clip-path: polygon(40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%, 0 40%, 40% 40%)
}

/* ───────── FOOTER ───────── */
.footer {
    position: relative;
    /* hospital-front night photo under a deep navy wash; all footer text is light */
    --f-text: rgba(255, 255, 255, .90);
    --f-muted: rgba(255, 255, 255, .74);
    --f-line: rgba(255, 255, 255, .16);
    background: linear-gradient(180deg, rgba(5, 12, 30, .93) 0%, rgba(5, 12, 30, .95) 55%, rgba(4, 9, 24, .98) 100%), url('../Images/FooterBackground3.png') center center / cover no-repeat;
    /*    background: linear-gradient(180deg, rgba(5, 12, 30, .93) 0%, rgba(5, 12, 30, .95) 55%, rgba(4, 9, 24, .98) 100%), url('../Images/FooterBackground3.png') center center / cover no-repeat;*/
    color: var(--f-text);
    overflow: hidden;
    border-top: 0;
}

    .footer::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(900px 340px at 10% 0%, rgba(226, 102, 31, .14), transparent 62%), radial-gradient(700px 320px at 90% 100%, rgba(0, 75, 130, .18), transparent 66%);
        pointer-events: none;
    }

    .footer .wrap {
        width: min(1400px, 94vw)
    }

.f-grid {
    position: relative;
    display: grid;
    gap: 30px 34px;
    padding: 58px 0 50px;
    grid-template-columns: 1.6fr minmax(0, .95fr) minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 1.35fr);
    align-items: start;
}

.f-col,
.f-about {
    min-width: 0
}

.f-links a,
.f-row {
    overflow-wrap: anywhere
}

.f-col .f-head {
    width: 100%;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: inherit;
}

    .f-col .f-head svg {
        width: 14px;
        height: 14px;
        color: var(--orange);
        transition: transform .3s;
        display: none
    }

.f-col.open .f-head svg {
    transform: rotate(180deg)
}

.f-body {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows .35s ease
}

    .f-body > * {
        min-height: 0;
        overflow: hidden
    }

.f-logo img {
    height: 58px;
    width: auto;
    margin-bottom: 16px;
    /* soft white halo so the navy "MULTISPECIALITY HOSPITAL" line reads on the dark footer */
    /*    filter: drop-shadow(0 0 1px rgba(255, 255, 255, .95)) drop-shadow(0 0 1px rgba(255, 255, 255, .95)) drop-shadow(0 0 6px rgba(255, 255, 255, .35));*/
}

.f-about p {
    margin: 0 0 16px;
    font-size: 14.8px;
    line-height: 1.7;
    color: var(--f-text);
    max-width: 34ch
}

.f-about .mar {
    font-family: var(--dev);
    font-weight: 700;
    color: var(--orange);
    font-size: 17px;
    margin: 0 0 14px
}

.f-soc {
    display: flex;
    gap: 10px
}

    .f-soc a {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .28);
        color: var(--blue);
        transition: transform .3s, background .3s, border-color .3s, color .3s;
    }

        .f-soc a:hover {
            color: #fff;
            transform: translateY(-4px) rotate(-6deg);
            border-color: transparent
        }

    .f-soc svg {
        width: 16px;
        height: 16px;
        color: currentColor
    }

    .f-soc .fb {
        color: #1877F2
    }

        .f-soc .fb:hover {
            background: #1877F2
        }

    .f-soc .ig {
        color: #D62976
    }

        .f-soc .ig:hover {
            background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF)
        }

    .f-soc .wa {
        color: #25D366
    }

        .f-soc .wa:hover {
            background: #25D366
        }

    .f-soc .yt {
        color: #FF0000
    }

        .f-soc .yt:hover {
            background: #FF0000
        }

    .f-soc .gg {
        color: #4285F4
    }

        .f-soc .gg:hover {
            background: #4285F4
        }

.tb-social .fb:hover {
    background: #1877F2
}

.tb-social .ig:hover {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF)
}

.tb-social .wa:hover {
    background: #25D366
}

.tb-social .gg:hover {
    background: #4285F4
}

.footer h4 {
    font-family: var(--head);
    color: #fff;
    font-size: 16px;
    margin: 0 0 18px;
    letter-spacing: .01em;
    position: relative;
    padding-bottom: 12px;
}

.f-head h4 {
    margin-bottom: 18px
}

.footer h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 2px;
    background: var(--orange)
}

.f-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px
}

    .f-links a {
        display: inline-flex;
        align-items: flex-start;
        font-size: 14.5px;
        line-height: 1.5;
        color: var(--f-text);
        position: relative;
        padding-bottom: 4px;
        transition: color .25s
    }

        .f-links a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 2px;
            background: var(--orange);
            transform: scaleX(0);
            transform-origin: right;
            transition: transform .35s cubic-bezier(.22, .9, .3, 1);
        }

        .f-links a:hover {
            color: var(--orange)
        }

            .f-links a:hover::after {
                transform: scaleX(1);
                transform-origin: left
            }

.f-contact {
    display: grid;
    gap: 16px
}

.f-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14.5px;
    line-height: 1.55
}

    .f-row .ic {
        width: 36px;
        height: 36px;
        flex: none;
        border-radius: 10px;
        display: grid;
        place-items: center;
        background: rgba(226, 102, 31, .22);
        color: var(--orange)
    }

        .f-row .ic svg {
            width: 16px;
            height: 16px
        }

    .f-row b {
        display: block;
        color: #fff;
        font-family: var(--head);
        font-weight: 600
    }

    .f-row a:hover {
        color: var(--orange)
    }

.f-bottom {
    position: relative;
    border-top: 1px solid var(--f-line);
    padding: 20px 0;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--f-muted);
}

/* on phones the photo is scaled up a lot behind the tall footer, so the
   oversized sign lettering gets a slightly heavier wash */
@media (max-width: 767.98px) {
    .footer {
        background: linear-gradient(180deg, rgba(5, 12, 30, .95) 0%, rgba(4, 9, 24, .98) 100%), url('../Images/FooterBackground3.png') center center / cover no-repeat;
    }
}

/* "Call the hospital" outline button: white text + orange border on the dark footer */
.footer .btn.ghost {
    --fg: #fff;
    border-color: var(--orange)
}

.f-bottom a:hover {
    color: var(--orange)
}

.totop {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: var(--orange);
    color: #fff;
    display: grid;
    place-items: center;
    z-index: 65;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: .35s;
    box-shadow: 0 14px 30px -14px rgba(195, 74, 37, .9);
}

    .totop.on {
        opacity: 1;
        transform: none;
        pointer-events: auto
    }

    .totop::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 2px solid var(--orange);
        animation: pulse 2.6s ease-out infinite
    }

    .totop svg {
        width: 18px;
        height: 18px
    }

/* WhatsApp chat button — always visible, stacked above the back-to-top button */
.wa-float {
    position: fixed;
    right: 22px;
    bottom: 82px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: grid;
    place-items: center;
    z-index: 65;
    text-decoration: none;
    box-shadow: 0 14px 30px -12px rgba(18, 140, 126, .9);
    transition: transform .3s ease, box-shadow .3s ease, bottom .35s ease;
}

    /* sit where back-to-top is until that button appears */
    .wa-float:not(.lift) {
        bottom: 22px;
    }

    .wa-float::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 2px solid #25D366;
        animation: pulse 2.6s ease-out infinite
    }

    .wa-float svg {
        width: 28px;
        height: 28px
    }

    .wa-float:hover,
    .wa-float:focus-visible {
        transform: translateY(-3px) scale(1.04);
        box-shadow: 0 18px 34px -12px rgba(18, 140, 126, 1);
    }

.wa-float__tip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translate(8px, -50%);
    padding: 7px 12px;
    border-radius: 8px;
    background: #fff;
    color: #075E54;
    font-family: var(--head);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 26px -10px rgba(6, 48, 79, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.wa-float:hover .wa-float__tip,
.wa-float:focus-visible .wa-float__tip {
    opacity: 1;
    transform: translate(0, -50%);
}

@media (max-width:640px) {
    .wa-float {
        right: 16px;
        width: 48px;
        height: 48px;
        bottom: 74px;
    }

        .wa-float:not(.lift) {
            bottom: 16px;
        }

        .wa-float svg {
            width: 26px;
            height: 26px
        }

    .totop {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }

    .wa-float__tip {
        display: none;
    }
}

@media (max-width:1340px) {
    .menu {
        gap: 18px
    }

    .nav-cta {
        gap: 14px
    }
}

@media (max-width:1024px) {
    .menu {
        display: none
    }

    .burger {
        display: block;
        margin-left: auto
    }

    .nav-cta {
        margin-left: 12px
    }
}

@media (max-width:1180px) and (min-width:861px) {
    .f-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 30px
    }

    .f-about {
        grid-column: 1 / -1;
        max-width: 60ch
    }

        .f-about p {
            max-width: 52ch
        }
}

@media (max-width:860px) {
    .svc {
        columns: 2
    }

    .f-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px
    }

    .f-about {
        grid-column: 1 / -1;
        max-width: 60ch
    }

        .f-about p {
            max-width: 52ch
        }
}

@media (max-width:640px) {
    .f-grid {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 44px 0 40px
    }

    .f-about {
        margin-bottom: 22px
    }

    .f-col {
        border-bottom: 1px solid var(--f-line)
    }

        .f-col.f-static {
            border-bottom: 0;
            padding-top: 20px
        }

        .f-col .f-head {
            padding: 16px 0
        }

            .f-col .f-head svg {
                display: block
            }

    .f-head h4 {
        margin: 0;
        padding-bottom: 0
    }

        .f-head h4::after {
            display: none
        }

    .f-body {
        grid-template-rows: 0fr;
        visibility: hidden;
        transition: grid-template-rows .35s ease, visibility .35s
    }

    .f-col.open .f-body {
        grid-template-rows: 1fr;
        visibility: visible
    }

        .f-col.open .f-body > * {
            padding-bottom: 18px
        }
}

@media (max-width:1240px) {
    .tb-lg {
        display: none
    }
}

@media (max-width:900px) {
    .tb-md {
        display: none
    }

    .tb-list {
        justify-content: flex-end
    }
}

@media (max-width:640px) {
    .topbar {
        display: none
    }

    .nav-cta .btn {
        padding: 4px 4px 4px 16px;
        font-size: 13px;
        gap: 8px
    }

        .nav-cta .btn .ico {
            width: 32px;
            height: 32px
        }

    .brand img {
        height: 44px
    }

    .svc {
        columns: 1
    }
}

@media (max-width:400px) {
    .nav-cta .btn {
        display: none
    }
}

@media (prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: .01ms !important
    }

    .topbar,
    .nav {
        transform: none
    }
}


/* =====================================================================
   SITE-WIDE FONT — Public Sans everywhere
   Section stylesheets (HomePage.css / index.css) each declare their own
   font stacks, some with !important. The :not(#_) adds id-level
   specificity so this one rule wins over all of them. Icon fonts
   (<i>, bi-*, fa-*) are left alone.
   ===================================================================== */
html body :not(#_):not(i):not([class*="bi-"]):not([class*="fa-"]):not(.material-icons),
html body :not(#_):not(i):not([class*="bi-"]):not([class*="fa-"]):not(.material-icons)::before,
html body :not(#_):not(i):not([class*="bi-"]):not([class*="fa-"]):not(.material-icons)::after,
html body :not(#_)::placeholder {
    font-family: var(--site-font) !important;
}
/* current page in the mobile drawer */
.drawer a.on {
    color: var(--orange)
}


/* footer credit: "Developed by Dthrill" */
.dev-credit {
    white-space: nowrap
}

    .dev-credit::before {
        content: "\00B7";
        margin: 0 8px 0 4px;
        opacity: .6
    }

    .dev-credit a {
        font-weight: 700;
        color: var(--orange)
    }

        .dev-credit a:hover {
            text-decoration: underline;
            text-underline-offset: 3px
        }


/* =====================================================================
   LOGO — sized by height on desktop and by width on phones, the other
   side always "auto", so the 760×151 artwork can never be squashed
   (it used to shrink sideways when the header button took the room)
   ===================================================================== */
.brand {
    flex: none;
    display: block;
    line-height: 0
}

    .brand img {
        height: 52px;
        width: auto;
        max-width: none;
        object-fit: contain
    }

.nav.stuck .brand img {
    height: 46px
}

/* small laptops: the full menu + button only just fit beside the logo */
@media (min-width:1025px) and (max-width:1240px) {
    .brand img {
        height: 46px
    }

    .nav.stuck .brand img {
        height: 42px
    }
}

@media (min-width:1025px) and (max-width:1100px) {
    .nav .wrap {
        gap: 16px
    }

    .menu {
        gap: 14px
    }

    .brand img,
    .nav.stuck .brand img {
        height: 40px
    }

    .nav-cta .btn {
        font-size: 13.5px;
        padding-left: 16px;
        gap: 8px
    }
}

@media (min-width:1341px) {
    .brand img {
        height: 64px
    }

    .nav.stuck .brand img {
        height: 54px
    }
}

@media (max-width:1024px) {
    /* "Book an appointment" is in the mobile menu instead */
    .nav-cta .btn {
        display: none
    }

    .brand {
        flex: 0 1 auto;
        min-width: 0
    }

        .brand img,
        .nav.stuck .brand img {
            height: auto;
            width: min(290px, calc(92vw - 64px));
            max-width: 100%
        }
}

/* =====================================================================
   MOBILE MENU (drawer) — logo header, call / mail actions
   ===================================================================== */
.drawer {
    visibility: hidden;
    box-shadow: none;
    transition: transform .4s cubic-bezier(.22, .9, .3, 1), visibility 0s .4s
}

    .drawer.open {
        visibility: visible;
        box-shadow: -20px 0 60px -30px #06304F;
        transition: transform .4s cubic-bezier(.22, .9, .3, 1), visibility 0s
    }

.d-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line)
}

.drawer a.d-brand {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border: 0;
    line-height: 0
}

.d-brand img {
    width: 100%;
    max-width: 230px;
    height: auto
}

.d-head .d-close {
    margin: 0;
    align-self: center
}

.drawer .d-cta {
    display: grid;
    gap: 12px;
    margin: 22px 0 0
}

.drawer a.btn.ghost {
    --fg: var(--blue);
    border-color: var(--blue)
}

    .drawer a.btn.ghost:hover {
        color: #fff
    }

.drawer a.d-mail {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border: 0;
    color: var(--blue);
    font-size: 15px;
    overflow-wrap: anywhere
}

    .drawer a.d-mail svg {
        width: 18px;
        height: 18px;
        flex: none;
        color: var(--orange)
    }

/* Departments / Services rows: the label opens the page, the arrow opens the list */
.d-row {
    display: flex;
    align-items: center;
    gap: 8px
}

.drawer .d-row > a {
    flex: 1 1 auto;
    border-bottom: 0
}

.d-toggle {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--orange);
    cursor: pointer;
    transition: background-color .25s, color .25s, border-color .25s
}

    .d-toggle svg {
        width: 14px;
        height: 14px;
        transition: transform .3s
    }

.d-item.open .d-toggle {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff
}

    .d-item.open .d-toggle svg {
        transform: rotate(180deg)
    }

/* ---- sub-lists: bold group title with an orange underline, plain text links
        (Departments + Services) ---- */
.drawer > a,
.drawer .d-row > a {
    font-size: 17px
}

.d-item.open .d-row > a {
    color: var(--orange)
}

.d-toggle {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #FDEDE6
}

.d-item.open .d-toggle {
    background: #FDEDE6;
    color: var(--orange)
}

.d-item.open .d-sub {
    max-height: 700px
}

    .d-item.open .d-sub.d-sub--mega {
        max-height: 2400px
    }

.drawer p.d-group {
    position: relative;
    margin: 14px 0 6px;
    padding: 0 0 9px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--orange);
}

    .drawer p.d-group::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -1px;
        width: 46px;
        height: 2px;
        background: var(--orange)
    }

/* sub-points sit indented under their heading, each with a small orange dot */
.drawer .d-sub a {
    position: relative;
    display: block;
    padding: 6px 0 6px 22px;
    border-left: 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ink)
}

    .drawer .d-sub a::before {
        content: "";
        position: absolute;
        left: 6px;
        top: calc(6px + .675em - 3px); /* centred on the first line */
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--orange)
    }

    .drawer .d-sub a:last-child {
        padding-bottom: 14px
    }

    .drawer .d-sub a:hover .d-tx,
    .drawer .d-sub a.on .d-tx {
        color: var(--orange)
    }

/* footer drop-downs on phones: same indented, dotted sub-points as the menu */
@media (max-width:640px) {
    .f-col .f-links {
        padding-left: 6px;
        gap: 6px
    }

        .f-col .f-links li {
            position: relative;
            padding-left: 22px
        }

            .f-col .f-links li::before {
                content: "";
                position: absolute;
                left: 6px;
                top: calc(.75em - 3px + 1px);
                width: 6px;
                height: 6px;
                border-radius: 50%;
                background: var(--orange)
            }
}

/* =====================================================================
   TOP BAR ON PHONES — slim strip: emergency number + social icons
   (it used to be hidden below 640px)
   ===================================================================== */
@media (max-width:640px) {
    .topbar {
        display: block;
        font-size: 12.5px
    }

        .topbar .wrap {
            min-height: 44px
        }

    .tb-flag {
        padding-right: 18px;
        margin-right: 12px;
        gap: 8px;
        white-space: nowrap
    }

        .tb-flag a {
            font-weight: 700
        }

    .tb-list {
        display: none
    }

    .tb-right {
        margin-left: auto
    }

    .tb-social {
        gap: 6px
    }

        .tb-social a {
            width: 32px;
            height: 32px
        }

        .tb-social svg {
            width: 16px;
            height: 16px
        }
}

@media (max-width:359px) {
    .tb-social a:nth-child(n+3) {
        display: none
    }
}

/* =====================================================================
   FOOTER — "Call the hospital" kept at its natural pill width (as a grid
   item it was stretched across the column, leaving the arrow badge
   floating mid-pill) and allowed to wrap in narrow columns
   ===================================================================== */
.f-contact .btn {
    justify-self: start;
    max-width: 100%;
    white-space: normal;
    text-align: left
}

.f-bottom {
    padding-bottom: 24px
}

@media (max-width:640px) {
    .f-bottom {
        padding-bottom: 84px /* clear the floating WhatsApp / back-to-top buttons */
    }
}

/* =====================================================================
   TYPOGRAPHY — every paragraph is 18px on all pages and screen sizes.
   :not(#_) adds id-level specificity so this beats the section sheets;
   small badge / eyebrow labels and menu group labels keep their size.
   ===================================================================== */
html body p:not(#_):not([class*="badge"]):not([class*="eyebrow"]):not(.mega-title):not(.d-group) {
    font-size: 18px !important
}

/* phones: justified paragraphs */
@media (max-width:767.98px) {
    html body p:not(#_):not([class*="badge"]):not([class*="eyebrow"]):not(.mega-title):not(.d-group) {
        text-align: justify !important;
        text-justify: inter-word;
        hyphens: auto;
        -webkit-hyphens: auto
    }
}

/* Site-wide justified paragraphs (classes added by Layout.js) */
p.p-justify {
    text-align: justify !important;
    text-justify: inter-word;
}

p.p-justify-c {
    text-align: justify !important;
    text-align-last: center;
    text-justify: inter-word;
}
