/* ===== MCH Kidney Stone Centre - Responsive CSS ===== */
/* //mch/assets/css/responsive.css  */
/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (max-width: 1199.98px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0 5px;
        padding: 8px 12px !important;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (max-width: 991.98px) {
    /* Navigation */
    .navbar-brand {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .brand-text {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
    
    .brand-text h4 {
        font-size: 1.2rem;
    }
    
    .navbar-nav {
        margin-top: 1rem;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        margin: 5px 0;
        padding: 12px 15px !important;
        text-align: center;
        border-radius: 5px;
    }
    
    /* Hero Section */
    .hero-section {
        text-align: center;
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        margin-top: 2rem;
    }
    
    .cta-buttons .btn {
        margin: 0.5rem;
        width: 100%;
        max-width: 250px;
    }
    
    /* Page Header */
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 2.2rem;
        text-align: center;
    }
    
    /* Cards and Features */
    .feature-card,
    .doctor-card,
    .contact-card {
        margin-bottom: 2rem;
    }
    
    /* Statistics */
    .stat-item {
        margin-bottom: 1.5rem;
    }
    
    /* Footer */
    .footer .text-lg-end {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    /* Contact Page */
    .map-embed {
        height: 250px !important;
    }
    
    /* Quick Actions */
    .quick-actions .btn {
        margin-bottom: 1rem;
        width: 100%;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (max-width: 767.98px) {
    /* Header */
    .top-bar {
        text-align: center;
    }
    
    .top-bar .row > div {
        text-align: center !important;
    }
    
    .top-bar .contact-info,
    .top-bar .emergency-btn {
        margin: 0.5rem 0;
    }
    
    .emergency-btn .btn {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    /* Logo and Brand */
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .brand-text h4 {
        font-size: 1.1rem;
    }
    
    .brand-text small {
        font-size: 0.75rem;
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .key-points {
        font-size: 1rem;
    }
    
    .key-points .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Page Headers */
    .page-header {
        padding: 40px 0;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header .lead {
        font-size: 1rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* Buttons */
    .btn-lg {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Cards */
    .feature-card,
    .doctor-card,
    .contact-card,
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
    
    .feature-card h4,
    .doctor-card h4 {
        font-size: 1.2rem;
    }
    
    /* Doctor Cards */
    .doctor-card img {
        width: 120px;
        height: 120px;
    }
    
    /* Process Steps */
    .step-number,
    .step-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .process-step h5,
    .process-step h4 {
        font-size: 1rem;
    }
    
    .process-step p {
        font-size: 0.9rem;
    }
    
    /* Statistics */
    .stat-item h2 {
        font-size: 2rem;
    }
    
    /* Forms */
    .modal-body {
        padding: 1.5rem;
    }
    
    .form-control,
    .form-select {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    /* Contact Page */
    .contact-card {
        text-align: center;
        padding: 1.5rem !important;
    }
    
    .contact-icon i {
        font-size: 2.5rem !important;
    }
    
    .map-container {
        height: auto !important;
    }
    
    .map-embed {
        height: 200px !important;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
        display: flex;
        gap: 1rem;
    }
    
    /* WhatsApp Button */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    /* Accordion */
    .accordion-button {
        font-size: 0.95rem;
        padding: 1rem;
    }
    
    /* Treatment Benefits */
    .benefit-item {
        text-align: center;
        flex-direction: column;
    }
    
    .benefit-item i {
        margin-bottom: 1rem !important;
        margin-right: 0 !important;
    }
    
    /* Emergency Contact */
    .emergency-contact .btn {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Container Padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Header */
    .top-bar {
        font-size: 0.8rem;
        padding: 1rem 0 !important;
    }
    
    .contact-info span {
        display: block;
        margin: 0.25rem 0;
    }
    
    .emergency-btn .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    /* Logo and Brand */
    .navbar-brand {
        flex-direction: row;
        align-items: center;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .brand-text {
        margin-left: 0.75rem !important;
        margin-top: 0 !important;
    }
    
    .brand-text h4 {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    .brand-text small {
        font-size: 0.7rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 60vh;
        padding: 30px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-content .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .key-points {
        font-size: 0.9rem;
    }
    
    .key-points i {
        font-size: 0.8rem;
    }
    
    /* Page Headers */
    .page-header {
        padding: 30px 0;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .page-header .lead {
        font-size: 0.95rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
        border-radius: 20px;
    }
    
    .btn-lg {
        font-size: 0.95rem;
        padding: 12px 25px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Cards */
    .feature-card,
    .doctor-card,
    .contact-card {
        padding: 1rem !important;
        margin-bottom: 1rem;
    }
    
    .feature-icon i,
    .contact-icon i {
        font-size: 2rem !important;
    }
    
    .feature-card h4,
    .contact-card h4 {
        font-size: 1.1rem;
    }
    
    /* Doctor Cards */
    .doctor-card img {
        width: 100px;
        height: 100px;
    }
    
    .doctor-card h4 {
        font-size: 1.1rem;
    }
    
    .doctor-card p {
        font-size: 0.9rem;
    }
    
    /* Process Steps */
    .step-number,
    .step-circle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.75rem !important;
    }
    
    .process-step h5,
    .process-step h4 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .process-step p {
        font-size: 0.85rem;
    }
    
    /* Statistics */
    .stat-item h2 {
        font-size: 1.8rem;
    }
    
    .stat-item p {
        font-size: 0.9rem;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .btn-close {
        font-size: 0.8rem;
    }
    
    /* Contact Page */
    .contact-form {
        padding: 1rem !important;
    }
    
    .contact-card {
        padding: 1rem !important;
    }
    
    .contact-card h4 {
        font-size: 1.1rem;
    }
    
    .contact-card p {
        font-size: 0.9rem;
    }
    
    .hours-card {
        padding: 1.5rem !important;
    }
    
    .map-embed {
        height: 180px !important;
    }
    
    /* Business Hours */
    .hours-card h4 {
        font-size: 1.1rem;
    }
    
    .hours-card h5 {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 !important;
        font-size: 0.9rem;
    }
    
    .footer h5 {
        font-size: 1.1rem;
    }
    
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 0.9rem;
    }
    
    /* WhatsApp Button */
    .whatsapp-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1rem !important;
    }
    
    .testimonial-card p {
        font-size: 0.9rem;
    }
    
    /* FAQ Accordion */
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .accordion-body {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    /* Treatment Benefits */
    .benefit-item {
        padding: 1rem !important;
        text-align: left;
        flex-direction: row;
    }
    
    .benefit-item i {
        font-size: 1.5rem !important;
        margin-right: 1rem !important;
        margin-bottom: 0 !important;
    }
    
    .benefit-item h4,
    .benefit-item h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .benefit-item p {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    
    /* Service Process */
    .service-process .col-lg-2 {
        margin-bottom: 1.5rem;
    }
    
    /* Emergency Contact */
    .emergency-contact {
        padding: 1.5rem 0 !important;
        text-align: center;
    }
    
    .emergency-contact h4 {
        font-size: 1.1rem;
    }
    
    .emergency-contact p {
        font-size: 0.9rem;
    }
    
    .emergency-contact .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Spacing Adjustments */
    .py-5 {
        padding: 2rem 0 !important;
    }
    
    .py-4 {
        padding: 1.5rem 0 !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
}

/* Landscape Phone Specific */
@media (max-width: 575.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .page-header {
        padding: 20px 0;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 12px 16px !important;
    }
    
    .whatsapp-btn {
        min-width: 50px;
        min-height: 50px;
    }
    
    .form-control,
    .form-select {
        min-height: 44px;
    }
}

/* Print Styles */
@media print {
    .hero-section,
    .cta-section,
    .whatsapp-float,
    .navbar,
    .footer,
    .btn,
    .modal {
        display: none !important;
    }
    
    .page-header {
        background: none !important;
        color: black !important;
    }
    
    .section-title {
        color: black !important;
    }
    
    .text-primary {
        color: black !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
    }
}