/* Responsive Styles for Premium Pro Theme */

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
}

@media (max-width: 992px) {
    .about-content,
    .ceo-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .ceo-content {
        grid-template-columns: 250px 1fr;
    }
    
    .footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .md-credits-content {
        grid-template-columns: 1fr;
    }
    
    .md-achievements {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-top-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-contact-info {
        justify-content: center;
    }
    
    .header-social-links {
        justify-content: center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        display: none;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
    }
    
    /* Hero */
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Sections */
    .section {
        padding: 3rem 0;
    }
    
    .section-title h2 {
        font-size: calc(var(--section-title-font-size, 2rem) * 0.95);
    }
    
    /* Grids */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* CEO */
    .ceo-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .ceo-image {
        margin: 0 auto;
        max-width: 250px;
    }
    
    /* Footer */
    .footer-widgets-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-menu {
        justify-content: center;
    }
    
    /* MD Credits */
    .md-achievements {
        grid-template-columns: 1fr;
    }
    
    .md-image img {
        max-width: 200px;
    }
    
    /* Forms */
    .appointment-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title h2 {
        font-size: calc(var(--section-title-font-size, 2rem) * 0.85);
    }
    
    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .appointment-form-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .md-message-card,
    .md-info-card {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header-top-bar,
    .header-main,
    .site-footer,
    .back-to-top,
    .btn {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
    }
}

/* Improved mobile layout tweaks */
@media (max-width: 992px) {
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-buttons { gap: 0.75rem; }
    .ceo-message-section .ceo-image img { max-width: 220px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.1rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { width: 100%; }
    .ceo-message-section .ceo-image img { box-shadow: none !important; outline: none !important; }
    .ceo-meta { padding-top: 0.5rem; margin-top: 0.5rem; }
    .md-spotlight-section .md-thumb img, .manager-thumb img { max-width: 100%; height: auto; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.9rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .ceo-message-section .ceo-name, .md-name, .manager-name { font-size: 1.05rem; }
    .ceo-image, .md-thumb, .manager-thumb { margin: 0 auto; max-width: 220px; }
}

