:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --bg-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;

    /* Assuming a light body background for general content */
    --general-text-color: #333333; /* Default for light backgrounds */
    --general-bg-color: #ffffff;   /* Default for light backgrounds */
}

/* body { padding-top: var(--header-offset); } is handled in shared.css */
/* Therefore, .page-services and its first child should not re-apply it. */

.page-services {
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
    color: var(--general-text-color); /* Default text color for light sections */
    background-color: var(--general-bg-color); /* Default background for light sections */
}

/* --- Hero Section --- */
.page-services__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 10px; /* Small top padding for visual spacing, not header offset */
    padding-bottom: 60px;
    background-color: var(--bg-color); /* Use deep green for hero background */
    color: var(--text-main);
    text-align: center;
}

.page-services__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px; /* Space between image and content */
}

.page-services__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
}

.page-services__hero-content-wrapper {
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-services__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main); /* Light text for dark background */
}

.page-services__hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
    color: var(--text-secondary); /* Slightly lighter text */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-services__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
}

.page-services__btn-primary,
.page-services__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.page-services__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* White text on button gradient */
    border: none;
}

.page-services__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-services__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-services__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- General Section Styling --- */
.page-services__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-services__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color); /* Primary color for titles */
}

.page-services__text-block {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--general-text-color); /* Default text color */
}

.page-services__highlight {
    font-weight: bold;
    color: var(--primary-color);
}

/* --- Intro Section --- */
.page-services__intro-section {
    padding: 80px 0;
    background-color: var(--general-bg-color); /* Light background */
    color: var(--general-text-color);
}

.page-services__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- Services List Section --- */
.page-services__services-list {
    padding: 80px 0;
    background-color: var(--bg-color); /* Dark background */
    color: var(--text-main);
}

.page-services__services-list .page-services__section-title {
    color: var(--text-main); /* Light text for dark background */
}

.page-services__service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-services__card {
    background-color: var(--card-bg); /* Dark card background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main); /* Light text on dark card */
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.page-services__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.page-services__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-services__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color); /* Primary color for card titles */
}

.page-services__card-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take available space */
    color: var(--text-secondary); /* Secondary text color */
}

.page-services__card-link {
    display: inline-block;
    margin-top: auto; /* Push link to bottom */
    color: var(--gold-color); /* Gold color for links */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-services__card-link:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

/* --- SEO Section --- */
.page-services__seo-section {
    padding: 80px 0;
    background-color: var(--general-bg-color); /* Light background */
    color: var(--general-text-color);
}

.page-services__seo-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-services__seo-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-services__seo-text {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
}

/* --- Maintenance Section --- */
.page-services__maintenance-section {
    padding: 80px 0;
    background-color: var(--bg-color); /* Dark background */
    color: var(--text-main);
}

.page-services__maintenance-section .page-services__section-title {
    color: var(--text-main);
}

.page-services__maintenance-content {
    display: flex;
    flex-wrap: wrap-reverse; /* Image on right, text on left for desktop */
    align-items: center;
    gap: 40px;
}

.page-services__maintenance-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-services__maintenance-text {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    color: var(--text-secondary);
}

/* --- Benefits Section --- */
.page-services__benefits-section {
    padding: 80px 0;
    background-color: var(--general-bg-color); /* Light background */
    color: var(--general-text-color);
}

.page-services__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-services__benefit-item {
    background-color: #f9f9f9; /* Slightly off-white for light background */
    border-left: 5px solid var(--primary-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.page-services__benefit-item:hover {
    transform: translateY(-5px);
}

.page-services__benefit-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* --- Process Section --- */
.page-services__process-section {
    padding: 80px 0;
    background-color: var(--bg-color); /* Dark background */
    color: var(--text-main);
}

.page-services__process-section .page-services__section-title {
    color: var(--text-main);
}

.page-services__process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-services__step-card {
    background-color: var(--card-bg); /* Dark card background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    color: var(--text-secondary);
    position: relative;
    padding-top: 60px;
    height: 100%;
    box-sizing: border-box;
}

.page-services__step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary-color);
    color: var(--text-main);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    border: 3px solid var(--border-color);
    box-shadow: 0 0 0 5px var(--card-bg);
}

.page-services__step-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* --- FAQ Section --- */
.page-services__faq-section {
    padding: 80px 0;
    background-color: var(--general-bg-color); /* Light background */
    color: var(--general-text-color);
}

.page-services__faq-items {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-services__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-services__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    list-style: none; /* Remove default marker */
    position: relative;
}

.page-services__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit browsers */
}

.page-services__faq-qtext {
    flex-grow: 1;
}

.page-services__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 15px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-services__faq-item[open] .page-services__faq-toggle {
    transform: rotate(45deg);
}

.page-services__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--general-text-color);
    animation: fadein 0.3s ease-out;
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- CTA Bottom Section --- */
.page-services__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-color); /* Dark background */
    color: var(--text-main);
}

.page-services__cta-bottom-section .page-services__section-title {
    color: var(--text-main);
}

.page-services__cta-bottom-section .page-services__text-block {
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-services__hero-image {
        max-height: 400px;
    }
    .page-services__seo-content,
    .page-services__maintenance-content {
        flex-direction: column;
        text-align: center;
    }
    .page-services__seo-image,
    .page-services__seo-text,
    .page-services__maintenance-image,
    .page-services__maintenance-text {
        max-width: 100%;
    }
    .page-services__seo-image,
    .page-services__maintenance-image {
        order: -1; /* Image on top for mobile */
    }
    .page-services__maintenance-content {
        flex-direction: column; /* Ensure text is above image on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-services__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }
    .page-services__hero-image {
        max-height: 300px;
        margin-bottom: 20px;
    }
    .page-services__main-title {
        font-size: 2rem;
    }
    .page-services__hero-description {
        font-size: 1rem;
    }
    .page-services__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-services__btn-primary,
    .page-services__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-services__container {
        padding: 0 15px;
    }
    .page-services__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-services__text-block {
        font-size: 0.95rem;
    }
    .page-services__card-title {
        font-size: 1.3rem;
    }
    .page-services__card-image {
        height: 180px;
    }
    .page-services__service-cards,
    .page-services__benefits-list,
    .page-services__process-steps {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-services__content-image,
    .page-services__seo-image,
    .page-services__maintenance-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-services__intro-section,
    .page-services__services-list,
    .page-services__seo-section,
    .page-services__maintenance-section,
    .page-services__benefits-section,
    .page-services__process-section,
    .page-services__faq-section,
    .page-services__cta-bottom-section {
        padding: 60px 0;
    }
    .page-services__faq-item summary {
        font-size: 1.05rem;
        padding: 15px 20px;
    }
    .page-services__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-services__faq-items {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .page-services__main-title {
        font-size: 1.8rem;
    }
    .page-services__section-title {
        font-size: 1.6rem;
    }
    .page-services__hero-image {
        max-height: 250px;
    }
}