/* ==================== Responsive Media Queries ==================== */

/* Tablets (768px and above) */
@media (min-width: 768px) {
    .header .container {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .logo {
        flex: 0 0 auto;
    }

    .nav {
        flex: 1;
    }

    .nav-menu {
        flex-direction: row;
    }

    .menu-toggle {
        display: none;
    }
}

/* Small screens (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1, h2, h3, h4, h5, h6 {
        margin-bottom: 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-title::after {
        width: 60px;
    }

    .hero {
        padding: 60px 15px;
        min-height: auto;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    section {
        padding: 40px 0;
    }

    .appointment-form {
        padding: 1.5rem;
    }

    .contact-info {
        gap: 1.5rem;
    }
}

/* Large screens (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    section {
        padding: 100px 0;
    }

    .servo-grid {
        gap: 2.5rem;
    }

    .about-content {
        gap: 4rem;
    }
}

/* Very large screens (1440px and above) */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }

    h2 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 4rem;
    }
}

/* Print styles */
@media print {
    .header,
    .hero,
    .btn,
    .appointment-form,
    .footer {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
        padding: 2rem 0;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #E0E0E0;
        --light-bg: #1E1E1E;
        --white: #121212;
        --border-color: #404040;
    }

    body {
        background-color: #121212;
        color: #E0E0E0;
    }

    .appointment-form {
        background-color: #1E1E1E;
    }

    .contact-item {
        background-color: #1E1E1E;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    select,
    textarea {
        background-color: #1E1E1E;
        color: #E0E0E0;
        border-color: #404040;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 40px 20px;
    }

    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    section {
        padding: 40px 0;
    }
}
