/* Mobile Optimizations for Main Site */

/* Navigation improvements */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: rgba(19, 17, 26, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-secondary {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-secondary a {
        font-size: 0.9rem;
        opacity: 0.8;
        padding: 10px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Hero section mobile optimization */
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 80px 0 40px;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .hero-image {
        max-width: 80%;
    }
    
    /* Features and highlights grid */
    .features-grid,
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card,
    .highlight-card {
        padding: 20px;
        text-align: center;
    }
    
    .feature-icon,
    .highlight-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    /* Lead magnet section */
    .lead-magnet-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .lead-magnet-content,
    .form-container {
        max-width: 100%;
    }
    
    .form-control {
        padding: 15px;
        font-size: 1rem;
    }
    
    .form-submit {
        padding: 15px 30px;
        font-size: 1rem;
        width: 100%;
    }
    
    /* Footer optimization */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-col {
        max-width: 100%;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .footer-links li {
        margin: 5px;
    }
    
    .footer-links a {
        padding: 8px 12px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }
    
    .footer-links a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card h3,
    .highlight-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p,
    .highlight-card p {
        font-size: 0.9rem;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 12px 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo img {
        max-height: 40px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .form-submit,
    .nav-links a,
    .footer-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .menu-toggle {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve tap targets */
    .social-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Landscape phone optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-container {
        flex-direction: row;
        align-items: center;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-image {
        max-width: 40%;
    }
}

/* Accessibility improvements for mobile */
@media (prefers-reduced-motion: reduce) {
    .nav-links {
        transition: none;
    }
    
    .btn,
    .feature-card,
    .highlight-card {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-links {
        background-color: #000;
        border: 2px solid #fff;
    }
    
    .feature-card,
    .highlight-card {
        border: 2px solid var(--text-color);
    }
}