/* 
   Super Cleaning - Main Stylesheet
   A sober, elegant design for a professional cleaning service
*/

/* ===== GLOBAL STYLES ===== */
:root {
    /* Color Palette - More sober and elegant */
    --primary-color: #2c5282;      /* Deep blue */
    --secondary-color: #4a6fa5;    /* Medium blue */
    --accent-color: #1a365d;       /* Dark blue */
    --light-color: #ebf4ff;        /* Very light blue */
    --white: #ffffff;
    --light-gray: #f7fafc;
    --medium-gray: #a0aec0;
    --dark-gray: #2d3748;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 10px;
}

p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

section {
    padding: var(--section-padding);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ===== HEADER STYLES ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    color: var(--dark-gray);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    top: 100%;
    left: 0;
    padding: 10px 0;
    margin-top: 10px;
}

.dropdown-content a {
    color: var(--dark-gray);
    padding: 10px 20px;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-content h2:after {
    background: var(--white);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--white);
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-content p {
    margin-bottom: 20px;
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-us {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--light-color);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 20px 10px;
}

.testimonial-content {
    position: relative;
}

.client-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
}

.client-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-icon {
    font-size: 2rem;
    color: var(--medium-gray);
    margin-bottom: 15px;
}

.client-info {
    margin-top: 20px;
    text-align: center;
}

.client-info h4 {
    margin-bottom: 5px;
}

.rating {
    color: #ffc107;
    margin-top: 10px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-form {
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-family: var(--body-font);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(44, 82, 130, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--medium-gray);
    margin-bottom: 15px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--medium-gray);
}

.footer-links ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--medium-gray);
}

/* ===== SERVICE DETAIL PAGE ===== */
.service-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/service-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.service-header h1 {
    font-size: 2.5rem;
    color: var(--white);
}

.service-detail {
    padding: 80px 0;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.service-description {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-description h2 {
    text-align: left;
}

.service-description h2:after {
    margin-left: 0;
}

.service-sidebar {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-sidebar h3 {
    margin-bottom: 20px;
}

.service-list {
    margin-bottom: 30px;
}

.service-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li a {
    display: block;
    transition: all 0.3s ease;
}

.service-list li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.service-cta {
    background-color: var(--primary-color);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    color: var(--white);
}

.service-cta h3 {
    color: var(--white);
}

.service-cta .btn {
    background-color: var(--white);
    color: var(--primary-color);
    margin-top: 15px;
}

.service-cta .btn:hover {
    background-color: var(--light-color);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .contact-content,
    .service-detail-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .mobile-menu.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        padding: 10px 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .service-card {
        margin: 0 15px;
    }
}
