/* ==========================================================================
   LINKFIRST / SEO PAGE
   /internet-marketing/seo.css
   ========================================================================== */

.lf-seo-page {
    position: relative;
    overflow: hidden;
}

.lf-seo-page::before {
    content: "";
    position: absolute;
    top: 4%;
    right: -18vw;
    width: 44vw;
    min-width: 360px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.075), transparent 66%);
    pointer-events: none;
}

.lf-seo-page::after {
    content: "";
    position: absolute;
    left: -18vw;
    top: 32%;
    width: 44vw;
    min-width: 360px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 16, 16, 0.045), transparent 66%);
    pointer-events: none;
}

.lf-seo-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 3vw, 48px);
    padding-right: clamp(16px, 3vw, 48px);
    box-sizing: border-box;
}

.lf-section-head {
    max-width: 860px;
    margin-bottom: clamp(28px, 4vw, 52px);
}

.lf-section-head h2 {
    max-width: 820px;
    margin: 0 0 16px;
    color: var(--ink, #101010);
    font-size: clamp(2rem, 3.1vw, 3.15rem);
    line-height: 1.12;
    font-weight: 760;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.lf-section-head p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: var(--muted, #676a70);
    font-size: 1.05rem;
    line-height: 1.68;
}

/* HERO */

.lf-seo-hero {
    position: relative;
    padding-top: clamp(68px, 7.4vw, 116px);
    padding-bottom: clamp(48px, 6vw, 88px);
}

.lf-seo-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
    gap: clamp(34px, 6vw, 88px);
    align-items: end;
}

.lf-seo-hero__content {
    max-width: 960px;
}

.lf-seo-hero h1 {
    max-width: 920px;
    margin: 0 0 18px;
    color: var(--ink, #101010);
    font-size: clamp(2.02rem, 3.28vw, 3.45rem);
    line-height: 1.12;
    font-weight: 760;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.lf-seo-hero p:not(.eyebrow) {
    max-width: 780px;
    margin: 0;
    color: var(--ink-2, var(--muted, #676a70));
    font-size: 1.05rem;
    line-height: 1.68;
}

.lf-seo-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

/* PRICE */

.lf-seo-price-card {
    position: relative;
    padding: 26px;
    border: 1px solid var(--line, rgba(16, 16, 16, 0.105));
    border-radius: 34px;
    background:
        radial-gradient(circle at 92% 0%, rgba(227, 6, 19, 0.075), transparent 44%),
        #ffffff;
    box-shadow: var(--shadow, 0 18px 50px rgba(16, 16, 16, 0.075));
    overflow: hidden;
}

.lf-seo-price-card__label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--red-soft, rgba(227, 6, 19, 0.08));
    color: var(--accent, #e30613);
    font-size: 0.8rem;
    line-height: 1;
    font-weight: 760;
}

.lf-seo-price-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--ink, #101010);
}

.lf-seo-price-card__price span {
    color: var(--muted, #676a70);
    font-size: 1rem;
    font-weight: 650;
}

.lf-seo-price-card__price b {
    color: var(--accent, #e30613);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1;
    font-weight: 820;
    letter-spacing: -0.06em;
}

.lf-seo-price-card__price small {
    color: var(--muted, #676a70);
    font-size: 0.94rem;
    font-weight: 650;
}

.lf-seo-price-card p {
    margin: 0 0 18px;
    color: var(--muted, #676a70);
    font-size: 0.94rem;
    line-height: 1.6;
}

.lf-seo-price-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lf-seo-price-card li {
    position: relative;
    padding-left: 19px;
    color: var(--ink, #101010);
    font-size: 0.92rem;
    line-height: 1.45;
    font-weight: 650;
}

.lf-seo-price-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent, #e30613);
}

/* SERVICES */

.lf-seo-services {
    padding-top: 0;
}

.lf-seo-services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.lf-seo-service-card,
.lf-seo-process__grid article,
.lf-seo-tool,
.lf-seo-faq__item,
.lf-seo-lead__card,
.lf-seo-text__article {
    border: 1px solid var(--line, rgba(16, 16, 16, 0.105));
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(16, 16, 16, 0.07);
}

.lf-seo-service-card {
    position: relative;
    min-height: 100%;
    padding: 26px;
    border-radius: 30px;
    overflow: hidden;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.lf-seo-service-card::before {
    content: "";
    position: absolute;
    right: -82px;
    top: -92px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.06), transparent 66%);
    pointer-events: none;
}

.lf-seo-service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-line, rgba(227, 6, 19, 0.22));
    box-shadow: var(--shadow-strong, 0 28px 80px rgba(16, 16, 16, 0.13));
}

.lf-seo-service-card__icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 20px;
    background: var(--red-soft, rgba(227, 6, 19, 0.08));
    color: var(--accent, #e30613);
}

.lf-seo-service-card__icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.lf-seo-service-card h3 {
    margin: 0 0 10px;
    color: var(--ink, #101010);
    font-size: clamp(1.14rem, 1.5vw, 1.36rem);
    line-height: 1.16;
    font-weight: 760;
    letter-spacing: -0.025em;
}

.lf-seo-service-card p {
    margin: 0;
    color: var(--muted, #676a70);
    font-size: 0.96rem;
    line-height: 1.62;
}

/* WORK TABS */

.lf-seo-work {
    background: rgba(255, 255, 255, 0.42);
}

.lf-seo-work__layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.lf-seo-work__tabs {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 12px;
    border: 1px solid var(--line, rgba(16, 16, 16, 0.105));
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(16, 16, 16, 0.06);
}

.lf-seo-work__tab {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 0;
    border-radius: 18px;
    background: rgba(16, 16, 16, 0.035);
    color: var(--ink, #101010);
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 0.94rem;
    line-height: 1.25;
    font-weight: 740;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.lf-seo-work__tab:hover,
.lf-seo-work__tab.is-active {
    background: var(--accent, #e30613);
    color: #ffffff;
}

.lf-seo-work__tab:hover {
    transform: translateX(3px);
}

.lf-seo-work__content {
    min-width: 0;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--line, rgba(16, 16, 16, 0.105));
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(16, 16, 16, 0.07);
}

.lf-seo-work__panel {
    display: none;
}

.lf-seo-work__panel.is-active {
    display: block;
    animation: lfSeoFade 0.25s ease;
}

.lf-seo-work__panel h3 {
    margin: 0 0 8px;
    color: var(--ink, #101010);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.15;
    font-weight: 760;
    letter-spacing: -0.035em;
}

.lf-seo-work__panel p {
    max-width: 720px;
    margin: 0 0 22px;
    color: var(--muted, #676a70);
    font-size: 1rem;
    line-height: 1.62;
}

.lf-seo-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.lf-seo-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 18px;
    background: rgba(16, 16, 16, 0.035);
    color: var(--ink, #101010);
    font-size: 0.94rem;
    line-height: 1.45;
    font-weight: 630;
}

.lf-seo-check span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: var(--red-soft, rgba(227, 6, 19, 0.09));
    color: var(--accent, #e30613);
    font-size: 0.82rem;
    font-weight: 850;
}

/* PROCESS */

.lf-seo-process__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.lf-seo-process__grid article {
    padding: 24px;
    border-radius: 28px;
}

.lf-seo-process__grid span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--red-soft, rgba(227, 6, 19, 0.08));
    color: var(--accent, #e30613);
    font-size: 0.82rem;
    line-height: 1;
    font-weight: 820;
}

.lf-seo-process__grid h3 {
    margin: 0 0 10px;
    color: var(--ink, #101010);
    font-size: 1.22rem;
    line-height: 1.18;
    font-weight: 760;
    letter-spacing: -0.025em;
}

.lf-seo-process__grid p {
    margin: 0;
    color: var(--muted, #676a70);
    font-size: 0.94rem;
    line-height: 1.58;
}

/* CASES */

.lf-seo-case {
    display: none;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
    gap: 0;
    border: 1px solid var(--line, rgba(16, 16, 16, 0.105));
    border-radius: 34px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(16, 16, 16, 0.075);
    overflow: hidden;
}

.lf-seo-case.is-active {
    display: grid;
    animation: lfSeoFade 0.25s ease;
}

.lf-seo-case__image {
    position: relative;
    min-height: 420px;
    background: #f5f1e8;
    overflow: hidden;
}

.lf-seo-case__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    object-position: top center;
}

.lf-seo-case__image span {
    position: absolute;
    left: 18px;
    top: 18px;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink, #101010);
    box-shadow: 0 12px 30px rgba(16, 16, 16, 0.13);
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 780;
}

.lf-seo-case__body {
    padding: clamp(24px, 3vw, 38px);
}

.lf-seo-case__body h3 {
    margin: 0 0 22px;
    color: var(--ink, #101010);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.12;
    font-weight: 760;
    letter-spacing: -0.035em;
}

.lf-seo-case__detail {
    margin-bottom: 18px;
}

.lf-seo-case__detail b {
    display: block;
    margin-bottom: 5px;
    color: var(--accent, #e30613);
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 820;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lf-seo-case__detail p {
    margin: 0;
    color: var(--muted, #676a70);
    font-size: 0.98rem;
    line-height: 1.62;
}

.lf-seo-case__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line, rgba(16, 16, 16, 0.105));
}

.lf-seo-case__stats div {
    padding: 14px;
    border-radius: 20px;
    background: rgba(16, 16, 16, 0.035);
}

.lf-seo-case__stats strong {
    display: block;
    margin-bottom: 4px;
    color: var(--accent, #e30613);
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 820;
    letter-spacing: -0.04em;
}

.lf-seo-case__stats span {
    display: block;
    color: var(--muted, #676a70);
    font-size: 0.76rem;
    line-height: 1.2;
    font-weight: 720;
    text-transform: uppercase;
}

.lf-seo-case-slider__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.lf-seo-case-slider__nav button {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line, rgba(16, 16, 16, 0.105));
    border-radius: 50%;
    background: #ffffff;
    color: var(--ink, #101010);
    cursor: pointer;
    font: inherit;
    font-size: 1.2rem;
    font-weight: 760;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.lf-seo-case-slider__nav button:hover {
    transform: translateY(-2px);
    background: var(--accent, #e30613);
    color: #ffffff;
}

.lf-seo-case-slider__nav span {
    color: var(--muted, #676a70);
    font-size: 0.92rem;
    font-weight: 680;
}

/* TOOLS */

.lf-seo-tools {
    background: rgba(255, 255, 255, 0.42);
}

.lf-seo-tools__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.lf-seo-tool {
    display: grid;
    place-items: center;
    min-height: 110px;
    padding: 18px;
    border-radius: 24px;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.lf-seo-tool:hover {
    transform: translateY(-4px);
    border-color: var(--accent-line, rgba(227, 6, 19, 0.22));
    box-shadow: var(--shadow-strong, 0 28px 80px rgba(16, 16, 16, 0.13));
}

.lf-seo-tool a {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.lf-seo-tool img {
    display: block;
    max-width: 100%;
    max-height: 58px;
    object-fit: contain;
}

/* FAQ */

.lf-seo-faq__list {
    display: grid;
    gap: 10px;
}

.lf-seo-faq__item {
    border-radius: 24px;
    overflow: hidden;
}

.lf-seo-faq__question {
    width: 100%;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    border: 0;
    background: #ffffff;
    color: var(--ink, #101010);
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 760;
}

.lf-seo-faq__question i {
    position: relative;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: var(--red-soft, rgba(227, 6, 19, 0.08));
}

.lf-seo-faq__question i::before,
.lf-seo-faq__question i::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent, #e30613);
    transform: translate(-50%, -50%);
}

.lf-seo-faq__question i::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.18s ease;
}

.lf-seo-faq__item.is-open .lf-seo-faq__question i::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.lf-seo-faq__answer {
    display: none;
    padding: 0 22px 22px;
}

.lf-seo-faq__item.is-open .lf-seo-faq__answer {
    display: block;
}

.lf-seo-faq__answer p {
    margin: 0 0 12px;
    color: var(--muted, #676a70);
    font-size: 0.98rem;
    line-height: 1.65;
}

.lf-seo-faq__answer p:last-child {
    margin-bottom: 0;
}

.lf-seo-faq__answer a {
    color: var(--accent, #e30613);
    text-decoration: none;
    font-weight: 720;
}

/* LEAD */

.lf-seo-lead {
    padding-top: 0;
}

.lf-seo-lead__card {
    position: relative;
    padding: clamp(30px, 5vw, 56px);
    border-radius: 36px;
    background:
        radial-gradient(circle at 92% 0%, rgba(227, 6, 19, 0.08), transparent 44%),
        #ffffff;
    overflow: hidden;
}

.lf-seo-lead__card h2 {
    max-width: 820px;
    margin: 0 0 16px;
    color: var(--ink, #101010);
    font-size: clamp(2rem, 3.1vw, 3.15rem);
    line-height: 1.12;
    font-weight: 760;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.lf-seo-lead__card p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: var(--muted, #676a70);
    font-size: 1.05rem;
    line-height: 1.68;
}

.lf-seo-lead__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

/* SEO TEXT */

.lf-seo-text {
    padding-top: 0;
}

.lf-seo-text__article {
    padding: clamp(28px, 4vw, 48px);
    border-radius: 34px;
}

.lf-seo-text__article h2 {
    max-width: 840px;
    margin: 0 0 22px;
    color: var(--ink, #101010);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.12;
    font-weight: 760;
    letter-spacing: -0.035em;
}

.lf-seo-text__article h3 {
    margin: 30px 0 12px;
    color: var(--ink, #101010);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.18;
    font-weight: 760;
    letter-spacing: -0.03em;
}

.lf-seo-text__article p {
    max-width: 920px;
    margin: 0 0 16px;
    color: var(--muted, #676a70);
    font-size: 1rem;
    line-height: 1.75;
}

.lf-seo-text__article strong {
    color: var(--ink, #101010);
}

/* ANIMATION */

@keyframes lfSeoFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* REVEAL fallback */

[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.56s ease,
        transform 0.56s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ADAPTIVE */

@media (max-width: 1080px) {
    .lf-seo-services__grid,
    .lf-seo-tools__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lf-seo-process__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lf-seo-work__layout {
        grid-template-columns: 1fr;
    }

    .lf-seo-work__tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .lf-seo-hero__layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .lf-seo-case,
    .lf-seo-case.is-active {
        grid-template-columns: 1fr;
    }

    .lf-seo-case__image,
    .lf-seo-case__image img {
        min-height: 320px;
    }
}

@media (max-width: 760px) {
    .lf-seo-hero {
        padding-top: 52px;
        padding-bottom: 44px;
    }

    .lf-seo-hero h1 {
        font-size: clamp(1.9rem, 8vw, 2.45rem);
        line-height: 1.08;
    }

    .lf-seo-hero p:not(.eyebrow),
    .lf-section-head p:not(.eyebrow),
    .lf-seo-lead__card p:not(.eyebrow) {
        font-size: 1rem;
    }

    .lf-seo-hero__actions,
    .lf-seo-lead__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .lf-seo-hero__actions .button,
    .lf-seo-lead__actions .button {
        width: 100%;
    }

    .lf-seo-services__grid,
    .lf-seo-process__grid,
    .lf-seo-tools__grid,
    .lf-seo-check-grid {
        grid-template-columns: 1fr;
    }

    .lf-seo-work__tabs {
        grid-template-columns: 1fr;
    }

    .lf-seo-case__stats {
        grid-template-columns: 1fr;
    }

    .lf-seo-case__image,
    .lf-seo-case__image img {
        min-height: 260px;
    }

    .lf-seo-text__article,
    .lf-seo-lead__card {
        border-radius: 28px;
    }
}

@media (max-width: 480px) {
    .lf-seo-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .lf-seo-service-card,
    .lf-seo-process__grid article,
    .lf-seo-price-card,
    .lf-seo-work__content,
    .lf-seo-text__article {
        padding: 22px;
        border-radius: 24px;
    }

    .lf-seo-case-slider__nav {
        gap: 10px;
    }

    .lf-seo-case-slider__nav span {
        font-size: 0.84rem;
    }
}