:root {
    /* Deep sea green + white brand palette. The layout also injects an inline
       :root override from the admin settings (theme_colors()), so the values
       below are only the fallback for when no colour has been saved yet. */
    --brand: #0A5C53;
    --brand-dark: #07433C;
    --brand-soft: #E4F2EF;
    --brand-rgb: 10 92 83;
    --accent: #2AA899;
    --ink: #0B2B28;
    --muted: #5B7A75;
    --on-brand: #ffffff;
}

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    line-height: 1.6;
}

.top-strip {
    background: var(--ink);
    color: #cfe3f5;
    font-size: .82rem;
}

.top-strip a { color: #fff; text-decoration: none; }

.main-nav {
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 39, 64, .06);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.main-nav .navbar-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--ink);
    font-weight: 800;
}

.brand-dot {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    display: grid; place-items: center;
    color: #fff; font-size: 1.45rem;
}

/* Uploaded logo in the top navbar (~90). No site name is rendered beside it. */
.main-nav .nav-logo-wrap .brand-logo,
.main-nav .navbar-brand .brand-logo {
    height: 85px; width: 85px; max-height: 85px; max-width: 85px;
    object-fit: contain; border-radius: 12px;
}

/* Uploaded logo in the footer brand (~90). */
.site-footer .footer-logo {
    height: 85px; width: 85px; max-height: 85px; max-width: 85px;
    object-fit: contain; border-radius: 12px;
}

/* Big 180x180 logo tile at the top of the homepage hero, very visible. */
.hero .hero-logo {
    height: 180px; width: 180px; min-width: 180px;
    object-fit: contain;
    background: rgba(255, 255, 255, .97);
    border-radius: 1.4rem;
    padding: .65rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
}


/* Uploaded website logo in the top navigation bar (~90px, no site name beside it). */
.main-nav .brand-logo {
    height: 88px; width: auto; max-height: 88px;
    object-fit: contain; border-radius: 12px;
}

/* Uploaded website logo in the footer brand (~90px, no site name beside it). */
.footer-logo {
    height: 88px; width: auto; max-height: 88px;
    object-fit: contain; border-radius: 12px;
}

/* Big, very visible logo tile at the top of the homepage hero (180x180). */
.hero .hero-logo {
    height: 180px; width: 180px; object-fit: contain;
    border-radius: 1.4rem;
    background: #fff; padding: .6rem;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .5), 0 4px 12px rgba(0, 0, 0, .35);
    margin-bottom: 1.1rem;
}

.main-nav .nav-link {
    color: var(--ink);
    font-weight: 600;
    font-size: .92rem;
    padding: .5rem .9rem !important;
}

.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--brand); }

.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

/* Full-bleed background image — edge to edge, no gaps or margins. */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    z-index: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    animation: heroKenBurns 18s ease-in-out infinite alternate;
    will-change: transform;
}

/* Slow zoom so the image feels alive without distracting. */
@keyframes heroKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .hero-bg { animation: none; }
}

/* Dark gradient protection behind the text area only — keeps the image bright elsewhere. */
.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(6, 30, 51, .78) 0%, rgba(6, 30, 51, .55) 38%, rgba(6, 30, 51, .12) 68%, rgba(6, 30, 51, 0) 85%);
}

/* Foreground layer: text, CTAs and stats stay above the image. */
.hero-content {
    position: relative;
    z-index: 2;
    padding-block: 4rem;
}

.hero h1 {
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 3px 10px rgba(0, 0, 0, .55);
}

.hero .lead {
    color: rgba(255, 255, 255, .95);
    text-shadow: 0 2px 6px rgba(0, 0, 0, .45);
    max-width: 560px;
}

.hero .kicker {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .28);
}

.hero-copy > * {
    animation: heroRise .7s ease-out both;
}

.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }

@keyframes heroRise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy > * { animation: none; }
}

/* Stats bar — sits right below the hero slider with comfortable breathing room. */
.hero-stats-bar {
    margin-top: -2.75rem;
    padding-bottom: 1.5rem;
    position: relative;
    z-index: 5;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1rem;
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
    border-radius: 1.1rem;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 18px 45px rgba(15, 39, 64, .18);
}

.glass-stats {
    background: rgb(var(--brand-rgb) / .93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
}

.stat-item {
    text-align: center;
    padding: 0 .75rem;
    min-width: 130px;
}

.stat-divider {
    border-left: 1px solid rgba(255, 255, 255, .3);
    padding-left: 1.5rem;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.stat-label {
    font-size: .82rem;
    color: rgba(255, 255, 255, .92);
}

/* Buttons need contrast on any image — white glass for light buttons. */
.hero .btn-soft {
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, .6);
}

.hero .btn-outline-danger {
    color: #fff;
    border-color: rgba(255, 255, 255, .75);
    background: rgba(220, 53, 69, .35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero .btn-outline-danger:hover {
    background: rgba(220, 53, 69, .75);
    border-color: #fff;
    color: #fff;
}

.hero .btn-light { background: #fff; }

/* ────────────────────────────────────────────────────────────────────────────
   Hero slider (Bootstrap carousel) — admin-managed slides.
   ──────────────────────────────────────────────────────────────────────────── */
.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
    width: 100%;
    height: 100%;
}

.hero .carousel-item {
    position: relative;
    min-height: 680px;
}

.hero .carousel-inner { overflow: hidden; }

/* Slider bullets — brand coloured for contrast over any image. */
.hero .carousel-indicators {
    z-index: 3;
    margin-bottom: 1.25rem;
}

.hero .carousel-indicators [data-bs-target] {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, .55);
    transition: background-color .2s ease, transform .2s ease;
}

.hero .carousel-indicators .active {
    background-color: var(--brand);
    transform: scaleX(1.15);
}

/* Prev / next arrows. */
.hero .carousel-control-prev,
.hero .carousel-control-next {
    z-index: 3;
    width: 9%;
}

.hero .carousel-control-prev {
    background: linear-gradient(90deg, rgba(6, 30, 51, .28), transparent);
}

.hero .carousel-control-next {
    background: linear-gradient(270deg, rgba(6, 30, 51, .28), transparent);
}

.hero .carousel-control-prev-icon,
.hero .carousel-control-next-icon {
    width: 1.9rem;
    height: 1.9rem;
    background-color: rgba(6, 30, 51, .35);
    background-size: 55%, cover;
    border-radius: 50%;
    padding: .4rem;
}

.hero .carousel-control-prev:hover .carousel-control-prev-icon,
.hero .carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--brand);
}

.btn-brand {
    background: var(--brand);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: .6rem;
    padding: .65rem 1.4rem;
}

.btn-brand:hover { background: var(--brand-dark); color: #fff; }

.btn-soft {
    background: #fff;
    color: var(--ink);
    border: 1px solid #d6e4f0;
    font-weight: 600;
    border-radius: .6rem;
    padding: .65rem 1.4rem;
}

.btn-soft:hover { border-color: var(--brand); color: var(--brand); }

/* Bootstrap primary utilities adopt the brand colour on the public site. */
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); }
.btn-primary:hover,
.btn-primary:focus-visible {
    --bs-btn-bg: var(--brand-dark);
    --bs-btn-border-color: var(--brand-dark);
}
.btn-primary:active,
.btn-primary:disabled {
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
}
.btn-outline-primary {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-color: #fff;
}
.text-primary,
.link-primary { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }
.border-primary { border-color: var(--brand) !important; }

.section { padding: 4.5rem 0; }

.section-title {
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.kicker {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .75rem;
    border-radius: 999px;
    margin-bottom: .75rem;
}

.text-muted-2 { color: var(--muted); }

/* About page: admin-entered text keeps its line breaks and fills the width. */
.about-page p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-page p:last-child { margin-bottom: 0; }

.about-page .about-lead { font-size: 1.05rem; }

/* Centered hero image between the page title and the Vision / Mission block. */
.about-page .about-visual {
    display: inline-block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 1.25rem;
    box-shadow: 0 18px 40px rgba(15, 39, 64, .10);
}

/* About page stat counters: deep green cards with white text. */
.about-page .about-stats .why-card {
    background: var(--brand);
    color: #fff;
}

.about-page .about-stats .why-card h2,
.about-page .about-stats .why-card .text-brand {
    color: #fff;
}

.about-page .about-stats .why-card .text-muted-2 {
    color: rgba(255, 255, 255, .85);
}


.service-card {
    background: #fff;
    border: 1px solid #e6eef6;
    border-radius: 1rem;
    padding: 1.6rem;
    transition: transform .18s ease, box-shadow .18s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(15, 39, 64, .08);
}

.service-icon {
    width: 52px; height: 52px;
    border-radius: .9rem;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid; place-items: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.doctor-card {
    background: #fff;
    border: 1px solid #e6eef6;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.doctor-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15, 39, 64, .08); }

.why-card {
    background: #fff;
    border: 1px solid #e6eef6;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
}

.testimonial-card {
    background: #fff;
    border: 1px solid #e6eef6;
    border-radius: 1rem;
    padding: 1.6rem;
    height: 100%;
}

.testimonial-card .stars { color: #f7b32b; }

.cta-band {
    background: linear-gradient(110deg, var(--brand) 0%, var(--accent) 100%);
    color: #fff;
    border-radius: 1.25rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.site-footer {
    background: var(--ink);
    color: #b9cfe6;
    padding: 4rem 0 0;
}

.site-footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.1rem;
}

.site-footer a {
    color: #b9cfe6;
    text-decoration: none;
    display: block;
    padding: .22rem 0;
    font-size: .92rem;
}

.site-footer a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.2rem 0;
    font-size: .85rem;
}

/* ────────────────────────────────────────────────────────────────────────────
   PWA install prompt — sleek animated floating card
   ──────────────────────────────────────────────────────────────────────────── */
.pwa-install-card {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 11000;
    width: 340px;
    max-width: calc(100vw - 24px);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 55%, var(--ink) 100%);
    color: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 24px 60px rgb(var(--brand-rgb) / .45), 0 0 0 1px rgba(255, 255, 255, .14) inset;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 14px;
    transform-origin: bottom right;
    overflow: hidden;
}

.pwa-install-card::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%);
    pointer-events: none;
}

.pwa-install-card .pwa-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    border: 1px solid rgba(255, 255, 255, .3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.pwa-install-card .pwa-body { flex: 1; min-width: 0; }

.pwa-install-card .pwa-title {
    display: block;
    font-weight: 800;
    font-size: .98rem;
    margin-bottom: 2px;
}

.pwa-install-card .pwa-desc {
    font-size: .8rem;
    line-height: 1.4;
    opacity: .88;
    margin: 0;
}

.pwa-install-card .pwa-actions { display: flex; gap: 8px; margin-top: 12px; }

.pwa-install-card .pwa-btn {
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.pwa-install-card .pwa-btn:hover { transform: translateY(-2px); }
.pwa-install-card .pwa-btn-main {
    background: #fff;
    color: var(--brand-dark);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
}
.pwa-install-card .pwa-btn-main:hover { background: #f2fbf9; }
.pwa-install-card .pwa-btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, .85);
    border: 1px solid rgba(255, 255, 255, .4);
}

/* Animated entrance: floats up with a gentle spring + bob */
.pwa-install-card.is-showing { animation: pwaCardIn .55s cubic-bezier(.21, 1.02, .73, 1) both; }
.pwa-install-card.is-hidden { animation: pwaCardOut .3s ease forwards; }

@keyframes pwaCardIn {
    from { opacity: 0; transform: translateY(26px) scale(.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pwaCardOut {
    to { opacity: 0; transform: translateY(18px) scale(.92); pointer-events: none; }
}

@media (max-width: 575.98px) {
    .pwa-install-card {
        right: 12px;
        left: 12px;
        bottom: 12px;
        width: auto;
        padding: 16px;
    }
    .pwa-install-card .pwa-icon { width: 48px; height: 48px; font-size: 1.4rem; }
}

/* ────────────────────────────────────────────────────────────────────────────
   End PWA install prompt
   ──────────────────────────────────────────────────────────────────────────── */

.faq-item {
    background: #fff;
    border: 1px solid #e6eef6;
    border-radius: .75rem;
    margin-bottom: .75rem;
}

.avatar-lg {
    width: 46px; height: 46px;
    border-radius: 50%;
    font-weight: 700;
    display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand);
}

.main-nav .navbar-toggler {
    border-color: #cfe3f5;
    color: var(--brand);
    border-radius: .6rem;
    padding: .4rem .65rem;
}

.main-nav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgb(var(--brand-rgb) / .14); }

@media (max-width: 991.98px) {
    .hero { min-height: 600px; }
    .hero .carousel-item { min-height: 600px; }
    .hero .carousel-control-prev,
    .hero .carousel-control-next { width: 12%; }
    .section { padding: 3rem 0; }
    .cta-band { padding: 2rem; }

    .hero-stats { padding: 1.25rem 1rem; }
    .stat-item { min-width: 110px; }

    .main-nav .navbar-collapse {
        background: #fff;
        border: 1px solid #e6eef6;
        border-radius: .9rem;
        box-shadow: 0 12px 28px rgba(15, 39, 64, .12);
        padding: .6rem .9rem 1rem;
        margin-top: .8rem;
    }

    .main-nav .navbar-nav { gap: .1rem; }

    .main-nav .nav-link {
        padding: .72rem .6rem !important;
        border-radius: .5rem;
    }

    .main-nav .nav-link:hover, .main-nav .nav-link.active { background: var(--brand-soft); }

    .main-nav .navbar-nav .btn { width: 100%; justify-content: center; }

    .hero-copy { text-align: center; }
    .hero-copy .lead { margin-inline: auto; }
    .hero .flex-wrap.gap-2 { justify-content: center; }
    .hero .flex-wrap.gap-4 { justify-content: center; }
    .hero-stats-bar { margin-top: -2rem; }
}

@media (max-width: 575.98px) {
    .section { padding: 2.5rem 0; }
    .hero { min-height: 560px; }
    .hero .carousel-item { min-height: 560px; }
    .hero .carousel-control-prev,
    .hero .carousel-control-next { display: none; }
    /* On small screens bias the crop upward so faces stay visible and text sits below them. */
    .hero-bg { background-position: center 20%; }
    .hero .btn-lg { width: 100%; }

    .hero-stats-bar { margin-top: -1.5rem; padding-bottom: 1rem; }
    .hero-stats { gap: .75rem; padding: 1.1rem .75rem; border-radius: .9rem; }
    .stat-item { min-width: 0; flex: 1 1 40%; padding: 0 .25rem; }
    .stat-divider { border-left: none; padding-left: .25rem; }

    .cta-band { padding: 1.75rem 1.25rem; text-align: center; }
    .cta-band .text-lg-end { text-align: center !important; }
    .top-strip .container { justify-content: center; text-align: center; gap: .5rem; }
    .footer-bottom { justify-content: center !important; gap: .5rem; text-align: center; }
}/* WhatsApp floating live-support bubble (rendered by partials/whatsapp-float) */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    box-shadow: 0 6px 20px rgba(37,211,102,0.45);
    transition: transform .15s ease, box-shadow .15s ease;
}
.whatsapp-float:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(37,211,102,0.55);
}
.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(37,211,102,0.5);
    animation: waPulse 1.8s ease-out infinite;
}
@keyframes waPulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
@media (max-width: 575.98px) {
    .whatsapp-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}
