/* Mobile-specific fixes added after responsive.css */

/* Prevent accidental horizontal overflow on iPhone */
html,
body {
    overflow-x: hidden;
}

/* Compact, scrollable navigation on mobile instead of tall stacked links */
@media (max-width: 768px) {
    nav {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    nav a {
        display: inline-flex;
        flex: 0 0 auto;
        margin: 0;
        padding: 8px 14px;
        font-size: 15px;
        line-height: 1.1;
        border-radius: 999px;
    }

    .hero {
        padding: 56px 20px;
    }

    .hero h2 {
        font-size: 34px;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    header {
        padding: 24px 16px;
    }

    header h1 {
        font-size: 32px;
    }

    header p {
        font-size: 15px;
    }

    main {
        padding: 28px 14px 56px;
    }

    .hero {
        padding: 44px 16px;
        margin-bottom: 40px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }
}
