/*
 * ============================================================
 * GMP SEO page  (v1.1.0)
 * Gym Marketing Pros, staging.gymmarketingpros.com
 * Prompt 12 SEO page (AVADA-PAGE-SECTION v7.2), /services/seo/
 * Manifests: GMP-DSM-20261110, GMP-RCM-20261113
 * Loaded by inc/site-seo.php only on pages whose content carries
 * the marker class gmp-has-seo (the SEO page), with
 * assets/js/gmp-seo.js. Holds every SEO page style: nothing goes
 * in the page's Page Options > Custom CSS.
 *
 * This file loads before Avada's element styles, so every rule
 * is lifted to ID level with :is(.x, #gmp-unused) (#gmp-unused
 * never exists); a plain class would tie and lose.
 * The Builder owns spacing, widths, borders and colors of the
 * Containers and Columns; this file owns what no field can set.
 *
 *  1. Hero              6. Free review prompt
 *  2. Search demo       7. Proof
 *  3. Problem           8. FAQ (none: gmp-accordion owns it)
 *  4. Services          9. Strategy call
 *  5. Process          10. Reduced motion
 * ============================================================
 */

/* Paragraph margins inside this page's Text Blocks: the design
   spaces them with the Builder fields, not with p margins. */
:is(.gmp-seo-hero-back, .gmp-seo-hero-intro, .gmp-seo-searches-intro, .gmp-seo-cost-copy, .gmp-seo-services-intro, .gmp-seo-step-copy, .gmp-seo-prompt-text, .gmp-seo-proof-num, .gmp-seo-proof-label, .gmp-seo-proof-link, .gmp-seo-call-intro, .gmp-seo-svc-caption, .gmp-seo-split-item, #gmp-unused) > p {
    margin: 0;
    text-wrap: pretty;
}


/* ============================================================
 * 1. HERO
 * Copy column rises in on load; the photo eases from 108% to
 * 100%. The photo is 4:5 (16:10 from 720 to 1023px).
 * ============================================================ */

:is(.gmp-seo-hero-copy, #gmp-unused) {
    animation: gmp-seo-rise 1s cubic-bezier(.2,.8,.2,1) .1s both;
}

@media (min-width: 1024px) {
    :is(.gmp-seo-hero-title, #gmp-unused) :is(h1, h2, h3) {
        max-width: 13ch;
    }
}

:is(.gmp-seo-hero-title, #gmp-unused) :is(h1, h2, h3) {
    text-wrap: balance;
}

/* Phones: each button fills the row (gmp-btn--full-sm fills its
   wrapper; in a Row layout the wrapper must fill the row too). */
@media (max-width: 719px) {
    :is(.gmp-seo-hero-actions, .gmp-seo-prompt, #gmp-unused) .fusion-button-wrapper {
        width: 100%;
    }
}

:is(.gmp-seo-hero-art, #gmp-unused) {
    position: relative;
}

:is(.gmp-seo-hero-img, #gmp-unused) {
    display: block !important;
    width: 100%;
    max-width: 100% !important;
    overflow: hidden;
    border-radius: 24px;
    background: var(--awb-color25);
}

:is(.gmp-seo-hero-img, #gmp-unused) img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 30%;
    border-radius: 24px;
    animation: gmp-seo-settle 1.6s cubic-bezier(.2,.8,.2,1) both;
}

@media (min-width: 720px) and (max-width: 1023px) {
    :is(.gmp-seo-hero-img, #gmp-unused) img {
        aspect-ratio: 16 / 10;
    }
}

@keyframes gmp-seo-rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

@keyframes gmp-seo-settle {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}


/* ============================================================
 * 2. SEARCH DEMO: .gmp-seo-serp (Code Block HTML in Column Hero Art)
 * From 1024px it overlaps the photo's bottom left corner, starting
 * at the copy column's right edge and 40px below the photo; below
 * 1024px it sits under the photo, pulled up 72px, 16px in.
 * ============================================================ */

:is(.gmp-seo-serp, #gmp-unused) {
    position: relative;
    z-index: 2;
    margin: -72px 16px 0;
    padding: 22px;
    border: 1px solid var(--awb-color17);
    border-radius: 24px;
    background: var(--awb-color7);
    color: var(--awb-color1);
    animation: gmp-seo-rise 1s cubic-bezier(.2,.8,.2,1) .5s both;
}

@media (min-width: 1024px) {
    :is(.gmp-seo-serp, #gmp-unused) {
        position: absolute;
        left: 0;
        bottom: -40px;
        width: min(420px, calc((100% - clamp(40px,5vw,80px)) * 0.8));
        margin: 0;
    }
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__label {
    font-family: var(--awb-typography5-font-family);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--awb-color11);
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__pulse {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--awb-color5);
    animation: gmp-seo-pulse 2s infinite;
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 60px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--awb-color1);
    color: var(--awb-color8);
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__icon {
    flex: none;
    width: 20px;
    height: 20px;
    background-color: var(--awb-color4);
    -webkit-mask: var(--gmp-icon-search) center / contain no-repeat;
    mask: var(--gmp-icon-search) center / contain no-repeat;
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__q {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-family: var(--awb-typography4-font-family);
    font-size: 17px;
    line-height: 1.4;
    color: var(--awb-color8);
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__caret {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-left: 2px;
    vertical-align: -0.15em;
    background: var(--awb-color5);
    animation: gmp-seo-caret 1s steps(1) 6;
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__results {
    margin: 20px 0 2px;
    font-family: var(--awb-typography5-font-family);
    font-weight: 700;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--awb-color6);
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 14px 0;
    border-top: 1px solid var(--awb-color17);
    list-style: none;
    opacity: 0.35;
    transform: translateY(6px);
    transition: opacity .5s, transform .5s;
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__row::marker {
    content: none;
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__row:nth-child(2) {
    transition-delay: .12s;
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__row:nth-child(3) {
    transition-delay: .24s;
}

:is(.gmp-seo-serp, #gmp-unused):is(.is-done) .gmp-seo-serp__row,
:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__row.is-you {
    opacity: 1;
    transform: none;
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__rank {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    border: 1px solid var(--awb-color18);
    border-radius: 50%;
    font-family: "GMP Roboto Flex", var(--awb-typography3-font-family);
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    color: var(--awb-color1);
}

:is(.gmp-seo-serp, #gmp-unused) .is-you .gmp-seo-serp__rank {
    border: 0;
    background: var(--awb-color5);
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__who {
    display: grid;
    gap: 5px;
    min-width: 0;
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__name {
    font-family: var(--awb-typography5-font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    color: var(--awb-color6);
}

:is(.gmp-seo-serp, #gmp-unused) .is-you .gmp-seo-serp__name {
    color: var(--awb-color1);
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__stars {
    display: flex;
    gap: 2px;
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__stars i {
    display: block;
    width: 12px;
    height: 12px;
    background-color: var(--awb-color6);
    -webkit-mask: var(--gmp-icon-star-outline) center / contain no-repeat;
    mask: var(--gmp-icon-star-outline) center / contain no-repeat;
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__stars i.is-on {
    background-color: var(--awb-color10);
    -webkit-mask-image: var(--gmp-icon-star);
    mask-image: var(--gmp-icon-star);
}

:is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__status {
    font-family: var(--awb-typography5-font-family);
    font-weight: 700;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--awb-color14);
}

:is(.gmp-seo-serp, #gmp-unused) .is-you .gmp-seo-serp__status {
    color: var(--awb-color10);
}

@keyframes gmp-seo-pulse {
    0%   { box-shadow: 0 0 0 0 hsla(var(--awb-color4-h),var(--awb-color4-s),var(--awb-color4-l),calc(var(--awb-color4-a) - 30%)); }
    70%  { box-shadow: 0 0 0 10px hsla(var(--awb-color4-h),var(--awb-color4-s),var(--awb-color4-l),calc(var(--awb-color4-a) - 100%)); }
    100% { box-shadow: 0 0 0 0 hsla(var(--awb-color4-h),var(--awb-color4-s),var(--awb-color4-l),calc(var(--awb-color4-a) - 100%)); }
}

@keyframes gmp-seo-caret {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0; }
}


/* ============================================================
 * 3. PROBLEM
 * ============================================================ */

:is(.gmp-seo-problem-title, #gmp-unused) :is(h1, h2, h3) {
    max-width: 22ch;
    text-wrap: balance;
}

/* Search pills: white, 56px, red magnifier in front. */
:is(.gmp-seo-queries, #gmp-unused) ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

:is(.gmp-seo-queries, #gmp-unused) li {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 56px;
    margin: 0;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--awb-color1);
    color: var(--awb-color8);
    font-size: 16px;
    line-height: 1.3;
    list-style: none;
}

:is(.gmp-seo-queries, #gmp-unused) li::marker {
    content: none;
}

:is(.gmp-seo-queries, #gmp-unused) li::before {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    background-color: var(--awb-color4);
    -webkit-mask: var(--gmp-icon-search) center / contain no-repeat;
    mask: var(--gmp-icon-search) center / contain no-repeat;
}

:is(.gmp-seo-cost-copy, #gmp-unused) > p + p {
    margin-top: 20px;
}

/* Page one / page two: 44px ring in front of a label and a display line. */
:is(.gmp-seo-split-item, #gmp-unused) {
    position: relative;
    min-height: 44px;
    padding-left: 62px;
}

:is(.gmp-seo-split-item, #gmp-unused)::before,
:is(.gmp-seo-split-item, #gmp-unused)::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

:is(.gmp-seo-split-item, #gmp-unused)::before {
    left: 0;
    top: 0;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

:is(.gmp-seo-split-item--win, #gmp-unused)::before {
    background: var(--awb-color5);
}

:is(.gmp-seo-split-item--win, #gmp-unused)::after {
    left: 12px;
    top: 12px;
    width: 20px;
    height: 20px;
    background-color: var(--awb-color1);
    -webkit-mask: var(--gmp-icon-check) center / contain no-repeat;
    mask: var(--gmp-icon-check) center / contain no-repeat;
}

:is(.gmp-seo-split-item--lose, #gmp-unused)::before {
    border: 1.5px solid var(--awb-color24);
}

:is(.gmp-seo-split-item--lose, #gmp-unused)::after {
    left: 13px;
    top: 13px;
    width: 18px;
    height: 18px;
    background-color: var(--awb-color6);
    -webkit-mask: var(--gmp-icon-minus) center / contain no-repeat;
    mask: var(--gmp-icon-minus) center / contain no-repeat;
}

:is(.gmp-seo-split-item, #gmp-unused) > p.gmp-seo-split-label {
    margin: 0 0 10px;
    font-family: var(--awb-typography5-font-family);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--awb-color4);
}

:is(.gmp-seo-split-item, #gmp-unused) > p.gmp-seo-split-text {
    font-weight: 900;
    font-size: clamp(28px,2.6vw,40px);
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--awb-color1);
}

:is(.gmp-seo-split-item--lose, #gmp-unused) > p:is(.gmp-seo-split-label, .gmp-seo-split-text) {
    color: var(--awb-color6);
}

/* The 1px line between the two halves from 720px (side by side). */
@media (min-width: 720px) {
    :is(.gmp-seo-split-lose, #gmp-unused) {
        position: relative;
    }

    :is(.gmp-seo-split-lose, #gmp-unused)::before {
        content: "";
        position: absolute;
        z-index: 1;
        left: 0;
        top: 0;
        bottom: 0;
        width: 1px;
        background: var(--awb-color17);
        pointer-events: none;
    }
}


/* ============================================================
 * 4. SERVICES
 * The list is the Toggles element with gmp-accordion (the skin)
 * plus gmp-seo-svc-list (display names, Muted Text on Light while
 * closed). From 1024px the photo frame beside it shows the open
 * row's photo (gmp-seo.js); below 1024px the photo sits inside
 * the open row (gmp-seo-svc-media, copied by the script).
 * ============================================================ */

:is(.gmp-seo-services-title, #gmp-unused) :is(h1, h2, h3) {
    max-width: 20ch;
    text-wrap: balance;
}

/* The list, the row photo, the frame and its caption are the Photo
   List component (gmp-components.css section 21), which names this
   page's classes (gmp-seo-svc-*) next to its own. No rules here. */


/* ============================================================
 * 5. PROCESS
 * gmp-steps (component CSS section 13) owns the line and dots.
 * ============================================================ */

/* (Step copy paragraphs: see the top of this file.) */


/* ============================================================
 * 6. FREE REVIEW PROMPT
 * Column Prompt Row (Row layout, wraps) holds the line and the
 * button; the phone rule for the button is in section 1.
 * ============================================================ */

:is(.gmp-seo-prompt-text, #gmp-unused) {
    min-width: 0;
}


/* ============================================================
 * 7. PROOF
 * Builder owns the cells, rules and type; gmp-arrow-link owns
 * the case study link. Nothing else here.
 * ============================================================ */


/* ============================================================
 * 8. FAQ
 * Avada FAQ element with gmp-accordion gmp-accordion--first-open
 * (component CSS section 12). Nothing here.
 * ============================================================ */


/* ============================================================
 * 9. STRATEGY CALL
 * The two steps beside Gravity Form 3 (gmp-seo.js sets is-on).
 * ============================================================ */

:is(.gmp-seo-call-steps, #gmp-unused) ol {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--awb-color17);
    list-style: none;
}

:is(.gmp-seo-call-steps, #gmp-unused) li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 18px 0;
    border-bottom: 1px solid var(--awb-color17);
    list-style: none;
}

:is(.gmp-seo-call-steps, #gmp-unused) li::marker {
    content: none;
}

:is(.gmp-seo-call-steps, #gmp-unused) .gmp-seo-call-step__n {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    border: 1px solid var(--awb-color18);
    border-radius: 50%;
    background: transparent;
    font-family: "GMP Roboto Flex", var(--awb-typography3-font-family);
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    color: var(--awb-color1);
    transition: background-color .3s, border-color .3s;
}

:is(.gmp-seo-call-steps, #gmp-unused) .gmp-seo-call-step__text {
    display: grid;
    gap: 4px;
}

:is(.gmp-seo-call-steps, #gmp-unused) .gmp-seo-call-step__title {
    font-family: var(--awb-typography5-font-family);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--awb-color6);
    transition: color .3s;
}

:is(.gmp-seo-call-steps, #gmp-unused) .gmp-seo-call-step__sub {
    font-size: 14px;
    line-height: 1.5;
    color: var(--awb-color6);
}

:is(.gmp-seo-call-steps, #gmp-unused) .is-on .gmp-seo-call-step__n {
    border-color: var(--awb-color4);
    background: var(--awb-color5);
}

:is(.gmp-seo-call-steps, #gmp-unused) .is-on .gmp-seo-call-step__title {
    color: var(--awb-color1);
}


/* ============================================================
 * 10. REDUCED MOTION
 * ============================================================ */

@media (prefers-reduced-motion: reduce) {
    :is(.gmp-seo-hero-copy, .gmp-seo-serp, #gmp-unused),
    :is(.gmp-seo-hero-img, #gmp-unused) img,
    :is(.gmp-seo-serp, #gmp-unused) :is(.gmp-seo-serp__pulse, .gmp-seo-serp__caret) {
        animation: none;
    }

    :is(.gmp-seo-serp, #gmp-unused) .gmp-seo-serp__row,
    :is(.gmp-seo-call-steps, #gmp-unused) :is(.gmp-seo-call-step__n, .gmp-seo-call-step__title) {
        transition: none;
    }
}
