/*
 * ============================================================
 * GMP Web Design page  (v1.2.0)
 * Gym Marketing Pros, staging.gymmarketingpros.com
 * Prompt 12 Web Design page (AVADA-PAGE-SECTION v7.5),
 * /services/web-design-development/
 * Manifests: GMP-DSM-20261110, GMP-RCM-20261113
 * Loaded by inc/site-web-design.php only on pages whose content
 * carries the marker class gmp-has-web-design (the Web Design
 * page). Holds every Web Design page style: nothing goes in the
 * page's Page Options > Custom CSS. The script
 * assets/js/gmp-web-design.js runs the five second countdown and
 * the feature photo frame; this file also holds the states it sets.
 *
 * 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, Columns and Elements; the component CSS owns the
 * service hero (gmp-hero-*), gmp-eyebrow, gmp-flush, gmp-actions,
 * gmp-steps, gmp-accordion, gmp-arrow-link and gmp-btn; this
 * file owns the rest.
 *
 *  1. Hero              5. Process
 *  2. Problem           6. Proof, FAQ, Strategy call (none)
 *  3. Review prompt     7. Reduced motion
 *  4. Features (list and photo frame, as on the SEO page)
 *
 * v1.1.0: Features works like the SEO page's service list (a row's
 * text shows when it is opened, the photo changes with it) instead
 * of the always-open list with one photo.
 * ============================================================
 */

/* Title headings break in even lines through the site-wide rule in
   gmp-components.css (section 30). */

/* Section headings the design caps at 20 or 22 characters
   (Features 20, Process 22). */
:is(.gmp-wd-title-20, #gmp-unused) :is(h1, h2, h3) {
    max-width: 20ch;
}

:is(.gmp-wd-title-22, #gmp-unused) :is(h1, h2, h3) {
    max-width: 22ch;
}


/* ============================================================
 * 1. HERO
 * gmp-hero-* (component CSS section 17) owns the layout, the
 * rise-in and the photo shape; this page sets the focus point.
 * No demo card on this page.
 * ============================================================ */

:is(.gmp-wd-hero-img, #gmp-unused) {
    --gmp-hero-focus: 55% 40%;
}


/* ============================================================
 * Display type (condensed, slanted) comes from the RCM Font
 * Layer: the countdown number and the caption name carry
 * gmp-display, and so does the countdown lines Text Block.
 * ============================================================ */


/* ============================================================
 * 2. PROBLEM
 * a) Path pills (Text Block gmp-wd-path, one paragraph of
 *    span.gmp-wd-pill): 44px outline pills joined by the shared
 *    arrow in Brand Red; the last pill (gmp-wd-pill--on) is
 *    filled Button Red. Decorative: the paragraph carries
 *    aria-hidden, the copy above says the same.
 * b) Countdown (Column gmp-wd-countdown): the ring
 *    (div.gmp-wd-ring, Code Block) drains from full to empty over
 *    five seconds, then holds for three and starts again
 *    (gmp-web-design.js sets --gmp-wd-off and the number). The
 *    three lines (Text Block gmp-wd-five, one ul) light up one by
 *    one as the count drops (is-on). Without the script (no
 *    is-ready) the ring is full, the number reads 5 and every
 *    line shows its lit colors.
 * ============================================================ */

/* a) Path pills */
:is(.gmp-wd-path, #gmp-unused) > p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
}

:is(.gmp-wd-path, #gmp-unused) .gmp-wd-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--awb-color18);
    border-radius: 999px;
    font-family: var(--awb-typography5-font-family);
    font-weight: 700;
    font-size: 12px;
    font-style: normal;
    font-variation-settings: "wdth" 100, "slnt" 0;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--awb-color1);
}

/* Arrow after every pill but the last: 10px gap, 16px arrow,
   10px gap, as in the design. */
:is(.gmp-wd-path, #gmp-unused) .gmp-wd-pill:not(:last-child) {
    margin-right: 26px;
}

:is(.gmp-wd-path, #gmp-unused) .gmp-wd-pill:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -27px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    background-color: var(--awb-color4);
    -webkit-mask: var(--gmp-icon-arrow) center / 100% 100% no-repeat;
    mask: var(--gmp-icon-arrow) center / 100% 100% no-repeat;
}

:is(.gmp-wd-path, #gmp-unused) .gmp-wd-pill--on {
    border-color: var(--awb-color5);
    background-color: var(--awb-color5);
}

/* b) Countdown ring */
:is(.gmp-wd-ring, #gmp-unused) {
    --gmp-wd-off: 0;
    position: relative;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 4px;
    width: clamp(180px, 18vw, 240px);
    aspect-ratio: 1 / 1;
}

@media (max-width: 719px) {
    :is(.gmp-wd-ring, #gmp-unused) {
        margin: 0 auto;
    }
}

:is(.gmp-wd-ring, #gmp-unused) svg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotate(-90deg);
}

:is(.gmp-wd-ring, #gmp-unused) circle {
    fill: none;
    stroke-width: 8;
}

:is(.gmp-wd-ring, #gmp-unused) .gmp-wd-ring__track {
    stroke: var(--awb-color17);
}

:is(.gmp-wd-ring, #gmp-unused) .gmp-wd-ring__bar {
    stroke: var(--awb-color4);
    stroke-linecap: round;
    stroke-dasharray: 553;
    stroke-dashoffset: var(--gmp-wd-off);
    transition: stroke-dashoffset 1s linear;
}

:is(.gmp-wd-ring, #gmp-unused) .gmp-wd-ring__num {
    position: relative;
    font-weight: 900;
    font-style: normal;
    font-size: clamp(min(72px, 19.2vw), 7vw, 104px);
    font-variant-numeric: tabular-nums;
    line-height: 0.8;
    text-transform: uppercase;
    color: var(--awb-color1);
}

:is(.gmp-wd-ring, #gmp-unused) .gmp-wd-ring__label {
    position: relative;
    font-family: var(--awb-typography5-font-family);
    font-weight: 700;
    font-style: normal;
    font-variation-settings: "wdth" 100, "slnt" 0;
    font-size: 12px;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--awb-color6);
}

/* b) Countdown lines */
:is(.gmp-wd-five, #gmp-unused) {
    --gmp-wd-line: var(--awb-color1);
    --gmp-wd-out: var(--awb-color4);
    --gmp-wd-disc: var(--awb-color5);
    --gmp-wd-disc-bd: var(--awb-color4);
}

:is(.gmp-wd-five, #gmp-unused) ul {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

:is(.gmp-wd-five, #gmp-unused) li {
    position: relative;
    margin: 0;
    padding: clamp(14px, 1.6vw, 20px) 0 clamp(14px, 1.6vw, 20px) 44px;
    border-bottom: 1px solid var(--awb-color19);
    font-weight: 900;
    font-style: normal;
    font-size: clamp(22px, 2.2vw, 34px);
    line-height: 1;
    text-transform: uppercase;
    color: var(--gmp-wd-line);
    transition: color .35s;
}

:is(.gmp-wd-five, #gmp-unused) li::before,
:is(.gmp-wd-five, #gmp-unused) li::after {
    content: "";
    position: absolute;
    top: 50%;
}

/* 28px disc */
:is(.gmp-wd-five, #gmp-unused) li::before {
    left: 0;
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border: 1.5px solid var(--gmp-wd-disc-bd);
    border-radius: 50%;
    background-color: var(--gmp-wd-disc);
    transition: background-color .35s, border-color .35s;
}

/* White x: the shared plus turned 45 degrees (the RCM's remove
   mark), 12px, centered in the disc. */
:is(.gmp-wd-five, #gmp-unused) li::after {
    left: 8px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    background-color: var(--awb-color1);
    -webkit-mask: var(--gmp-icon-plus) center / 100% 100% no-repeat;
    mask: var(--gmp-icon-plus) center / 100% 100% no-repeat;
    transform: rotate(45deg);
}

:is(.gmp-wd-five, #gmp-unused) .gmp-wd-five__out {
    color: var(--gmp-wd-out);
    transition: color .35s;
}

/* With the script: lines are dim until the count reaches them. */
:is(.gmp-wd-countdown.is-ready, #gmp-unused) .gmp-wd-five li:not(.is-on) {
    --gmp-wd-line: var(--awb-color6);
    --gmp-wd-out: var(--awb-color18);
    --gmp-wd-disc: transparent;
    --gmp-wd-disc-bd: var(--awb-color18);
}


/* ============================================================
 * 3. REVIEW PROMPT
 * Column Prompt Row (Row layout, wraps, gmp-actions) holds the
 * line and the button; the line may shrink beside the button.
 * ============================================================ */

:is(.gmp-wd-prompt-text, #gmp-unused) {
    flex: 0 1 auto;
    width: auto !important;
    min-width: 0;
}


/* ============================================================
 * 4. FEATURES
 * Works like the SEO page's service list (gmp-seo.css section 4,
 * same rules under this page's class names). The list is the
 * Toggles element with gmp-accordion (the skin) plus gmp-wd-feats
 * (display names, Muted Text on Light while closed; a row's text
 * shows only when it is open). From 1024px the photo frame beside
 * it (gmp-wd-frame, one Image per row in the same order) shows the
 * open row's photo and name (gmp-web-design.js); below 1024px the
 * frame is hidden and the photo sits inside the open row
 * (gmp-wd-feat-media, copied by the script).
 * ============================================================ */

/* 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-wd-feats, gmp-wd-frame, gmp-wd-cap) next to its
   own. No rules here. */


/* ============================================================
 * 5. PROCESS
 * gmp-steps (component CSS section 13, script in
 * gmp-components.js) owns the line, the fill and the dots; the
 * step text uses gmp-flush. Only the 22ch heading cap is here
 * (top of the file).
 * ============================================================ */


/* ============================================================
 * 6. PROOF, FAQ, STRATEGY CALL
 * Builder, gmp-display, gmp-flush, gmp-arrow-link, gmp-accordion
 * and the Gravity Forms form layer own them. Nothing here.
 * ============================================================ */


/* ============================================================
 * 7. REDUCED MOTION
 * The script shows the countdown's end state and stops (0, empty
 * ring, every line lit); nothing here moves.
 * ============================================================ */

@media (prefers-reduced-motion: reduce) {
    :is(.gmp-wd-ring, #gmp-unused) .gmp-wd-ring__bar,
    :is(.gmp-wd-five, #gmp-unused) li,
    :is(.gmp-wd-five, #gmp-unused) li::before,
    :is(.gmp-wd-five, #gmp-unused) .gmp-wd-five__out {
        transition: none;
    }
}
