/* ==========================================================================
   Maid in Heaven - Professional Cleaning Services
   Custom Responsive CSS Stylesheet
   ========================================================================== */

/* Color Palette Variable Declarations */
:root {
    --primary-color: #e65c8a;      /* Celestial/Vibrant Pink */
    --primary-light: #fbebf1;     /* Soft Pastel Pink Accent */
    --primary-dark: #b83b63;      /* Deep Rose for text/hover states */
    --secondary-color: #4a90e2;    /* Soft Cloud Blue Accent */
    --text-dark: #2c3e50;          /* Charcoal text for ultra readability */
    --text-light: #7f8c8d;         /* Slate muted text */
    --bg-light: #ffffff;           /* Clean stark white */
    --bg-soft: #faf8f9;            /* Angelic soft/warm off-white background */
    --success-color: #2ecc71;      /* Sparkle/Success Green */
    --font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease-in-out;
    --box-shadow: 0 10px 30px rgba(230, 92, 138, 0.1);
    --border-radius: 12px;
}

/* Base Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-soft);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-transform: none;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.section-padding { padding: 80px 0; }

.section-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '✨';
    font-size: 1.2rem;
    position: absolute;
    right: -30px;
    top: 5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 6px 20px rgba(230, 92, 138, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 92, 138, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

/* Navigation Bar */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.navbar {
    display: block; /* Table layout styling since flex/grid is omitted per style preferences */
    width: 100%;
    padding: 15px 0;
}

.nav-table {
    display: table;
    width: 100%;
}

.nav-cell {
    display: table-cell;
    vertical-align: middle;
}

/* --- Desktop & Base Settings --- */
.logo-cell {
    width: 40%; /* Gave more width to the logo container */
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    display: block;
    height: 70px;        /* Increased height for a clearer view */
    width: auto;
    object-fit: contain;
    margin-right: 12px;
}

/* --- Mobile Specific Fixes --- */
@media (max-width: 768px) {
    .logo-cell {
        width: 70%;      /* Allocates most of the top bar width to the logo on mobile */
    }
    
    .logo-img {
        height: 90px;    /* Makes the square logo much larger and bolder on mobile screens */
    }
    
    .logo-text {
        font-size: 1.3rem; /* Slightly adjusts the accompanying text size next to it */
    }
}
.logo-text {
    display: table-cell;
    vertical-align: middle;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.menu-cell {
    width: 70%;
    text-align: right;
}

.nav-menu {
    display: inline-block;
}

.nav-item {
    display: inline-block;
    margin-left: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* Mobile Menu Toggle Styling */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.hero-table {
    display: table;
    width: 100%;
}

.hero-cell {
    display: table-cell;
    vertical-align: middle;
    width: 50%;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 10px;
}

.hero-image-wrapper {
    text-align: center;
    position: relative;
}

.hero-main-img {
    max-width: 85%;
    margin: 0 auto;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.6);
    padding: 15px;
    box-shadow: 0 20px 40px rgba(230, 92, 138, 0.15);
}

/* Trust Badges Bar */
.trust-bar {
    background-color: var(--primary-dark);
    color: white;
    padding: 20px 0;
    text-align: center;
}

.trust-table {
    display: table;
    width: 100%;
}

.trust-item {
    display: table-cell;
    width: 25%;
    font-weight: 500;
    font-size: 1rem;
}

.trust-item i {
    margin-right: 8px;
    color: #fff;
}

/* Services Block Layout */
.services-row {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 20px 0;
}

.service-card {
    display: table-cell;
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    vertical-align: top;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Features/About Section */
.about-section {
    background-color: var(--bg-light);
}

.about-table {
    display: table;
    width: 100%;
}

.about-cell {
    display: table-cell;
    vertical-align: middle;
    width: 50%;
}

.about-content {
    padding-left: 50px;
}

.feature-list {
    margin-top: 30px;
}

.feature-item {
    margin-bottom: 20px;
    position: relative;
    padding-left: 35px;
}

.feature-item i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-item h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Gallery Section Grid alternative using table rows or blocks */
.gallery-row {
    display: block;
    text-align: center;
}

.gallery-item {
    display: inline-block;
    width: 31%;
    margin: 1%;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.gallery-item img {
    width: 100%;
    transition: var(--transition);
    object-fit: cover;
    height: 250px;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(184, 59, 99, 0.9));
    color: white;
    padding: 20px;
    text-align: left;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Testimonials */
.testimonials-row {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 20px 0;
}

.testimonial-card {
    display: table-cell;
    background: var(--bg-light);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    vertical-align: top;
    position: relative;
}

.testimonial-stars {
    color: #f1c40f;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-dark);
}

.testimonial-location {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Contact Section & Form Map layout */
.contact-table {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.contact-cell {
    display: table-cell;
    width: 50%;
    vertical-align: top;
    padding: 20px;
}

.contact-info-box {
    background-color: var(--primary-light);
    padding: 40px;
    border-radius: var(--border-radius);
    height: 100%;
}

.info-item {
    margin-bottom: 30px;
    position: relative;
    padding-left: 50px;
}

.info-item i {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 1.1rem;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.info-item p, .info-item a {
    color: var(--text-dark);
    font-size: 1rem;
}

.social-links {
    margin-top: 40px;
}

.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    background-color: var(--primary-dark);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    margin-right: 12px;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Contact Form */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #eaebed;
    background-color: #fff;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(230, 92, 138, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23b83b63' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

/* Area Badge / Coverage */
.area-tag {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 5px;
    border: 1px solid rgba(230, 92, 138, 0.2);
}

/* Footer Section */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px 0;
}

.footer-table {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-cell {
    display: table-cell;
    vertical-align: top;
    padding: 0 20px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.footer-desc {
    color: #bdc3c7;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.copyright-text {
    text-align: center;
    color: #95a5a6;
    font-size: 0.9rem;
    padding-top: 10px;
}

/* SEO Content Drawer */
.seo-footer-content {
    background-color: #243342;
    padding: 30px 0;
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.8;
}

.seo-footer-content h5 {
    color: #bdc3c7;
    margin-bottom: 10px;
    font-size: 1rem;
}

/* ==========================================================================
   Responsive Design Breakpoints
   ========================================================================== */

@media (max-width: 991px) {
    .hero-title { font-size: 2.6rem; }
    .services-row, .about-table, .testimonials-row, .contact-table, .footer-table {
        display: block;
        width: 100%;
    }
    .service-card, .about-cell, .testimonial-card, .contact-cell, .footer-cell {
        display: block;
        width: 100% !important;
        margin-bottom: 30px;
        padding-left: 0;
        padding-right: 0;
    }
    .about-content { padding-left: 0; margin-top: 30px; }
    .gallery-item { width: 48%; }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: inline-block;
    }
    .menu-cell {
        position: relative;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: white;
        width: 250px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-radius: var(--border-radius);
        padding: 20px;
        text-align: left;
    }
    .nav-menu.active {
        display: block;
    }
    .nav-item {
        display: block;
        margin: 15px 0;
    }
    .hero-table { display: block; }
    .hero-cell { display: block; width: 100%; text-align: center; }
    .hero-desc { margin: 0 auto 35px auto; }
    .hero-main-img { margin-top: 40px; }
    .trust-table { display: block; }
    .trust-item { display: block; width: 100%; margin-bottom: 10px; }
    .gallery-item { width: 100%; margin: 10px 0; }
}
