/* Idaho AI Strategies - Responsive Styles */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    /* Navigation */
    .nav-menu {
        gap: 1.5rem;
    }
    
    /* Hero section */
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    /* About section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        order: -1;
    }
    
    /* Challenges section */
    .challenges-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Contact section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Base adjustments */
    .section {
        padding: var(--section-padding-mobile);
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    /* Navigation */
    .nav {
        padding: 0.75rem 16px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        transform: translateY(-100vh);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        z-index: 9999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        font-size: 1.125rem;
        padding: 1rem 0;
        display: block;
        color: var(--white) !important;
        text-decoration: none;
        width: 100%;
        border: none;
        background: none;
        text-align: left;
        transition: color 0.2s ease;
    }
    
    .nav-link:hover,
    .nav-link:focus,
    .nav-link:active {
        color: var(--accent-orange) !important;
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav-cta {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 10000;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Body overlay when menu is open - simplified for iOS */
    body.nav-open {
        overflow: hidden;
    }
    
    body.nav-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        pointer-events: none;
    }
    
    /* Hero section */
    .hero {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-cta {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 16px 28px;
        font-size: 1.125rem;
        width: 100%;
        max-width: none;
    }
    
    /* Stats and grids */
    .opportunity-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .opportunity-benefits {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    /* Challenges section */
    .challenge-stat {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .challenge-number {
        font-size: 2rem;
    }
    
    .challenge-text {
        font-size: 1rem;
    }
    
    /* Services section */
    .services-tiers {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tier-card {
        padding: 1.5rem;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .app-item {
        padding: 1.5rem;
    }
    
    /* Process section */
    .step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .step:hover {
        transform: translateY(-5px);
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 0 auto;
    }
    
    /* Why us section */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .advantage-card {
        padding: 1.5rem;
    }
    
    /* Security section */
    .security-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .security-item {
        padding: 1.5rem;
    }
    
    /* FAQ section */
    .faq-question {
        padding: 1rem 0;
    }
    
    .faq-question h3 {
        font-size: 1.125rem;
        padding-right: 2rem;
    }
    
    /* Resources section */
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .resource-card {
        padding: 1.5rem;
    }
    
    /* Contact section */
    .contact-form {
        gap: 1rem;
    }
    
    .contact-info {
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    /* Container adjustments */
    .container {
        padding: 0 12px;
    }
    
    /* Typography */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    /* Navigation */
    .nav {
        padding: 0.75rem 12px;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    /* Stats */
    .opportunity-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Cards and items */
    .benefit-card,
    .advantage-card,
    .security-item,
    .resource-card,
    .app-item,
    .tier-card {
        padding: 1rem;
    }
    
    /* Process steps */
    .step {
        padding: 1rem;
    }
    
    /* Challenge stats */
    .challenge-stat {
        padding: 1rem;
    }
    
    /* Form elements */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        margin-bottom: 1.5rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background {
        background-image: url('../images/boise-skyline.jpg');
    }
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .header {
        background-color: var(--primary-color);
    }
    
    .nav-menu {
        background-color: var(--primary-color);
    }
    
    .nav-link {
        color: var(--white);
    }
}

/* Print styles */
@media print {
    .header,
    .nav-toggle,
    .hero-cta,
    .contact-form,
    .footer-social {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 1rem 0;
        break-inside: avoid;
    }
    
    .section-dark {
        background-color: transparent;
        color: var(--text-primary);
    }
    
    a {
        color: var(--text-primary);
        text-decoration: underline;
    }
}

