/* Services Page */

/* Hero */
.services-hero {
    background: #fff;
    /* top padding clears the fixed navbar */
    padding: clamp(7rem, 12vw, 9rem) 1rem 2.5rem;
    border-bottom: 3px solid var(--primary);
}

.services-hero nav.breadcrumb {
    margin-bottom: 1.5rem;
}

.services-hero .cs-container {
    max-width: 80rem;
    margin: 0 auto;
    display: block;
    text-align: left;
}

.services-hero-topper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.services-hero-topper .accent-line {
    width: 24px;
    height: 2px;
    background: var(--primary);
    flex-shrink: 0;
}

.services-hero-topper span {
    font-size: var(--topperFontSize);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.services-hero h1 {
    font-size: var(--headerFontSize);
    font-weight: 300;
    color: var(--headerColor);
    line-height: 1.3;
    margin: 0 0 0.75rem;
}

.services-hero p {
    font-size: 1rem;
    color: var(--bodyTextColorLight);
    line-height: 1.6;
    max-width: 38rem;
    margin: 0;
}

/* Service Sections */
.service-section {
    padding: 3rem 1rem;
}

.service-section {
    background: #fff;
}

.service-section.even {
    background: #f7f7f7;
}

.service-section .cs-container {
    max-width: 80rem;
    margin: 0 auto;
    display: block;
    text-align: left;
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-section .service-icon {
    background: #fff3ef;
}

.service-section.even .service-icon {
    background: #fff;
    border: 1px solid #eee;
}

.service-header h2 {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--headerColor);
    margin: 0 0 0.375rem;
    text-transform: none;
}

.service-header p {
    font-size: 0.9375rem;
    color: var(--bodyTextColorLight);
    line-height: 1.5;
    margin: 0;
}

/* Mini-cards grid */
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-left: 4.5rem;
    width: calc(100% - 4.5rem);
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #eee;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-section .service-card {
    background: #f9f9f9;
}

.service-section.even .service-card {
    background: #fff;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 106, 62, 0.08);
}

.service-card-icon {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.service-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--headerColor);
    margin: 0;
    text-transform: none;
}

.service-card p {
    font-size: 0.8125rem;
    color: #888;
    line-height: 1.4;
    margin: 0;
}

/* Single wide card variant */
.service-cards.single {
    grid-template-columns: 1fr;
    max-width: 36rem;
}

.service-cards.single .service-card {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.service-cards.single .service-card-icon {
    margin-bottom: 0;
}

/* Why Section — dark band */
.why-section {
    background: #1a1a1a;
    padding: 3.5rem 1rem;
}

.why-section .cs-container {
    max-width: 80rem;
    margin: 0 auto;
    display: block;
    text-align: left;
}

.why-section-topper {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1.5rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem 0.5rem;
    position: relative;
}

.stat-item:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 50%;
    width: 1px;
    background: #333;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.625rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Industries */
.industries {
    border-top: 1px solid #333;
    padding-top: 1.75rem;
    text-align: center;
}

.industries-title {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.industries-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.industry-tag {
    background: #2a2a2a;
    color: #ccc;
    font-size: 0.6875rem;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    border: 1px solid #333;
}

.why-cta {
    text-align: center;
    margin-top: 2.25rem;
}

/* Content blocks — for sub-pages with richer content */
.content-block {
    padding: 3rem 1rem;
}

.content-block:nth-child(odd) {
    background: #fff;
}

.content-block:nth-child(even) {
    background: #f7f7f7;
}

.content-block .cs-container {
    max-width: 80rem;
    margin: 0 auto;
    display: block;
    text-align: left;
}

.content-block h2 {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--headerColor);
    margin: 0 0 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content-block h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--headerColor);
    margin: 0 0 0.5rem;
    text-transform: none;
}

.content-block p {
    font-size: 0.9375rem;
    color: var(--bodyTextColorLight);
    line-height: 1.6;
    margin: 0 0 1rem;
    max-width: 48rem;
}

.content-block ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.content-block li {
    font-size: 0.9375rem;
    color: var(--bodyTextColorLight);
    line-height: 1.6;
    margin-bottom: 0.375rem;
}

.content-block li strong {
    color: var(--headerColor);
    font-weight: 500;
}

/* Card grid inside content blocks */
.content-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.content-card {
    padding: 1.25rem;
    border-radius: 6px;
    border: 1px solid #eee;
}

.content-block:nth-child(odd) .content-card {
    background: #f9f9f9;
}

.content-block:nth-child(even) .content-card {
    background: #fff;
}

.content-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.content-card h3 svg {
    color: var(--primary);
    flex-shrink: 0;
}

.content-card p {
    font-size: 0.8125rem;
    color: #666;
    margin: 0 0 0.5rem;
}

.content-card-subtitle {
    font-size: 0.75rem;
    color: #999;
    margin: 0 0 0.5rem;
}

.content-card ul {
    padding-left: 1rem;
    margin: 0;
}

.content-card li {
    font-size: 0.8125rem;
    color: #666;
    margin-bottom: 0.25rem;
}

/* 2-column variant */
.content-cards.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 4-column variant */
.content-cards.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* CTA section */
.cta-section {
    /*background: #1a1a1a;*/
    background: #000;
    padding: 3rem 1rem;
    text-align: center;
}

.cta-section .cs-container {
    max-width: 80rem;
    margin: 0 auto;
    display: block;
    text-align: center;
}

.cta-section p {
    color: #999;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 auto 1.5rem;
    max-width: 32rem;
}

.cta-section h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0 0 0.75rem;
    text-transform: none;
}

/* Responsive */
@media (max-width: 992px) {
    .content-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-cards.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-block {
        padding: 2rem 1rem;
    }

    .content-cards,
    .content-cards.cols-2,
    .content-cards.cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-item:nth-child(4)::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 6rem 1rem 2rem;
    }

    .service-section {
        padding: 2rem 1rem;
    }

    .service-cards {
        grid-template-columns: 1fr;
        margin-left: 0;
        width: 100%;
    }

    .service-header {
        flex-direction: column;
        gap: 1rem;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item::before {
        display: none;
    }

    .stat-item {
        border-bottom: 1px solid #333;
        padding-bottom: 1rem;
    }

    .stat-item:last-child,
    .stat-item:nth-last-child(2):nth-child(odd) {
        border-bottom: none;
    }
}
