/* Local Expertise Tabs — white (Local SEO variant of service-expertise-tabs) */
.local-expertise-tabs {
    padding: var(--section-padding-mobile);
    background: var(--color-bg);
    width: 100%;
    position: relative;
}
@media (min-width: 992px) {
    .local-expertise-tabs { padding: var(--section-padding); }
}

.local-expertise-tabs__headline {
    font-size: var(--font-size-h2);
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -0.02em;
    margin: 0 0 32px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.15;
}

/* Tab nav */
.local-expertise-tabs__nav {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
}
.local-expertise-tabs__tab {
    flex: 1;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: var(--font-primary);
    user-select: none;
}
.local-expertise-tabs__tab:hover { color: var(--color-secondary); }
.local-expertise-tabs__tab.is-active {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

/* Panels */
.local-expertise-tabs__panel {
    display: none;
    background: var(--color-bg-muted);
    border-radius: 0 0 12px 12px;
    padding: 40px;
    gap: 72px;
    align-items: flex-start;
}
.local-expertise-tabs__panel.is-active { display: flex; flex-wrap: wrap; }

.local-expertise-tabs__panel-left { flex: 1; min-width: 200px; padding-right: 8px; }
.local-expertise-tabs__panel-right { flex: 0 0 320px; min-width: 200px; }

.local-expertise-tabs__panel-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0 0 16px;
    line-height: 1.35;
}
.local-expertise-tabs__panel-body {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    line-height: 1.75;
    margin: 0 0 14px;
}

@media (max-width: 767px) {
    .local-expertise-tabs__panel { padding: 24px 20px; flex-direction: column; }
    .local-expertise-tabs__panel-right { flex: unset; width: 100%; }
    .local-expertise-tabs__nav { flex-direction: column; }
    .local-expertise-tabs__tab { text-align: left; border-bottom: 1px solid var(--color-border); border-left: 3px solid transparent; }
    .local-expertise-tabs__tab.is-active { border-left-color: var(--color-secondary); border-bottom-color: var(--color-border); }
}

/* ── Animation wrapper (all three panels) ──────────────────────── */
.local-expertise-tabs__anim-wrap {
    width: 100%;
    aspect-ratio: 320 / 260;
    background: linear-gradient(135deg, var(--color-dark) 0%, #1a3a6c 100%);
    border-radius: 10px;
    padding: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 36px rgba(15,31,61,.2);
}

/* ══════════════════════════════════════════════════════════════════
   TEAM ANIMATION — "Time-Tested Team" orbit graphic
   ══════════════════════════════════════════════════════════════════ */
.team-anim {
    width: 100%;
    height: 100%;
    background: #0e0c2e;
    border-radius: 8px;
    border: 0.5px solid rgba(46,196,182,.25);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-primary, system-ui, sans-serif);
    position: relative;
    overflow: hidden;
}
.team-anim__head { display: flex; align-items: center; justify-content: space-between; }
.team-anim__title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.9); display: flex; align-items: center; gap: 7px; }
.team-anim__title-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(46,196,182,.2);
    animation: teamPulse 2s ease-in-out infinite;
}
@keyframes teamPulse {
    0%,100% { box-shadow: 0 0 0 4px rgba(46,196,182,.2); }
    50%     { box-shadow: 0 0 0 8px rgba(46,196,182,0); }
}
.team-anim__sub { font-size: 9px; color: rgba(255,255,255,.4); letter-spacing: .03em; }

/* Stage */
.team-anim__stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; }

/* Orbit — central hub + concentric rings + 6 satellite nodes */
.team-anim__orbit {
    position: relative;
    width: 168px;
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG rings (rotate slowly in opposite directions) */
.team-anim__rings {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.team-anim__ring {
    fill: none;
    stroke-width: 1;
    opacity: 0;
    transform-origin: center;
    transition: opacity .55s ease;
}
.team-anim__ring.is-in { opacity: 1; }
.team-anim__ring--outer {
    stroke: rgba(46,196,182,.3);
    stroke-dasharray: 4 6;
    animation: teamRingSpin 40s linear infinite;
}
.team-anim__ring--mid {
    stroke: rgba(46,196,182,.5);
    stroke-dasharray: 2 5;
    animation: teamRingSpinReverse 28s linear infinite;
}
@keyframes teamRingSpin       { to { transform: rotate(360deg); } }
@keyframes teamRingSpinReverse{ to { transform: rotate(-360deg); } }

/* Central hub */
.team-anim__hub {
    position: relative;
    z-index: 2;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(46,196,182,.95) 0%, rgba(46,196,182,.65) 60%, rgba(46,196,182,.25) 100%);
    box-shadow:
        0 0 0 4px rgba(46,196,182,.12),
        0 0 22px rgba(46,196,182,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0e0c2e;
    opacity: 0;
    transform: scale(.5);
    transition: opacity .45s ease, transform .55s cubic-bezier(.22,1,.36,1);
    animation: teamHubBreathe 3.6s ease-in-out infinite;
    animation-play-state: paused;
}
.team-anim__hub.is-in {
    opacity: 1;
    transform: scale(1);
    animation-play-state: running;
}
.team-anim__hub-glyph svg {
    width: 26px;
    height: 26px;
    display: block;
}
@keyframes teamHubBreathe {
    0%,100% { box-shadow: 0 0 0 4px rgba(46,196,182,.12), 0 0 22px rgba(46,196,182,.55); }
    50%     { box-shadow: 0 0 0 9px rgba(46,196,182,.04), 0 0 30px rgba(46,196,182,.75); }
}

/* Satellite nodes — 6 around the hub at 60° increments */
.team-anim__node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1f8f86 100%);
    box-shadow: 0 0 0 3px rgba(46,196,182,.18), 0 0 10px rgba(46,196,182,.45);
    margin: -7px 0 0 -7px;            /* center the dot */
    opacity: 0;
    transform: translate(0, 0) scale(.4);
    transition:
        opacity   .45s ease,
        transform .55s cubic-bezier(.22,1,.36,1);
    z-index: 1;
}
/* Six positions on a circle of r=70 around hub center */
.team-anim__node--n1.is-in { opacity: 1; transform: translate(  70px,    0px) scale(1); }
.team-anim__node--n2.is-in { opacity: 1; transform: translate(  35px,  -60px) scale(1); }
.team-anim__node--n3.is-in { opacity: 1; transform: translate( -35px,  -60px) scale(1); }
.team-anim__node--n4.is-in { opacity: 1; transform: translate( -70px,    0px) scale(1); }
.team-anim__node--n5.is-in { opacity: 1; transform: translate( -35px,   60px) scale(1); }
.team-anim__node--n6.is-in { opacity: 1; transform: translate(  35px,   60px) scale(1); }

/* Footer — dual count-up stats */
.team-anim__foot {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 7px 10px;
    border-radius: 7px;
    background: linear-gradient(90deg, rgba(46,196,182,.12) 0%, rgba(232,75,26,.08) 100%);
    border: 1px solid rgba(46,196,182,.2);
    gap: 10px;
}
.team-anim__foot-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    flex: 1;
    text-align: center;
}
.team-anim__foot-label {
    font-size: 9px;
    color: rgba(255,255,255,.7);
    font-weight: 600;
    letter-spacing: .02em;
}
.team-anim__foot-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-secondary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.team-anim__foot-divider {
    width: 1px;
    height: 22px;
    background: linear-gradient(to bottom, transparent, rgba(46,196,182,.4), transparent);
}

/* ══════════════════════════════════════════════════════════════════
   TECH ANIMATION — Universal "Tech Stack" layered graphic
   ══════════════════════════════════════════════════════════════════ */
.tech-anim {
    width: 100%;
    height: 100%;
    background: #0e0c2e;
    border-radius: 8px;
    border: 0.5px solid rgba(46,196,182,.25);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-primary, system-ui, sans-serif);
    position: relative;
    overflow: hidden;
}
.tech-anim__head { display: flex; align-items: center; justify-content: space-between; }
.tech-anim__title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.9); display: flex; align-items: center; gap: 7px; }
.tech-anim__title-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-secondary); box-shadow: 0 0 0 4px rgba(46,196,182,.2); animation: techPulse 2s ease-in-out infinite; }
@keyframes techPulse { 0%,100% { box-shadow: 0 0 0 4px rgba(46,196,182,.2); } 50% { box-shadow: 0 0 0 8px rgba(46,196,182,0); } }
.tech-anim__sub { font-size: 9px; color: rgba(255,255,255,.4); letter-spacing: .03em; }

.tech-anim__stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; }
.tech-anim__stack { width: 100%; display: flex; flex-direction: column; gap: 2px; justify-content: center; position: relative; }

.tech-anim__slab {
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);
    border: 1px solid rgba(46,196,182,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1);
    overflow: hidden;
}
.tech-anim__slab.is-in { opacity: 1; transform: translateY(0); }
.tech-anim__slab--core {
    background: linear-gradient(180deg, rgba(46,196,182,.18) 0%, rgba(46,196,182,.08) 100%);
    border-color: rgba(46,196,182,.4);
    box-shadow: 0 0 16px rgba(46,196,182,.2);
}

.tech-anim__slab-row { width: 92%; display: flex; align-items: center; }
.tech-anim__slab-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--color-secondary);
    opacity: .7;
    flex-shrink: 0;
}
.tech-anim__slab-seg {
    flex: 1;
    height: 1px;
    background: rgba(46,196,182,.3);
    margin: 0 3px;
}
.tech-anim__slab--core .tech-anim__slab-dot {
    opacity: 1;
    box-shadow: 0 0 5px rgba(46,196,182,.6);
}
.tech-anim__slab--core .tech-anim__slab-dot--big { width: 5px; height: 5px; }
.tech-anim__slab--core .tech-anim__slab-seg { background: rgba(46,196,182,.55); }

.tech-anim__slab-sweep {
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(46,196,182,.18) 50%, transparent 100%);
    animation: techSweep 3.2s ease-in-out infinite;
    pointer-events: none;
}
.tech-anim__slab:nth-child(1) .tech-anim__slab-sweep { animation-delay: 0s; }
.tech-anim__slab:nth-child(3) .tech-anim__slab-sweep { animation-delay: .4s; }
.tech-anim__slab:nth-child(5) .tech-anim__slab-sweep { animation-delay: .8s; }
.tech-anim__slab:nth-child(7) .tech-anim__slab-sweep { animation-delay: 1.2s; }
@keyframes techSweep {
    0% { left: -40%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}

.tech-anim__connector {
    height: 7px;
    position: relative;
    margin: 0 auto;
    width: 1px;
    background: linear-gradient(to bottom, rgba(46,196,182,.15) 0%, rgba(46,196,182,.35) 100%);
    opacity: 0;
    transition: opacity .4s ease;
}
.tech-anim__connector.is-in { opacity: 1; }
.tech-anim__connector::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--color-secondary);
    box-shadow: 0 0 5px var(--color-secondary);
    animation: techDrop 1.6s linear infinite;
    opacity: 0;
}
.tech-anim__connector:nth-of-type(2)::after { animation-delay: 0s; }
.tech-anim__connector:nth-of-type(4)::after { animation-delay: .4s; }
.tech-anim__connector:nth-of-type(6)::after { animation-delay: .8s; }
@keyframes techDrop {
    0% { top: -2px; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 9px; opacity: 0; }
}

.tech-anim__foot { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 7px; background: linear-gradient(90deg, rgba(46,196,182,.12) 0%, rgba(232,75,26,.08) 100%); border: 1px solid rgba(46,196,182,.2); }
.tech-anim__foot-label { font-size: 9px; color: rgba(255,255,255,.7); font-weight: 600; }
.tech-anim__foot-value { font-size: 15px; font-weight: 800; color: var(--color-secondary); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ══════════════════════════════════════════════════════════════════
   STRAT ANIMATION — Target + arrows + outcome badges
   ══════════════════════════════════════════════════════════════════ */
.strat-anim {
    width: 100%;
    height: 100%;
    background: #0e0c2e;
    border-radius: 8px;
    border: 0.5px solid rgba(46,196,182,.25);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-primary, system-ui, sans-serif);
    position: relative;
    overflow: hidden;
}
.strat-anim__head { display: flex; align-items: center; justify-content: space-between; }
.strat-anim__title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.9); display: flex; align-items: center; gap: 7px; }
.strat-anim__title-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-secondary); box-shadow: 0 0 0 4px rgba(46,196,182,.2); animation: stratPulse 2s ease-in-out infinite; }
@keyframes stratPulse { 0%,100% { box-shadow: 0 0 0 4px rgba(46,196,182,.2); } 50% { box-shadow: 0 0 0 8px rgba(46,196,182,0); } }
.strat-anim__sub { font-size: 9px; color: rgba(255,255,255,.4); letter-spacing: .03em; }

.strat-anim__stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; }
.strat-anim__target { position: relative; width: 112px; height: 112px; }
.strat-anim__target-svg { width: 100%; height: 100%; }
.strat-anim__ring { fill: none; stroke-width: 1.5; opacity: 0; transition: opacity .5s ease; }
.strat-anim__ring.is-in { opacity: 1; }
.strat-anim__ring--r1 { stroke: rgba(46,196,182,.25); }
.strat-anim__ring--r2 { stroke: rgba(46,196,182,.45); }
.strat-anim__ring--r3 { stroke: rgba(46,196,182,.7); }
.strat-anim__bullseye { fill: var(--color-primary); opacity: 0; transform-origin: center; transform: scale(.2); transition: opacity .35s ease, transform .35s cubic-bezier(.22,1,.36,1); }
.strat-anim__bullseye.is-in { opacity: 1; transform: scale(1); }
.strat-anim__bullseye-pulse { fill: none; stroke: var(--color-primary); stroke-width: 2; opacity: 0; }
.strat-anim__bullseye-pulse.is-firing { animation: stratImpact .7s ease-out; }
@keyframes stratImpact { 0% { opacity: .9; r: 8; stroke-width: 3; } 100% { opacity: 0; r: 28; stroke-width: 0; } }

.strat-anim__arrow { position: absolute; top: 50%; left: 50%; width: 38px; height: 3px; background: linear-gradient(90deg, rgba(46,196,182,0) 0%, rgba(46,196,182,.4) 30%, var(--color-secondary) 100%); transform-origin: 100% 50%; opacity: 0; z-index: 2; border-radius: 2px; }
.strat-anim__arrow::after { content: ''; position: absolute; right: -3px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 7px solid var(--color-secondary); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.strat-anim__arrow.is-firing { animation: stratArrowFly .55s cubic-bezier(.3,.7,.4,1) forwards; }
@keyframes stratArrowFly { 0% { opacity: 0; transform: translate(calc(-100% + var(--end-x)), -50%) translate(var(--dx-from), var(--dy-from)) rotate(var(--angle)); } 15% { opacity: 1; } 100% { opacity: 1; transform: translate(calc(-100% + var(--end-x)), -50%) rotate(var(--angle)); } }

.strat-anim__outcomes { display: flex; gap: 5px; }
.strat-anim__outcome { flex: 1; padding: 6px 4px; border-radius: 6px; background: rgba(255,255,255,.05); border: 1px solid rgba(46,196,182,.15); text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.strat-anim__outcome.is-in { opacity: 1; transform: translateY(0); }
.strat-anim__outcome-label { font-size: 7.5px; font-weight: 700; color: rgba(255,255,255,.55); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; }
.strat-anim__outcome-value { font-size: 13px; font-weight: 800; color: var(--color-secondary); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .team-anim *,
    .tech-anim *,
    .strat-anim * { animation: none !important; transition: none !important; }
    .team-anim__ring,
    .team-anim__hub,
    .team-anim__node,
    .tech-anim__slab,
    .tech-anim__connector { opacity: 1; transform: none; }
    .team-anim__node--n1 { transform: translate(  70px,    0px); }
    .team-anim__node--n2 { transform: translate(  35px,  -60px); }
    .team-anim__node--n3 { transform: translate( -35px,  -60px); }
    .team-anim__node--n4 { transform: translate( -70px,    0px); }
    .team-anim__node--n5 { transform: translate( -35px,   60px); }
    .team-anim__node--n6 { transform: translate(  35px,   60px); }
    .strat-anim__ring,
    .strat-anim__bullseye,
    .strat-anim__outcome { opacity: 1; transform: none; }
}
