/* ========================
   Responsive Design
   ======================== */

/* Large Devices (1200px and above) */
@media (min-width: 1200px) {
    .header-content {
        flex-wrap: nowrap;
    }

    .menu-list {
        gap: 2px;
    }
}

/* Medium Devices (768px to 1199px) */
@media (max-width: 1199px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.3em;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-box {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-logo {
        text-align: center;
    }

    .menu-list {
        gap: 3px;
    }

    .menu-list li a {
        padding: 6px 12px;
        font-size: 0.9em;
    }
}

/* Small Devices (480px to 767px) */
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.3em;
    }

    h3 {
        font-size: 1.1em;
    }

    h4 {
        font-size: 1em;
    }

    /* Header & Navigation */
    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .site-logo img {
        height: 50px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .menu-text {
        font-size: 0.9em;
    }

    .primary-navigation {
        order: 4;
        width: 100%;
        margin-top: 10px;
    }

    .menu-list {
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        gap: 0;
        transition: max-height 0.3s ease;
    }

    .menu-list.active {
        max-height: 500px;
    }

    .menu-list li {
        width: 100%;
    }

    .menu-list li a {
        display: block;
        padding: 12px 15px;
        border-bottom: 1px solid #ddd;
        font-size: 0.95em;
    }

    .menu-list li a:hover {
        background-color: #f0f0f0;
    }

    /* Sections */
    .hero-section,
    .service-intro,
    .free-service-section,
    .sponsors-section,
    .support-approach-section,
    .concerns-section,
    .target-companies-section,
    .notes-section,
    .cta-section {
        padding: 40px 15px;
    }

    .concerns-header,
    .target-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .concern-icon,
    .target-icon {
        width: 60px;
        height: 60px;
    }

    .concerns-grid,
    .target-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .free-service-box {
        padding: 25px 15px;
    }

    .free-service-box h2 {
        font-size: 1.1em;
    }

    .free-service-box p {
        font-size: 0.95em;
    }

    /* Company Information */
    .company-info-section {
        padding: 40px 15px;
    }

    .company-info-section h2 {
        font-size: 1.3em;
    }

    .company-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .company-card {
        padding: 20px;
    }

    .company-item {
        flex-direction: column;
        gap: 5px;
    }

    .company-item .label {
        width: auto;
    }

    /* CTA Section */
    .cta-box {
        grid-template-columns: 1fr;
        padding: 25px 15px;
    }

    .cta-logo {
        text-align: center;
    }

    .cta-logo img {
        width: 100px;
    }

    .cta-text h3 {
        font-size: 1.1em;
    }

    .intro-content {
        font-size: 0.95em;
    }

    .intro-summary {
        white-space: normal;
    }

    /* Footer */
    .footer-logo img {
        height: 50px;
    }

    .footer-info {
        font-size: 0.85em;
    }

    /* Note boxes */
    .note-box {
        padding: 15px;
        font-size: 0.9em;
        margin-bottom: 15px;
    }
}

/* Extra Small Devices (below 480px) */
@media (max-width: 479px) {
    body {
        font-size: 13px;
    }

    h1 {
        font-size: 1.3em;
    }

    h2 {
        font-size: 1.1em;
    }

    h3 {
        font-size: 1em;
    }

    h4 {
        font-size: 0.95em;
    }

    p {
        margin-bottom: 0.8em;
    }

    .site-logo img {
        height: 45px;
    }

    .menu-list li a {
        padding: 10px 12px;
        font-size: 0.9em;
    }

    .hero-section,
    .service-intro,
    .free-service-section,
    .sponsors-section,
    .support-approach-section,
    .concerns-section,
    .target-companies-section,
    .notes-section,
    .cta-section {
        padding: 30px 10px;
    }

    .container {
        padding: 0 10px;
    }

    .cta-box {
        padding: 20px 10px;
    }

    .concern-card,
    .target-card {
        padding: 20px 15px;
    }

    .free-service-box {
        padding: 20px 15px;
    }

    .menu-toggle {
        padding: 8px;
    }

    /* Company Information */
    .company-info-section {
        padding: 30px 10px;
    }

    .company-card {
        padding: 15px;
    }
}

/* ========================
   Touch-Friendly Adjustments
   ======================== */

@media (hover: none) and (pointer: coarse) {
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ========================
   High-Resolution Displays
   ======================== */

@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    /* Optimizations for high-DPI displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ========================
   Print Styles
   ======================== */

@media print {
    .site-header,
    .site-footer,
    .menu-toggle,
    .cta-button,
    .skip-link {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }

    .container {
        max-width: 100%;
    }
}

/* ========================
   Landscape Orientation
   ======================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    h2 {
        font-size: 1.2em;
    }
}

/* ========================
   Dark Mode Support (Optional)
   ======================== */

@media (prefers-color-scheme: dark) {
    /* If you want to support dark mode, add styles here */
    /* This is optional and can be removed if not needed */
}

/* ========================
   Reduced Motion Preferences
   ======================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
