/* ===== RESPONSIVE CSS FOR DR. ANURADHA'S CLINIC ===== */

/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-heavy);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        padding: 1rem 0;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link {
        padding: 1rem;
        display: block;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--background-color);
        margin-top: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* ===== TABLET STYLES (768px - 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .approach-cards {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab-buttons {
        gap: 1rem;
    }
    
    .tab-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===== MOBILE STYLES (max-width: 768px) ===== */
@media (max-width: 768px) {
    /* Navigation adjustments */
    .nav-container {
        padding: 0 15px;
    }
    
    .clinic-name {
        font-size: 1.2rem;
    }
    
    .nav-logo .logo {
        height: 40px;
    }
    
    .whatsapp-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Hero section adjustments */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-card {
        padding: 1.5rem;
    }
    
    .doctor-image {
        width: 150px;
        height: 150px;
    }
    
    .card-content h3 {
        font-size: 1.3rem;
    }
    
    /* Section spacing */
    .about,
    .services,
    .testimonials,
    .contact {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* About section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-intro h3 {
        font-size: 1.5rem;
    }
    
    .approach-card {
        padding: 1.2rem;
    }
    
    .approach-card h4 {
        font-size: 1.1rem;
    }
    
    .doctor-profile {
        padding: 1.5rem;
    }
    
    .doctor-credentials h3 {
        font-size: 1.5rem;
    }
    
    .credentials {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .degree {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Services section */
    .tab-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .tab-btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card h4 {
        font-size: 1.2rem;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    
    /* Testimonials */
    .testimonials-slider .testimonial-card {
        width: calc((100% - 2rem) / 2);
        min-width: calc((100% - 2rem) / 2);
        max-width: calc((100% - 2rem) / 2);
        padding: 1.5rem;
        margin-right: 2rem;
    }
    
    .testimonials-slider .testimonial-card:last-child {
        margin-right: 0;
    }
    
    .testimonial-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .testimonials-nav {
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    
    /* Contact section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .clinic-details h3 {
        font-size: 1.5rem;
    }
    
    .detail-item {
        margin-bottom: 1.2rem;
    }
    
    .quick-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .action-btn {
        justify-content: center;
        padding: 10px 16px;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-form h3 {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ===== SMALL MOBILE STYLES (max-width: 480px) ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .clinic-name {
        font-size: 1rem;
    }
    
    .nav-logo .logo {
        height: 35px;
    }
    
    .whatsapp-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* Hero section */
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-stats {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .hero-card {
        padding: 1rem;
    }
    
    .doctor-image {
        width: 120px;
        height: 120px;
    }
    
    .card-content h3 {
        font-size: 1.1rem;
    }
    
    .card-content p {
        font-size: 0.85rem;
    }
    
    /* Sections */
    .about,
    .services,
    .testimonials,
    .contact {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    /* About section */
    .about-intro h3 {
        font-size: 1.3rem;
    }
    
    .about-intro p {
        font-size: 1rem;
    }
    
    .approach-card {
        padding: 1rem;
    }
    
    .card-icon {
        font-size: 1.5rem;
    }
    
    .approach-card h4 {
        font-size: 1rem;
    }
    
    .approach-card p {
        font-size: 0.9rem;
    }
    
    .doctor-profile {
        padding: 1.2rem;
    }
    
    .doctor-credentials h3 {
        font-size: 1.3rem;
    }
    
    .specializations {
        font-size: 1rem;
    }
    
    /* Services */
    .tab-btn {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
    
    .service-card {
        padding: 1.2rem;
    }
    
    .service-icon {
        font-size: 1.8rem;
    }
    
    .service-card h4 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .service-features li {
        font-size: 0.85rem;
    }
    
    /* Testimonials */
    .testimonials-slider .testimonial-card {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 1.2rem;
        margin-right: 1rem;
    }
    
    .testimonials-slider .testimonial-card:last-child {
        margin-right: 0;
    }
    
    
    /* Testimonials */
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .testimonials-nav {
        gap: 0.6rem;
        margin-bottom: 1.2rem;
    }
    
    
    /* Contact */
    .clinic-details h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .detail-item {
        margin-bottom: 1rem;
    }
    
    .detail-item i {
        font-size: 1.2rem;
    }
    
    .contact-form-container {
        padding: 1.2rem;
    }
    
    .contact-form h3 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Floating WhatsApp */
    .floating-whatsapp {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-whatsapp a {
        width: 50px;
        height: 50px;
    }
    
    .floating-whatsapp i {
        font-size: 1.2rem;
    }
    
    /* Footer */
    .footer-logo img {
        height: 40px;
    }
    
    .footer-logo h3 {
        font-size: 1.2rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    
    .contact-item {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* ===== EXTRA SMALL DEVICES (max-width: 320px) ===== */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .testimonials-slider .testimonial-card {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        margin-right: 1rem;
    }
    
    .testimonials-slider .testimonial-card:last-child {
        margin-right: 0;
    }
    
    .hero-buttons {
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .approach-card,
    .service-card,
    .testimonial-card {
        padding: 0.8rem;
    }
    
    .quick-actions .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== LANDSCAPE ORIENTATION FOR MOBILE ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        justify-content: flex-start;
    }
    
    .hero-buttons {
        justify-content: flex-start;
        flex-direction: row;
    }
    
    .about,
    .services,
    .testimonials,
    .contact {
        padding: 40px 0;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .floating-whatsapp,
    .whatsapp-btn,
    .action-btn,
    .btn {
        display: none !important;
    }
    
    .hero {
        padding: 2rem 0;
        background: white !important;
    }
    
    .section-title {
        color: black !important;
    }
    
    .hero-title .title-accent {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .service-card,
    .testimonial-card,
    .approach-card {
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
}

/* ===== HIGH DPI / RETINA DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-logo .logo,
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===== DARK MODE PREFERENCE ===== */
@media (prefers-color-scheme: dark) {
    /* This can be implemented if needed in the future */
    /* Currently keeping the light theme as per brand requirements */
}

/* ===== REDUCED MOTION PREFERENCE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-whatsapp a {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== HOVER SUPPORT CHECK ===== */
@media (hover: none) {
    .service-card:hover,
    .testimonial-card:hover,
    .approach-card:hover,
    .hero-card:hover,
    .btn:hover,
    .nav-link:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
@media (max-width: 768px) {
    .nav-link:focus,
    .btn:focus,
    .whatsapp-btn:focus,
    .action-btn:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 1px;
    }
}