/* Responsive Fixes to prevent content overflow */

/* Global fixes */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* Fix for coordinators grid - force 4 columns on desktop */
.coordinators-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}

/* Hide duplicate logo and tagline in hero section */
.hero-section .altare-logo,
.hero-section .logo-tagline {
    display: none !important;
}

/* Container fixes for all sections */
.container, 
.altare-container,
.why-altare-container,
.founder-container,
.rebel-app-content,
.contact-container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero section fixes */
.hero-content {
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    overflow-x: hidden;
}

.hero-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* App mockup section additional fixes */
.app-mockup-feature {
    max-width: 100%;
    box-sizing: border-box;
}

.feature-content {
    max-width: calc(100% - 70px);
    word-wrap: break-word;
}

/* Large screens */
@media (min-width: 992px) {
    .container,
    .altare-container,
    .why-altare-container,
    .founder-container {
        max-width: 960px;
    }
}

/* Medium screens */
@media (max-width: 991px) {
    .container,
    .altare-container,
    .why-altare-container,
    .founder-container {
        max-width: 720px;
    }
    
    /* Featured section adjustments */
    .featured-title {
        font-size: 48px !important;
    }
    
    /* Pricing cards adjustments */
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 400px;
        margin-bottom: 30px;
    }
    
    /* Founder section adjustments */
    .founder-content {
        flex-direction: column;
    }
    
    .founder-image {
        margin-right: 0;
        margin-bottom: 20px;
        width: 100%;
        max-width: 300px;
    }
    
    /* Coordinators grid adjustments */
    .coordinators-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Tablets and small laptops */
@media (max-width: 768px) {
    .container,
    .altare-container,
    .why-altare-container,
    .founder-container {
        max-width: 540px;
    }
    
    /* Header and navigation */
    .bold-header .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hero section */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* App section */
    .app-mockup-text {
        padding-right: 0;
    }
    
    .app-mockup-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .feature-content {
        max-width: 100%;
    }
    
    /* Two column layouts become one column */
    .rebel-app-content .flex-container {
        flex-direction: column;
    }
    
    .rebel-app-content .flex-container > div {
        width: 100% !important;
        margin-bottom: 30px;
    }
    
    /* Coordinators grid */
    .coordinators-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    }
    
    /* Featured section */
    .featured-title {
        font-size: 36px !important;
    }
    
    /* Quote section */
    .quote-intro {
        font-size: 3rem !important;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links,
    .footer-social {
        margin-top: 20px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    /* Hero section */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    /* Navigation */
    .horizontal-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .horizontal-nav li {
        margin: 5px;
    }
    
    /* Featured section */
    .featured-title {
        font-size: 28px !important;
    }
    
    /* Why Altare section */
    .why-altare-header h2 {
        font-size: 2rem;
    }
    
    /* Rebel app section */
    .rebel-app-title {
        font-size: 2rem !important;
    }
    
    .rebel-app-title img {
        height: 50px !important;
    }
    
    /* Quote section */
    .quote-intro {
        font-size: 2rem !important;
    }
    
    /* Contact section */
    .contact-title {
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer-links ul {
        flex-direction: column;
    }
    
    .footer-links li {
        margin: 5px 0;
    }
}
