/* Essential layout fixes for Flamingo Cleaning website */

/* Container style to ensure proper width constraints */
.container {
    width: 90% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* Ensure header is fixed and properly contained */
.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    z-index: 1000 !important;
    padding: 15px 0 !important;
}

/* Ensure proper flex layout for header content */
.header-content {
    display: flex !important;
    justify-content: flex-between !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
}

/* Logo and title styling */
.logo {
    display: flex !important;
    align-items: center !important;
    margin-right: 15px !important;
}

.logo a {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.logo-circle {
    width: 50px !important;
    height: 50px !important;
    background-color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

.logo-icon {
    width: 35px !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Site title styling */
.site-title {
    margin-right: auto !important;
}

.site-title h1 {
    margin: 0 !important;
    font-size: 1.8rem !important;
    color: #b44354 !important;
    font-weight: 700 !important;
    font-family: 'Playfair Display', serif !important;
}

/* Navigation styling */
.nav {
    display: flex !important;
    justify-content: flex-end !important;
}

.nav ul {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 30px !important;
}

.nav ul li {
    margin: 0 !important;
}

.nav ul li a {
    color: #333333 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    padding-bottom: 5px !important;
}

.nav ul li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background-color: #b44354 !important;
    transition: width 0.3s ease !important;
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
    width: 100% !important;
}

.nav ul li a:hover {
    color: #b44354 !important;
}

.btn-book {
    background-color: #b44354 !important;
    color: #ffffff !important;
    padding: 10px 25px !important;
    border-radius: 30px !important;
    transition: all 0.3s ease !important;
}

.btn-book:hover {
    background-color: #f4a1ad !important;
    color: #333333 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(244, 161, 173, 0.4) !important;
}

/* Main content padding to account for fixed header */
main {
    padding-top: 100px !important;
}

/* Section styling to ensure proper alignment */
section {
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Hero section specific fixes */
.hero {
    position: relative !important;
    padding: 80px 0 !important;
}

.hero-content {
    max-width: 600px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Services grid fix */
.service-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
}

/* Testimonials section fix */
.testimonial-slider {
    margin: 0 auto !important;
    max-width: 800px !important;
}

/* Footer fix */
.footer {
    width: 100% !important;
}

/* General reset for possible problematic elements */
img, svg {
    max-width: 100% !important;
    height: auto !important;
}

/* Menu toggle - hidden on desktop */
.menu-toggle {
    display: none !important;
    cursor: pointer !important;
    width: 30px !important;
    height: 25px !important;
    position: relative !important;
    z-index: 1001 !important;
}

.menu-toggle span {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    background-color: #b44354 !important;
    margin: 5px 0 !important;
    transition: all 0.3s ease !important;
    border-radius: 2px !important;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px) !important;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px) !important;
}

/* Media queries for responsiveness */
@media screen and (max-width: 992px) {
    .nav ul {
        gap: 20px !important;
    }
    
    .site-title h1 {
        font-size: 1.6rem !important;
    }
}

@media screen and (max-width: 768px) {
    .container {
        width: 95% !important;
        padding: 0 10px !important;
    }
    
    .hero-content {
        max-width: 100% !important;
    }
    
    /* Mobile header adjustments */
    .header {
        padding: 12px 0 !important;
    }
    
    .header-content {
        position: relative !important;
    }
    
    .site-title h1 {
        font-size: 1.5rem !important;
    }
    
    /* Show menu toggle on mobile */
    .menu-toggle {
        display: block !important;
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 1002 !important;
    }
    
    /* Mobile nav adjustments */
    .nav {
        position: fixed !important;
        top: 80px !important;
        right: -100% !important;
        width: 80% !important;
        height: calc(100vh - 80px) !important;
        background-color: #ffffff !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
        z-index: 1000 !important;
        padding: 20px 0 !important;
        overflow-y: auto !important;
    }
    
    .nav.active {
        right: 0 !important;
    }
    
    .nav ul {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        padding: 0 30px !important;
        gap: 0 !important;
    }
    
    .nav ul li {
        margin: 15px 0 !important;
        width: 100% !important;
    }
    
    .nav ul li a {
        display: block !important;
        width: 100% !important;
    }
    
    .btn-book {
        display: inline-block !important;
        margin-top: 10px !important;
    }
}

@media screen and (max-width: 576px) {
    .container {
        width: 100% !important;
        padding: 0 15px !important;
    }
    
    .logo {
        margin-right: 10px !important;
    }
    
    .logo-circle {
        width: 40px !important;
        height: 40px !important;
    }
    
    .logo-icon {
        width: 28px !important;
    }
    
    .site-title h1 {
        font-size: 1.3rem !important;
    }
    
    .nav {
        width: 100% !important;
        right: -100% !important;
    }
} 