/* ============================================
   RESPONSIVE - Mobile-First Media Queries
   ============================================ */

/* Base styles are mobile-first (320px+) */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero__title {
        font-size: var(--text-5xl);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    /* Typography adjustments */
    .section-header__title {
        font-size: var(--text-4xl);
    }

    /* Hero adjustments */
    .hero__title {
        font-size: var(--text-5xl);
    }

    .hero__description {
        font-size: var(--text-xl);
    }

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

    /* Contact form improvements */
    .contact__form-wrapper {
        padding: var(--space-10);
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    /* Container adjustments */
    .container {
        max-width: var(--container-xl);
    }

    /* Typography adjustments */
    .hero__title {
        font-size: var(--text-6xl);
    }

    .section-header__title {
        font-size: var(--text-5xl);
    }

    /* Navigation improvements */
    .nav__menu {
        flex-direction: row;
    }

    /* Two-column layouts */
    .endoscopy-info__content,
    .therapeutic__content,
    .about__content {
        grid-template-columns: 1fr 1fr;
    }

    /* Services grid */
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Benefits grid */
    .benefits__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra large devices (large desktops, 1280px and up) */
@media (min-width: 1280px) {
    .container {
        max-width: var(--container-2xl);
    }

    /* Increased spacing for larger screens */
    section {
        padding-top: var(--space-32);
        padding-bottom: var(--space-32);
    }
}

/* Print styles */
@media print {
    .header,
    .nav__toggle,
    .hero__cta,
    .contact__form,
    .footer {
        display: none;
    }

    body {
        color: var(--color-black);
        background-color: var(--color-white);
    }

    a {
        text-decoration: underline;
    }

    .section-header__title {
        page-break-after: avoid;
    }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #0052a3;
        --color-gray-600: #3a3a3a;
    }

    .btn--primary {
        border: 2px solid var(--color-white);
    }

    .btn--outline {
        border-width: 3px;
    }
}

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

    .hero::before {
        animation: none;
    }
}

/* Small mobile devices (320px to 480px) */
@media (max-width: 480px) {
    .hero__title {
        font-size: var(--text-3xl);
    }

    .section-header__title {
        font-size: var(--text-2xl);
    }

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

    .hero__cta {
        flex-direction: column;
    }

    .hero__cta .btn {
        width: 100%;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + var(--space-8));
        padding-bottom: var(--space-12);
    }

    .hero__title {
        font-size: var(--text-3xl);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch target sizes */
    .btn {
        min-height: 48px;
    }

    .nav__link {
        padding: var(--space-4) 0;
    }

    /* Remove hover effects on touch devices */
    .card:hover,
    .symptom-card:hover,
    .service-card:hover,
    .benefit-card:hover {
        transform: none;
    }
}

/* Dark mode support (optional - for future implementation) */
@media (prefers-color-scheme: dark) {
    /* Uncomment and customize when implementing dark mode */
    /*
    :root {
        --color-bg-primary: var(--color-gray-900);
        --color-bg-secondary: var(--color-gray-800);
        --color-text-primary: var(--color-gray-50);
        --color-text-secondary: var(--color-gray-300);
    }

    body {
        background-color: var(--color-bg-primary);
        color: var(--color-text-primary);
    }

    .header {
        background-color: rgba(17, 24, 39, 0.95);
    }
    */
}
