/* ==========================================================================
   SharePoint & Power Platform Services Page
   Scoped under .sp-page to avoid collisions with global site styles
   ========================================================================== */

.sp-page {
    --sp-navy: #1E2761;
    --sp-navy2: #2B3A78;
    --sp-ink: #1A1F36;
    --sp-grey: #5A6377;
    --sp-accent: #3E7BFA;
    --sp-ice: #EAF0FF;
    --sp-light: #F4F6FC;
    --sp-line: #E3E8F4;
    color: var(--sp-ink);
}

.sp-page section {
    padding: 70px 0;
}

.sp-page .sp-pagehead {
    background: #fff;
    padding: 60px 0 50px;
}

.sp-page .sp-pagehead h1 {
    color: var(--sp-navy);
    font-weight: 800;
    font-size: 2.5rem;
    margin: 14px 0 18px;
    /*max-width: 780px;*/
}

.sp-page .sp-pagehead p {
    color: var(--sp-grey);
    font-size: 1.1rem;
    max-width: 98%;
    margin-bottom: 0;
}

.sp-page .sp-pagehead-btns {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.sp-page .sp-btn-outline {
    background: transparent;
    color: var(--sp-navy);
    border: 1.5px solid var(--sp-navy);
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.sp-page .sp-btn-outline:hover {
    background: var(--sp-ice);
    color: var(--sp-navy);
}

.sp-page .sp-alt {
    background: var(--sp-light);
}

.sp-page .sp-eyebrow {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sp-accent);
    display: block;
    margin-bottom: 10px;
}

.sp-page h2 {
    color: var(--sp-navy);
    font-weight: 700;
}

.sp-page .sp-section-head {
    max-width: 98%;
    margin-bottom: 38px;
}

.sp-page .sp-section-head p {
    color: var(--sp-grey);
    font-size: 1.05rem;
}

/* Buttons */
.sp-page .sp-btn-solid {
    background: var(--sp-accent);
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.sp-page .sp-btn-solid:hover {
    background: var(--sp-navy2);
    color: #fff;
}

.sp-page .sp-btn-light {
    background: #fff;
    color: var(--sp-navy);
    border: none;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.sp-page .sp-btn-light:hover {
    background: var(--sp-ice);
    color: var(--sp-navy);
}

/* Overview */
.sp-page .sp-overview p {
    color: var(--sp-grey);
    font-size: 1.05rem;
    max-width: 98%;
}

/* Service cards */
.sp-page .sp-card {
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    padding: 28px;
    height: 100%;
    box-shadow: 0 6px 22px rgba(30, 39, 97, .05);
    transition: transform .15s ease, box-shadow .15s ease;
}

.sp-page .sp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(30, 39, 97, .12);
}

.sp-page .sp-card .sp-ic {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: var(--sp-ice);
    color: var(--sp-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.sp-page .sp-card h3 {
    font-size: 1.15rem;
    color: var(--sp-navy);
    margin-bottom: 8px;
    font-weight: 700;
}

.sp-page .sp-card p {
    color: var(--sp-grey);
    font-size: .96rem;
    margin-bottom: 0;
}

/* Platform tiles */
.sp-page .sp-ptile {
    text-align: center;
    margin-bottom: 20px;
}

.sp-page .sp-ptile svg {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 12px 26px rgba(30, 39, 97, .18);
    transition: transform .15s ease;
}

.sp-page .sp-ptile:hover svg {
    transform: translateY(-4px);
}

.sp-page .sp-ptile h3 {
    font-size: 1rem;
    color: var(--sp-navy);
    margin: 16px 0 5px;
    font-weight: 700;
}

.sp-page .sp-ptile p {
    font-size: .85rem;
    color: var(--sp-grey);
    margin-bottom: 0;
}

/* Feature list with checkmarks */
.sp-page .sp-feature-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.sp-page .sp-feature-list li {
    position: relative;
    padding: 7px 0 7px 30px;
    color: var(--sp-grey);
    font-size: .98rem;
}

.sp-page .sp-feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 7px;
    color: var(--sp-accent);
    font-weight: 800;
}

/* Dark stat panel */
.sp-page .sp-panel {
    background: var(--sp-navy);
    border-radius: 16px;
    padding: 36px;
    color: #fff;
    height: 100%;
}

.sp-page .sp-panel h3 {
    color: #fff;
    margin-bottom: 16px;
    font-weight: 700;
}

.sp-page .sp-panel .sp-stat {
    display: flex;
    gap: 16px;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.sp-page .sp-panel .sp-stat:last-child {
    border-bottom: none;
}

.sp-page .sp-panel .sp-big {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    min-width: 110px;
}

.sp-page .sp-panel .sp-lbl {
    color: #C9D6FB;
    font-size: .92rem;
}

/* Build panel (Apps / Flows / Insights) */
.sp-page .sp-build-panel {
    background: var(--sp-navy);
    border-radius: 16px;
    padding: 36px;
    color: #fff;
    height: 100%;
}

.sp-page .sp-build-panel .sp-build-eyebrow {
    color: #AFC2FF;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: block;
}

.sp-page .sp-build-panel .sp-build-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.sp-page .sp-build-panel .sp-build-item:last-child {
    border-bottom: none;
}

.sp-page .sp-build-panel .sp-build-item h4 {
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.sp-page .sp-build-panel .sp-build-item p {
    color: #C9D6FB;
    font-size: .92rem;
    margin-bottom: 0;
}

/* Chips */
.sp-page .sp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.sp-page .sp-chip {
    background: #fff;
    border: 1px solid var(--sp-line);
    color: var(--sp-navy);
    font-weight: 600;
    font-size: .9rem;
    padding: 9px 16px;
    border-radius: 30px;
}

/* Why-us cards */
.sp-page .sp-why-card {
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: 14px;
    padding: 28px;
    height: 100%;
    box-shadow: 0 6px 22px rgba(30, 39, 97, .05);
    transition: transform .15s ease, box-shadow .15s ease;
}

.sp-page .sp-why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(30, 39, 97, .12);
}

.sp-page .sp-why-card h3 {
    font-size: 1.1rem;
    color: var(--sp-navy);
    font-weight: 700;
    margin-bottom: 8px;
}

.sp-page .sp-why-card p {
    color: var(--sp-grey);
    font-size: .95rem;
    margin-bottom: 0;
}

/* Process steps */
.sp-page .sp-step {
    padding: 24px 18px;
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: 12px;
    height: 100%;
}

.sp-page .sp-step .sp-step-n {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--sp-navy);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.sp-page .sp-step h3 {
    font-size: 1rem;
    color: var(--sp-navy);
    font-weight: 700;
    margin-bottom: 5px;
}

.sp-page .sp-step p {
    font-size: .85rem;
    color: var(--sp-grey);
    margin-bottom: 0;
}

/* CTA */
.sp-page .sp-cta {
    background: var(--sp-navy);
    color: #fff;
    border-radius: 18px;
    padding: 56px 44px;
    text-align: center;
}

.sp-page .sp-cta h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.sp-page .sp-cta p {
    color: #D7E0FB;
    max-width: 580px;
    margin: 0 auto 26px;
    font-size: 1.05rem;
}

/* FAQ */
.sp-page .sp-faq .accordion-item {
    border: 1px solid var(--sp-line);
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.sp-page .sp-faq .accordion-button {
    font-weight: 600;
    color: var(--sp-navy);
    font-size: 1.02rem;
    box-shadow: none;
}

.sp-page .sp-faq .accordion-button:not(.collapsed) {
    background: var(--sp-ice);
    color: var(--sp-navy);
}

.sp-page .sp-faq .accordion-button:focus {
    box-shadow: none;
    border-color: var(--sp-line);
}

.sp-page .sp-faq .accordion-body {
    color: var(--sp-grey);
    font-size: .95rem;
}

@media (max-width: 991px) {
    .sp-page .sp-ptile svg {
        max-width: 100px;
    }
}

@media (max-width: 767px) {
    .sp-page section {
        padding: 50px 0;
    }

    .sp-page .sp-cta {
        padding: 40px 24px;
    }
}