/* Cache bust: $(date +) */
/* Minimal Styles for Services Page (page-services.php) */
/* Relying on global theme styles for base layout, typography, buttons etc. */

/* Ensure body has proper spacing for fixed header */
body.page-template-page-services-editable,
body.page-template-page-services {
    padding-top: 70px !important;
}

/* Ensure all content is visible */
.services-page-content,
.services-page-content #primary,
.services-page-content .site-main {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* --- Hero Section with Overlay --- */
.services-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark overlay for better text readability */
.services-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay at 60% opacity */
    z-index: 1;
}

/* Ensure content appears above overlay */
.services-hero .hero-content-wrapper {
    position: relative;
    z-index: 2;
}

/* --- Layout Specifics --- */

.services-container {
    display: grid;
    gap: 30px;
    margin-bottom: 100px;
}

/* Legacy service card styles - kept for compatibility */
.service-image-container {
    width: 40%;
    min-height: 300px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.service-content {
    width: 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.service-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.service-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.feature-icon {
    color: var(--accent-color, #7EC7A8);
    margin-right: 10px;
    flex-shrink: 0;
    font-weight: bold;
}

.service-odd {
    flex-direction: row-reverse;
}

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

.why-choose-item {
    background-color: var(--light-color, #FFFFFF);
    padding: 30px;
    border-radius: var(--border-radius, 8px);
    text-align: center;
    box-shadow: var(--box-shadow, 0 4px 15px rgba(0,0,0,0.08));
    border: 1px solid #eee;
}

.why-choose-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(55, 114, 110, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color, #37726E);
    font-size: 1.8rem;
}
/* Explicit Font Awesome styles */
.why-choose-icon i.fas {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif; /* Fallback */
    font-weight: 900; /* Weight for solid icons */
    line-height: 1;
}

/* --- FAQ Accordion Minimal Styles --- */
.accordion {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius, 8px);
    overflow: hidden; /* Keep overflow hidden */
    background-color: var(--light-color, #FFFFFF);
    box-shadow: var(--box-shadow, 0 4px 15px rgba(0,0,0,0.08));
    border: 1px solid #eee;
}

.accordion-item.active .accordion-header {
    background-color: rgba(55, 114, 110, 0.1);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-header {
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color, #37726E);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: rgba(55, 114, 110, 0.05);
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 1.2em;
    font-weight: bold;
}

.accordion-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    /* Ensure transition applies to max-height */
    transition: max-height 0.4s ease-out, padding-top 0.4s ease-out, padding-bottom 0.4s ease-out;
    color: var(--dark-color, #555);
    background-color: #fdfdfd;
    border-top: 1px solid #eee;
}
/* Explicitly set padding when open (JS will set max-height) */
.accordion-item.active .accordion-content {
    padding-top: 20px;
    padding-bottom: 20px;
}


/* --- Services Content Section --- */
.services-content {
    padding: 60px 0;
    background-color: #fff;
}

.services-content .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.faq-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color, #37726E);
    margin-bottom: 1rem;
}

.faq-section .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color, #37726E) 0%, var(--primary-dark-color, #2a5f5c) 100%);
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-white {
    background-color: white;
    color: var(--primary-color, #37726E);
    border: 2px solid white;
}

.btn-white:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .service-card,
    .service-odd {
        flex-direction: column;
    }
    .service-image-container {
        width: 100%;
        min-height: 250px;
        height: 250px;
    }
    .service-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta-buttons .btn {
        width: 80%;
        max-width: 300px;
    }
}

/* Additional Modern Grid Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.services-intro {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.services-intro .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color, #37726E);
    margin-bottom: 1rem;
    font-weight: 700;
}

.services-intro .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Service Card Grid Enhancements */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color, #7EC7A8);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color, #37726E);
    margin-bottom: 15px;
    text-align: center;
}

.service-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
    flex-grow: 1;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
}

.service-features .checkmark {
    color: var(--accent-color, #7EC7A8);
    margin-right: 10px;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* Hero Section Modern Styles */
.services-hero {
    min-height: 500px;
    margin-bottom: 0;
}

.services-hero .hero-content {
    text-align: center;
    color: white;
    padding: 60px 20px;
}

.services-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.services-hero .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Why Choose Section Updates */
.why-choose-section {
    padding: 80px 0;
}

.why-choose-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color, #37726E);
    margin-bottom: 1rem;
    font-weight: 700;
}

.why-choose-section .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.why-choose-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.why-choose-item {
    padding: 40px 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.why-choose-icon {
    font-size: 3rem;
}

.why-choose-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color, #37726E);
    margin-bottom: 15px;
}

.why-choose-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* FAQ Section Enhancements */
.faq-section {
    padding: 80px 0;
}

.faq-section .section-title {
    font-weight: 700;
}

.accordion-item {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.accordion-header {
    padding: 20px 25px;
    font-size: 1.1rem;
}

.accordion-icon {
    font-size: 1.5em;
    color: var(--accent-color, #7EC7A8);
    margin-left: 20px;
}

.accordion-content p {
    margin: 0;
    line-height: 1.6;
}

.accordion-content a {
    color: var(--primary-color, #37726E);
    text-decoration: underline;
}

.accordion-content a:hover {
    color: var(--accent-color, #7EC7A8);
}

/* CTA Section Enhancements */
.cta-content {
    padding: 0 20px;
}

.cta-buttons .btn {
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--accent-color, #7EC7A8);
    color: white;
    border: 2px solid var(--accent-color, #7EC7A8);
}

.btn-secondary:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* Enhanced Responsive Styles */
@media (max-width: 992px) {
    .services-hero .hero-title {
        font-size: 2.5rem;
    }
    .services-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    body.page-template-page-services-editable,
    body.page-template-page-services {
        padding-top: 60px !important;
    }
    .services-hero {
        min-height: 350px;
    }
    .services-hero .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    .services-hero .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    .services-hero .hero-content {
        padding: 40px 15px;
    }
    .services-intro,
    .why-choose-section,
    .faq-section,
    .cta-section {
        padding: 50px 0;
    }
    .services-intro .section-title,
    .why-choose-section .section-title,
    .faq-section .section-title,
    .cta-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    .services-intro .section-subtitle,
    .why-choose-section .section-subtitle,
    .faq-section .section-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .accordion-header {
        font-size: 0.95rem;
        padding: 16px 18px;
    }
    .accordion-icon {
        font-size: 1.3em;
        margin-left: 10px;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    .cta-buttons .btn {
        width: 100%;
        max-width: 350px;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .services-hero {
        min-height: 300px;
    }
    .services-hero .hero-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .services-hero .hero-subtitle {
        font-size: 0.9rem;
    }
    .services-hero .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    .services-intro .section-title,
    .why-choose-section .section-title,
    .faq-section .section-title,
    .cta-title {
        font-size: 1.5rem;
    }
    .services-intro .section-subtitle,
    .why-choose-section .section-subtitle,
    .faq-section .section-subtitle,
    .cta-text {
        font-size: 0.9rem;
    }
    .service-card {
        padding: 25px 15px;
    }
    .service-icon {
        font-size: 2.5rem;
    }
    .service-title {
        font-size: 1.2rem;
    }
    .service-description {
        font-size: 0.9rem;
    }
    .service-features li {
        font-size: 0.85rem;
    }
    .why-choose-item {
        padding: 30px 20px;
    }
    .why-choose-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    .why-choose-title {
        font-size: 1.1rem;
    }
    .why-choose-item p {
        font-size: 0.9rem;
    }
    .accordion-header {
        font-size: 0.9rem;
        padding: 14px 15px;
    }
    .accordion-content {
        padding: 0 15px;
        font-size: 0.85rem;
    }
    .accordion-item.active .accordion-content {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .cta-buttons .btn {
        max-width: 100%;
        padding: 0.85rem 1.2rem;
        font-size: 0.95rem;
    }
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 375px) {
    .services-hero .hero-title {
        font-size: 1.3rem;
    }
    .services-hero .hero-subtitle {
        font-size: 0.85rem;
    }
    .services-intro .section-title,
    .why-choose-section .section-title,
    .faq-section .section-title,
    .cta-title {
        font-size: 1.3rem;
    }
    .service-card {
        padding: 20px 12px;
    }
}

/* Service Card for Grid Layout */
.services-grid .service-card {
    background-color: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Additional CTA spacing */
.cta-section {
    padding: 100px 0;
    margin-bottom: 100px;
}

@media (max-width: 768px) {
    .cta-section {
        padding: 80px 0;
        margin-bottom: 60px;
    }
}

/* FORCE CACHE REFRESH - Updated styles with !important */
.cta-section {
    padding: 100px 0 !important;
    margin-bottom: 100px !important;
}

@media (max-width: 768px) {
    .cta-section {
        padding: 80px 0 !important;
        margin-bottom: 60px !important;
    }
}

/* ============================================
   UNIFIED CTA BUTTON STYLES - All Service Pages
   ============================================ */

/* Base CTA Button Styles */
.services-page-content .btn,
.services-catalog-section .btn,
.sk-service-catalog .btn,
.sk-cta-section .btn,
.cta-section .btn,
.cta-buttons .btn,
.package-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    min-height: 54px;
    box-sizing: border-box;
}

/* Primary Button - Teal Background */
.services-page-content .btn-primary,
.services-catalog-section .btn-primary,
.sk-service-catalog .btn-primary,
.sk-cta-section .btn-primary,
.cta-section .btn-primary,
.cta-buttons .btn-primary,
.package-footer .btn-primary {
    background: #37726E;
    color: #fff;
    border-color: #37726E;
}

.services-page-content .btn-primary:hover,
.services-catalog-section .btn-primary:hover,
.sk-service-catalog .btn-primary:hover,
.sk-cta-section .btn-primary:hover,
.cta-section .btn-primary:hover,
.cta-buttons .btn-primary:hover,
.package-footer .btn-primary:hover {
    background: #2a5654;
    border-color: #2a5654;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(55, 114, 110, 0.3);
}

/* Secondary Button - Accent Green */
.services-page-content .btn-secondary,
.services-catalog-section .btn-secondary,
.sk-service-catalog .btn-secondary,
.sk-cta-section .btn-secondary,
.cta-section .btn-secondary,
.cta-buttons .btn-secondary {
    background: #7EC7A8;
    color: #fff;
    border-color: #7EC7A8;
}

.services-page-content .btn-secondary:hover,
.services-catalog-section .btn-secondary:hover,
.sk-service-catalog .btn-secondary:hover,
.sk-cta-section .btn-secondary:hover,
.cta-section .btn-secondary:hover,
.cta-buttons .btn-secondary:hover {
    background: #6ab897;
    border-color: #6ab897;
    transform: translateY(-2px);
}

/* Accent Button - Yellow */
.services-page-content .btn-accent,
.services-catalog-section .btn-accent,
.cta-section .btn-accent,
.cta-buttons .btn-accent {
    background: #F2FC32;
    color: #333;
    border-color: #F2FC32;
}

.services-page-content .btn-accent:hover,
.services-catalog-section .btn-accent:hover,
.cta-section .btn-accent:hover,
.cta-buttons .btn-accent:hover {
    background: #e0ea2d;
    border-color: #e0ea2d;
    transform: translateY(-2px);
}

/* White Button - For Dark Backgrounds */
.services-page-content .btn-white,
.services-catalog-section .btn-white,
.cta-section .btn-white,
.cta-buttons .btn-white {
    background: #fff;
    color: #37726E;
    border-color: #fff;
}

.services-page-content .btn-white:hover,
.services-catalog-section .btn-white:hover,
.cta-section .btn-white:hover,
.cta-buttons .btn-white:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* White Outline Button */
.services-page-content .btn-white-outline,
.cta-section .btn-white-outline,
.cta-buttons .btn-white-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.services-page-content .btn-white-outline:hover,
.cta-section .btn-white-outline:hover,
.cta-buttons .btn-white-outline:hover {
    background: #fff;
    color: #37726E;
}

/* Outline Buttons - Light Background */
.services-page-content .btn-outline,
.services-catalog-section .btn-outline,
.sk-cta-section .btn-outline {
    background: #fff;
    color: #333;
    border-color: #e9ecef;
}

.services-page-content .btn-outline:hover,
.services-catalog-section .btn-outline:hover,
.sk-cta-section .btn-outline:hover {
    border-color: #37726E;
    color: #37726E;
}

/* CTA Button Container - Centered & Symmetric */
.cta-buttons,
.sk-cta-section > div:last-child,
.package-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

/* Make buttons in same row equal width when side by side */
.cta-buttons .btn,
.sk-cta-section > div:last-child .btn {
    min-width: 220px;
    text-align: center;
}

/* Package Card Footer Buttons - Full Width */
.package-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.package-footer .btn {
    width: 100%;
    justify-content: center;
}

/* Service Card Buttons in Catalog */
.sk-service-card .sk-service-btn,
.sk-service-catalog .sk-service-btn {
    display: flex;
    width: 100%;
    padding: 14px 20px;
    background: #37726E;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 50px;
}

.sk-service-card .sk-service-btn:hover,
.sk-service-catalog .sk-service-btn:hover {
    background: #2a5654;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(55, 114, 110, 0.25);
}

/* Hero Section Buttons */
.services-hero .btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    min-height: 56px;
}

.services-hero .hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* Responsive Button Adjustments */
@media (max-width: 768px) {
    .services-page-content .btn,
    .services-catalog-section .btn,
    .sk-service-catalog .btn,
    .sk-cta-section .btn,
    .cta-section .btn,
    .cta-buttons .btn,
    .package-footer .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
        min-height: 50px;
        width: 100%;
        max-width: 350px;
    }

    .cta-buttons,
    .sk-cta-section > div:last-child,
    .services-hero .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn,
    .sk-cta-section > div:last-child .btn {
        min-width: unset;
        width: 100%;
        max-width: 350px;
    }

    .services-hero .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .services-page-content .btn,
    .services-catalog-section .btn,
    .sk-service-catalog .btn,
    .cta-buttons .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 48px;
    }

    .cta-buttons .btn,
    .sk-cta-section > div:last-child .btn {
        max-width: 100%;
    }
}
