/* ac-reveal */
/* Scroll-in reveal for `.wow` elements.
 *
 * assets/js-raw/main.js adds `.animated` when a `.wow` element enters the
 * viewport. These are the only rules from animate.css (57 KB, 2,759 lines)
 * the site ever used: a census of all 302 pages (tests/library-census.mjs,
 * 2026-11-11) found `fadeInUp` on 177 pages and nothing else; `fadeIn` is kept
 * for the eight legacy templates that name it. Values are animate.css 3.x's.
 */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.fadeInUp { animation-name: fadeInUp; }

@keyframes fadeIn {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}
.fadeIn { animation-name: fadeIn; }

/* Motion is decoration here; content must never wait on it. */
@media (prefers-reduced-motion: reduce) {
    .animated { animation: none !important; }
}

/* ac-template-category-filters */
/* Archive links match the Plugins collection filter pills. */
.ac-template-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.ac-template-category-filters .ac-template-category-filter {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    background: #fff;
    border: 1px solid #d9dadd;
    border-radius: 999px;
    color: #17181c;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    padding: 11px 18px;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: none;
}

.ac-template-category-filters .ac-template-category-filter:hover {
    border-color: #8e9299;
}

.ac-template-category-filters .ac-template-category-filter.is-active {
    background: #17181c;
    border-color: #17181c;
    color: #fff;
}

/* Theme-wide anchor rules suppress outlines with !important. */
.ac-template-category-filters .ac-template-category-filter:focus-visible {
    outline: 3px solid #0055d4 !important;
    outline-offset: 3px;
}

@media (max-width: 575px) {
    .ac-template-category-filters {
        gap: 8px;
        margin-top: 22px;
    }

    .ac-template-category-filters .ac-template-category-filter {
        padding: 10px 14px;
    }
}

/* ac-reviews-float */
.ac-reviews-float {
    position: fixed;
    z-index: 900;
    /* Stack above the live-chat launcher in the right-hand corner. */
    left: auto;
    right: max(20px, env(safe-area-inset-right));
    bottom: calc(120px + env(safe-area-inset-bottom));
    width: 190px;
    padding: 24px 14px 18px;
    border: 1px solid #e7e7e7;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .18);
    color: #181818;
    text-align: center;
    font-family: Arial, sans-serif;
    line-height: 1.25;
}

.ac-reviews-float[hidden] { display: none !important; }

.ac-reviews-float__close {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #555;
    font: 26px/1 Arial, sans-serif;
    cursor: pointer;
}

.ac-reviews-float__close:hover,
.ac-reviews-float__close:focus-visible { background: #eee; color: #111; }
.ac-reviews-float__close:focus-visible,
.ac-reviews-float__link:focus-visible { outline: 2px solid #007f58; outline-offset: 2px; }

.ac-reviews-float__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    color: inherit;
    text-decoration: none;
}

.ac-reviews-float__link:hover { color: inherit; text-decoration: none; }
.ac-reviews-float__eyebrow { color: #666; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.ac-reviews-float__brand { font-size: 21px; font-weight: 700; letter-spacing: -.045em; white-space: nowrap; }
.ac-reviews-float__brand-star { color: #00b67a; font-size: 26px; vertical-align: -1px; }
.ac-reviews-float__stars { display: flex; gap: 2px; }
.ac-reviews-float__stars span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 2px;
    background: #00b67a;
    color: #fff;
    font-size: 19px;
}
.ac-reviews-float__rating { font-size: 18px; font-weight: 700; }
.ac-reviews-float__cta { color: #007f58; font-size: 12px; font-weight: 700; }
.ac-reviews-float__link:hover .ac-reviews-float__cta { text-decoration: underline; }

@media (max-width: 767px) {
    .ac-reviews-float {
        left: auto;
        right: max(12px, env(safe-area-inset-right));
        /* Clear the mobile contact bar and the homepage ticker beneath it. */
        bottom: calc(140px + env(safe-area-inset-bottom));
        width: 158px;
        padding: 18px 10px 12px;
    }
    .ac-reviews-float__eyebrow { display: none; }
    .ac-reviews-float__brand { font-size: 17px; }
    .ac-reviews-float__brand-star { font-size: 21px; }
    .ac-reviews-float__stars span { width: 21px; height: 21px; font-size: 16px; }
    .ac-reviews-float__rating { font-size: 15px; }
}
/* ── Compact left-edge tab ────────────────────────────────────────────────────
   This was a 190px card pinned to the bottom-right, which on a phone landed on
   top of three things already competing for that corner: the live-chat
   launcher, the fixed contact bar and the ticker. Move it to the left edge,
   vertically centred, as a slim tab.

   Only the mark and the name are shown. The stars, rating and CTA stay in the
   DOM because the link's accessible name and the surrounding text come from
   them; they are just not drawn in the tab. */
.ac-reviews-float {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: auto;
    padding: 8px 5px 10px;
    border-left: 0;
    border-radius: 0 14px 14px 0;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .16);
}

.ac-reviews-float__eyebrow,
.ac-reviews-float__stars,
.ac-reviews-float__rating,
.ac-reviews-float__cta {
    display: none;
}

.ac-reviews-float__link { gap: 6px; }

/* Reads bottom-to-top, the usual direction for a side tab. */
.ac-reviews-float__brand {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 13px;
    letter-spacing: -.02em;
}

.ac-reviews-float__brand-star { font-size: 15px; }

.ac-reviews-float__close {
    position: static;
    width: 22px;
    height: 22px;
    margin: 0 auto 2px;
    font-size: 17px;
    line-height: 1;
}

@media (max-width: 767px) {
    .ac-reviews-float {
        left: 0;
        right: auto;
        bottom: auto;
        width: auto;
        padding: 8px 4px 10px;
    }
}

/* ── Bigger on desktop, a corner badge on a phone ────────────────────────────
   The slim tab was too small to read on a desktop, and on a phone a tab pinned
   to the middle of the left edge sits on top of the content next to it -
   there is no free gutter at that width. So the tab grows on desktop, and on
   mobile it becomes a round badge in the bottom-left: clear of the chat
   launcher on the right, clear of the centred contact bar, and above the
   fixed ticker. */
.ac-reviews-float {
    padding: 12px 9px 14px;
    border-radius: 0 16px 16px 0;
}

.ac-reviews-float__brand { font-size: 16px; }
.ac-reviews-float__brand-star { font-size: 19px; }

.ac-reviews-float__close {
    width: 26px;
    height: 26px;
    font-size: 20px;
}

@media (max-width: 767px) {
    .ac-reviews-float {
        top: auto;
        transform: none;
        /* Same bottom as .header-min-contact, and both are 52px tall, so the
           badge and the contact pill share one centre line. */
        bottom: calc(63px + env(safe-area-inset-bottom));
        left: max(12px, env(safe-area-inset-left));
        right: auto;
        width: 52px;
        height: 52px;
        padding: 0;
        display: grid;
        place-items: center;
        border: 1px solid #e7e7e7;
        border-radius: 50%;
    }

    /* The mark alone. font-size: 0 drops the word without removing it from the
       link, which still needs it for its accessible name. */
    .ac-reviews-float__brand {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 0;
    }

    .ac-reviews-float__brand-star { font-size: 26px; }

    .ac-reviews-float__link { gap: 0; }

    .ac-reviews-float__close {
        position: absolute;
        top: -7px;
        right: -7px;
        width: 22px;
        height: 22px;
        margin: 0;
        font-size: 15px;
        background: #fff;
        border: 1px solid #e7e7e7;
        box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    }
}

