/* Layout Fix CSS - Ensures proper page structure */

/* Ensure body and html have proper structure */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Fix any potential z-index issues */
.page-loader {
    z-index: 9999;
}

header {
    z-index: 1000;
}

/* Ensure sections don't overlap */
section {
    position: relative;
    z-index: 1;
    clear: both;
}

/* Fix container issues */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ensure hero banner displays properly */
.hero-banner {
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    width: 100%;
}

/* Fix Nourish Vibes section */
.featured-client.nourish-vibes-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.client-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Ensure training section displays properly */
.training-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.training-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Fix newsletter section */
.newsletter {
    padding: 60px 0;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    text-align: center;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .client-showcase,
    .training-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-banner {
        min-height: 400px;
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Ensure footer is at bottom */
footer {
    margin-top: auto;
}

/* Fix any floating issues */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Ensure proper spacing between sections */
section + section {
    margin-top: 0;
}

/* Fix any potential overflow issues */
* {
    box-sizing: border-box;
}

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

/* Ensure buttons display properly */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}/* Additio
nal fixes for About and Products pages */

/* Fix hero sections */
.hero1, .hero2 {
    min-height: 400px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero1 .hero-content,
.hero2 .hero-content {
    position: relative;
    z-index: 2;
}

.hero1::before,
.hero2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Fix section spacing */
.history-section,
.mission-section,
.approach-section,
.team-section,
.about-cta {
    padding: 60px 0;
    position: relative;
}

.history-section {
    background: #ffffff;
}

.mission-section {
    background: #f8f9fa;
}

.approach-section {
    background: #ffffff;
}

.team-section {
    background: #f8f9fa;
}

.about-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

/* Fix product info section */
.product-info-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-intro {
    text-align: center;
    margin-bottom: 50px;
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Fix filters section */
.filters-section {
    padding: 30px 0;
    background: #f8f9fa;
}

.filters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Ensure proper text visibility */
.hero1 h2,
.hero2 h2,
.hero1 p,
.hero2 p {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Fix mobile responsiveness */
@media (max-width: 768px) {
    .hero1, .hero2 {
        min-height: 300px !important;
        padding: 60px 0;
    }
    
    .filters-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .category-filters {
        justify-content: center;
    }
    
    .product-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Fix any potential overflow issues */
.hero1, .hero2 {
    overflow: hidden;
}

/* Ensure sections don't have negative margins */
section {
    margin: 0;
}

/* Fix any floating issues */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}