/* =====================================================================
    AVORCMS — custom.css
    Global / shared styling for elements that co-exist across all v2 pages:
    back-to-top control, page banners, and reusable utility primitives.
    ===================================================================== */

html, body {
    margin: 0;
    padding: 0;
}

/* ---------------------------------------------------------------
   BACK-TO-TOP
   --------------------------------------------------------------- */

.get-template {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
}

#scrollToTopBtn {
    display: none; /* shown by JS once the page is scrolled */

    width: 52px;
    height: 52px;
    padding: 0;
    margin: 0;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;

    background: var(--v2-cta, #6222D5);
    color: #fff;

    box-shadow:
        0 14px 32px rgba(57, 29, 119, 0.32),
        0 2px 8px rgba(57, 29, 119, 0.2);

    cursor: pointer;

    transition:
        transform 240ms ease,
        background-color 240ms ease,
        box-shadow 240ms ease;
}

#scrollToTopBtn:hover {
    background: var(--v2-cta-hover, #391D77);
    transform: translateY(-3px);

    box-shadow:
        0 18px 38px rgba(57, 29, 119, 0.4),
        0 4px 12px rgba(57, 29, 119, 0.24);
}

#scrollToTopBtn:focus-visible {
    outline: 3px solid rgba(98, 34, 213, 0.45);
    outline-offset: 3px;
}

#scrollToTopBtn iconify-icon {
    width: 22px;
    height: 22px;

    font-size: 22px;
    color: #fff;
}

#scrollToTopBtn.is-visible {
    display: flex;
}

/* ---------------------------------------------------------------
   V2 PAGE BANNER  (interior page hero)
   --------------------------------------------------------------- */

.v2-page-banner {
    --pb-pad-top: calc(var(--v2-header-h, 66px) + 44px);
    --pb-pad-bottom: 52px;

    position: relative;
    overflow: hidden;
    isolation: isolate;

    padding: var(--pb-pad-top) 0 var(--pb-pad-bottom);

    background:
        radial-gradient(
            circle at 78% 18%,
            rgba(98, 34, 213, 0.5) 0,
            rgba(98, 34, 213, 0) 42%
        ),
        linear-gradient(
            135deg,
            #391D77 0%,
            #4B168C 52%,
            #5C1BB3 100%
        );

    color: #fff;
}

.v2-page-banner__grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 52px 52px;

    pointer-events: none;
}

.v2-page-banner__inner {
    position: relative;
    z-index: 3;

    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

.v2-page-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 18px;

    color: rgba(255, 255, 255, 0.72);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.v2-page-banner__eyebrow::before {
    content: "";

    width: 22px;
    height: 1px;

    background: var(--v2-highlight, #ff5757);
}

.v2-page-banner__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.v2-page-banner__title {
    margin: 0;

    color: #fff;

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: clamp(28px, 3.6vw, 52px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.v2-page-banner__title em {
    color: var(--v2-highlight, #ff5757);
    font-style: normal;
}

.v2-page-banner__lead {
    max-width: 46ch;
    margin: 18px 0 0;

    color: rgba(255, 255, 255, 0.74);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
}

.v2-page-banner__actions {
    display: flex;
    align-items: center;
    gap: 13px;

    flex: none;
}

/* ---------------------------------------------------------------
    SHARED BUTTONS  (co-exist across v2 pages)
    --------------------------------------------------------------- */
/* Button styles are now defined in component-specific CSS files.
   Only contextual fixes are applied here to avoid overrides. */

/* ---------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------- */

@media (max-width: 767.98px) {
    .v2-page-banner {
        --pb-pad-bottom: 42px;
    }

    .v2-page-banner__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
    }

    .v2-page-banner__actions {
        width: 100%;
    }

    .v2-page-banner__actions .v2-btn {
        width: min(100%, 380px);
    }
}

@media (max-width: 480px) {
    #scrollToTopBtn {
        width: 46px;
        height: 46px;
        right: 16px;
        bottom: 16px;
    }
}


/* =====================================================================
   INTERIOR PAGE PRIMITIVES (shared) - convert all content sections to v2
   ===================================================================== */


/* ---------------------------------------------------------------
   SECTION WRAPPER
   --------------------------------------------------------------- */

.v2-section {
    position: relative;
    padding: 76px 0;

    background: var(--v2-white, #fff);
}

.v2-section--tint {
    background: var(--v2-bg, #F8F6FA);
}

.v2-section__inner {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

/* ---------------------------------------------------------------
   SECTION HEADER
   --------------------------------------------------------------- */

.v2-sec-head {
    max-width: 780px;
    margin-bottom: 46px;
}

.v2-sec-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.v2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 16px;

    color: var(--v2-cta, #6222D5);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.v2-eyebrow::before {
    content: "";

    width: 22px;
    height: 1px;

    background: var(--v2-highlight, #ff5757);
}

.v2-sec-head--center .v2-eyebrow {
    justify-content: center;
}

.v2-sec-head--center .v2-eyebrow::after {
    content: "";

    width: 22px;
    height: 1px;

    background: var(--v2-highlight, #ff5757);
}

.v2-sec-head__title {
    margin: 0;

    color: var(--v2-heading, #391D77);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.v2-sec-head__title em {
    color: var(--v2-highlight, #ff5757);
    font-style: normal;
}

.v2-sec-head__lead {
    max-width: 62ch;
    margin: 18px 0 0;

    color: var(--v2-subheading, #625E65);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.75;
}

.v2-sec-head--center .v2-sec-head__lead {
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------------------------------------
   CARD GRID + CARDS
   --------------------------------------------------------------- */

.v2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.v2-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.v2-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.v2-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.v2-card {
    position: relative;

    padding: 30px;

    background: var(--v2-card-bg, #fff);
    border: 1px solid rgba(57, 29, 119, 0.08);
    border-radius: var(--v2-radius-md, 16px);

    transition:
        transform 240ms ease,
        border-color 240ms ease,
        box-shadow 240ms ease;
}

.v2-card:hover {
    transform: translateY(-5px);

    border-color: rgba(92, 27, 179, 0.2);
    box-shadow: 0 18px 40px rgba(57, 29, 119, 0.1);
}

.v2-card__icon {
    display: grid;
    place-items: center;

    width: 54px;
    height: 54px;
    margin-bottom: 20px;

    border-radius: 14px;

    background: var(--v2-logo-soft, rgba(92, 27, 179, 0.08));
    color: var(--v2-cta, #6222D5);
}

.v2-card__icon iconify-icon {
    font-size: 26px;
}

.v2-card__title {
    margin: 0 0 10px;

    color: var(--v2-heading, #391D77);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.v2-card__text {
    margin: 0;

    color: var(--v2-subheading, #625E65);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
}

.v2-card__list {
    margin: 16px 0 0;
    padding: 0;

    list-style: none;
}

.v2-card__list li {
    position: relative;

    padding: 7px 0 7px 24px;

    color: var(--v2-subheading, #625E65);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.v2-card__list li::before {
    content: "";

    position: absolute;
    left: 4px;
    top: 14px;

    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: var(--v2-highlight, #ff5757);
}

/* ---------------------------------------------------------------
   STAT ROW
   --------------------------------------------------------------- */

.v2-statband {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.v2-statband__item {
    padding: 24px 20px;

    text-align: center;

    background: var(--v2-white, #fff);
    border: 1px solid rgba(57, 29, 119, 0.08);
    border-radius: var(--v2-radius-md, 16px);
}

.v2-statband__value {
    display: block;

    color: var(--v2-cta, #6222D5);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.v2-statband__label {
    display: block;
    margin-top: 10px;

    color: var(--v2-subheading, #625E65);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

/* ---------------------------------------------------------------
   TWO-COLUMN CONTENT BLOCK
   --------------------------------------------------------------- */

.v2-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.v2-split__media {
    position: relative;
}

.v2-split__media img {
    width: 100%;
    height: auto;

    display: block;

    border-radius: var(--v2-radius-lg, 24px);
}

.v2-split__body .v2-sec-head {
    margin-bottom: 24px;
}

.v2-split__body p {
    margin: 0 0 18px;

    color: var(--v2-subheading, #625E65);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.75;
}

/* ---------------------------------------------------------------
   CTA STRIP
   --------------------------------------------------------------- */

.v2-cta-strip {
    position: relative;
    overflow: hidden;

    padding: 52px 56px;

    border-radius: var(--v2-radius-lg, 24px);

    background:
        linear-gradient(135deg, #391D77 0%, #4B168C 52%, #5C1BB3 100%);

    color: #fff;
}

.v2-cta-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.v2-cta-strip__title {
    margin: 0 0 8px;

    color: #fff;

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.v2-cta-strip__text {
    margin: 0;

    color: rgba(255, 255, 255, 0.72);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.7;
}

/* ---------------------------------------------------------------
   LIST / CONTENT CARD  (privacy policy, terms, text pages)
   --------------------------------------------------------------- */

.v2-prose {
    max-width: 860px;
}

.v2-prose h2 {
    margin: 44px 0 14px;

    color: var(--v2-heading, #391D77);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
}

.v2-prose h3 {
    margin: 30px 0 10px;

    color: var(--v2-heading, #391D77);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.v2-prose p {
    margin: 0 0 16px;

    color: var(--v2-subheading, #625E65);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.8;
}

.v2-prose ul,
.v2-prose ol {
    margin: 0 0 18px;
    padding-left: 22px;

    color: var(--v2-subheading, #625E65);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.8;
}

.v2-prose li {
    margin-bottom: 8px;
}

/* ---------------------------------------------------------------
   CONTACT FORM
   --------------------------------------------------------------- */

.v2-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;

    padding: 40px;

    background: var(--v2-white, #fff);
    border: 1px solid rgba(57, 29, 119, 0.08);
    border-radius: var(--v2-radius-lg, 24px);

    box-shadow: 0 18px 46px rgba(57, 29, 119, 0.08);
}

.v2-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-form__field--full {
    grid-column: 1 / -1;
}

.v2-form label {
    color: var(--v2-heading, #391D77);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 13px;
    font-weight: 700;
}

.v2-form input[type="text"],
.v2-form input[type="email"],
.v2-form input[type="tel"],
.v2-form input[type="url"],
.v2-form select,
.v2-form textarea {
    box-sizing: border-box;
    width: 100%;

    padding: 13px 15px;

    border: 1px solid rgba(57, 29, 119, 0.16);
    border-radius: 10px;

    background: var(--v2-bg, #F8F6FA);

    color: var(--v2-ink, #211b33);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 14px;
    font-weight: 500;

    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.v2-form input:focus,
.v2-form select:focus,
.v2-form textarea:focus {
    outline: none;

    border-color: var(--v2-cta, #6222D5);
    box-shadow: 0 0 0 3px rgba(98, 34, 213, 0.12);
}

.v2-form textarea {
    resize: vertical;
    min-height: 130px;
}

/* ---------------------------------------------------------------
   BLOG / LIST
   --------------------------------------------------------------- */

.v2-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
}

.v2-post {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--v2-white, #fff);
    border: 1px solid rgba(57, 29, 119, 0.08);
    border-radius: var(--v2-radius-md, 16px);

    text-decoration: none;

    transition:
        transform 240ms ease,
        border-color 240ms ease,
        box-shadow 240ms ease;
}

.v2-post:hover {
    transform: translateY(-5px);

    border-color: rgba(92, 27, 179, 0.2);
    box-shadow: 0 18px 40px rgba(57, 29, 119, 0.1);
}

.v2-post__thumb {
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: var(--v2-logo-soft, rgba(92, 27, 179, 0.08));
}

.v2-post__thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;

    transition: transform 400ms ease;
}

.v2-post:hover .v2-post__thumb img {
    transform: scale(1.05);
}

.v2-post__body {
    display: flex;
    flex-direction: column;
    gap: 10px;

    flex: 1;

    padding: 22px;
}

.v2-post__meta {
    color: var(--v2-cta, #6222D5);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.v2-post__title {
    margin: 0;

    color: var(--v2-heading, #391D77);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.v2-post__excerpt {
    margin: 0;

    color: var(--v2-subheading, #625E65);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
}

.v2-post__more {
    margin-top: auto;
    padding-top: 14px;

    color: var(--v2-cta, #6222D5);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 13px;
    font-weight: 800;

    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ---------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .v2-grid--4,
    .v2-statband {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v2-split {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 767.98px) {
    .v2-section {
        padding: 56px 0;
    }

    .v2-grid--2,
    .v2-grid--3 {
        grid-template-columns: 1fr;
    }

    .v2-cta-strip {
        padding: 38px 28px;
    }

    .v2-cta-strip__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .v2-form {
        padding: 28px 22px;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .v2-statband {
        grid-template-columns: 1fr;
    }
}


/* ---------------------------------------------------------------
   CONTACT / INQUIRY helper styles
   --------------------------------------------------------------- */

.v2-layout-2 {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

@media (max-width: 991.98px) {
    .v2-layout-2 {
        grid-template-columns: 1fr;
    }
}

.v2-form__field--stack {
    grid-column: 1 / -1;
}

.v2-form .form-check,
.v2-form__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 10px;
}

.v2-form__check input[type="checkbox"],
.v2-form__check input[type="radio"] {
    width: 18px;
    height: 18px;
    flex: none;
    margin-top: 2px;

    accent-color: var(--v2-cta, #6222D5);
}

.v2-form__check label {
    font-weight: 500;
    color: var(--v2-subheading, #625E65);
}

.v2-form__submit {
    grid-column: 1 / -1;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 54px;
    padding: 0 30px;

    border: none;
    border-radius: 11px;

    background: var(--v2-highlight, #ff5757);
    color: #fff;

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 240ms ease,
        background-color 240ms ease,
        box-shadow 240ms ease;
}

.v2-form__submit:hover {
    background: #ff6868;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(255, 87, 87, 0.3);
}

.v2-form__note {
    grid-column: 1 / -1;

    margin: 0;

    color: var(--v2-subheading, #625E65);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
}

.v2-form__note a {
    color: var(--v2-cta, #6222D5);
    text-decoration: none;
}

.v2-form__note a:hover {
    text-decoration: underline;
}

.v2-form__error {
    margin-top: 6px;

    color: #dc3545;

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 12.5px;
    font-weight: 600;
}

.v2-contact-info {
    position: sticky;
    top: 96px;

    display: flex;
    flex-direction: column;
    gap: 24px;

    padding: 34px 30px;

    background: var(--v2-white, #fff);
    border: 1px solid rgba(57, 29, 119, 0.08);
    border-radius: var(--v2-radius-lg, 24px);

    box-shadow: 0 18px 46px rgba(57, 29, 119, 0.08);
}

.v2-contact-info__title {
    margin: 0 0 4px;

    color: var(--v2-heading, #391D77);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 22px;
    font-weight: 800;
}

.v2-contact-info__subtitle {
    margin: 0;

    color: var(--v2-subheading, #625E65);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 13.5px;
    font-weight: 500;
}

.v2-contact-method {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.v2-contact-method__icon {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;
    flex: none;

    border-radius: 12px;

    background: var(--v2-logo-soft, rgba(92, 27, 179, 0.08));
    color: var(--v2-cta, #6222D5);
}

.v2-contact-method__icon iconify-icon {
    font-size: 24px;
}

.v2-contact-method__name {
    margin: 0 0 3px;

    color: var(--v2-heading, #391D77);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 15px;
    font-weight: 700;
}

.v2-contact-method__value {
    margin: 0;

    color: var(--v2-subheading, #625E65);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .v2-contact-info {
        position: static;
    }
}

/* ---------------------------------------------------------------
   CTA CALLOUT  (centered section call-to-action block)
   --------------------------------------------------------------- */

.v2-callout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;

    margin-top: 48px;
}

.v2-callout__text {
    margin: 0;

    color: var(--v2-subheading, #625E65);

    font-family: var(--v2-font, 'Manrope', sans-serif);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
}

.v2-callout .v2-btn {
    white-space: nowrap;
    max-width: 100%;
}

@media (max-width: 480px) {
    .v2-callout .v2-btn {
        width: 100%;
        justify-content: center;
    }
    .v2-callout .v2-btn span {
        white-space: normal;
    }
    .v2-section__inner .v2-btn:has(> iconify-icon),
    .v2-split__body .v2-btn:has(> iconify-icon) {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        white-space: normal;
    }
    .v2-section__inner .v2-btn iconify-icon,
    .v2-split__body .v2-btn iconify-icon {
        flex-shrink: 0;
    }
}
