/* ------------------------------------------------------------------
   Dr. Narayan Path Labs — brand override layer.
   The Metropolis green palette (#00984a / #0cb6e1 / #ffc107) and Poppins
   typography are intentionally KEPT. This file only adapts the few
   spots that are brand-specific (logo proportions, favicon, etc.).
   Load order: main.css -> common.css -> theme-inline.css -> brand.css
   ------------------------------------------------------------------ */

:root {
    --dn-green: #00984a;
    --dn-green-dark: #04562c;
    --dn-blue: #0cb6e1;
    --dn-amber: #ffc107;
}

/* Dr. Narayan's logo is wider (≈3.2:1) than the Metropolis mark, so
   relax the fixed Metropolis logo sizing to keep the aspect ratio. */
.metropolis-logo {
    max-width: 230px !important;
    width: auto !important;
    height: auto !important;
    max-height: 64px;
    object-fit: contain;
}

@media (max-width: 991px) {
    .metropolis-logo {
        max-width: 170px !important;
        max-height: 48px;
        margin-left: 0 !important;
    }
}

.footer-logo,
img.footer-logo {
    max-width: 200px;
    height: auto;
}

/* Keep brand green for primary actions even where the theme used the
   blue "blue-box" variant inconsistently. */
.btn-box.greenbg-box {
    border-color: var(--dn-green);
    background: var(--dn-green);
}

/* Smooth scrolling for in-page anchor navigation. */
html {
    scroll-behavior: smooth;
}

/* ---- Lightweight card slider (replaces Owl Carousel) ---------------- */
.dn-slider {
    position: relative;
}
.dn-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 2px 20px;
}
.dn-slider-track::-webkit-scrollbar {
    display: none;
}
.dn-slider-track > * {
    scroll-snap-align: start;
    flex: 0 0 280px;
}
@media (max-width: 575px) {
    .dn-slider-track > * {
        flex-basis: 78%;
    }
}
.dn-slider-nav {
    display: flex;
    gap: 10px;
}
.dn-slider-nav button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--dn-green);
    background: transparent;
    color: var(--dn-green);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s all ease-in-out;
}
.dn-slider-nav button:hover {
    background: var(--dn-green);
    color: #fff;
}

/* Hero carousel: every slide shares one uniform banner box (same height for
   all slides) and the COMPLETE image is shown — `contain` fits the whole
   picture, the background fills any letterbox padding for off-ratio images. */
#heroCarousel .carousel-item img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
}
/* theme-inline.css gives `.hero-secslider` a `1px solid #000` border;
   hide it on the hero prev/next controls. */
.hero-secslider,
#heroCarousel .hero-secslider {
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}
@media (max-width: 991px) {
    /* Same uniform box on mobile, shorter to suit the viewport. `contain`
       (inherited) keeps every slide the same height with the whole image. */
    #heroCarousel .carousel-item img {
        height: 240px;
    }
}

/* Expertise tiles reuse the theme card treatment. */
.expertise-tile {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 8px 0 #00000020;
    transition: 0.2s all ease-in-out;
    height: 100%;
}
.expertise-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 12px 0 #00000040;
}
.expertise-tile img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}
.expertise-tile span {
    display: block;
    padding: 14px 12px;
    font-weight: 600;
    color: #212121 !important;
    text-align: center;
}

/* ==================================================================
   HEADER — green bar + white mega row (matches Metropolis layout)
   Self-contained so it does not depend on the partial scraped header
   CSS. Uses the Metropolis green palette.
   ================================================================== */

.dn-header {
    background: var(--dn-green);
    color: #fff;
}
.dn-header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 72px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.dn-header a,
.dn-header .btn,
.dn-header strong,
.dn-header small { color: #fff !important; }

.dn-hamburger {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 20px;
}

/* The Dr Narayan logo is a multi-colour mark on a light background
   (designed for white pages). On the green bar it sits on a small
   white "chip" so it stays fully legible in its real colours. */
.dn-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    line-height: 0;
}
.dn-logo .metropolis-logo {
    height: 56px !important;
    width: auto !important;
    max-width: 290px !important;
    max-height: 56px !important;
    margin: 0 !important;
    filter: none !important;
    object-fit: contain;
}
@media (max-width: 991px) {
    /* Mobile only: let the logo run the full width of the header (it shares
       the row with the hamburger and fills the rest), instead of the small
       fixed-height chip used on desktop. */
    .dn-logo {
        flex: 1 1 auto;
        justify-content: center;
        padding: 6px 12px;
    }
    .dn-logo .metropolis-logo {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 72px !important;
    }
}

/* Combined city + search pill */
.dn-searchpill {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    max-width: 560px;
    background: #fff;
    border-radius: 8px;
    /* NOT overflow:hidden — that clips the city dropdown menu (it sits below
       the pill). Corners are kept rounded via the child radii below instead. */
    overflow: visible;
}
.dn-city { flex-shrink: 0; }
.dn-city > .btn {
    height: 100%;
    background: #008d44;
    border: 0;
    /* round the left corners to match the pill (pill no longer clips) */
    border-radius: 8px 0 0 8px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 0 16px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.dn-city > .btn::after { margin-left: 8px; }
.dn-search {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    background: #fff;
    border-radius: 0 8px 8px 0;
    /* allow the input to shrink so the search button never overflows/clips */
    min-width: 0;
}
.dn-search input {
    /* flex-basis:0 + min/width:0 forces the field to take ONLY the leftover
       space (never its content width), so the search icon is never pushed
       off-screen no matter how long the placeholder is. */
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    outline: 0;
    height: 42px;
    padding: 0 14px;
    font-size: 13px;
    color: #212121;
    background: #fff;
}
.dn-search button {
    border: 0;
    flex-shrink: 0;
    background: #fff;
    color: var(--dn-green);
    border-radius: 0 8px 8px 0;
    padding: 0 16px;
    font-size: 15px;
}

/* Phone callout blocks */
.dn-callout {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
}
.dn-callout i { font-size: 22px; }
.dn-callout span { display: flex; flex-direction: column; line-height: 1.25; }
.dn-callout small { font-size: 11px; opacity: .9; }
.dn-callout strong { font-size: 14px; font-weight: 700; }

/* Help & Support + right actions */
.dn-help > .btn {
    background: transparent;
    border: 0;
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    white-space: nowrap;
}
.dn-header-actions { display: flex; gap: 10px; margin-left: auto; }
.dn-hbtn {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}
.dn-hbtn:hover { background: rgba(255, 255, 255, .15); }
.dn-header .dropdown-menu { --bs-dropdown-link-color: #212121; }
.dn-header .dropdown-item { color: #212121 !important; }
.dn-header .dropdown-item i { color: var(--dn-green); margin-right: 8px; }

/* ---- White mega-menu row ---- */
.dn-meganav {
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}
.dn-meganav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.dn-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.dn-menu > li { position: relative; }
.dn-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #212121 !important;
    text-decoration: none;
    cursor: pointer;
}
.dn-menu > li > a i { color: var(--dn-green); }
.dn-menu > li > a:hover,
.dn-menu > li.show > a { color: var(--dn-green) !important; }
.dn-menu .dropdown-toggle::after { margin-left: 6px; }
.dn-menu .dropdown-menu { border: 0; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); border-radius: 8px; }
.dn-menu .dropdown-item { padding: 8px 16px; font-size: 13px; }
.dn-menu .dropdown-item:hover { background: #eef8f3; color: var(--dn-green); }

/* Expertise mega panel */
.dn-has-mega { position: static; }
.dn-mega {
    width: min(900px, 94vw);
    padding: 16px;
}
/* Narrower variant for menus with only a few items (About, Collaboration,
   Policies) so the panel isn't an oversized empty box. */
.dn-mega.dn-mega-sm {
    width: min(440px, 92vw);
}
.dn-mega .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: normal;
    padding: 9px 10px;
}
.dn-mega .dropdown-item i { color: var(--dn-green); }

.dn-menu-right > li > a { padding: 14px 12px; font-size: 13px; }
.dn-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--dn-green);
    border-radius: 50%;
    color: #fff !important;
}
.dn-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--dn-amber);
    color: #212121 !important;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    /* Hard guard: never let anything scroll/overflow the page sideways, and
       clamp the header + search pill to the screen so the search icon can
       never be pushed off-screen. */
    html, body { overflow-x: hidden; max-width: 100%; }
    .dn-hamburger { display: inline-flex; order: -1; }
    .dn-header-inner { gap: 12px; flex-wrap: wrap; max-width: 100%; }
    .dn-searchpill { order: 5; flex-basis: 100%; width: 100%; max-width: 100%; min-width: 0; }
    .dn-callout, .dn-help, .dn-header-actions { display: none; }
    .dn-meganav-inner { display: none; flex-direction: column; align-items: stretch; }
    .dn-meganav-inner.show,
    .dn-meganav-inner.collapsing { display: flex; }
    .dn-menu { flex-direction: column; align-items: stretch; width: 100%; }
    .dn-menu > li > a { padding: 12px 4px; border-bottom: 1px solid #f0f0f0; }
    .dn-menu .dropdown-menu { box-shadow: none; padding-left: 12px; }
    .dn-mega { width: 100%; }
}

/* Bootstrap's .collapse hides #primaryNav at every width; force it
   visible on desktop (the hamburger only governs <=991px). */
@media (min-width: 992px) {
    #primaryNav.dn-meganav-inner { display: flex !important; height: auto !important; }
}

/* main.css has a bare `header{height:79px;display:flex;...}` rule that
   would constrain our header — explicitly neutralise it. */
header.dn-header {
    height: auto !important;
    display: block !important;
    padding: 0 !important;
}

/* Thin top strip above the green bar (the live site has this row) */
.dn-topstrip {
    background: #f5f7f6;
    border-bottom: 1px solid #ebebeb;
    font-size: 12px;
}
.dn-topstrip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    flex-wrap: wrap;
}
.dn-topstrip ul {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.dn-topstrip a {
    color: #5d5d5d !important;
    text-decoration: none;
}
.dn-topstrip a:hover { color: var(--dn-green) !important; }
@media (max-width: 767px) {
    .dn-topstrip { display: none; }
}

/* main.css / legacy rules use bare `nav{background:green!important}` and
   `.navbar-collapse{background:green}` (old fixed-header hacks). Our
   mega-menu is a <nav> with a .navbar-collapse inner, so force it white
   with a selector specific enough to beat those !important rules. */
nav.dn-meganav { background: #fff !important; }
.dn-meganav .dn-meganav-inner,
.dn-meganav-inner.navbar-collapse { background: #fff !important; }

/* ==================================================================
   Fixed bottom "Get a call back" bar (Metropolis .bottomsticky)
   ================================================================== */
.dn-callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: var(--dn-green);
    box-shadow: 0 -2px 14px rgba(0, 0, 0, .22);
}
.dn-callbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 52px;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
}
.dn-callbar-text {
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
}
.dn-callbar-btn {
    background: var(--dn-amber);
    color: #212121 !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 6px;
    white-space: nowrap;
    transition: filter .15s ease;
}
.dn-callbar-btn:hover { filter: brightness(.94); }
.dn-callbar-phone {
    background: #fff;
    color: #212121 !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 6px;
    white-space: nowrap;
}
.dn-callbar-phone i { color: var(--dn-green); margin-right: 4px; }

/* Lift the back-to-top button above the fixed call-back bar.
   (Body bottom-padding is set once, further below.) */
#myBtn { bottom: 70px !important; }

@media (max-width: 575px) {
    .dn-callbar-inner { gap: 8px; }
    .dn-callbar-text { font-size: 12px; }
    .dn-callbar-btn, .dn-callbar-phone { font-size: 12px; padding: 7px 12px; }
}

/* Trim the empty grey gap at the very bottom: the footer used a stack
   of `.space-between` (25px) blocks plus a legacy 65px footer margin.
   Keep only enough body padding to clear the fixed call-back bar. */
footer.footer .background-sec { padding-bottom: 0 !important; }
footer.footer .copyright-sec.space-between {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    margin-bottom: 0 !important;
}
footer.footer { margin-bottom: 0 !important; padding-bottom: 0 !important; }
body { padding-bottom: 54px; }
@media (max-width: 575px) { body { padding-bottom: 88px; } }

/* Footer column lists: theme-inline.css styles `.menu-list` as a
   horizontal flex-wrap row with 30px bottom padding (that was for the
   original site's SEO-link strip). Our footer uses .menu-list as plain
   vertical columns — make it so, and remove the big gap before the
   newsletter row. */
footer.footer .menu-list {
    display: block !important;
    flex-wrap: nowrap !important;
    padding-bottom: 0 !important;
}
footer.footer .menu-list li {
    width: auto !important;
    padding-right: 0 !important;
}
footer.footer .menu-list li::after { content: none !important; }
footer.footer .footer-menu.space-between { padding-bottom: 0 !important; }
footer.footer .newsletter-sec.space-between { padding-top: 14px !important; }
footer.footer .footermenu-list { margin-bottom: 18px; }

/* Social "Follow Us" buttons: theme-inline.css sizes the circle but
   never centres the icon (it sits on the text baseline). Make each a
   proper flex-centred circle. */
.followus-link a,
footer .followus-link a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-decoration: none;
}
.followus-link a i {
    line-height: 1;
    font-size: 16px;
    display: block;
}

/* ==================================================================
   Inner-page banner (About / Packages / Contact, etc.)
   ================================================================== */
.dn-pagehead {
    background: linear-gradient(90deg, var(--dn-green) 0%, #00b85a 100%);
    color: #fff;
}
.dn-pagehead-inner { padding: 30px 0; }
.dn-pagehead h1 { color: #fff !important; font-weight: 600; }
.dn-pagehead p { color: rgba(255, 255, 255, .9) !important; margin-top: 6px; }
.dn-crumbs {
    margin-top: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dn-crumbs a { color: #fff !important; text-decoration: none; opacity: .92; }
.dn-crumbs a:hover { text-decoration: underline; }
.dn-crumbs span { color: rgba(255, 255, 255, .85) !important; }

/* Generic inner-page helpers */
.dn-section { padding: 40px 0; }
.dn-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .06);
    padding: 24px;
    height: 100%;
}
.dn-ulcheck { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.dn-ulcheck li { display: flex; align-items: flex-start; gap: 10px; color: #5d5d5d; }
.dn-ulcheck li i { color: var(--dn-green); margin-top: 3px; }

/* Contact page */
.dn-contact-card { display: flex; align-items: flex-start; gap: 14px; }
.dn-contact-card .ic {
    flex: 0 0 44px; width: 44px; height: 44px;
    border-radius: 50%; background: #eef8f3; color: var(--dn-green);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.dn-form label { font-weight: 500; font-size: 13px; margin-bottom: 4px; display: block; }
.dn-form .form-control, .dn-form .form-select {
    border: 1px solid #e0e0e0; border-radius: 6px; height: 44px;
    padding: 0 12px; width: 100%; font-size: 14px; background: #fff; color: #212121;
}
.dn-form textarea.form-control { height: auto; padding: 10px 12px; }
.dn-otp-row { display: flex; gap: 10px; }
.dn-msg { margin-top: 12px; font-size: 13px; }
.dn-msg.ok { color: var(--dn-green); }
.dn-msg.err { color: #c0392b; }
.dn-hidden { display: none !important; }

/* ==================================================================
   Long-form content pages (policies, collaboration)
   ================================================================== */
.dn-prose { max-width: 920px; }
.dn-prose h2 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--dn-green) !important;
    margin: 28px 0 10px;
}
.dn-prose h2:first-child { margin-top: 0; }
.dn-prose p { color: #5d5d5d; margin-bottom: 12px; line-height: 1.7; }
.dn-prose ul { margin: 0 0 16px; padding: 0; list-style: none; }
.dn-prose ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    color: #5d5d5d;
    line-height: 1.6;
}
.dn-prose ul li::before {
    content: "\f058"; /* fa-check-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--dn-green);
    position: absolute;
    left: 0;
    top: 1px;
}
.dn-prose a { color: var(--dn-green); }
.dn-cta-band {
    background: #eef8f3;
    border-radius: 10px;
    padding: 26px;
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
