/* services.css */

/* Ensure full reset for html and body */
html, body {
    margin: 0 !important; /* Force no margin */
    padding: 0 !important; /* Force no padding */
    width: 100%; /* Ensure they take full width */
    height: 100%; /* Ensure they take full height for layout purposes */
    overflow-x: hidden; /* Prevent horizontal scroll if elements overflow */
}

/* Ensure the main content starts directly after the header */
.services-page-content {
    margin-top: 0; /* Remove any potential top margin */
    padding-top: 0; /* Remove any potential top padding */
    position: relative; /* Establish a new stacking context if needed */
    z-index: 1; /* Ensure it's above other elements if necessary */
}

/* Optional: If the issue persists, explicitly set header's display */
header {
    display: block; /* Ensure it behaves as a block element */
}



/* Main content area below the header */
main.services-page-content {
    /* Ensure no conflicting padding-top or margin-top */
    padding-top: 0 !important;
    margin-top: 0 !important;
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
}

/* Services Hero Section */
.services-hero-section {
    /* Ensure no conflicting margin-top from previous attempts */
    margin-top: 0 !important;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 60px 20px;
    text-align: center;
    color: white;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.services-hero-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.services-hero-section h1 {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

.services-hero-section p {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    color: #e0e6eb;
}

/* Contact Info Bar (floats partially over hero section) */
.contact-info-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    background-color: #ffffff;
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: -50px auto 40px auto; /* Negative margin pulls it up over the hero section */
    position: relative;
    z-index: 10;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    color: #555;
    font-weight: 500;
}

.info-item i {
    color: #3498db;
    font-size: 1.2em;
}

/* Service Categories Section */
.service-categories {
    max-width: 1000px;
    margin: 0 auto 50px auto;
    padding: 0 20px; /* Add horizontal padding for smaller screens */
}

.service-card-wrapper {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.service-category-header {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    color: white;
}

.service-category-header i {
    font-size: 2.5em;
    margin-right: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.service-category-header h2 {
    font-size: 1.8em;
    font-weight: bold;
    margin: 0;
}

/* Gradients for headers, matching screenshots */
.blue-gradient {
    background: linear-gradient(135deg, #1abc9c, #3498db);
}

.green-gradient {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.purple-gradient {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.orange-gradient {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}

.teal-gradient {
    background: linear-gradient(135deg, #008080, #40e0d0);
}

.service-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background-color: #e0e0e0;
    padding: 0px;
}

.detail-item {
    background-color: white;
    padding: 25px 30px;
}

.detail-item h3 {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.detail-item p {
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 70px !important; /* Forcefully set padding-top */
    }

    .services-hero-section {
        padding: 40px 15px;
    }
    .services-hero-section h1 {
        font-size: 2em;
    }

    .services-hero-section p {
        font-size: 0.95em;
    }

    .contact-info-bar {
        flex-direction: column;
        gap: 15px;
        margin: -30px auto 30px auto;
        padding: 20px;
    }

    .service-category-header {
        padding: 20px;
    }

    .service-category-header h2 {
        font-size: 1.5em;
    }

    .service-category-header i {
        font-size: 2em;
    }

    .detail-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px !important; /* Forcefully set padding-top */
    }

    .services-hero-section {
        padding: 30px 10px;
    }

    .services-hero-section h1 {
        font-size: 1.8em;
    }

    .services-hero-section p {
        font-size: 0.9em;
    }

    .contact-info-bar {
        gap: 10px;
        margin: -20px auto 20px auto;
        padding: 15px;
    }

    .info-item {
        font-size: 0.9em;
    }

    .service-category-header {
        flex-direction: column;
        text-align: center;
    }

    .service-category-header i {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .service-category-header h2 {
        font-size: 1.3em;
    }
}