/* ===================================
   RESPONSIVE.CSS
   Mobile-First Responsive Styles
   MEC Health Family Hospital
   =================================== */

/* ===================================
   LARGE DESKTOP (> 1440px)
   Max-width containers for ultra-wide screens
   =================================== */

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero-content {
        max-width: 800px;
    }

    .section-header {
        max-width: 900px;
    }
}

/* ===================================
   DESKTOP (1024px - 1440px)
   Standard desktop layout
   =================================== */

@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    /* Services Grid: 2 columns on smaller desktops */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Facilities Grid: 3 columns */
    .facilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   TABLET (768px - 1024px)
   Tablet-specific adjustments
   =================================== */

@media (max-width: 1024px) {
    /* Typography Adjustments */
    h1, .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Container Adjustments */
    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 4rem 0;
    }

    /* Hero Section */
    .hero {
        min-height: 70vh;
        padding: 6rem 0 4rem;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }

    .hero-badges {
        gap: 1rem;
    }

    .hero-badge {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* Navigation */
    .nav-menu {
        gap: 1.5rem;
    }

    /* Trust Indicators */
    .trust-indicators {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 3rem 0;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        max-width: 700px;
        margin: 0 auto;
    }

    .about-content {
        order: 2;
        text-align: center;
    }

    .about-image {
        order: 1;
        height: 400px;
        margin: 0 auto;
    }

    .about-text {
        text-align: center;
    }

    .about-features {
        justify-content: center;
    }

    /* Why Choose Us */
    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .why-choose-image {
        height: 400px;
    }

    /* Facilities Grid */
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .testimonials-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    /* CTA Section */
    .cta {
        padding: 5rem 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    /* Contact Section */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form {
        order: -1;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }

    .footer-about {
        grid-column: span 2;
    }
}

/* ===================================
   MOBILE (< 768px)
   Mobile-specific layout and design
   =================================== */

@media (max-width: 768px) {
    /* Prevent Horizontal Overflow */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Typography - Mobile Optimized */
    h1, .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    body {
        font-size: 0.9375rem;
        overflow-x: hidden;
    }

    /* Container Adjustments */
    .container {
        padding: 0 1.5rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    section {
        padding: 3rem 0;
    }

    /* Navigation - Mobile Menu */
    .navbar {
        padding: 1rem 0;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        box-shadow: var(--shadow-xl);
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    .nav-emergency {
        margin-top: 1rem;
        width: 100%;
    }

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

    /* Mobile Menu Toggle Button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--primary-blue);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(10.5px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-10.5px) rotate(-45deg);
    }

    /* Hero Section - Mobile */
    .hero {
        min-height: 60vh;
        padding: 5rem 1.5rem 3rem;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .hero-badge {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .hero-badge i {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    /* Trust Indicators - Mobile Stack */
    .trust-indicators {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .trust-indicator {
        padding: 1.5rem;
    }

    .trust-indicator-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .trust-indicator h4 {
        font-size: 1rem;
    }

    .trust-indicator p {
        font-size: 0.875rem;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 2.5rem;
        text-align: center;
        padding: 0 1rem;
    }

    .section-header h2 {
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .section-subtitle {
        font-size: 0.9375rem;
        padding: 0 0.5rem;
    }

    /* Services Grid - Mobile Single Column */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-card {
        padding: 1.75rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon i {
        font-size: 1.75rem;
    }

    /* About Section - Mobile */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .about-content {
        order: 2;
        text-align: center;
    }

    .about-image {
        height: 300px;
        order: 1;
        margin: 0 auto;
    }

    .about-text {
        text-align: center;
    }

    .about-text h2 {
        font-size: 1.75rem;
    }

    .about-features {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .feature-item {
        width: 100%;
        text-align: center;
    }

    /* Why Choose Us - Mobile */
    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .why-choose-image {
        height: 300px;
    }

    .why-choose-list {
        gap: 1rem;
    }

    .why-choose-item {
        padding: 1rem;
    }

    .why-choose-icon {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }

    /* Facilities Grid - Mobile Single Column */
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .facility-card {
        padding: 1.5rem;
    }

    .facility-icon {
        width: 60px;
        height: 60px;
    }

    .facility-icon i {
        font-size: 1.5rem;
    }

    /* Testimonials - Mobile */
    .testimonial-card-large {
        max-width: 600px;
        margin: 0 auto 2.5rem;
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .testimonial-image {
        order: -1;
        width: 100%;
        height: auto;
        min-height: 400px;
        max-height: 500px;
    }

    .testimonial-image img {
        object-fit: contain;
        width: 100%;
        height: 100%;
    }

    .testimonial-content {
        order: 1;
    }

    .testimonial-card {
        padding: 1.75rem;
        text-align: center;
    }

    .testimonial-card::before {
        font-size: 3.5rem;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .testimonial-content {
        text-align: center;
    }

    .testimonial-text {
        font-size: 0.9375rem;
        line-height: 1.7;
        text-align: center;
    }

    .testimonial-stars {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .testimonial-title {
        text-align: center;
    }

    .testimonial-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        justify-content: center;
    }

    .author-image {
        width: 80px;
        height: 80px;
    }

    .author-name {
        font-size: 1rem;
        text-align: center;
    }

    .testimonials-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .testimonial-gallery-item {
        text-align: center;
        margin: 0 auto;
    }

    .testimonial-gallery-item p {
        text-align: center;
        margin-top: 0.75rem;
    }

    .testimonial-image {
        height: 250px;
        margin: 0 auto;
    }

    .testimonial-image img {
        border-radius: var(--radius-xl);
    }

    /* CTA Section - Mobile */
    .cta {
        padding: 4rem 1.5rem;
        text-align: center;
    }

    .cta-content {
        padding: 0 1rem;
        margin: 0 auto;
    }

    .cta-content h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding: 0 0.5rem;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Contact Section - Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Map Container - Mobile */
    .map-container.active {
        max-height: 450px;
    }

    .map-wrapper {
        height: 350px;
    }

    .view-map-btn {
        width: 100%;
        justify-content: center;
    }

    .contact-info {
        max-width: 600px;
        margin: 0 auto;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .contact-icon {
        margin: 0 auto;
    }

    .contact-details {
        text-align: center;
    }

    .contact-details h3 {
        text-align: center;
    }

    .contact-details p {
        text-align: center;
    }

    .contact-form-container {
        max-width: 600px;
        margin: 0 auto;
    }

    .contact-form {
        padding: 1.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Footer - Mobile */
    .footer {
        padding: var(--space-2xl) 0 var(--space-lg);
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .footer .container {
        max-width: 100%;
        overflow-x: hidden;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .footer-about,
    .footer-links,
    .footer-services,
    .footer-contact {
        max-width: 100%;
        width: 100%;
        padding: 0 var(--space-md);
        box-sizing: border-box;
    }

    .footer-contact h3 {
        text-align: center;
        margin-bottom: var(--space-lg);
    }

    .footer-logo {
        height: 80px;
        margin-left: auto;
        margin-right: auto;
        display: block;
        max-width: 90%;
    }

    .footer-motto {
        font-size: var(--text-md);
        word-wrap: break-word;
    }

    .footer-text {
        font-size: var(--text-sm);
        word-wrap: break-word;
        max-width: 100%;
    }

    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer h3 {
        font-size: var(--text-md);
        margin-bottom: var(--space-md);
        text-align: center;
    }

    .footer-contact h3 {
        width: 100%;
    }

    .footer ul {
        padding: 0;
        margin: 0;
    }

    .footer ul li a {
        word-wrap: break-word;
        max-width: 100%;
        display: inline-block;
    }

    .footer-contact-item {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: var(--space-sm);
        width: 100%;
        text-align: left;
    }

    .footer-contact-item span {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        flex: 1;
        min-width: 0;
        font-size: 0.8125rem;
        line-height: 1.6;
    }

    .footer-contact-item i {
        flex-shrink: 0;
        width: 16px;
        min-width: 16px;
        font-size: 0.875rem;
        margin-top: 2px;
    }

    .hours-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.625rem;
        white-space: nowrap;
    }

    .footer-bottom {
        padding-top: var(--space-md);
        text-align: center;
        width: 100%;
        overflow-x: hidden;
    }

    .footer-bottom p {
        font-size: var(--text-xs);
        line-height: 1.6;
        word-wrap: break-word;
        padding: 0 var(--space-md);
        max-width: 100%;
    }

    /* Buttons - Mobile Full Width */
    .btn-block-mobile {
        width: 100%;
        display: flex;
    }

    /* Cards - Reduce Padding on Mobile */
    .card {
        padding: 1.5rem;
    }

    /* Back to Top Button - Mobile Position */
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }

    .back-to-top i {
        font-size: 1.125rem;
    }
}

/* ===================================
   SMALL MOBILE (< 480px)
   Extra small screens optimization
   =================================== */

@media (max-width: 480px) {
    /* Prevent Horizontal Overflow - Extra Small */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Typography - Extra Small Screens */
    h1, .hero-title {
        font-size: 1.625rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    body {
        font-size: 0.875rem;
    }

    /* Container */
    .container {
        padding: 0 1.25rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    section {
        padding: 2.5rem 0;
    }

    /* Navigation */
    .navbar {
        padding: 0.875rem 0;
    }

    .logo img {
        height: 45px;
    }

    /* Hero Section */
    .hero {
        min-height: 55vh;
        padding: 4rem 1.25rem 2.5rem;
    }

    .hero-content {
        padding: 0 0.75rem;
    }

    .hero-title {
        font-size: 1.5rem;
        padding: 0 0.25rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .hero-badge {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .hero-cta .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }

    /* Trust Indicators */
    .trust-indicators {
        padding: 1.5rem 0;
        gap: 1.25rem;
    }

    .trust-indicator {
        padding: 1.25rem;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 2rem;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    /* Services */
    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .service-icon i {
        font-size: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.125rem;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        max-width: 550px;
        margin: 0 auto;
    }

    .about-content {
        order: 2;
        text-align: center;
    }

    .about-image {
        height: 250px;
        order: 1;
        margin: 0 auto;
    }

    /* Facilities */
    .facility-card {
        padding: 1.25rem;
    }

    .facility-icon {
        width: 55px;
        height: 55px;
    }

    .facility-icon i {
        font-size: 1.375rem;
    }

    /* Testimonials */
    .testimonial-card-large {
        max-width: 550px;
    }

    .testimonial-card {
        padding: 1.5rem;
        text-align: center;
    }

    .testimonial-card::before {
        font-size: 3rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .testimonial-text {
        font-size: 0.875rem;
        text-align: center;
    }

    .author-image {
        width: 70px;
        height: 70px;
    }

    .testimonials-gallery {
        max-width: 550px;
    }

    .testimonial-gallery-item {
        text-align: center;
    }

    .testimonial-card-large .testimonial-image {
        height: auto;
        min-height: 350px;
        max-height: 450px;
    }

    .testimonial-card-large .testimonial-image img {
        object-fit: contain;
    }

    .testimonial-gallery .testimonial-image {
        height: 200px;
    }

    /* CTA Section */
    .cta {
        padding: 3rem 1.25rem;
    }

    .cta-content {
        padding: 0 0.75rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
        padding: 0 0.25rem;
    }

    .cta-content p {
        font-size: 0.9375rem;
        padding: 0 0.25rem;
    }

    /* Contact Form */
    .contact-grid {
        gap: 2rem;
    }

    .contact-info {
        max-width: 550px;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-form-container {
        max-width: 550px;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group label {
        font-size: 0.875rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 0.75rem 0.875rem;
        font-size: 0.9375rem;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .footer-logo {
        height: 70px;
    }

    .footer h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-links li {
        padding: 0.375rem 0;
    }

    .footer-links a {
        font-size: 0.875rem;
    }

    .footer-social {
        gap: 0.75rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    /* Buttons - Smaller Padding */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .btn-white-large,
    .btn-outline-white-large {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    /* Back to Top */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
    }

    .back-to-top i {
        font-size: 1rem;
    }

    /* Footer - Extra Small Mobile */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-grid {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .footer-logo {
        height: 70px;
    }

    .footer-motto {
        font-size: 0.9375rem;
    }

    .footer-text {
        font-size: 0.8125rem;
    }

    .footer h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-contact-item {
        gap: 0.4rem;
        margin-bottom: 0.625rem;
    }

    .footer-contact-item span {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .footer-contact-item i {
        width: 14px;
        min-width: 14px;
        font-size: 0.8125rem;
    }

    .hours-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
        white-space: nowrap;
    }

    .footer-bottom p {
        font-size: 0.6875rem;
        padding: 0 0.5rem;
    }

    .social-link {
        width: 34px;
        height: 34px;
        font-size: 0.8125rem;
    }
}

/* ===================================
   LANDSCAPE MOBILE (Height < 500px)
   Optimize for landscape orientation
   =================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 3rem 0;
    }

    .nav-menu {
        height: auto;
        max-height: calc(100vh - 70px);
    }

    .mobile-menu-toggle {
        height: 20px;
    }
}

/* ===================================
   PRINT STYLES
   Optimize for printing
   =================================== */

@media print {
    /* Hide non-essential elements */
    .navbar,
    .nav-menu,
    .mobile-menu-toggle,
    .hero-cta,
    .back-to-top,
    .btn,
    .contact-form,
    .footer-social {
        display: none !important;
    }

    /* Adjust layout for print */
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }

    h1, h2, h3 {
        page-break-after: avoid;
        color: #000;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    /* Show URLs after links */
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }

    /* Remove backgrounds and shadows */
    * {
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
}

/* ===================================
   ACCESSIBILITY - REDUCED MOTION
   Respect user's motion preferences
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================
   HIGH CONTRAST MODE
   Improve visibility for users
   =================================== */

@media (prefers-contrast: high) {
    body {
        color: #000;
        background: #fff;
    }

    .btn {
        border-width: 3px;
    }

    a {
        text-decoration: underline;
    }

    .card,
    .service-card,
    .facility-card {
        border: 2px solid #000;
    }
}

/* ===================================
   OUR MEDICAL TEAM - RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .team-image {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .team-image {
        height: 240px;
    }

    .team-caption {
        font-size: var(--text-sm);
        padding: var(--space-md);
    }
}

/* ===================================
   DARK MODE (Optional Enhancement)
   For future dark mode implementation
   =================================== */

@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
    /* Currently not implementing as healthcare sites
       typically maintain light, clean appearance */
}

/* ===================================
   END OF RESPONSIVE.CSS
   =================================== */
