/* Service Single Template Styles
 * McKinsey-inspired, professional, minimalist, B&W visuals
 */

.service-single-layout {
    background: var(--com-white);
}

.container-narrow {
    max-width: 900px;
    /* Base width for long content */
    margin: 0 auto;
    padding: 0 20px;
}

.container-hero {
    max-width: 990px;
    /* Exactly 10% wider than 900px for subtle offset */
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.service-hero {
    position: relative;
    padding: 80px 0 40px;
    /* Matched to single-tool.php */
    background-color: var(--com-white);
    /* Use background-color to not override bg-rhombus image */
    overflow: hidden;
    min-height: auto;
    display: flex;
    align-items: center;
    text-align: left;
}

/* Specific overrides to ensure bg-rhombus shows correctly in service sections */
.service-hero.bg-rhombus {
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='32' viewBox='0 0 120 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 32L120 0M0 0L120 32' stroke='%23e1e1e1' stroke-width='0.5' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: repeat !important;
    background-position: center !important;
}

.service-hero.bg-rhombus::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            #fff 0%,
            rgba(255, 255, 255, 0) 15%,
            rgba(255, 255, 255, 0) 75%,
            #fff 100%) !important;
    pointer-events: none;
    z-index: 1;
}

.service-hero .container-hero {
    position: relative;
    z-index: 5;
    width: 100%;
    /* Ensure it spans the max-width */
}

.service-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.1;
    /* Slightly more space than 1 to avoid overlap but still tight */
    margin-bottom: 25px;
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--com-black);
}

.service-lead {
    font-size: 1.05rem;
    /* Reduced from 1.15rem */
    line-height: 1.6;
    color: #333;
    max-width: 850px;
    margin: 0;
}

/* Main Body */
.service-main-body {
    padding: 0 0 40px;
}

.service-content-wrapper {
    margin-bottom: 40px;
}

.entry-content {
    font-size: 1.05rem;
    /* Reduced from 1.15rem */
    line-height: 1.7;
    color: #333;
}

/* Gutenberg Block Overrides for Service Page */
.entry-content h2 {
    font-size: 1.8rem;
    /* Reduced from 2.2rem */
    line-height: 1.15;
    /* Tighter line-height */
    margin-top: 50px;
    margin-bottom: 25px;
    text-align: left;
}

.entry-content h3 {
    font-size: 1.4rem;
    /* Reduced from 1.6rem */
    line-height: 1.15;
    margin-top: 35px;
    margin-bottom: 15px;
}

/* Full-width Gutenberg blocks with background */
.entry-content>.has-background {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Ensure inner content of full-width blocks stays centered */
.entry-content>.has-background>* {
    max-width: 900px;
    /* Match container-narrow */
    margin-left: auto;
    margin-right: auto;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content .wp-block-columns {
    gap: 60px;
}

.entry-content .wp-block-image {
    margin: 60px 0;
}

.entry-content .wp-block-image img {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.entry-content .wp-block-image img:hover {
    filter: grayscale(0%);
}

.entry-content blockquote {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-style: italic;
    border-left: 3px solid var(--com-gold);
    padding: 20px 0 20px 40px;
    margin: 60px 0;
    color: var(--com-black);
}

.service-section {
    margin-top: 80px;
    padding-top: 0;
    border-top: none;
    /* Removed horizontal separator */
}

.section-title {
    font-size: 1.8rem;
    /* Reduced from 2.2rem */
    line-height: 1.2;
    margin-bottom: 30px;
    text-align: left;
    /* Consistent alignment */
}


/* Process Staggered Layout (McKinsey Style) */
.process-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 80px;
    align-items: start;
    margin-top: 60px;
}

.process-item {
    display: block;
    margin-bottom: 60px;
    /* Reduced from 120px */
}

.process-item:nth-child(even) {
    margin-top: 40px;
    /* Reduced from 100px for a more compact staggered layout */
}

.process-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 5rem;
    line-height: 1;
    color: var(--com-gold);
    opacity: 0.4;
    margin-bottom: -20px;
    border: none;
    height: auto;
    width: auto;
    justify-content: flex-start;
    border-radius: 0;
}

.process-info h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--com-black);
    position: relative;
    z-index: 1;
}

.process-info p {
    color: #444;
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0;
}

/* Partner Footer */
.service-partner-footer {
    padding: 60px 0;
    /* Reduced from 100px */
    text-align: center;
}

.partner-footer-header {
    margin-bottom: 40px;
    /* Reduced from 60px */
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--com-gray-mid);
    margin-top: -30px;
}

/* Partner Footer overrides */
.service-partner-footer .partner-card {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    text-align: left;
}

.service-partner-footer .partner-card-inner {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    background: var(--com-white);
    padding: 40px 50px;
    border: 1px solid #f0f0f0;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}

.service-partner-footer .partner-card-inner:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.service-partner-footer .partner-image-link {
    flex: 0 0 150px;
    display: block;
    text-decoration: none;
}

.service-partner-footer .partner-image-container {
    width: 150px;
    height: 150px;
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
    background: #f9f9f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.service-partner-footer .partner-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-partner-footer .partner-image-link:hover .partner-thumbnail {
    transform: scale(1.05);
}

.service-partner-footer .partner-details {
    flex: 1;
}

.service-partner-footer .partner-name {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 400;
}

.service-partner-footer .partner-name-link {
    text-decoration: none;
    color: var(--com-black);
    transition: color 0.3s ease;
}

.service-partner-footer .partner-name-link:hover {
    color: var(--com-gold);
}

.service-partner-footer .partner-role {
    color: var(--com-gold);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.service-partner-footer .partner-bio {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-partner-footer .partner-actions {
    display: flex;
    gap: 30px;
    align-items: center;
    border: none;
    padding: 0;
}

.partner-btn-email {
    text-decoration: none;
    color: var(--com-black) !important;
    background: transparent !important;
    font-weight: 400;
    font-size: 0.95rem;
    border: 1px solid var(--com-black);
    padding: 0 24px !important;
    height: 48px;
    /* Fixed height for consistency */
    display: inline-flex;
    align-items: center;
    border-radius: 0;
    transition: all 0.3s ease;
}

.partner-btn-email:hover {
    background: var(--com-black) !important;
    color: var(--com-white) !important;
}

.partner-btn-linkedin {
    background: #f4f4f4 !important;
    /* Neutral background */
    color: var(--com-black) !important;
    width: 48px !important;
    /* Match email button height */
    height: 48px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.partner-btn-linkedin:hover {
    background: #0077b5 !important;
    color: var(--com-white) !important;
}

.partner-btn-linkedin svg {
    width: 24px;
    height: 24px;
}

/* Final CTA Section (Home Style) */
.service-final-cta-section {
    padding: 100px 0;
    background: var(--com-black);
    color: var(--com-white);
}

.cta-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.cta-text {
    flex: 1;
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--com-white);
}

.cta-desc {
    font-size: 1.2rem;
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

.cta-action {
    flex-shrink: 0;
}

.btn-gold-outline {
    display: inline-block;
    padding: 14px 28px;
    border: 1px solid var(--com-gold);
    color: var(--com-gold);
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    transition: all 0.3s ease;
}

.btn-gold-outline.large {
    padding: 18px 40px;
    font-size: 1.05rem;
}

.btn-gold-outline:hover {
    background: var(--com-gold);
    color: var(--com-black);
}

/* Responsive */
@media (max-width: 992px) {
    .cta-flex-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .process-list {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .process-item:nth-child(even) {
        margin-top: 0;
    }

    .service-partner-footer .partner-card-inner {
        flex-direction: column;
        padding: 40px 30px;
        text-align: center;
        gap: 25px;
    }

    .service-partner-footer .partner-image-link {
        flex: 0 0 130px;
        margin: 0 auto;
    }

    .service-partner-footer .partner-image-container {
        width: 130px;
        height: 130px;
    }

    .service-partner-footer .partner-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 80px 0 60px;
        min-height: 300px;
    }

    .service-title {
        font-size: 2.5rem;
    }

    .service-lead {
        font-size: 1.1rem;
    }

    .process-num {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .entry-content h2 {
        font-size: 1.8rem;
    }
}



/* Industry Specific Tags */
.industry-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    justify-content: center;
}

.industry-tag-label {
    display: inline-block;
    background: #ffffff;
    color: #444;
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 16px;
    border-radius: 100px;
    /* Pill shape for modern look */
    border: 1px solid #e2e2e2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.industry-tag-label:hover {
    background: var(--com-black);
    color: var(--com-white);
    border-color: var(--com-black);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .industry-main-title {
        font-size: 2.2rem !important;
    }

    .industry-visual {
        margin-bottom: 25px !important;
    }
}

/* =============================================
   Industry Hero Premium (Home-like Style)
   ============================================= */
.industry-hero-premium {
    position: relative;
    height: 70vh;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    color: var(--com-white);
    margin-bottom: 0;
    overflow: hidden;
}

.industry-hero-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.2) 40%,
            rgba(0, 0, 0, 0.6) 70%,
            rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

.industry-hero-premium .container {
    position: relative;
    z-index: 2;
}

.industry-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin: 0;
    color: var(--com-white) !important;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    max-width: 1000px;
    font-weight: 400;
    text-align: left;
}

@media (max-width: 768px) {
    .industry-hero-premium {
        height: 60vh;
        min-height: 350px;
        padding-bottom: 40px;
    }

    .industry-hero-title {
        font-size: 2.5rem;
    }
}