/* ============================================================
   RAJ NURSING HOME — Responsive Styles
   Covers: mobile (<576), tablet (<992), laptop (<1280), desktop
   ============================================================ */

/* ============================================================
   NABH Banner Logo
   ============================================================ */
.nabh-banner .nabh-banner__logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}

/* ============================================================
   NAVBAR — Laptop / mid-screen fixes (992–1280px)
   ============================================================ */

/* Force smaller font on all nav links for medium laptops */
@media (min-width: 1200px) and (max-width: 1400px) {
    .site-header .nav-link {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.4rem !important;
    }

    .site-header .brand-text .name {
        font-size: 1.05rem;
    }

    .site-header .brand-logo {
        width: 75px;
        height: 75px;
    }

    .site-header .nav-link.btn-appt {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.72rem !important;
    }
}

/* Extra-tight for 1024 laptops */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar-expand-xl .navbar-toggler {
        display: none !important;
    }

    .navbar-expand-xl .navbar-collapse {
        display: flex !important;
    }

    .site-header .nav-link {
        font-size: 0.72rem !important;
        padding: 0.4rem 0.32rem !important;
    }

    .site-header .brand-text .name {
        font-size: 0.95rem;
    }

    .site-header .brand-text .tagline {
        font-size: 0.62rem;
    }

    .site-header .brand-logo {
        width: 70px;
        height: 70px;
    }

    .lang-switcher .dropdown-toggle {
        font-size: 0.7rem;
        padding: 2px 8px;
    }
}

/* ============================================================
   TABLET & MOBILE NAVBAR (< 991px) — collapsed/hamburger
   ============================================================ */
@media (max-width: 991px) {

    /* Collapse navbar — drops as floating panel below header */
    .site-header .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1050;
        background: var(--clr-white);
        border-top: 3px solid var(--clr-primary);
        border-bottom: 2px solid var(--clr-border);
        padding: 10px 0 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        max-height: 75vh;
        overflow-y: auto;
    }

    .site-header .nav-link {
        padding: 0.55rem 1rem !important;
        font-size: 0.9rem;
    }

    .site-header .nav-link.btn-appt {
        margin: 8px 1rem;
        padding: 0.55rem 1rem !important;
        border-radius: var(--radius-sm);
        display: block;
        text-align: center;
    }

    /* Language switcher in mobile nav */
    .lang-switcher {
        margin: 8px 1rem;
    }

    .lang-switcher .dropdown-toggle {
        width: 100%;
        text-align: left;
    }

    /* Quick contact bar visible on mobile */
    .quick-contact-bar {
        display: block;
    }

    body {
        padding-bottom: 64px;
    }

    /* Info bar — hide some items */
    .info-bar .d-none-mobile {
        display: none !important;
    }

    .section {
        padding: 44px 0;
    }

    /* Hero adjustments */
    .hero {
        min-height: auto;
    }

    .hero-content-overlay .row {
        flex-direction: column;
    }

    .hours-card {
        margin-top: 2rem;
    }
}

/* ============================================================
   TABLET portrait (576px – 768px)
   ============================================================ */
@media (max-width: 768px) {
    .hero-content-overlay {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .hero-content-overlay .pt-4 {
        padding-top: 0 !important;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    .hero__actions {
        justify-content: center;
    }
}

/* ============================================================
   Mobile (< 576px)
   ============================================================ */
@media (max-width: 575px) {
    .hero-content-overlay {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .hero__title {
        font-size: 1.6rem;
    }

    .hero__subtitle {
        font-size: 0.85rem;
    }

    .hero__actions {
        flex-direction: column;
        gap: 10px;
    }

    .hero__actions .btn-primary-rnh,
    .hero__actions .btn-secondary-rnh,
    .hero__actions .btn-call,
    .hero__actions .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 36px 0;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .card-rnh .card-body {
        padding: 1.1rem;
    }

    .page-hero {
        padding: 28px 0;
    }

    .page-hero h1 {
        font-size: 1.4rem;
    }

    .hours-card {
        padding: 1.2rem;
    }

    .map-embed iframe {
        height: 250px;
    }

    .site-footer {
        padding: 36px 0 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-bar {
        display: none;
    }

    .nabh-banner {
        display: none !important;
    }

    /* Navbar toggler custom style */
    .navbar-toggler {
        padding: 6px 10px;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C8005A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* ============================================================
   HERO section baseline height  
   ============================================================ */
.hero {
    min-height: 480px;
}

@media (max-width: 768px) {
    .hero {
        min-height: 560px;
    }
}

@media (max-width: 575px) {
    .hero {
        min-height: auto;
    }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {

    .site-header,
    .site-footer,
    .quick-contact-bar,
    .info-bar,
    .lang-switcher,
    .nabh-banner {
        display: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }

    .section {
        padding: 20px 0;
    }
}

/* ============================================================
   UTILITY OVERRIDES
   ============================================================ */
.text-primary-rnh {
    color: var(--clr-primary) !important;
}

.text-secondary-rnh {
    color: var(--clr-secondary) !important;
}

.bg-primary-rnh {
    background: var(--clr-primary) !important;
}

.bg-secondary-rnh {
    background: var(--clr-secondary) !important;
}

.border-primary-rnh {
    border-color: var(--clr-primary) !important;
}

.border-secondary-rnh {
    border-color: var(--clr-secondary) !important;
}

/* ============================================================
   MOBILE FIRST DOCTOR CARD IMAGE
   ============================================================ */
.doctor-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Responsive doctor card layout */
@media (max-width: 767px) {
    .doctor-card .row {
        flex-direction: column;
    }

    .doctor-card .doctor-img-wrap {
        height: 220px !important;
        min-height: 220px !important;
        width: 100%;
    }
}