/* ===================================
   Responsive Styles & Media Queries
   =================================== */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.25rem;
        /* 36px */
        --font-size-4xl: 1.875rem;
        /* 30px */
        --font-size-3xl: 1.5rem;
        /* 24px */
        --spacing-3xl: 2.5rem;
        --spacing-4xl: 3rem;
    }

    .hero {
        padding: var(--spacing-2xl) 0;
    }

    .hero h1 {
        font-size: var(--font-size-3xl);
    }

    .hero p {
        font-size: var(--font-size-base);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    section {
        padding: var(--spacing-2xl) 0;
    }

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

    .medication-card {
        padding: var(--spacing-lg);
    }

    .card {
        padding: var(--spacing-lg);
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --font-size-4xl: 1.5rem;
        /* 24px */
        --font-size-3xl: 1.25rem;
        /* 20px */
        --spacing-2xl: 2rem;
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }

    .btn-large {
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: var(--font-size-base);
    }

    .disclaimer-banner {
        flex-direction: column;
        text-align: center;
    }

    .alert {
        flex-direction: column;
        text-align: center;
    }
}

/* Large Desktop (1440px and above) */
@media (min-width: 1440px) {
    :root {
        --font-size-5xl: 3.5rem;
        /* 56px */
        --font-size-4xl: 2.5rem;
        /* 40px */
    }
}

/* Print Styles */
@media print {

    .site-header,
    .mobile-menu-toggle,
    .site-footer,
    .btn,
    .hero-buttons {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
    }

    a {
        text-decoration: underline;
        color: black;
    }

    .hero {
        background: none;
        color: black;
        padding: 1rem 0;
    }

    .hero h1 {
        color: black;
    }
}

/* 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;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #0000ff;
        --color-text: #000000;
        --color-background: #ffffff;
    }

    .btn-primary {
        border: 2px solid black;
    }

    .card {
        border: 2px solid black;
    }
}