/* === SEO LOKALNE & OGÓLNOPOLSKIE === */

.seo-local-section {
    position: relative;
    padding: 72px 0;
    overflow: hidden;
}

/* miękkie, ruchome tło */
.seo-local-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.12) 0, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(96, 165, 250, 0.10) 0, transparent 60%),
        linear-gradient(180deg, #f9fbff 0%, #eef5ff 40%, #f9fbff 100%);
    animation: seoLocalBgDrift 26s ease-in-out infinite alternate;
}

@keyframes seoLocalBgDrift {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-10px, -6px, 0); }
    100% { transform: translate3d(6px, 8px, 0); }
}

.seo-local-section .container {
    position: relative;
    z-index: 1;
}

/* toggle chips */
.seo-local-toggle {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 20px rgba(148, 163, 184, 0.28);
    backdrop-filter: blur(16px);
}

.seo-local-chip {
    border: 0;
    background: transparent;
    font-size: 0.9rem;
    padding: 7px 16px;
    border-radius: 999px;
    color: #64748b;
    cursor: pointer;
    transition:
        background-color 220ms ease,
        color 220ms ease,
        transform 180ms ease;
    white-space: nowrap;
}

.seo-local-chip:hover {
    transform: translateY(-1px);
}

.seo-local-chip.is-active {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #f9fafb;
}

/* karty lokalne / ogólnopolskie */
.seo-local-cards {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.seo-local-card {
    position: relative;
    border-radius: 18px;
    padding: 18px 18px 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(148, 163, 184, 0.18);
    overflow: hidden;
    isolation: isolate;
    opacity: 0;
    transform: translateY(18px);
    transition:
        transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 260ms ease-out,
        box-shadow 260ms ease-out;
}

.seo-local-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg,
        rgba(59, 130, 246, 0),
        rgba(59, 130, 246, 0.9),
        rgba(52, 211, 153, 0.9),
        rgba(59, 130, 246, 0.9),
        rgba(59, 130, 246, 0)
    );
    background-size: 210% 100%;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
}

/* aktywacja z JS */
.seo-local-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.seo-local-card.is-visible::before {
    opacity: 1;
    animation: seoLocalBorderFlow 2300ms linear infinite;
}

@keyframes seoLocalBorderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* karta aktualnie wybrana przez chip */
.seo-local-card.is-active {
    box-shadow:
        0 16px 40px rgba(37, 99, 235, 0.25),
        0 0 0 1px rgba(129, 140, 248, 0.5);
}

.seo-local-card.is-active:hover {
    transform: translateY(-3px);
}

/* listy */
.seo-list {
    list-style: none;
    padding-left: 0;
}

.seo-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    color: #475569;
}

.seo-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #2563eb;
}

/* karta strategii – prawa strona */
.seo-strategy-card {
    position: relative;
    border-radius: 26px;
    padding: 22px 26px 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 28px 65px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(148, 163, 184, 0.24);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(24px);
    transition:
        transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 260ms ease-out;
}

.seo-strategy-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.seo-strategy-card::after {
    content: "";
    position: absolute;
    inset: auto 14% -26px 14%;
    height: 42px;
    border-radius: 999px;
    background: radial-gradient(circle at 50% 0, rgba(15, 23, 42, 0.18), transparent 70%);
    opacity: 0.8;
    pointer-events: none;
}

.seo-strategy-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.seo-strategy-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 600;
}

/* kroki */
.seo-steps {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    counter-reset: seo-step;
}

.seo-steps li {
    position: relative;
    padding-left: 42px;
    margin-bottom: 10px;
    color: #475569;
}

.seo-steps li:last-child {
    margin-bottom: 0;
}

.seo-steps li::before {
    counter-increment: seo-step;
    content: counter(seo-step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.4);
}

/* responsywność */
@media (max-width: 991.98px) {
    .seo-local-section {
        padding: 56px 0;
    }
    .seo-strategy-card {
        margin-top: 6px;
    }
}

@media (max-width: 575.98px) {
    .seo-local-toggle {
        width: 100%;
        justify-content: space-between;
    }
    .seo-local-chip {
        flex: 1 1 auto;
        text-align: center;
        padding-inline: 10px;
    }
}
