/* Layout improvements for better organization in web view */

/* Global layout fixes */
body {
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header organization */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
}

header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 15px;
}

.logo {
    flex: 0 0 auto;
    max-width: 300px;
}

.logo h1 {
    font-size: 1.4rem;
}

nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

nav ul li a {
    padding: 8px 12px;
    white-space: nowrap;
}

.language-switch {
    margin-left: 15px;
}

/* For service sections */
.services-section {
    padding: 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 30px;
    color: white;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-desc {
    margin-bottom: 20px;
    color: var(--text-color);
    flex-grow: 1;
}

/* Fix for newsletter section */
.newsletter-form {
    display: flex;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
}

/* Responsive fixes */
@media (max-width: 992px) {
    nav ul {
        gap: 5px;
    }
    
    nav ul li a {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    header .container {
        justify-content: space-between;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 70px;
        transition: all 0.3s ease;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0 30px;
    }
    
    nav ul li {
        width: 100%;
        margin: 8px 0;
    }
    
    nav ul li a {
        display: block;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix for service sections */
.service-card {
    margin-bottom: 20px;
    height: auto;
}

/* Core layout structure improvements */
main {
    min-height: 70vh;
}

section {
    padding: 40px 0;
    position: relative;
}

.section-title {
    margin-bottom: 40px;
}

/* Fix for the footer */
footer {
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
} 