/* =============================================================
   SERVICES CATEGORY PAGE — css/services.css
   Loaded conditionally on /product-category/services/ only
   =============================================================
   0. Hero Section
   1. Category Description Styling
   2. FAQ Section (bottom_description ACF)
   3. Responsive
   ============================================================= */

/* ==============================================
   0. HERO SECTION
   Injected via woocommerce_before_main_content hook
   ============================================== */
.services-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #005177 55%, #00838f 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin-bottom: 0;
}

.services-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0,20,40,0.8) 0%, rgba(0,70,100,0.55) 100%);
    z-index: 1;
}

.services-hero-inner {
    position: relative;
    z-index: 2;
    padding: 70px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.services-hero-inner h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1.2;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.services-hero-inner p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.75;
}

/* ==============================================
   1. CATEGORY DESCRIPTION STYLING
   Targets the WC term description above the grid
   ============================================== */
.tax-product_cat.term-services .term-description,
.tax-product_cat.term-services .woocommerce-product-archive__description {
    background: var(--color-panel-lt, #f7f7f7);
    border-left: 4px solid var(--color-primary, #0073aa);
    padding: 28px 32px;
    margin-bottom: 28px;
    border-radius: 0 6px 6px 0;
}

.tax-product_cat.term-services .term-description p,
.tax-product_cat.term-services .woocommerce-product-archive__description p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--color-text-md, #444444);
    line-height: 1.85;
    margin: 0 0 12px;
}

.tax-product_cat.term-services .term-description p:last-child,
.tax-product_cat.term-services .woocommerce-product-archive__description p:last-child {
    margin-bottom: 0;
}

.tax-product_cat.term-services .term-description strong,
.tax-product_cat.term-services .woocommerce-product-archive__description strong {
    color: var(--color-text-dk, #222222);
}

.tax-product_cat.term-services .term-description a,
.tax-product_cat.term-services .woocommerce-product-archive__description a {
    color: var(--color-primary, #0073aa);
    text-decoration: underline;
}

/* ==============================================
   2. FAQ / BOTTOM DESCRIPTION (ACF)
   .category-bottom-description rendered by functions.php
   ============================================== */
.tax-product_cat.term-services .category-bottom-description {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid #e8ecf0;
}

.tax-product_cat.term-services .category-bottom-description h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-dk, #222222);
    margin: 0 0 24px;
}

/* FAQ accordion (details/summary pattern used site-wide) */
.tax-product_cat.term-services .category-bottom-description details {
    border: 1px solid #e8ecf0;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #ffffff;
    overflow: hidden;
}

.tax-product_cat.term-services .category-bottom-description summary {
    font-family: 'Poppins', sans-serif;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--color-text-dk, #222222);
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s ease;
}

.tax-product_cat.term-services .category-bottom-description summary:hover {
    background: var(--color-panel-lt, #f7f7f7);
}

.tax-product_cat.term-services .category-bottom-description summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-primary, #0073aa);
    flex-shrink: 0;
}

.tax-product_cat.term-services .category-bottom-description details[open] summary::after {
    content: '−';
}

.tax-product_cat.term-services .category-bottom-description details > *:not(summary) {
    padding: 0 20px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.93rem;
    color: var(--color-text-md, #444444);
    line-height: 1.8;
}

/* ==============================================
   3. RESPONSIVE
   ============================================== */
@media (max-width: 768px) {
    .services-hero {
        min-height: 280px;
    }

    .services-hero-inner h1 {
        font-size: 1.8rem;
    }

    .services-hero-inner p {
        font-size: 0.95rem;
    }

    .services-hero-inner {
        padding: 50px 16px;
    }

    .tax-product_cat.term-services .term-description,
    .tax-product_cat.term-services .woocommerce-product-archive__description {
        padding: 20px 18px;
    }
}

@media (max-width: 480px) {
    .services-hero-inner h1 {
        font-size: 1.5rem;
    }
}
