/* ==========================================================
   CALL AND RELIEF - SERVICES PAGE STYLESHEET (services.css)
   Pixel-perfect design matching user specification & mockup
   ========================================================== */

/* --- Hero Section (Full Background Cover matching Home & About) --- */
.services-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background-color: #071629;
    overflow: hidden;
    padding: 85px 0 95px 0;
}

.services-hero-bg-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.services-hero-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 62%;
    height: 100%;
    background-image: url('hero-bg.jpg');
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
}

.services-hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #071629 36%, rgba(7, 22, 41, 0.94) 52%, rgba(7, 22, 41, 0.65) 75%, rgba(7, 22, 41, 0.2) 100%);
}

.services-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.services-hero-content {
    max-width: 680px;
}

.services-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 20px;
}

.services-breadcrumbs a {
    color: #94a3b8;
    transition: var(--transition-fast);
}

.services-breadcrumbs a:hover {
    color: var(--color-white);
}

.services-breadcrumbs .crumb-sep {
    font-size: 11px;
    color: #64748b;
}

.services-breadcrumbs .crumb-current {
    color: var(--color-white);
    font-weight: 600;
}

.services-hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.services-hero-title {
    font-family: var(--font-heading);
    font-size: 54px;
    font-weight: 800;
    line-height: 1.14;
    color: var(--color-white);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.services-hero-title .text-green {
    color: var(--color-primary);
    display: inline-block;
}

.services-hero-subtitle {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    color: #cbd5e1;
    margin-bottom: 26px;
    max-width: 580px;
}

.services-hero-divider {
    width: 72px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* --- Section 1: Why Choose Our Services --- */
.why-choose-services-section {
    background-color: var(--color-white);
    padding: 100px 0 90px 0;
    position: relative;
}

.why-choose-container {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.section-tag-green {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.why-choose-left {
    max-width: 500px;
}

.why-choose-main-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.22;
    color: var(--color-navy);
    margin-bottom: 20px;
    letter-spacing: -0.4px;
}

.why-choose-desc {
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text-muted);
}

.why-choose-right-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 30px;
}

.feature-item-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform var(--transition-fast);
}

.feature-item-card:hover {
    transform: translateY(-4px);
}

.feature-icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: rgba(112, 164, 59, 0.16);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-item-card:hover .feature-icon-circle {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.08);
    box-shadow: 0 8px 18px rgba(112, 164, 59, 0.28);
}

.feature-item-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.35;
    margin-bottom: 8px;
}

.feature-item-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

/* --- Section 2: Our Pest Control & Termite Management Services --- */
.services-list-section {
    background-color: #f8fafc;
    padding: 100px 0 110px 0;
    position: relative;
    border-top: 1px solid #edf2f7;
}

.services-section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px auto;
}

.services-section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-navy);
    margin-top: 6px;
    margin-bottom: 14px;
    letter-spacing: -0.4px;
}

.services-section-subtitle {
    font-size: 16.5px;
    line-height: 1.65;
    color: #64748b;
}

/* 8 Services Grid (4-in-a-row) */
.detailed-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.service-detail-card {
    background-color: var(--color-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(10, 34, 64, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.85);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(10, 34, 64, 0.11);
    border-color: rgba(112, 164, 59, 0.35);
}

.card-media-wrapper {
    width: 100%;
    height: 190px;
    overflow: hidden;
    position: relative;
    background-color: #0f172a;
}

.card-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-detail-card:hover .card-media-img {
    transform: scale(1.06);
}

/* Floating Circular Badge Overlapping Media and Body */
.card-floating-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(10, 34, 64, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: var(--color-navy);
    margin-top: -24px;
    margin-left: 20px;
    position: relative;
    z-index: 3;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-detail-card:hover .card-floating-badge {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: rotate(10deg) scale(1.06);
}

.card-body-content {
    padding: 16px 22px 24px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-service-title {
    font-family: var(--font-heading);
    font-size: 18.5px;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.35;
    margin-bottom: 10px;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.card-service-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 22px;
    flex-grow: 1;
}

.card-learn-more {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.25s ease, color 0.25s ease;
}

.card-learn-more i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.service-detail-card:hover .card-learn-more {
    color: var(--color-primary-hover);
}

.service-detail-card:hover .card-learn-more i {
    transform: translateX(4px);
}

/* --- Section 3: Pre-Footer CTA Banner ("GET IN TOUCH") --- */
.services-cta-banner {
    position: relative;
    background: linear-gradient(135deg, #071629 0%, #0a2240 100%);
    padding: 85px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.services-cta-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 50px;
    align-items: center;
}

.services-cta-content {
    max-width: 580px;
}

.services-cta-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.services-cta-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 14px;
    letter-spacing: -0.4px;
}

.services-cta-subtitle {
    font-size: 16.5px;
    line-height: 1.65;
    color: #cbd5e1;
    margin-bottom: 32px;
}

.services-cta-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-cta-phone-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 30px;
    border: 2px solid var(--color-primary);
    box-shadow: 0 6px 20px rgba(112, 164, 59, 0.35);
    transition: all 0.3s ease;
}

.btn-cta-phone-pill:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(112, 164, 59, 0.45);
}

.btn-cta-phone-pill i {
    font-size: 14px;
}

.btn-cta-book-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(10, 34, 64, 0.5);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 14px 32px;
    border-radius: 30px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.btn-cta-book-pill:hover {
    background-color: var(--color-white);
    color: var(--color-navy);
    border-color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Call and Relief Branded Service Van Showcase */
.services-cta-van-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-cta-van-wrapper:hover {
    transform: translateY(-6px);
}

.services-cta-van-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1100px) {
    .detailed-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .why-choose-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-choose-left {
        max-width: 100%;
    }

    .services-cta-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-cta-content {
        max-width: 100%;
    }

    .services-cta-van-wrapper {
        max-width: 540px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .services-hero-title {
        font-size: 44px;
    }

    .why-choose-main-title,
    .services-section-title,
    .services-cta-title {
        font-size: 34px;
    }

    .services-hero-bg-image {
        width: 100%;
        opacity: 0.3;
    }

    .services-hero-bg-overlay {
        background: linear-gradient(180deg, rgba(7, 22, 41, 0.92) 0%, rgba(7, 22, 41, 0.98) 100%);
    }
}

@media (max-width: 768px) {
    .services-hero {
        min-height: auto;
        padding: 60px 0 70px 0;
    }

    .services-hero-title {
        font-size: 36px;
    }

    .services-hero-subtitle {
        font-size: 15.5px;
    }

    .why-choose-services-section,
    .services-list-section,
    .services-cta-banner {
        padding: 70px 0;
    }

    .why-choose-right-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .detailed-services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card-media-wrapper {
        height: 220px;
    }

    .card-service-title {
        min-height: auto;
    }

    .services-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-cta-phone-pill,
    .btn-cta-book-pill {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .services-hero-title {
        font-size: 30px;
    }

    .why-choose-main-title,
    .services-section-title,
    .services-cta-title {
        font-size: 28px;
    }
}
