/* ============================================
   HERO SECTION MOBILE FIX
   Fixes for 375px, 480px and small mobile viewports
   Created: 2026-02-07
   ============================================ */

/* Prevent horizontal scroll on all mobile devices */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Base mobile fix for tablets and large phones */
@media (max-width: 767px) {
    .hero-ocean {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .hero-content-ocean {
        padding: 20px 15px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-badge-ocean {
        font-size: 0.8rem;
        padding: 8px 16px;
        margin-bottom: 20px;
        gap: 8px;
    }
    
    .hero-title-ocean {
        font-size: 1.6rem !important;
        line-height: 1.25 !important;
        margin-bottom: 15px !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-title-ocean br {
        display: none;
    }
    
    .hero-title-ocean .highlight {
        display: inline !important;
        font-size: inherit !important;
        margin: 0 !important;
        line-height: inherit !important;
    }
    
    .hero-subtitle-ocean {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 25px;
        padding: 0 5px;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .btn-ocean-primary,
    .btn-ocean-secondary {
        width: 100%;
        max-width: 260px;
        justify-content: center;
        padding: 12px 24px;
        font-size: 0.9rem;
        box-sizing: border-box;
    }
    
    .hero-stats-ocean {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-stat-number {
        font-size: 1.5rem;
    }
    
    .hero-stat-label {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }
    
    .wave-divider {
        height: 60px;
    }
    
    .wave-divider svg {
        height: 60px;
    }
}

/* Medium phones (480px) */
@media (max-width: 480px) {
    .hero-ocean {
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 30px;
    }
    
    .hero-content-ocean {
        padding: 15px 12px;
    }
    
    .hero-badge-ocean {
        font-size: 0.75rem;
        padding: 7px 14px;
        margin-bottom: 18px;
        gap: 6px;
    }
    
    .hero-badge-ocean::before {
        width: 8px;
        height: 8px;
    }
    
    .hero-title-ocean {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }
    
    .hero-title-ocean .highlight {
        font-size: 1.5rem !important;
    }
    
    .hero-subtitle-ocean {
        font-size: 0.85rem;
        line-height: 1.55;
        margin-bottom: 20px;
        padding: 0;
    }
    
    .hero-cta-group {
        gap: 10px;
        margin-bottom: 25px;
        padding: 0 5px;
    }
    
    .btn-ocean-primary,
    .btn-ocean-secondary {
        max-width: 240px;
        padding: 11px 22px;
        font-size: 0.85rem;
        border-radius: 10px;
    }
    
    .btn-ocean-primary svg,
    .btn-ocean-secondary svg {
        width: 16px;
        height: 16px;
    }
    
    .hero-stats-ocean {
        gap: 15px;
    }
    
    .hero-stat {
        min-width: 70px;
    }
    
    .hero-stat-number {
        font-size: 1.3rem;
    }
    
    .hero-stat-label {
        font-size: 0.6rem;
    }
    
    .wave-divider {
        height: 50px;
    }
    
    .wave-divider svg {
        height: 50px;
    }
}

/* Small phones (375px and below) */
@media (max-width: 375px) {
    .hero-ocean {
        padding-top: 65px;
        padding-bottom: 25px;
    }
    
    .hero-content-ocean {
        padding: 12px 10px;
    }
    
    .hero-badge-ocean {
        font-size: 0.7rem;
        padding: 6px 12px;
        margin-bottom: 15px;
        gap: 5px;
    }
    
    .hero-badge-ocean::before {
        width: 6px;
        height: 6px;
    }
    
    .hero-title-ocean {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    
    .hero-title-ocean .highlight {
        font-size: 1.35rem !important;
    }
    
    .hero-subtitle-ocean {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 18px;
    }
    
    .hero-cta-group {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .btn-ocean-primary,
    .btn-ocean-secondary {
        max-width: 220px;
        padding: 10px 20px;
        font-size: 0.8rem;
        gap: 8px;
    }
    
    .btn-ocean-primary svg,
    .btn-ocean-secondary svg {
        width: 14px;
        height: 14px;
    }
    
    .hero-stats-ocean {
        gap: 12px;
        padding: 0 5px;
    }
    
    .hero-stat {
        min-width: 60px;
    }
    
    .hero-stat-number {
        font-size: 1.15rem;
    }
    
    .hero-stat-label {
        font-size: 0.55rem;
        letter-spacing: 0.3px;
    }
    
    .wave-divider {
        height: 40px;
    }
    
    .wave-divider svg {
        height: 40px;
    }
}

/* Extra small phones (320px) */
@media (max-width: 320px) {
    .hero-ocean {
        padding-top: 60px;
        padding-bottom: 20px;
    }
    
    .hero-content-ocean {
        padding: 10px 8px;
    }
    
    .hero-badge-ocean {
        font-size: 0.65rem;
        padding: 5px 10px;
        margin-bottom: 12px;
    }
    
    .hero-title-ocean {
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
    }
    
    .hero-title-ocean .highlight {
        font-size: 1.2rem !important;
    }
    
    .hero-subtitle-ocean {
        font-size: 0.75rem;
        margin-bottom: 15px;
    }
    
    .btn-ocean-primary,
    .btn-ocean-secondary {
        max-width: 200px;
        padding: 9px 18px;
        font-size: 0.75rem;
    }
    
    .hero-stat-number {
        font-size: 1rem;
    }
    
    .hero-stat-label {
        font-size: 0.5rem;
    }
}

/* Video background mobile optimization */
@media (max-width: 767px) {
    .hero-video-bg {
        position: absolute;
        width: 100%;
        height: 100%;
    }
    
    .hero-video-bg video {
        object-fit: cover;
        object-position: center center;
        min-width: 100%;
        min-height: 100%;
    }
    
    .hero-video-bg::after {
        background: linear-gradient(180deg,
            rgba(10, 38, 71, 0.3) 0%,
            rgba(10, 38, 71, 0.2) 50%,
            rgba(10, 38, 71, 0.5) 80%,
            rgba(10, 38, 71, 0.8) 100%);
    }
}

/* Landscape mode on mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-ocean {
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 20px;
    }
    
    .hero-stats-ocean {
        flex-direction: row;
        gap: 30px;
    }
    
    .hero-cta-group {
        flex-direction: row;
        gap: 15px;
    }
    
    .btn-ocean-primary,
    .btn-ocean-secondary {
        width: auto;
        max-width: none;
    }
}

/* Fix container overflow */
@media (max-width: 767px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    section {
        overflow-x: hidden;
    }
}
