/* ========================================
   MUYESU MEDICAL CENTRE LTD
   Responsive Styles - COMPLETE
   All breakpoints and mobile-specific styles
   ======================================== */

/* ========================================
   1. LARGE TABLET (1024px - 1199px)
   ======================================== */

@media (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* ========================================
   2. TABLET (768px - 1023px)
   ======================================== */

@media (max-width: 1023px) {
    .container {
        width: 94%;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 60px 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image img {
        height: 340px;
        max-width: 600px;
        margin: 0 auto;
    }

    .quick-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-item:nth-child(2) {
        border-right: none;
    }

    .info-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 340px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        min-height: 320px;
    }

    .map-container iframe {
        min-height: 320px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .emergency-banner .container {
        flex-direction: column;
        text-align: center;
    }

    .top-bar .container {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
    }

    .top-bar .top-email {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item img {
        height: 220px;
    }
}

/* ========================================
   3. MOBILE (480px - 767px)
   ======================================== */

@media (max-width: 767px) {
    /* Typography */
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading p {
        font-size: 0.95rem;
    }

    /* Layout */
    .section {
        padding: 50px 0;
    }

    .container {
        width: 92%;
    }

    /* Top Bar */
    .top-bar {
        font-size: 0.75rem;
        padding: 6px 0;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 4px;
    }

    .top-bar .top-phone {
        font-size: 0.85rem;
    }

    /* ========================================
       MOBILE NAVIGATION - WORKING
       ======================================== */

    .navbar .container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 68px;
        flex-wrap: nowrap;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        margin: 0;
        margin-left: auto;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        color: var(--deep-blue);
        font-size: 1.6rem;
        cursor: pointer;
        z-index: 1003;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .menu-toggle:hover,
    .menu-toggle:focus,
    .menu-toggle:active {
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .nav-links {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 0 5%;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1002;
        list-style: none;
    }

    .nav-links.active {
        display: flex !important;
        padding: 16px 5% !important;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
        font-weight: 500;
        color: #1F2937;
        text-decoration: none;
        border: none !important;
        transition: color 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links a:focus,
    .nav-links a.active {
        color: #2455A4;
    }

    .nav-links a::after {
        display: none !important;
    }

    .nav-links .nav-cta {
        display: block;
        width: 100%;
        margin-top: 8px;
        padding: 12px 20px;
        text-align: center;
        background: #299764;
        color: #ffffff !important;
        border-radius: 6px;
        font-weight: 600;
    }

    .nav-links .nav-cta:hover {
        background: #187548;
        color: #ffffff !important;
    }

    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
    }

    /* ========================================
       EMERGENCY MENU OVERRIDE
       ======================================== */

    .nav-links.active {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        padding: 16px 5% !important;
        z-index: 9999 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
        width: 100% !important;
        margin: 0 !important;
        height: auto !important;
        max-height: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
    }

    .nav-links.active li {
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid #e2e8f0 !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .nav-links.active li:last-child {
        border-bottom: none !important;
    }

    .nav-links.active a {
        display: block !important;
        padding: 14px 0 !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        color: #1F2937 !important;
        border: none !important;
    }

    .nav-links.active a:hover,
    .nav-links.active a.active {
        color: #2455A4 !important;
    }

    .nav-links.active .nav-cta {
        background: #299764 !important;
        color: #ffffff !important;
        padding: 12px 20px !important;
        border-radius: 6px !important;
        text-align: center !important;
        font-weight: 600 !important;
        margin-top: 8px !important;
    }

    /* ========================================
       LOGO - Responsive
       ======================================== */
    .logo-img {
        height: 45px;
        width: auto;
        flex-shrink: 0;
    }

    .logo-text strong {
        font-size: 1.2rem;
        letter-spacing: -0.2px;
    }

    .logo-text span {
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }

    /* ========================================
       HERO
       ======================================== */

    .hero {
        padding: 40px 0;
    }

    .hero .container {
        gap: 30px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1.05rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
        padding-top: 16px;
    }

    .hero-stats .stat-number {
        font-size: 1.2rem;
    }

    .hero-image img {
        height: 240px;
    }

    /* ========================================
       HORIZONTAL SCROLLING SERVICES
       ======================================== */

    .services-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 16px !important;
        padding: 8px 4px 20px 4px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
    }

    .services-grid .service-card {
        flex: 0 0 280px !important;
        min-width: 280px !important;
        scroll-snap-align: start !important;
        margin-bottom: 0 !important;
    }

    .services-grid::-webkit-scrollbar {
        height: 4px;
    }

    .services-grid::-webkit-scrollbar-track {
        background: var(--border);
        border-radius: 10px;
    }

    .services-grid::-webkit-scrollbar-thumb {
        background: var(--medical-blue);
        border-radius: 10px;
    }

    /* ========================================
       COMPACT QUICK INFO (2x2 GRID)
       ======================================== */

    .quick-info {
        margin-top: -10px;
    }

    .quick-info-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        border-radius: var(--radius-sm) !important;
        box-shadow: none !important;
    }

    .info-item {
        padding: 12px 10px !important;
        border: 1px solid var(--border) !important;
        border-radius: var(--radius-sm) !important;
        border-right: none !important;
        border-bottom: none !important;
        text-align: center !important;
        background: var(--white);
    }

    .info-item:nth-child(odd) {
        border-right: 1px solid var(--border) !important;
    }

    .info-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--border) !important;
    }

    .info-item:last-child {
        border-bottom: 1px solid var(--border) !important;
    }

    .info-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
        margin: 0 auto 4px !important;
        background: var(--blue-light);
        border-radius: 8px;
    }

    .info-item h4 {
        font-size: 0.7rem !important;
        margin-bottom: 0 !important;
        color: var(--deep-blue);
    }

    .info-item p {
        font-size: 0.6rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0 !important;
        color: var(--text-light);
    }

    .info-item p a {
        font-size: 0.6rem !important;
    }

    /* ========================================
       COMPACT "WHY CHOOSE US"
       ======================================== */

    .why-choose-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        padding: 0 !important;
    }

    .why-choose-grid .info-card {
        padding: 16px 12px !important;
        text-align: center !important;
        background: var(--white);
        border-radius: var(--radius);
        border: 1px solid var(--border);
        transition: var(--transition);
    }

    .why-choose-grid .info-card .icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        margin: 0 auto 8px !important;
        border-radius: 50%;
        display: grid;
        place-items: center;
    }

    .why-choose-grid .info-card h4 {
        font-size: 0.8rem !important;
        margin-bottom: 2px !important;
        color: var(--deep-blue);
    }

    .why-choose-grid .info-card p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0 !important;
        color: var(--text-light);
    }

    /* ========================================
       COMPACT ABOUT
       ======================================== */

    .about-grid {
        gap: 20px !important;
    }

    .about-image img {
        height: 180px !important;
    }

    .about-content h2 {
        font-size: 1.4rem !important;
        margin-bottom: 8px !important;
    }

    .about-content p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-bottom: 8px !important;
    }

    .brand-message {
        padding: 10px 14px !important;
        margin: 12px 0 !important;
    }

    .brand-message strong {
        font-size: 0.9rem !important;
    }

    /* ========================================
       COMPACT HOURS
       ======================================== */

    .hours-card {
        padding: 16px !important;
    }

    .hours-card h3 {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
    }

    .hours-row {
        padding: 6px 0 !important;
        font-size: 0.8rem !important;
    }

    .hours-row .day {
        font-size: 0.8rem !important;
    }

    .hours-row .time {
        font-size: 0.8rem !important;
    }

    /* ========================================
       COMPACT SERVICES CARD
       ======================================== */

    .service-card {
        padding: 18px 16px !important;
    }

    .service-card .icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 1rem !important;
    }

    .service-card h3 {
        font-size: 0.95rem !important;
        margin-bottom: 4px !important;
    }

    .service-card p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    /* ========================================
       COMPACT CONTACT
       ======================================== */

    .contact-card {
        padding: 18px 14px !important;
    }

    .contact-item {
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    .contact-icon {
        min-width: 34px !important;
        height: 34px !important;
        font-size: 0.8rem !important;
    }

    .contact-item h4 {
        font-size: 0.75rem !important;
    }

    .contact-item p,
    .contact-item a {
        font-size: 0.8rem !important;
    }

    /* ========================================
       COMPACT GALLERY
       ======================================== */

    .gallery-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .gallery-item img {
        height: 150px !important;
    }

    .gallery-item .caption {
        padding: 8px 10px !important;
        font-size: 0.7rem !important;
    }

    /* ========================================
       COMPACT FOOTER
       ======================================== */

    .footer {
        padding: 30px 0 16px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
        text-align: left !important;
    }

    .footer-brand {
        grid-column: span 2 !important;
        text-align: center !important;
    }

    .footer h3 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }

    .footer h4 {
        font-size: 0.75rem !important;
        margin-bottom: 8px !important;
    }

    .footer p,
    .footer a {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }

    .footer-links li {
        margin-bottom: 4px !important;
    }

    .footer-social {
        justify-content: center !important;
        margin-top: 8px !important;
    }

    .footer-social a {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }

    .footer-bottom {
        font-size: 0.7rem !important;
        padding-top: 12px !important;
    }

    /* ========================================
       COMPACT FORMS
       ======================================== */

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .form-control {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
    }

    .form-group {
        margin-bottom: 12px !important;
    }

    .form-group label {
        font-size: 0.8rem !important;
    }

    /* ========================================
       EMERGENCY BANNER
       ======================================== */

    .emergency-banner {
        padding: 25px 0 !important;
    }

    .emergency-banner h2 {
        font-size: 1.2rem !important;
    }

    .emergency-banner p {
        font-size: 0.85rem !important;
    }

    /* ========================================
       BUTTONS
       ======================================== */

    .btn {
        padding: 10px 18px !important;
        font-size: 0.85rem !important;
        min-height: 44px !important;
    }

    .btn-lg {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }

    .btn-sm {
        padding: 6px 12px !important;
        font-size: 0.7rem !important;
    }

    /* ========================================
       CARDS
       ======================================== */

    .card {
        padding: 16px !important;
    }

    /* ========================================
       WHATSAPP FLOAT
       ======================================== */

    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        right: 16px !important;
        bottom: 16px !important;
        font-size: 1.3rem !important;
    }

    /* ========================================
       BACK TO TOP
       ======================================== */

    .back-to-top {
        right: 16px !important;
        bottom: 76px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    /* ========================================
       MAP
       ======================================== */

    .map-container {
        min-height: 220px !important;
    }

    .map-container iframe {
        min-height: 220px !important;
    }

    /* ========================================
       STICKY MOBILE CTA BAR
       ======================================== */

    .mobile-sticky-cta {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 8px 12px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        gap: 8px;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #e2e8f0;
    }

    .mobile-sticky-cta .btn {
        flex: 1;
        justify-content: center;
        padding: 10px 8px !important;
        font-size: 0.75rem !important;
        min-height: 44px !important;
        border-radius: 6px !important;
        text-align: center;
    }

    .mobile-sticky-cta .btn i {
        font-size: 0.9rem;
        margin-right: 4px;
    }

    .mobile-sticky-cta .btn-whatsapp {
        background: #25D366;
        color: #ffffff;
    }

    .mobile-sticky-cta .btn-whatsapp:hover {
        background: #1DA851;
    }

    .mobile-sticky-cta .btn-primary {
        background: var(--green);
        color: #ffffff;
    }

    .mobile-sticky-cta .btn-primary:hover {
        background: var(--green-dark);
    }

    .mobile-sticky-cta .btn-safaricom {
        background: #00A651;
        color: #ffffff;
    }

    .mobile-sticky-cta .btn-safaricom:hover {
        background: #00853F;
    }

    body {
        padding-bottom: 75px !important;
    }

    /* ========================================
       FIX: 2-ROW LAYOUT FOR OVERFLOWING CONTENT
       ======================================== */

    /* Major Services - 2 rows on mobile */
    .section-blue .grid-4-cards,
    .section-blue .major-services-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        padding: 0 !important;
    }

    .section-blue .grid-4-cards .card,
    .section-blue .major-services-grid .card {
        padding: 16px 12px !important;
        text-align: center !important;
        border-radius: 12px !important;
    }

    .section-blue .grid-4-cards .card i,
    .section-blue .major-services-grid .card i {
        font-size: 2rem !important;
        margin: 0 auto 8px !important;
        display: block !important;
    }

    .section-blue .grid-4-cards .card h4,
    .section-blue .major-services-grid .card h4 {
        font-size: 0.8rem !important;
        margin-bottom: 4px !important;
    }

    .section-blue .grid-4-cards .card p,
    .section-blue .major-services-grid .card p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    /* Major Services - inline style grid override */
    .section-blue > .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .section-blue > .container > div[style*="grid-template-columns"] .card {
        padding: 16px 12px !important;
        text-align: center !important;
        border-radius: 12px !important;
    }

    .section-blue > .container > div[style*="grid-template-columns"] .card i {
        font-size: 2rem !important;
        margin: 0 auto 8px !important;
        display: block !important;
    }

    .section-blue > .container > div[style*="grid-template-columns"] .card h4 {
        font-size: 0.8rem !important;
        margin-bottom: 4px !important;
    }

    .section-blue > .container > div[style*="grid-template-columns"] .card p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    /* Specialised Clinics - 2 rows on mobile */
    .specialised-clinics-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        padding: 0 !important;
    }

    .specialised-clinics-grid .card {
        padding: 16px 12px !important;
        text-align: center !important;
    }

    .specialised-clinics-grid .card i {
        font-size: 2rem !important;
        margin: 0 auto 8px !important;
        display: block !important;
    }

    .specialised-clinics-grid .card h4 {
        font-size: 0.8rem !important;
        margin-bottom: 4px !important;
    }

    .specialised-clinics-grid .card p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    /* Service Area badges - wrap to 2 rows */
    .service-area-badges {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    .service-area-badges .badge {
        flex: 0 0 calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
        text-align: center !important;
        padding: 8px 12px !important;
        font-size: 0.7rem !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* Hours card - ensure proper wrapping */
    .hours-card {
        max-width: 100% !important;
        padding: 16px !important;
    }

    .hours-row {
        display: flex !important;
        justify-content: space-between !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    .hours-row .day,
    .hours-row .time {
        flex: 1 !important;
        min-width: auto !important;
    }

    /* ========================================
       FIX: MINOR SURGERY SERVICES - 2 ROWS
       ======================================== */

    /* Minor Surgery Services - 2 rows on mobile */
    .section-white .minor-surgery-grid,
    .section-white > .container > div[style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        padding: 0 !important;
    }

    .section-white > .container > div[style*="grid-template-columns"] .card {
        padding: 16px 12px !important;
        text-align: center !important;
        border-radius: 12px !important;
        min-height: 140px !important;
    }

    .section-white > .container > div[style*="grid-template-columns"] .card i {
        font-size: 2rem !important;
        margin: 0 auto 8px !important;
        display: block !important;
    }

    .section-white > .container > div[style*="grid-template-columns"] .card h4 {
        font-size: 0.8rem !important;
        margin-bottom: 4px !important;
    }

    .section-white > .container > div[style*="grid-template-columns"] .card p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    .section-white > .container > div[style*="grid-template-columns"] .card .btn-sm {
        font-size: 0.6rem !important;
        padding: 4px 12px !important;
        min-height: 30px !important;
    }

    /* Minor Surgery - STRONG OVERRIDE for inline styles */
    .section-white .container div[style*="grid-template-columns: repeat(3, 1fr)"] {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important !important;
        gap: 12px !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .section-white .container div[style*="grid-template-columns: repeat(3, 1fr)"] .card {
        padding: 16px 12px !important;
        text-align: center !important;
        border-radius: 12px !important;
        min-height: 140px !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
}

/* ========================================
   4. SMALL PHONES (320px - 479px)
   ======================================== */

@media (max-width: 479px) {
    h1 {
        font-size: 1.7rem !important;
    }

    h2 {
        font-size: 1.4rem !important;
    }

    .section-heading h2 {
        font-size: 1.4rem !important;
    }

    .section-heading p {
        font-size: 0.85rem !important;
    }

    .section {
        padding: 30px 0 !important;
    }

    .container {
        width: 94% !important;
    }

    .navbar .container {
        min-height: 56px !important;
    }

    .logo-img {
        height: 34px !important;
    }

    .logo-text strong {
        font-size: 0.9rem !important;
        letter-spacing: -0.1px;
    }

    .logo-text span {
        font-size: 0.5rem !important;
        letter-spacing: 0.2px;
    }

    .menu-toggle {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.2rem !important;
    }

    .hero {
        padding: 25px 0 !important;
    }

    .hero h1 {
        font-size: 1.5rem !important;
    }

    .hero .tagline {
        font-size: 0.9rem !important;
    }

    .hero p {
        font-size: 0.85rem !important;
    }

    .hero-image img {
        height: 160px !important;
    }

    .hero-stats {
        flex-direction: column !important;
        gap: 6px !important;
        align-items: center !important;
    }

    .hero-stats .stat-number {
        font-size: 1.1rem !important;
    }

    .hero-stats .stat-label {
        font-size: 0.7rem !important;
    }

    .quick-info-grid {
        gap: 6px !important;
    }

    .info-item {
        padding: 10px 8px !important;
    }

    .info-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }

    .info-item h4 {
        font-size: 0.65rem !important;
    }

    .info-item p {
        font-size: 0.55rem !important;
    }

    .info-item p a {
        font-size: 0.55rem !important;
    }

    .services-grid .service-card {
        flex: 0 0 240px !important;
        min-width: 240px !important;
        padding: 14px 12px !important;
    }

    .service-card .icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.85rem !important;
    }

    .service-card h3 {
        font-size: 0.85rem !important;
    }

    .service-card p {
        font-size: 0.75rem !important;
    }

    .service-card .category-tag {
        font-size: 0.55rem !important;
        padding: 2px 8px !important;
    }

    .why-choose-grid {
        gap: 8px !important;
    }

    .why-choose-grid .info-card {
        padding: 12px 8px !important;
    }

    .why-choose-grid .info-card .icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
        margin: 0 auto 6px !important;
    }

    .why-choose-grid .info-card h4 {
        font-size: 0.7rem !important;
    }

    .why-choose-grid .info-card p {
        font-size: 0.6rem !important;
    }

    .about-image img {
        height: 150px !important;
    }

    .about-content h2 {
        font-size: 1.2rem !important;
    }

    .about-content p {
        font-size: 0.8rem !important;
    }

    .brand-message {
        padding: 8px 12px !important;
    }

    .brand-message strong {
        font-size: 0.8rem !important;
    }

    .hours-card {
        padding: 14px !important;
    }

    .hours-card h3 {
        font-size: 0.9rem !important;
    }

    .hours-row {
        padding: 4px 0 !important;
        font-size: 0.7rem !important;
    }

    .gallery-grid {
        gap: 8px !important;
    }

    .gallery-item img {
        height: 130px !important;
    }

    .gallery-item .caption {
        padding: 6px 8px !important;
        font-size: 0.6rem !important;
    }

    .contact-card {
        padding: 14px 12px !important;
    }

    .contact-item {
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .contact-icon {
        min-width: 30px !important;
        height: 30px !important;
        font-size: 0.7rem !important;
    }

    .contact-item h4 {
        font-size: 0.7rem !important;
    }

    .contact-item p,
    .contact-item a {
        font-size: 0.75rem !important;
    }

    .map-container {
        min-height: 180px !important;
    }

    .map-container iframe {
        min-height: 180px !important;
    }

    .footer {
        padding: 24px 0 12px !important;
    }

    .footer-grid {
        gap: 12px !important;
    }

    .footer h3 {
        font-size: 0.9rem !important;
    }

    .footer h4 {
        font-size: 0.7rem !important;
    }

    .footer p,
    .footer a {
        font-size: 0.7rem !important;
    }

    .footer-social a {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }

    .footer-bottom {
        font-size: 0.6rem !important;
    }

    .btn {
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
        min-height: 38px !important;
    }

    .btn-lg {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }

    .whatsapp-float {
        width: 40px !important;
        height: 40px !important;
        right: 12px !important;
        bottom: 12px !important;
        font-size: 1rem !important;
    }

    .back-to-top {
        right: 12px !important;
        bottom: 62px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }

    .emergency-banner {
        padding: 20px 0 !important;
    }

    .emergency-banner h2 {
        font-size: 1rem !important;
    }

    .emergency-banner p {
        font-size: 0.8rem !important;
    }

    .mobile-sticky-cta {
        padding: 6px 8px !important;
        gap: 6px !important;
    }

    .mobile-sticky-cta .btn {
        padding: 8px 4px !important;
        font-size: 0.65rem !important;
        min-height: 38px !important;
    }

    .mobile-sticky-cta .btn i {
        font-size: 0.8rem !important;
        margin-right: 2px !important;
    }

    body {
        padding-bottom: 65px !important;
    }

    /* 2-row layout for small phones */
    .section-blue > .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .section-blue > .container > div[style*="grid-template-columns"] .card {
        padding: 12px 8px !important;
    }

    .section-blue > .container > div[style*="grid-template-columns"] .card i {
        font-size: 1.5rem !important;
    }

    .section-blue > .container > div[style*="grid-template-columns"] .card h4 {
        font-size: 0.7rem !important;
    }

    .section-blue > .container > div[style*="grid-template-columns"] .card p {
        font-size: 0.6rem !important;
    }

    .service-area-badges .badge {
        flex: 0 0 calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
        padding: 6px 8px !important;
        font-size: 0.6rem !important;
    }

    .specialised-clinics-grid {
        gap: 8px !important;
    }

    .specialised-clinics-grid .card {
        padding: 12px 8px !important;
    }

    .specialised-clinics-grid .card i {
        font-size: 1.5rem !important;
    }

    .specialised-clinics-grid .card h4 {
        font-size: 0.7rem !important;
    }

    .specialised-clinics-grid .card p {
        font-size: 0.6rem !important;
    }

    /* Minor Surgery - small phones */
    .section-white > .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .section-white > .container > div[style*="grid-template-columns"] .card {
        padding: 12px 8px !important;
        min-height: 120px !important;
    }

    .section-white > .container > div[style*="grid-template-columns"] .card i {
        font-size: 1.5rem !important;
    }

    .section-white > .container > div[style*="grid-template-columns"] .card h4 {
        font-size: 0.7rem !important;
    }

    .section-white > .container > div[style*="grid-template-columns"] .card p {
        font-size: 0.6rem !important;
    }

    .section-white > .container > div[style*="grid-template-columns"] .card .btn-sm {
        font-size: 0.55rem !important;
        padding: 3px 8px !important;
        min-height: 26px !important;
    }
}

/* ========================================
   5. LANDSCAPE PHONES (480px - 767px, height limited)
   ======================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 20px 0 !important;
        min-height: auto !important;
    }

    .hero-image img {
        height: 140px !important;
    }

    .hero .container {
        gap: 15px !important;
    }

    .hero h1 {
        font-size: 1.4rem !important;
    }

    .hero p {
        font-size: 0.8rem !important;
        margin-bottom: 10px !important;
    }

    .quick-info {
        margin-top: 0 !important;
    }

    .quick-info-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .info-item {
        padding: 8px 10px !important;
    }

    .section {
        padding: 20px 0 !important;
    }

    .navbar .container {
        min-height: 50px !important;
    }

    .logo-img {
        height: 32px !important;
    }

    .logo-text strong {
        font-size: 0.85rem !important;
    }

    .logo-text span {
        font-size: 0.45rem !important;
    }

    .services-grid .service-card {
        flex: 0 0 200px !important;
        min-width: 200px !important;
        padding: 12px 10px !important;
    }

    .service-card .icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }

    .service-card h3 {
        font-size: 0.8rem !important;
    }

    .service-card p {
        font-size: 0.7rem !important;
    }

    .mobile-sticky-cta {
        padding: 4px 8px !important;
    }

    .mobile-sticky-cta .btn {
        padding: 6px 8px !important;
        font-size: 0.65rem !important;
        min-height: 34px !important;
    }

    body {
        padding-bottom: 55px !important;
    }
}

/* ========================================
   6. PRINT STYLES
   ======================================== */

@media print {
    .navbar,
    .top-bar,
    .footer,
    .whatsapp-float,
    .back-to-top,
    .emergency-banner,
    .mobile-sticky-cta {
        display: none !important;
    }

    .container {
        width: 100% !important;
        padding: 0 !important;
    }

    body {
        font-size: 12px !important;
        color: #000 !important;
        padding-bottom: 0 !important;
    }

    h1,
    h2,
    h3,
    h4 {
        color: #000 !important;
    }

    .section {
        padding: 20px 0 !important;
        page-break-inside: avoid;
    }

    .hero {
        background: #fff !important;
        padding: 20px 0 !important;
    }

    .hero-image img {
        height: 200px !important;
    }

    .service-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .quick-info-grid {
        border: 1px solid #ddd !important;
    }

    .info-item {
        border: 1px solid #ddd !important;
    }

    .btn {
        border: 1px solid #000 !important;
        background: #fff !important;
        color: #000 !important;
        padding: 6px 14px !important;
    }

    .map-container {
        min-height: 200px !important;
    }

    .map-container iframe {
        min-height: 200px !important;
    }

    .hours-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}