/* Dental Sali - Responsive Design Styles */

/* Large Desktop Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop Screens */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Laptop/Tablet Landscape */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .statistics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 2rem;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero {
        padding: 5rem 1rem 3rem;
        min-height: 80vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Sections */
    .section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    /* Team Grid */
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Statistics - 2 columns for 4 cards */
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .statistic-card {
        padding: 2rem 1.5rem;
    }

    .statistic-number {
        font-size: 2.5rem;
    }

    .statistic-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile Landscape */
@media (max-width: 640px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 4rem 1rem 2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section {
        padding: 2.5rem 1rem;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    /* Navigation */
    nav {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .lang-selector {
        gap: 0.25rem;
    }
    
    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 4rem 1rem 2rem;
        min-height: 90vh;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Sections */
    .section {
        padding: 2.5rem 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    /* About Features */
    .about-features li {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    /* Team Cards */
    .team-image {
        height: 250px;
    }
    
    .team-info {
        padding: 1.5rem 1rem;
    }
    
    .team-info h3 {
        font-size: 1.2rem;
    }
    
    .team-info .role {
        font-size: 0.9rem;
    }
    
    .team-info p {
        font-size: 0.9rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .author-avatar {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .contact-icon {
        margin: 0 auto 0.5rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    /* WhatsApp Button */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card,
    .team-card,
    .testimonial-card {
        margin: 0 0.5rem;
    }
    
    .contact-form,
    .about-text {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero::before,
    .service-icon,
    .team-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f9fafb;
        --text-light: #d1d5db;
        --bg-color: #111827;
        --bg-light: #1f2937;
        --border-color: #374151;
    }
}

/* Reduced Motion */
@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;
    }
    
    .hero h1,
    .hero p,
    .cta-buttons {
        opacity: 1;
        animation: none;
    }
}

/* Print Media */
@media print {
    * {
        color: black !important;
        background: white !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        padding: 2rem 0;
    }
    
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .service-card,
    .team-card,
    .testimonial-card {
        box-shadow: none !important;
        border: 1px solid #ccc;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .nav-links,
    .mobile-menu-toggle,
    .whatsapp-float,
    .contact-form,
    footer {
        display: none !important;
    }
    
    .contact-info {
        grid-column: 1 / -1;
    }
}

/* Custom Breakpoints for Specific Content */

/* Services Section Optimization */
@media (min-width: 900px) and (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .services-grid .service-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Team Section Optimization */
@media (min-width: 600px) and (max-width: 899px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-grid .team-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Footer Optimization */
@media (min-width: 600px) and (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Form Optimization */
@media (min-width: 480px) and (max-width: 768px) {
    .contact-form {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Hover States for Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .team-card:hover,
    .testimonial-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .nav-links a:hover::after {
        width: 0;
    }

    /* Reduce performance-heavy effects on touch/mobile devices */
    .contact-item,
    .contact-form,
    .form-group input,
    .form-group textarea,
    .form-group select,
    .pdf-modal-close {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Landscape Tablet Specific */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 5rem 2rem 3rem;
    }
    
    .about-content,
    .contact-content {
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
