/* ======================================================
   SERVICE DETAIL PAGES — Shared Template CSS
   Consistent with Avenoir homepage design system
   ====================================================== */

/* ── HERO SECTION ── */
.sd-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 140px 0 80px;
}

.sd-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 35%, #0f172a 65%, #0c1222 100%);
}

.sd-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}

/* Category accent strip at top */
.sd-hero__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2;
}

.sd-hero__accent--salesforce {
    background: linear-gradient(90deg, #0066cc, #2563eb);
}

.sd-hero__accent--agentforce {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.sd-hero__accent--digital {
    background: linear-gradient(90deg, #f97316, #ec4899);
}

.sd-hero__accent--tableau {
    background: linear-gradient(90deg, #e97627, #c72037);
}

.sd-hero__accent--mulesoft {
    background: linear-gradient(90deg, #0891b2, #06b6d4);
}

.sd-hero__accent--staffing {
    background: linear-gradient(90deg, #16a34a, #34d399);
}

.sd-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 0.4fr;
    gap: 60px;
    align-items: center;
}

/* Breadcrumb */
.sd-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 20px;
}

.sd-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.3s;
}

.sd-hero__breadcrumb a:hover {
    color: #60a5fa;
}

.sd-hero__breadcrumb svg {
    width: 14px;
    height: 14px;
    opacity: 0.4;
}

.sd-hero__breadcrumb span {
    color: rgba(255, 255, 255, 0.85);
}

/* Category badge */
.sd-hero__category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.sd-hero__category svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.sd-hero__title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.sd-hero__title-accent {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Category-specific accent colors */
.sd-hero--salesforce .sd-hero__title-accent {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
}

.sd-hero--agentforce .sd-hero__title-accent {
    background: linear-gradient(135deg, #a78bfa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
}

.sd-hero--digital .sd-hero__title-accent {
    background: linear-gradient(135deg, #fb923c, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
}

.sd-hero--tableau .sd-hero__title-accent {
    background: linear-gradient(135deg, #e97627, #c72037);
    -webkit-background-clip: text;
    background-clip: text;
}

.sd-hero--mulesoft .sd-hero__title-accent {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
}

.sd-hero--staffing .sd-hero__title-accent {
    background: linear-gradient(135deg, #4ade80, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
}

.sd-hero__desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 32px;
}

.sd-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.3);
}

.sd-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.4);
}

.sd-hero__cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.sd-hero__cta:hover svg {
    transform: translateX(3px);
}

/* Hero stats mini-bar */
.sd-hero__stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sd-hero__stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.sd-hero__stat-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Hero right side - decorative icon */
.sd-hero__icon-block {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-hero__icon-circle {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-hero__icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: sdRingSpin 20s linear infinite;
}

.sd-hero__icon-ring--2 {
    inset: -20px;
    border-style: dashed;
    animation-duration: 30s;
    animation-direction: reverse;
}

@keyframes sdRingSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.sd-hero__icon-main {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.15);
}

/* ======================================================
   OFFERINGS SECTION
   ====================================================== */
.sd-offerings {
    padding: 100px 0;
    background: var(--color-light, #f8fafc);
}

.sd-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.sd-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(0, 102, 204, 0.06);
    border: 1px solid rgba(0, 102, 204, 0.12);
    color: var(--color-primary, #0066cc);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.sd-section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--color-text-primary, #0f172a);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.2;
}

.sd-section-desc {
    font-size: 1.05rem;
    color: var(--color-text-secondary, #475569);
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 48px;
}

/* Offerings grid — 3 columns on desktop, 2 on tablet, 1 on mobile */
.sd-offerings__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sd-offering-card {
    position: relative;
    padding: 36px 28px;
    background: #fff;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    /* Stagger animation */
    opacity: 0;
    transform: translateY(20px);
}

.sd-offering-card.sd-visible {
    opacity: 1;
    transform: translateY(0);
}

.sd-offering-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--gradient-primary));
    opacity: 0;
    transition: opacity 0.3s;
}

.sd-offering-card:hover::before {
    opacity: 1;
}

.sd-offering-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.sd-offering-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 20px;
    background: var(--icon-bg, rgba(0, 102, 204, 0.06));
    color: var(--icon-color, #0066cc);
    transition: all 0.3s;
}

.sd-offering-card:hover .sd-offering-card__icon {
    transform: scale(1.08);
}

.sd-offering-card__icon svg {
    width: 24px;
    height: 24px;
}

.sd-offering-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-primary, #0f172a);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.sd-offering-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sd-offering-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.85rem;
    color: var(--color-text-secondary, #475569);
    line-height: 1.5;
    transition: all 0.25s;
}

.sd-offering-card__list li:hover {
    color: var(--color-text-primary, #0f172a);
    padding-left: 4px;
}

.sd-offering-card__list li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: var(--icon-color, #0066cc);
    margin-top: 7px;
    opacity: 0.5;
    transition: opacity 0.25s;
}

.sd-offering-card__list li:hover::before {
    opacity: 1;
}

/* ======================================================
   WHY CHOOSE US SECTION
   ====================================================== */
.sd-why {
    padding: 100px 0;
    background: #fff;
}

.sd-why__header {
    text-align: center;
    margin-bottom: 60px;
}

.sd-why__header .sd-section-desc {
    margin-left: auto;
    margin-right: auto;
}

.sd-why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sd-why-card {
    padding: 36px 28px;
    border-radius: 20px;
    background: var(--color-light, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Stagger animation */
    opacity: 0;
    transform: translateY(20px);
}

.sd-why-card.sd-visible {
    opacity: 1;
    transform: translateY(0);
}

.sd-why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    background: #fff;
    border-color: transparent;
}

.sd-why-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--icon-bg, rgba(0, 102, 204, 0.06));
    color: var(--icon-color, #0066cc);
    margin-bottom: 20px;
    transition: all 0.3s;
}

.sd-why-card:hover .sd-why-card__icon {
    transform: scale(1.1) rotate(5deg);
}

.sd-why-card__icon svg {
    width: 22px;
    height: 22px;
}

.sd-why-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary, #0f172a);
    margin-bottom: 10px;
}

.sd-why-card p {
    font-size: 0.88rem;
    color: var(--color-text-secondary, #475569);
    line-height: 1.65;
}

/* ======================================================
   PORTFOLIO SECTION
   ====================================================== */
.sd-portfolio {
    padding: 100px 0;
    background: var(--color-light, #f8fafc);
}

.sd-portfolio__header {
    text-align: center;
    margin-bottom: 60px;
}

.sd-portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sd-portfolio-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--color-border, #e2e8f0);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
}

.sd-portfolio-card.sd-visible {
    opacity: 1;
    transform: translateY(0);
}

.sd-portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.sd-portfolio-card__img {
    height: 180px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 2.5rem;
    font-weight: 800;
}

.sd-portfolio-card__body {
    padding: 28px;
}

.sd-portfolio-card__tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(0, 102, 204, 0.06);
    color: var(--color-primary, #0066cc);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.sd-portfolio-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary, #0f172a);
    margin-bottom: 8px;
    line-height: 1.4;
}

.sd-portfolio-card p {
    font-size: 0.85rem;
    color: var(--color-text-secondary, #475569);
    line-height: 1.6;
}

/* ======================================================
   FAQ SECTION
   ====================================================== */
.sd-faq {
    padding: 100px 0;
    background: #fff;
}

.sd-faq__header {
    text-align: center;
    margin-bottom: 60px;
}

.sd-faq__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sd-faq-item {
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.sd-faq-item:hover {
    border-color: rgba(0, 102, 204, 0.2);
}

.sd-faq-item.sd-faq-item--open {
    border-color: rgba(0, 102, 204, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.sd-faq-item__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 28px;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary, #0f172a);
    transition: background 0.3s;
}

.sd-faq-item__q:hover {
    background: rgba(0, 102, 204, 0.02);
}

.sd-faq-item__q-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--color-light, #f8fafc);
    color: var(--color-primary, #0066cc);
    font-size: 1.2rem;
    font-weight: 300;
    transition: all 0.3s;
}

.sd-faq-item--open .sd-faq-item__q-icon {
    transform: rotate(45deg);
    background: rgba(0, 102, 204, 0.08);
}

.sd-faq-item__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.sd-faq-item--open .sd-faq-item__a {
    max-height: 300px;
    padding: 0 28px 24px;
}

.sd-faq-item__a p {
    font-size: 0.9rem;
    color: var(--color-text-secondary, #475569);
    line-height: 1.7;
}

/* ======================================================
   CTA SECTION
   ====================================================== */
.sd-cta {
    padding: 80px 0 100px;
}

.sd-cta__box {
    position: relative;
    text-align: center;
    padding: 80px 60px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.sd-cta__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.sd-cta__badge {
    position: relative;
    display: inline-block;
    padding: 6px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.sd-cta__title {
    position: relative;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    line-height: 1.2;
}

.sd-cta__title span {
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sd-cta__desc {
    position: relative;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.sd-cta__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 100px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.3);
}

.sd-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.4);
}

.sd-cta__btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.sd-cta__btn:hover svg {
    transform: translateX(3px);
}

/* ======================================================
   SCROLL REVEAL ANIMATION (JS-driven)
   ====================================================== */
.sd-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.sd-reveal.sd-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1024px) {
    .sd-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sd-hero__icon-block {
        display: none;
    }

    .sd-hero__desc {
        margin-left: auto;
        margin-right: auto;
    }

    .sd-hero__stats {
        justify-content: center;
    }

    .sd-hero__breadcrumb {
        justify-content: center;
    }

    .sd-offerings__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sd-why__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sd-portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sd-hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .sd-hero__stats {
        flex-direction: column;
        gap: 16px;
    }

    .sd-offerings {
        padding: 70px 0;
    }

    .sd-why {
        padding: 70px 0;
    }

    .sd-portfolio {
        padding: 70px 0;
    }

    .sd-faq {
        padding: 70px 0;
    }

    .sd-cta__box {
        padding: 50px 24px;
    }
}

@media (max-width: 640px) {
    .sd-offerings__grid {
        grid-template-columns: 1fr;
    }

    .sd-why__grid {
        grid-template-columns: 1fr;
    }

    .sd-portfolio__grid {
        grid-template-columns: 1fr;
    }
}