/* =========================================
   SERVICES PAGE STYLES
   ========================================= */

/* Page Foundation */
.service-page {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--td-black, #1A1A1A);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Section Spacing */
.service-page section {
    padding: clamp(56px, 8vw, 96px) 0;
}

/* Section Headings - OVERRIDE components.css flex layout */
.section-heading {
    display: block !important;
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--td-black, #1A1A1A);
    margin: 0 auto 48px;
    position: relative;
    width: 100%;
    gap: 0 !important;
}

.section-heading::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background-color: var(--td-yellow, #FFC000);
    margin: 0 auto 16px;
}

/* =========================================
   INTRODUCTORY DESCRIPTION
   ========================================= */
.service-intro {
    background-color: var(--td-ice, #E8F6FA);
    text-align: center;
    padding: clamp(48px, 6vw, 72px) 0;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--td-black, #1A1A1A);
}

/* =========================================
   SERVICES GRID (6 Cards)
   ========================================= */
.services-section {
    background-color: var(--td-white, #FFFFFF);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    margin-inline: auto;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(11, 42, 91, 0.08);
    border-top: 3px solid var(--td-yellow, #FFC000);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(11, 42, 91, 0.14);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(20, 67, 138, 0.08);
    color: var(--td-navy, #14438A);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--td-navy, #14438A);
    margin: 0;
    line-height: 1.3;
}

.card-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--td-grey, #6B6E72);
    margin: 0;
    flex-grow: 1;
}

/* =========================================
   ENGAGEMENT MODELS SECTION
   ========================================= */
.engagement-models-section {
    background-color: var(--td-ice, #E8F6FA);
    padding: clamp(56px, 8vw, 96px) 0;
    position: relative;
    z-index: 1;
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    margin-inline: auto;
    position: relative;
}

.engagement-grid .card-dark {
    height: 100%;
    box-sizing: border-box;
}

/* =========================================
   INDUSTRIES WE SERVE SECTION
   ========================================= */
.industries-section {
    background-color: var(--td-white, #FFFFFF);
    padding: clamp(56px, 8vw, 96px) 0;
    position: relative;
    z-index: 1;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    width: 100%;
    margin-inline: auto;
    position: relative;
}

.industries-grid .card-dark {
    height: 100%;
    box-sizing: border-box;
}

/* =========================================
   FINAL CTA
   ========================================= */
.final-cta {
    background: var(--grad-hero);
    color: var(--td-white, #FFFFFF);
    text-align: center;
    padding: clamp(56px, 8vw, 96px) 0;
}

.final-cta h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    margin: 0 auto 32px;
    max-width: 800px;
    color: #fff;
}

.final-cta .btn-primary {
    background-color: var(--td-yellow, #FFC000);
    color: var(--td-black, #1A1A1A);
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.final-cta .btn-primary:hover {
    background-color: var(--td-yellow-dark, #F5A800);
    transform: translateY(-2px);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* Tablet: 992px and below */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

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

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

/* Mobile: 768px and below */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .service-card {
        padding: 32px 24px;
    }

    .engagement-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-inline: auto;
    }

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

/* Small Mobile: 480px and below */
@media (max-width: 480px) {
    .industries-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-inline: auto;
    }

    .section-heading {
        margin-bottom: 32px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .final-cta .btn-primary {
        transition-duration: 0.01ms !important;
    }
    .service-card:hover {
        transform: none !important;
    }
}