﻿/* =====================================================================
   SEO PAGE  -  /wwwroot/css/seo.css
   Works inside _Layout. Every class starts with "seo-".
   Fixed navbar offset is read from --nav2-h and --nav-h of the layout.
   ===================================================================== */
.seo-page {
    --seo-blue: #2f5bff;
    --seo-blue-d: #1d3fd1;
    --seo-sky: #7fa2ff;
    --seo-ink: #0a1230;
    --seo-muted: #516089;
    --seo-bg: #f6f8ff;
    --seo-tint: #e8eeff;
    --seo-green: #19c28a;
    --seo-amber: #ffb020;
    --seo-line: rgba(10,18,48,.12);
    --seo-offset: calc(var(--nav2-h,42px) + var(--nav-h,100px));
    --seo-head: 'Bricolage Grotesque',system-ui,sans-serif;
    --seo-body: 'Instrument Sans',system-ui,sans-serif;
    font-family: var(--seo-body);
    color: var(--seo-ink);
    background: var(--seo-bg);
    line-height: 1.65;
    overflow-x: hidden;
}

    .seo-page *, .seo-page *::before, .seo-page *::after {
        box-sizing: border-box
    }

    .seo-page img {
        max-width: 100%;
        display: block
    }

    .seo-page a {
        text-decoration: none;
        color: inherit
    }

    .seo-page h1, .seo-page h2, .seo-page h3 {
        font-family: var(--seo-head);
        font-weight: 800;
        letter-spacing: -.03em;
        line-height: 1.1;
        margin: 0;
        color: var(--seo-ink)
    }

    .seo-page p {
        margin: 0
    }

    .seo-page :focus-visible {
        outline: 2px solid var(--seo-blue);
        outline-offset: 3px
    }

.seo-wrap {
    width: min(1180px,100% - 2.5rem);
    margin-inline: auto
}

.seo-section {
    padding: clamp(3.5rem,9vw,7rem) 0
}

.seo-alt {
    background: var(--seo-tint)
}

.seo-white {
    background: #fff
}

.seo-title {
    font-size: clamp(1.8rem,4.2vw,3.1rem);
    max-width: 19ch
}

.seo-lead {
    color: var(--seo-muted);
    font-size: clamp(1rem,1.4vw,1.15rem);
    max-width: 58ch;
    margin-top: 1rem
}

.seo-head {
    margin-bottom: clamp(2rem,5vw,3.5rem)
}

.seo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .95rem 1.7rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    border: 1px solid var(--seo-blue);
    transition: transform .3s,background .3s,color .3s,box-shadow .3s;
    cursor: pointer
}

.seo-btn-fill {
    background: var(--seo-blue);
    color: #fff
}

    .seo-btn-fill:hover {
        background: #fff;
        color: var(--seo-blue);
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(47,91,255,.25)
    }

.seo-btn-line {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.55)
}

    .seo-btn-line:hover {
        background: #fff;
        color: var(--seo-ink);
        transform: translateY(-3px)
    }

/* ================= HERO ================= */
.seo-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    padding: calc(var(--seo-offset) + clamp(2.5rem,6vw,5rem)) 0 clamp(3.5rem,8vw,6rem);
    background: radial-gradient(800px 480px at 10% 90%,rgba(25,194,138,.16),transparent 60%),radial-gradient(900px 500px at 88% 15%,rgba(47,91,255,.55),transparent 60%),linear-gradient(160deg,#0a1230 0%,#12256e 100%);
}

.seo-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem,5vw,4.5rem);
    align-items: center
}

.seo-hero h1 {
    color: #fff;
    font-size: clamp(2.2rem,5.4vw,4.4rem);
    line-height: 1.05
}

    .seo-hero h1 em {
        font-style: normal;
        color: var(--seo-sky)
    }

.seo-hero-p {
    margin-top: 1.4rem;
    max-width: 52ch;
    color: rgba(255,255,255,.82);
    font-size: clamp(1rem,1.5vw,1.15rem)
}

.seo-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 2rem
}

.seo-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.6rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255,255,255,.8);
    font-size: .92rem
}

    .seo-hero-points li::before {
        content: "\2713";
        color: var(--seo-sky);
        margin-right: .5rem;
        font-weight: 700
    }

/* search results mockup */
.seo-serp {
    position: relative;
    background: #fff;
    color: var(--seo-ink);
    border-radius: 18px;
    padding: 1.1rem;
    box-shadow: 0 40px 80px rgba(0,0,0,.45)
}

.seo-search {
    display: flex;
    align-items: center;
    gap: .7rem;
    border: 1px solid var(--seo-line);
    border-radius: 99px;
    padding: .65rem 1.1rem;
    font-size: .9rem;
    color: var(--seo-muted);
    box-shadow: 0 4px 14px rgba(10,18,48,.06)
}

    .seo-search svg {
        width: 18px;
        height: 18px;
        stroke: var(--seo-blue);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        flex: none
    }

.seo-result {
    padding: .9rem .4rem;
    border-bottom: 1px solid var(--seo-line)
}

    .seo-result:last-of-type {
        border-bottom: 0
    }

    .seo-result small {
        display: block;
        font-size: .74rem;
        color: var(--seo-muted)
    }

    .seo-result b {
        display: block;
        font-family: var(--seo-head);
        font-size: 1.05rem;
        color: var(--seo-blue-d);
        margin: .1rem 0
    }

    .seo-result span {
        display: block;
        font-size: .8rem;
        color: var(--seo-muted);
        line-height: 1.5
    }

    .seo-result.top {
        background: var(--seo-tint);
        border-radius: 12px;
        border: 1px solid rgba(47,91,255,.35);
        margin: .8rem 0 .2rem;
        padding: .9rem .9rem
    }

    .seo-result.ghost {
        opacity: .5
    }

.seo-rank {
    position: absolute;
    left: -6%;
    top: 28%;
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    padding: .7rem 1rem;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(10,18,48,.3);
    font-size: .82rem;
    font-weight: 600;
    animation: seoFloat 5s ease-in-out infinite
}

    .seo-rank b {
        display: block;
        font-family: var(--seo-head);
        font-size: 1.4rem;
        line-height: 1;
        color: var(--seo-green)
    }

.seo-bars {
    position: absolute;
    right: -5%;
    bottom: -8%;
    background: #fff;
    padding: .8rem 1rem;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(10,18,48,.3);
    font-size: .78rem;
    font-weight: 600;
    animation: seoFloat 5s ease-in-out infinite;
    animation-delay: -2.2s
}

    .seo-bars div {
        display: flex;
        align-items: flex-end;
        gap: 5px;
        height: 44px;
        margin-top: .4rem
    }

    .seo-bars i {
        width: 12px;
        border-radius: 3px 3px 0 0;
        background: var(--seo-blue)
    }

        .seo-bars i:nth-child(1) {
            height: 30%
        }

        .seo-bars i:nth-child(2) {
            height: 42%
        }

        .seo-bars i:nth-child(3) {
            height: 55%
        }

        .seo-bars i:nth-child(4) {
            height: 72%
        }

        .seo-bars i:nth-child(5) {
            height: 100%;
            background: var(--seo-green)
        }

@keyframes seoFloat {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

/* ================= STRIP ================= */
.seo-strip {
    background: #fff;
    border-bottom: 1px solid var(--seo-line)
}

.seo-strip-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr)
}

.seo-strip-item {
    padding: 1.6rem 1rem;
    text-align: center;
    border-right: 1px solid var(--seo-line)
}

    .seo-strip-item:last-child {
        border-right: 0
    }

    .seo-strip-item b {
        display: block;
        font-family: var(--seo-head);
        font-size: clamp(1.4rem,3vw,2.2rem);
        color: var(--seo-blue);
        line-height: 1
    }

    .seo-strip-item span {
        display: block;
        margin-top: .4rem;
        font-size: .9rem;
        color: var(--seo-muted)
    }

/* ================= CARDS ================= */
.seo-cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.5rem
}

.seo-card {
    background: #fff;
    border: 1px solid var(--seo-line);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .4s,box-shadow .4s,border-color .4s
}

    .seo-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 44px rgba(47,91,255,.16);
        border-color: rgba(47,91,255,.4)
    }

.seo-card-img {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(160deg,#9db7ff,#dbe5ff)
}

    .seo-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .7s
    }

.seo-card:hover .seo-card-img img {
    transform: scale(1.08)
}

.seo-card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    flex: 1
}

.seo-card h3 {
    font-size: 1.25rem
}

.seo-card p {
    color: var(--seo-muted);
    font-size: .95rem
}

.seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: auto;
    padding-top: .6rem
}

    .seo-tags span {
        font-size: .78rem;
        padding: .25rem .7rem;
        border-radius: 99px;
        background: var(--seo-tint);
        color: var(--seo-blue-d);
        font-weight: 600
    }

/* ================= SPLIT ================= */
.seo-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem,6vw,5rem);
    align-items: center
}

.seo-photo {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4/3.4;
    background: linear-gradient(160deg,#9db7ff,#dbe5ff);
    box-shadow: 0 30px 60px rgba(10,18,48,.18)
}

    .seo-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.seo-list {
    list-style: none;
    margin: 1.8rem 0 0;
    padding: 0;
    display: grid;
    gap: 1.1rem
}

    .seo-list li {
        display: grid;
        grid-template-columns: 40px 1fr;
        gap: 1rem
    }

    .seo-list .ic {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: var(--seo-blue);
        display: grid;
        place-items: center
    }

        .seo-list .ic svg {
            width: 20px;
            height: 20px;
            stroke: #fff;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round
        }

    .seo-list h3 {
        font-size: 1.05rem;
        margin-bottom: .15rem
    }

    .seo-list p {
        color: var(--seo-muted);
        font-size: .93rem
    }

/* ================= AUDIT GRID ================= */
.seo-grid4 {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1rem
}

.seo-box {
    background: var(--seo-bg);
    border: 1px solid var(--seo-line);
    border-radius: 14px;
    padding: 1.4rem
}

    .seo-box h3 {
        font-size: 1.05rem;
        color: var(--seo-blue);
        margin-bottom: .9rem
    }

    .seo-box ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: .5rem;
        font-size: .94rem
    }

    .seo-box li {
        display: flex;
        align-items: center;
        gap: .6rem
    }

        .seo-box li::before {
            content: "";
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--seo-green);
            flex: none
        }

/* ================= STEPS ================= */
.seo-steps {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 1.2rem;
    counter-reset: seo;
    position: relative
}

    .seo-steps::before {
        content: "";
        position: absolute;
        left: 5%;
        right: 5%;
        top: 26px;
        height: 2px;
        background: repeating-linear-gradient(90deg,var(--seo-blue) 0 8px,transparent 8px 16px);
        opacity: .4
    }

.seo-step {
    position: relative;
    text-align: center;
    padding: 0 .4rem
}

    .seo-step::before {
        counter-increment: seo;
        content: counter(seo);
        display: grid;
        place-items: center;
        width: 54px;
        height: 54px;
        margin: 0 auto 1rem;
        border-radius: 50%;
        background: var(--seo-blue);
        color: #fff;
        font-family: var(--seo-head);
        font-weight: 800;
        font-size: 1.2rem;
        box-shadow: 0 0 0 8px var(--seo-tint)
    }

    .seo-step h3 {
        font-size: 1.08rem;
        margin-bottom: .4rem
    }

    .seo-step p {
        color: var(--seo-muted);
        font-size: .92rem
    }

/* ================= FAQ ================= */
.seo-faq {
    max-width: 820px;
    margin-inline: auto
}

    .seo-faq details {
        border-bottom: 1px solid var(--seo-line)
    }

    .seo-faq summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 1.3rem 0;
        font-family: var(--seo-head);
        font-weight: 800;
        font-size: clamp(1.02rem,2vw,1.3rem)
    }

        .seo-faq summary::-webkit-details-marker {
            display: none
        }

        .seo-faq summary::after {
            content: "+";
            font-size: 1.6rem;
            line-height: 1;
            color: var(--seo-blue);
            transition: transform .3s
        }

    .seo-faq details[open] summary::after {
        transform: rotate(45deg)
    }

    .seo-faq details p {
        padding: 0 0 1.3rem;
        color: var(--seo-muted);
        max-width: 68ch
    }

/* ================= CTA ================= */
.seo-cta {
    background: linear-gradient(135deg,#0a1230,#1d3fd1);
    color: #fff;
    border-radius: 22px;
    padding: clamp(2.2rem,6vw,4.5rem);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden
}

    .seo-cta::after {
        content: "";
        position: absolute;
        right: -80px;
        top: -80px;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        border: 2px solid rgba(25,194,138,.45)
    }

    .seo-cta h2 {
        color: #fff;
        font-size: clamp(1.6rem,3.6vw,2.7rem);
        max-width: 20ch
    }

    .seo-cta p {
        color: rgba(255,255,255,.8);
        margin-top: .8rem;
        max-width: 46ch
    }

    .seo-cta .seo-btn-fill {
        background: #fff;
        color: var(--seo-blue);
        border-color: #fff;
        position: relative;
        z-index: 2
    }

        .seo-cta .seo-btn-fill:hover {
            background: transparent;
            color: #fff
        }

/* reveal */
.seo-js .seo-rv {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease,transform .8s ease
}

    .seo-js .seo-rv.seo-in {
        opacity: 1;
        transform: none
    }

/* ================= RESPONSIVE ================= */
@media (max-width:1100px) {
    .seo-cards {
        grid-template-columns: repeat(2,1fr)
    }

    .seo-grid4 {
        grid-template-columns: repeat(2,1fr)
    }

    .seo-steps {
        grid-template-columns: repeat(3,1fr);
        row-gap: 2rem
    }

        .seo-steps::before {
            display: none
        }
}

@media (max-width:900px) {
    .seo-hero-grid, .seo-split {
        grid-template-columns: 1fr
    }

    .seo-serp {
        max-width: 540px;
        margin-inline: auto
    }

    .seo-rank {
        left: -2%
    }

    .seo-bars {
        right: -2%
    }

    .seo-split-img {
        max-width: 520px;
        margin-inline: auto;
        width: 100%
    }

    .seo-strip-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .seo-strip-item:nth-child(2) {
        border-right: 0
    }

    .seo-strip-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--seo-line)
    }
}

@media (max-width:767px) {
    .seo-page {
        --seo-offset: calc(var(--nav2-h,38px) + var(--nav-h,64px))
    }

    .seo-hero-cta .seo-btn {
        flex: 1 1 100%
    }

    .seo-cards {
        grid-template-columns: 1fr
    }

    .seo-steps {
        grid-template-columns: 1fr 1fr
    }

    .seo-card-img {
        height: 165px
    }

    .seo-cta {
        text-align: center;
        justify-content: center
    }

        .seo-cta .seo-btn {
            width: 100%
        }
}

@media (max-width:480px) {
    .seo-wrap {
        width: min(1180px,100% - 1.6rem)
    }

    .seo-grid4, .seo-steps {
        grid-template-columns: 1fr
    }

    .seo-rank {
        left: 0;
        top: auto;
        bottom: -6%
    }

    .seo-bars {
        right: 0;
        bottom: auto;
        top: -10%
    }
}

@media (prefers-reduced-motion:reduce) {
    .seo-page * {
        animation: none !important;
        transition: none !important
    }

    .seo-js .seo-rv {
        opacity: 1;
        transform: none
    }
}
