/*
 * Services Page Styles v23
 * Clean single-pass rules. No versioned override blocks.
 */

/* =============================================
   Hero Section
   ============================================= */

.services-hero {
    background-color: #F8F9FA;
    padding: 8rem 0 5rem;
    text-align: center;
}
.services-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111827;
    margin-bottom: 1.5rem;
}
.services-hero-sub {
    font-size: 1.125rem;
    color: #4B5563;
    line-height: 1.8;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

@media (max-width: 767px) {
    .services-hero { padding: 5rem 0 3.5rem; }
}


/* =============================================
   Primary Diagnostic Section
   ============================================= */

.diagnostic-section { background-color: #ffffff; padding: 6rem 0; }

@media (min-width: 1280px) {
    .diagnostic-section .container { max-width: 1200px; }
}

/*
 * overflow: visible lets the badge protrude above the card border.
 * margin-top creates clearance so the badge is not clipped by the parent.
 * The full-bleed footer relies on its own border-radius to look clipped.
 */
.diagnostic-card {
    background-color: #F9FAFB;
    border: 1.5px solid #E5E7EB;
    border-radius: 1rem;
    padding: 3.5rem 3rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: visible;
    margin-top: 1.25rem;
}

/* Badge straddles the top border — half inside, half outside */
.diagnostic-badge {
    position: absolute;
    top: -0.9375rem;
    left: 2rem;
    background-color: #2563EB;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    white-space: nowrap;
    z-index: 10;
    line-height: 1;
}

.diagnostic-main-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.diagnostic-main-intro {
    font-size: 1.0625rem;
    color: #4B5563;
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 52rem;
}

.diagnostic-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}
@media (min-width: 900px) {
    .diagnostic-inner {
        grid-template-columns: 1fr 1.3fr;
        gap: 4rem;
        align-items: stretch;
    }
}

/* Image Column */
.diagnostic-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 900px) {
    .diagnostic-image-col {
        align-items: stretch;
        justify-content: stretch;
    }
}

.diagnostic-image-wrap {
    width: 100%;
    max-width: 400px;
}
@media (min-width: 900px) {
    .diagnostic-image-wrap { max-width: none; height: 100%; display: flex; align-items: stretch; }
}

.diagnostic-image-frame {
    width: 100%;
    height: 100%;
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.10);
    background: #F3F4F6;
}
@media (min-width: 900px) {
    .diagnostic-image-frame { transform: translate(24px, 24px); }
}

.diagnostic-image { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Placeholder when no image set */
.image-placeholder {
    background: linear-gradient(135deg, #E5E7EB 0%, #F3F4F6 100%);
    border-radius: 0.75rem;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    gap: 0.75rem;
}
.image-placeholder svg { width: 80px; height: 80px; stroke-width: 1; }
.image-placeholder p   { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }

@media (min-width: 900px) {
    .image-placeholder { aspect-ratio: auto; height: 100%; min-height: 100%; }
}

.diagnostic-image-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
}

/* Content column */
.section-micro-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 1.75rem 0 0.875rem;
    display: block;
}

.diagnostic-checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.diagnostic-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 0.625rem;
}
.diagnostic-checklist li svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: #111827;
    width: 18px;
    height: 18px;
}

/* Investment Box */
.investment-box {
    background-color: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 0.625rem;
    padding: 1.5rem;
    margin: 2rem 0 1.5rem;
}
.investment-box-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.investment-label     { font-size: 0.6875rem; font-weight: 700; color: #6B7280; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 0.4rem; }
.investment-amount    { font-size: 2rem; font-weight: 700; color: #111827; margin: 0; line-height: 1; }
.investment-delivery  { padding-left: 1.5rem; border-left: 2px solid #E5E7EB; }
.investment-delivery-primary   { font-size: 0.9375rem; font-weight: 700; color: #111827; margin: 0 0 0.2rem; line-height: 1.4; }
.investment-delivery-secondary { font-size: 0.875rem; color: #6B7280; margin: 0; line-height: 1.5; }

.forensic-note { font-size: 0.9375rem; color: #6B7280; line-height: 1.7; margin-top: 1rem; }


/* Full-bleed CTA footer — clips its own bottom corners since card is overflow:visible */
.diagnostic-cta-footer {
    background-color: #F3F4F6;
    padding: 2.5rem 3rem;
    text-align: center;
    border-top: 1px solid #E5E7EB;
    margin-left: -3rem;
    margin-right: -3rem;
    border-radius: 0 0 1rem 1rem;
    /* Clip any content that overflows the bottom corners */
    overflow: hidden;
}
.cta-outcome {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}


/* =============================================
   Secondary Services Section
   ============================================= */

.secondary-section { background-color: #F8F9FA; padding: 5rem 0 6rem; }

@media (min-width: 1280px) {
    .secondary-section .container { max-width: 1200px; }
}

.secondary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 900px) {
    .secondary-grid { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
}

.secondary-card {
    background-color: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.secondary-image {
    width: 100%;
    height: 200px;
    background-color: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.image-placeholder-sm { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; color: #9CA3AF; }
.image-placeholder-sm svg { width: 60px; height: 60px; stroke-width: 1; }
.image-placeholder-sm p   { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }

.secondary-content { padding: 2.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.secondary-content h3 { font-size: 1.5rem; font-weight: 700; color: #111827; margin-bottom: 0.75rem; }
.secondary-content > p:first-of-type { font-size: 0.9375rem; color: #4B5563; line-height: 1.75; margin-bottom: 1.5rem; }

.secondary-checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.secondary-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.secondary-checklist li svg { flex-shrink: 0; margin-top: 0.125rem; color: #111827; width: 16px; height: 16px; }

.engagement-text { font-size: 0.875rem; color: #4B5563; line-height: 1.7; margin-bottom: 1.5rem; }
.ideal-text-sm   { font-size: 0.875rem; color: #4B5563; line-height: 1.7; margin-bottom: 1.5rem; }

.secondary-status-wrap { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid #F3F4F6; }
.secondary-status { text-align: center; font-weight: 600; color: #6B7280; font-size: 0.9375rem; padding-top: 1.5rem; border-top: 1px solid #F3F4F6; margin-top: 1.5rem; }


/* =============================================
   Final CTA Section
   ============================================= */

/* final-cta-section removed — all pages now use section-gray py-section + final-cta-box */


/* =============================================
   Mobile overrides
   ============================================= */

@media (max-width: 767px) {
    /* Diagnostic card — overflow:visible so badge protrudes, margin-top creates clearance */
    .diagnostic-card {
        padding: 2.75rem 1.25rem 0;
        margin-top: 1.25rem;
    }

    /* Badge straddles the top border on mobile too */
    .diagnostic-badge {
        top: -0.9375rem;
        left: 1.25rem;
        right: auto;
        z-index: 20;
    }

    .diagnostic-main-title { font-size: 1.6rem; line-height: 1.15; }
    .diagnostic-main-intro { margin-bottom: 1.5rem; }
    .diagnostic-inner      { gap: 1.75rem; padding-bottom: 2rem; }

    /* Investment box */
    .investment-box       { padding: 1rem; margin: 1.5rem 0 1.25rem; }
    .investment-box-inner { gap: 1rem; }
    .investment-delivery  {
        padding-left: 0;
        border-left: 0;
        padding-top: 0.75rem;
        border-top: 1px solid #E5E7EB;
        width: 100%;
    }

    /* Full-bleed CTA footer */
    .diagnostic-cta-footer {
        padding: 2rem 1.25rem;
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        text-align: center;
    }

    /* CTA button inside footer */
    .diagnostic-cta-footer > a.btn,
    .diagnostic-cta-footer > a.pk-br-btn-primary {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        position: relative;
        justify-content: center;
        padding-left: 1.25rem;
        padding-right: 3.75rem;
        margin: 0;
    }

    .diagnostic-cta-footer > a.btn .btn-label,
    .diagnostic-cta-footer > a.pk-br-btn-primary .btn-label {
        width: 100%;
        text-align: center;
    }

    .diagnostic-cta-footer > a.btn .arrow-icon,
    .diagnostic-cta-footer > a.pk-br-btn-primary .arrow-icon {
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }

    /* Services hero CTA */
    .services-hero-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .services-hero-actions > a.btn {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        position: relative;
        justify-content: center;
        padding-left: 1.25rem;
        padding-right: 3.75rem;
    }

    .services-hero-actions > a.btn .btn-label {
        flex: 1 1 auto;
        text-align: center;
        padding: 0;
    }

    .services-hero-actions > a.btn .arrow-icon {
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }

    /* Services mobile label swap */
    .page-template-page-services .btn[data-mobile-label] .btn-label,
    .page-template-page-services .pk-br-btn-primary[data-mobile-label] .btn-label {
        font-size: 0;
        display: inline-block;
        line-height: 1.2;
        color: inherit;
    }

    .page-template-page-services .btn[data-mobile-label] .btn-label::after,
    .page-template-page-services .pk-br-btn-primary[data-mobile-label] .btn-label::after {
        content: attr(data-mobile-label);
        font-size: 1rem;
        display: inline-block;
        width: 100%;
        text-align: center;
        color: inherit;
        opacity: 1;
        visibility: visible;
    }

    /* Bonus total card */
    .bonus-total { padding: 1.5rem 1.25rem; }
    .bonus-total-inner   { flex-direction: column; align-items: flex-start; }
    .bonus-total-left,
    .bonus-total-right   { width: 100%; }
    .bonus-total-amount  { font-size: 2.25rem; }
}

/* v45 — darker hero background */
.services-hero {
  background-color: #EEF1F6 !important;
}

/* =============================================
   v53 — Value stack, guarantee, comparison table
   ============================================= */

/* Value stack */
.pk-value-stack {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    overflow: hidden;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.pk-value-stack-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9CA3AF;
    padding: 1rem 1.75rem 0.875rem;
    border-bottom: 1px solid #F3F4F6;
    background: #FAFAFA;
}
.pk-value-stack-rows {
    display: block;
}
.pk-value-stack-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.75rem;
    border-bottom: 1px solid #F3F4F6;
    gap: 1.25rem;
    transition: background 0.15s;
}
.pk-value-stack-row:last-child { border-bottom: none; }
.pk-value-stack-row--bonus {
    background: #F5F8FF;
}
.pk-value-stack-item {
    font-size: 1rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
    line-height: 1.5;
}
/* Green tick before each core row */
.pk-value-stack-row:not(.pk-value-stack-row--bonus):not(.pk-value-stack-total):not(.pk-value-stack-investment) .pk-value-stack-item::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: #DCFCE7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
    border-radius: 50%;
}
/* Blue plus before each bonus row */
.pk-value-stack-row--bonus .pk-value-stack-item::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: #DBEAFE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center/12px no-repeat;
    border-radius: 50%;
}
.pk-value-bonus-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563EB;
    background: #DBEAFE;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}
.pk-value-stack-price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #9CA3AF;
    white-space: nowrap;
}
/* Bonus prices — no strikethrough, shown in muted colour */
.pk-value-stack-row--bonus .pk-value-stack-price {
    text-decoration: none;
    color: #6B7280;
}
.pk-value-stack-total {
    background: #F9FAFB;
    border-top: 2px solid #E5E7EB !important;
}
.pk-value-stack-total .pk-value-stack-item {
    font-weight: 700;
    color: #6B7280;
    font-size: 0.9375rem;
}
.pk-value-stack-total .pk-value-stack-price {
    font-weight: 700;
    color: #374151;
    font-size: 1.125rem;
    text-decoration: none;
}
/* Investment row — the money moment */
.pk-value-stack-investment {
    background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 100%);
    border-bottom: none;
    padding: 1.375rem 1.75rem;
}
.pk-value-stack-investment .pk-value-stack-item {
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
}
.pk-value-investment-price {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: -0.02em;
}
@media (max-width: 640px) {
    .pk-value-stack-row { padding: 0.875rem 1.25rem; gap: 0.75rem; }
    .pk-value-stack-item { font-size: 0.9375rem; }
    .pk-value-investment-price { font-size: 1.5rem !important; }
    .pk-value-stack-label { padding: 0.875rem 1.25rem 0.75rem; }
}

/* Guarantee block */
.pk-guarantee-block {
    background: #F0FDF4;
    border: 1.5px solid #BBF7D0;
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.pk-guarantee-inner {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.pk-guarantee-icon {
    flex-shrink: 0;
    color: #16A34A;
    margin-top: 0.125rem;
}
.pk-guarantee-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #166534;
    margin-bottom: 0.5rem;
}
.pk-guarantee-text {
    font-size: 0.9375rem;
    color: #166534;
    line-height: 1.75;
    margin: 0;
}

/* Comparison table */
.pk-comparison-table {
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    overflow: hidden;
}
.pk-comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid #F3F4F6;
}
.pk-comparison-row:last-child { border-bottom: none; }
.pk-comparison-header {
    background: #F8F9FA;
    border-bottom: 1px solid #E5E7EB;
}
.pk-comparison-col {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    color: #374151;
}
.pk-comparison-col--feature {
    font-weight: 600;
    color: #111827;
}
.pk-comparison-col--agency {
    color: #9CA3AF;
    text-align: center;
    border-left: 1px solid #F3F4F6;
}
.pk-comparison-col--us {
    text-align: center;
    border-left: 1px solid #F3F4F6;
}
.pk-comparison-col--us.pk-comparison-col--highlight {
    font-weight: 600;
    color: #111827;
}
.pk-comparison-header .pk-comparison-col--agency {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9CA3AF;
}
.pk-comparison-header .pk-comparison-col--us {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #2563EB;
    background: #EEF4FF;
}
@media (max-width: 767px) {
    .pk-comparison-row {
        grid-template-columns: 1fr 1fr;
    }
    .pk-comparison-col--feature {
        display: none;
    }
    .pk-comparison-header .pk-comparison-col--feature {
        display: none;
    }
    .pk-comparison-col { padding: 0.75rem 1rem; font-size: 0.875rem; }
    .pk-value-stack-row { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
    .pk-value-stack-price { font-size: 0.875rem; }
    .pk-guarantee-block { padding: 1.25rem; }
    .pk-guarantee-inner { flex-direction: column; gap: 0.875rem; }
}

/* Saving tag inside investment row */
.pk-value-saving-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #fff;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.2rem 0.625rem;
    border-radius: 999px;
    white-space: nowrap;
}


/* v57 — 17px minimum for services page body copy */
.pk-offer-text p,
.engagement-text,
.ideal-text-sm,
.forensic-note,
.secondary-content > p:first-of-type,
.investment-delivery-secondary,
.pk-accordion-content p { font-size: 1.0625rem; }


/* v57 — Blue investment amounts on services page */
.investment-amount    { color: #1D4ED8 !important; }
.pk-offer-investment-amount { color: #1D4ED8 !important; }
