/*
 * Seasonal sales: the bar above the header and the band above the plans (promo/). Same build as on
 * xplodedthemes.com and wpide.com, in Slick Menu's colors: the ground is the site's ink with the logo's
 * orange-to-pink glowing through, the call to action is the site's orange; each event brings only its accent
 * (--sale-accent, from the site's palette) and its motif.
 */

.sm-sale-bar,
.sm-sale {
    --sale-bg: #1d1b21;
    --sale-glow: #ec2a68;
    --sale-warm: #ee7b34;
    --sale-cta: #ff6622;
    --sale-ease: cubic-bezier(.16, 1, .3, 1);
    font-family: "Poppins", sans-serif;
}

.sm-sale-num {
    font-variant-numeric: tabular-nums;
}

/* The bar ---------------------------------------------------------------------------------------------- */

.sm-sale-bar {
    position: relative;
    z-index: 1031;
    display: block;
    overflow: hidden;
    border-bottom: 1px solid rgba(236, 42, 104, .35);
    background:
        radial-gradient(60% 220% at 50% 0%, rgba(236, 42, 104, .38), transparent 70%),
        radial-gradient(30% 300% at 0% 50%, color-mix(in srgb, var(--sale-accent) 22%, transparent), transparent 70%),
        radial-gradient(30% 300% at 100% 50%, rgba(238, 123, 52, .22), transparent 70%),
        var(--sale-bg);
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}

.sm-sale-bar:hover,
.sm-sale-bar:focus {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
}

/* The fixed header (and Slick Menu's toggle at the top) start below the bar and rise with it (promo.js). */
.has-sale-bar .navbar-fixed-top {
    top: var(--sm-sale-offset, 44px);
    /* The theme eases everything on the header; its place follows the scroll directly. */
    transition: all .3s linear, top 0s;
}

.has-sale-bar .sm-sale-shift {
    translate: 0 var(--sm-sale-bar, 0px);
}

.sm-sale-bar__sky {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sm-sale-bar__p {
    position: absolute;
    top: 50%;
    left: var(--x);
    width: var(--s);
    height: var(--s);
    margin-top: calc(var(--s) / -2);
    color: var(--sale-accent);
    opacity: .3;
    animation: sm-sale-drift var(--d) ease-in-out var(--delay) infinite alternate;
}

.sm-sale-bar__p svg {
    display: block;
    width: 100%;
    height: 100%;
}

@keyframes sm-sale-drift {
    from { transform: translate(-18px, -6px) rotate(-12deg); }
    to { transform: translate(18px, 6px) rotate(12deg); }
}

.sm-sale-bar__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 6px 16px;
}

.sm-sale-bar__mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--sale-accent);
    color: var(--sale-bg);
    box-shadow: 0 0 18px color-mix(in srgb, var(--sale-accent) 55%, transparent);
    animation: sm-sale-pop 2.4s ease-in-out infinite;
}

.sm-sale-bar__mark svg {
    width: 15px;
    height: 15px;
}

@keyframes sm-sale-pop {
    50% { transform: scale(1.12) rotate(-6deg); }
}

.sm-sale-bar__name {
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.sm-sale-bar__offer b {
    color: var(--sale-accent);
    font-weight: 700;
}

.sm-sale-bar__offer,
.sm-sale-bar__when {
    white-space: nowrap;
}

.sm-sale-bar__offer::before,
.sm-sale-bar__when::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-right: 12px;
    vertical-align: middle;
    border-radius: 50%;
    background: color-mix(in srgb, var(--sale-accent) 70%, #fff);
}

.sm-sale-bar__when .sm-sale-num {
    color: #fff;
    font-weight: 500;
}

.sm-sale-bar__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    padding: 4px 12px 4px 14px;
    border: 1px solid rgba(255, 102, 34, .75);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color .25s, border-color .25s;
}

.sm-sale-bar__arrow {
    font-size: 13px;
    color: #ffb08c;
    transition: transform .3s var(--sale-ease), color .25s;
}

.sm-sale-bar:hover .sm-sale-bar__cta {
    border-color: var(--sale-cta);
    background: var(--sale-cta);
}

.sm-sale-bar:hover .sm-sale-bar__arrow {
    color: #fff;
    transform: translateX(3px);
}

/* The band --------------------------------------------------------------------------------------------- */

.row.sm-sale {
    padding: 90px 0 0;
    background: #f8fbfd;
}

/* The plans follow on the same ground, closer. */
.row.sm-sale + .plan-pricing {
    padding-top: 70px;
}

.sm-sale__defs {
    position: absolute;
}

.sm-sale__card {
    --sale-pad: clamp(28px, 5vw, 64px);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px clamp(32px, 5vw, 72px);
    overflow: hidden;
    isolation: isolate;
    padding: var(--sale-pad);
    border: 1px solid rgba(236, 42, 104, .3);
    border-radius: 24px;
    background:
        radial-gradient(60% 90% at 100% 0%, rgba(236, 42, 104, .5), transparent 70%),
        radial-gradient(45% 70% at 70% 120%, rgba(238, 123, 52, .32), transparent 70%),
        radial-gradient(50% 80% at 0% 110%, color-mix(in srgb, var(--sale-accent) 22%, transparent), transparent 70%),
        var(--sale-bg);
    box-shadow: 0 40px 100px rgba(236, 42, 104, .18);
    color: #fff;
    text-align: left;
}

/* The motif, drifting: up by default; each event sets its own way below. */
.sm-sale__sky {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.sm-sale__p {
    position: absolute;
    bottom: -40px;
    left: var(--x);
    width: var(--s);
    height: var(--s);
    color: var(--sale-accent);
    opacity: var(--o);
    animation: sm-sale-rise var(--d) linear var(--delay) infinite;
}

@keyframes sm-sale-rise {
    from { transform: translateY(0) rotate(-10deg); }
    50% { transform: translate(14px, -260px) rotate(8deg); }
    to { transform: translate(-6px, -560px) rotate(-6deg); }
}

/* The emblem: the motif, large and lit, behind the clock. */
.sm-sale__emblem {
    position: absolute;
    top: 50%;
    right: clamp(-60px, -2vw, -20px);
    z-index: -1;
    width: clamp(220px, 26vw, 340px);
    height: clamp(220px, 26vw, 340px);
    color: var(--sale-accent);
    opacity: .2;
    filter: drop-shadow(0 0 40px var(--sale-glow));
    transform: translateY(-50%) rotate(-12deg);
}

.sm-sale__emblem svg {
    width: 100%;
    height: 100%;
}

.sm-sale__copy {
    position: relative;
    min-width: 0;
}

.sm-sale__label {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.sm-sale__label > span:last-child {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: 400;
}

.sm-sale__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sale-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--sale-accent) 30%, transparent);
}

.sm-sale--live .sm-sale__dot {
    animation: sm-sale-live 1.6s ease-in-out infinite;
}

@keyframes sm-sale-live {
    50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--sale-accent) 0%, transparent); }
}

.sm-sale__offer {
    margin: 14px 0 0;
    padding: 0;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1;
    text-transform: none;
}

.sm-sale__offer b {
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: -.04em;
    background: linear-gradient(180deg, #fff 10%, #ffc7ae 70%, var(--sale-accent) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sm-sale__line {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.5;
}

.sm-sale__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 28px;
}

.btn.sm-sale__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    margin: 0;
    padding: 0 30px;
    border: 0;
    border-radius: 60px;
    background: var(--sale-cta);
    color: #fff;
    font: 500 16px/52px "Poppins", sans-serif;
    box-shadow: 0 10px 30px rgba(255, 102, 34, .4);
    transition: background-color .25s, box-shadow .25s;
}

.btn.sm-sale__cta:hover,
.btn.sm-sale__cta:focus {
    background: #ff7a3d;
    color: #fff;
    box-shadow: 0 12px 34px rgba(255, 102, 34, .5);
}

.btn.sm-sale__cta .fa {
    transition: transform .3s var(--sale-ease);
}

.btn.sm-sale__cta:hover .fa-long-arrow-right {
    transform: translateX(3px);
}

/* The code, as a ticket you can copy. */
.sm-sale__code {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 16px 0 18px;
    border: 1.5px dashed color-mix(in srgb, var(--sale-accent) 75%, transparent);
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .72);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}

.sm-sale__code:hover {
    border-color: var(--sale-accent);
    background: rgba(255, 255, 255, .09);
}

.sm-sale__code b {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .08em;
}

.sm-sale__copyicon,
.sm-sale__doneicon {
    font-size: 16px;
    transition: opacity .2s, transform .3s var(--sale-ease);
}

.sm-sale__doneicon {
    position: absolute;
    right: 16px;
    color: #2fd08a;
    opacity: 0;
    transform: scale(.5);
}

.sm-sale__code.is-done .sm-sale__copyicon {
    opacity: 0;
    transform: scale(.5);
}

.sm-sale__code.is-done .sm-sale__doneicon {
    opacity: 1;
    transform: none;
}

.sm-sale__ics {
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .3);
    text-underline-offset: 3px;
}

.sm-sale__ics:hover,
.sm-sale__ics:focus {
    color: #fff;
}

.sm-sale__note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
    line-height: 1.5;
}

.sm-sale__note .fa {
    margin-top: 3px;
    color: var(--sale-accent);
    font-size: 15px;
}

/* The clock: four glass tiles; a digit that changes drops in. */
.sm-sale__clock {
    position: relative;
}

.sm-sale__clocklabel {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sm-sale__cells {
    display: grid;
    grid-template-columns: repeat(4, 84px);
    gap: 10px;
}

.sm-sale__cell {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 16px 0 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.sm-sale__cell b {
    display: block;
    color: #fff;
    font-size: 38px;
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1;
}

.sm-sale__cell b.is-tick {
    animation: sm-sale-tick .45s var(--sale-ease);
}

@keyframes sm-sale-tick {
    from { opacity: 0; transform: translateY(-40%); filter: blur(3px); }
}

.sm-sale__cell em {
    color: rgba(255, 255, 255, .62);
    font-size: 11.5px;
    font-style: normal;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Each event's own motion ------------------------------------------------------------------------------ */

.sm-sale--valentine .sm-sale__emblem { animation: sm-sale-beat 1.4s ease-in-out infinite; }

@keyframes sm-sale-beat {
    0%, 40%, 100% { transform: translateY(-50%) rotate(-12deg) scale(1); }
    15% { transform: translateY(-50%) rotate(-12deg) scale(1.08); }
    28% { transform: translateY(-50%) rotate(-12deg) scale(1.02); }
}

.sm-sale--mothers .sm-sale__emblem,
.sm-sale--xmas .sm-sale__emblem { animation: sm-sale-turn 40s linear infinite; }

@keyframes sm-sale-turn {
    to { transform: translateY(-50%) rotate(348deg); }
}

.sm-sale--fathers .sm-sale__p,
.sm-sale--bfcm .sm-sale__p {
    top: calc(var(--x) * .8);
    bottom: auto;
    animation: sm-sale-twinkle calc(var(--d) / 3) ease-in-out var(--delay) infinite;
}

@keyframes sm-sale-twinkle {
    0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); }
    50% { opacity: var(--o); transform: scale(1) rotate(20deg); }
}

.sm-sale--bfcm .sm-sale__emblem { animation: sm-sale-flash 3.2s steps(1) infinite; }

@keyframes sm-sale-flash {
    0%, 100% { opacity: .2; }
    4% { opacity: .6; }
    7% { opacity: .2; }
    10% { opacity: .5; }
}

.sm-sale--fathers .sm-sale__emblem { animation: sm-sale-glow 4s ease-in-out infinite; }

@keyframes sm-sale-glow {
    50% { opacity: .34; transform: translateY(-50%) rotate(0deg) scale(1.05); }
}

/* Halloween: bats flap across from the left; the emblem sways. */
.sm-sale--halloween .sm-sale__p {
    top: var(--x);
    bottom: auto;
    left: -40px;
    animation: sm-sale-fly var(--d) linear var(--delay) infinite;
}

@keyframes sm-sale-fly {
    0% { transform: translate(0, 0) scaleY(1); }
    10% { transform: translate(10vw, -10px) scaleY(.5); }
    20% { transform: translate(20vw, 0) scaleY(1); }
    30% { transform: translate(30vw, -12px) scaleY(.5); }
    40% { transform: translate(40vw, 0) scaleY(1); }
    50% { transform: translate(50vw, -10px) scaleY(.5); }
    60% { transform: translate(60vw, 0) scaleY(1); }
    70% { transform: translate(70vw, -12px) scaleY(.5); }
    80% { transform: translate(80vw, 0) scaleY(1); }
    90% { transform: translate(90vw, -10px) scaleY(.5); }
    100% { transform: translate(105vw, 0) scaleY(1); }
}

.sm-sale--halloween .sm-sale__emblem { animation: sm-sale-sway 5s ease-in-out infinite alternate; }

@keyframes sm-sale-sway {
    from { transform: translateY(-50%) rotate(-18deg); }
    to { transform: translateY(-46%) rotate(-4deg); }
}

/* Christmas: snow falls. */
.sm-sale--xmas .sm-sale__p {
    top: -40px;
    bottom: auto;
    color: #fff;
    animation: sm-sale-fall var(--d) linear var(--delay) infinite;
}

@keyframes sm-sale-fall {
    from { transform: translateY(0) rotate(0deg); }
    50% { transform: translate(-16px, 260px) rotate(90deg); }
    to { transform: translate(10px, 560px) rotate(180deg); }
}

.sm-sale--xmas .sm-sale__emblem {
    color: #fff;
    opacity: .12;
}

/* Smaller screens -------------------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .sm-sale__card {
        grid-template-columns: minmax(0, 1fr);
    }

    .sm-sale__emblem {
        right: -50px;
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 767px) {
    .row.sm-sale {
        padding-top: 60px;
    }

    .sm-sale-bar__when,
    .sm-sale-bar__cta > span {
        display: none;
    }

    .sm-sale-bar__cta,
    .sm-sale-bar:hover .sm-sale-bar__cta {
        margin: 0;
        padding: 0;
        border: 0;
        background: none;
    }
}

@media (max-width: 575px) {
    .sm-sale__cells {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .sm-sale__cell b {
        font-size: 28px;
    }

    .sm-sale__actions > * {
        flex: 1 1 100%;
        justify-content: center;
    }
}

@media (max-width: 340px) {
    .sm-sale-bar__offer {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sm-sale-bar :is(.sm-sale-bar__p, .sm-sale-bar__mark),
    .sm-sale :is(.sm-sale__p, .sm-sale__emblem, .sm-sale__dot, .sm-sale__cell b) {
        animation: none !important;
    }
}
