/* Hide page title on Promoter Dashboard */
.wp-block-post-title {
    display: none !important;
}

main#wp--skip-link--target {
  margin-top: 0 !important;
}

.wp-block-group.alignfull.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.wp-block-post-content:has(.av-promoter-portal) {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* =========================================================
   AVIVA HEADER
========================================================= */

.aviva-site-header {
    width: 100%;
    margin: 0;
    padding: 0;

    background: #ffffff00;
    
}
.aviva-site-header .aviva-header-inner {
    border-bottom: 1px solid #e5e7eb;
}


/* ---------------------------------------------------------
   HEADER INNER
--------------------------------------------------------- */

.aviva-header-inner {
    width: min(1200px, calc(100% - 40px));

    min-height: 76px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   LOGO
--------------------------------------------------------- */

.aviva-header-logo {
    margin: 0;
    padding: 0;
}

.aviva-logo {
    margin: 0;
    padding: 0;

    line-height: 0;
}

.aviva-logo img {
    display: block;

    width: auto;
    height: 44px;

    max-width: 180px;

    object-fit: contain;
}

.aviva-logo a {
    display: inline-flex;
    align-items: center;

    text-decoration: none;
}


/* ---------------------------------------------------------
   NAVIGATION
--------------------------------------------------------- */

.aviva-header-navigation {
    margin: 0;
    padding: 0;
}

.aviva-main-navigation {
    margin: 0;
}


/* Navigation links */

.aviva-main-navigation
.wp-block-navigation-item__content {
    padding: 10px 14px;

    color: #172033;

    font-size: 15px;
    font-weight: 500;

    text-decoration: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.aviva-main-navigation
.wp-block-navigation-item__content:hover {
    color: #3858e9;
}


/* Contact button */

.aviva-main-navigation
.wp-block-navigation-item:last-child
.wp-block-navigation-item__content {
    padding: 10px 18px;

    background: #3858e9;

    border-radius: 6px;

    color: #ffffff;
}

.aviva-main-navigation
.wp-block-navigation-item:last-child
.wp-block-navigation-item__content:hover {
    background: #2948d8;
    color: #ffffff;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 782px) {

    .aviva-header-inner {
        width: min(100% - 28px, 1200px);

        min-height: 68px;
    }

    .aviva-logo img {
        height: 38px;
        max-width: 150px;
    }

}

/* =========================================================
   AVIVA LOGO
========================================================= */

.aviva-header-logo {
    margin: 0;
    padding: 0;
}

.aviva-logo-link {
    display: inline-flex;
    align-items: center;

    margin: 0;
    padding: 0;

    text-decoration: none;
    line-height: 0;
}

.aviva-logo-image {
    display: block;

    width: auto;
    height: 60px;

    max-width: 180px;

    object-fit: contain;
}
body.home .aviva-logo-image,
body.front-page.aviva-logo-image{
    height: 120px;
}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 782px) {

    .aviva-logo-image {
        height: 38px;
        max-width: 150px;
    }

}

/* =========================================================
   AVIVA FOOTER
========================================================= */

.aviva-site-footer {
    width: 100%;
    margin: 0;
    padding: 0;

    background: #172033;

    color: #ffffff;
}

.aviva-footer-inner {
    width: min(1200px, calc(100% - 40px));

    margin: 0 auto;
    padding: 22px 0;

    box-sizing: border-box;
}

.aviva-footer-copyright {
    margin: 0;

    color: #cbd5e1;

    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 782px) {

    .aviva-footer-inner {
        width: min(100% - 28px, 1200px);
        padding: 20px 0;
    }

    .aviva-footer-copyright {
        font-size: 13px;
    }

}

/* =========================================================
   AVIVA HEADER NAVIGATION
========================================================= */

.aviva-header-nav {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0;
    padding: 0;
}

.aviva-header-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 14px;

    color: #19181f;

    font-size: 15px;
    font-weight: 500;

    text-decoration: none;

    border-radius: 6px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}
body.home .aviva-header-nav a,
body.front-page .aviva-header-nav a {
    color: #fff;
}

.aviva-header-nav a:hover {
    color: #3858e9;
    background: #f4f6fb;
}
body.home .aviva-site-header,
body.front-page .aviva-site-header {
    position: absolute;
    top: 0;
    z-index: 99;
}
body.home .aviva-header-nav a:hover,
body.front-page .aviva-header-nav a:hover{
    color: #3858e9;
    background: #f4f6fb;
}
/* Contact button */

.aviva-header-nav
.aviva-header-contact {
    padding: 0 18px;

    background: #3858e9;

    color: #ffffff;
}

.aviva-header-nav
.aviva-header-contact:hover {
    background: #2948d8;
    color: #ffffff;
}


/* Mobile */

@media (max-width: 782px) {

    .aviva-header-nav {
        gap: 4px;
    }

    .aviva-header-nav a {
        min-height: 36px;
        padding: 0 10px;

        font-size: 14px;
    }

}

/* =========================================================
   AVIVA HOMEPAGE
========================================================= */

.aviva-homepage {
    margin: 0;
    padding: 0;
}


/* =========================================================
   CONTAINER
========================================================= */

.aviva-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.aviva-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url("../images/hero-img.png");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    color: #ffffff;
}


.aviva-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.30) 45%,
            rgba(0, 0, 0, 0.2) 100%
        );
        max-width: 100%;
}


.aviva-hero-content {
    position: relative;
    z-index: 2;

    width: min(1180px, calc(100% - 48px));

    margin: 0 auto;

    padding-top: 40px;
}


.aviva-eyebrow,
.aviva-section-eyebrow {
    display: block;

    margin-bottom: 14px;

    color: #d6a84f;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}


.aviva-hero-title {
    max-width: 720px;

    margin: 0 0 24px;

    color: #ffffff;

    font-size: clamp(48px, 6vw, 82px);
    font-weight: 400;

    line-height: 0.98;
    letter-spacing: -0.04em;
}


.aviva-hero-title strong {
    font-weight: 700;
}


.aviva-hero-description {
    max-width: 650px;

    margin: 0 0 34px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 17px;
    line-height: 1.75;
}


.aviva-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


.aviva-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 24px;

    border-radius: 5px;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}


.aviva-btn:hover {
    transform: translateY(-2px);
}


.aviva-btn-primary {
    background: #d6a84f;
    color: #111111;
}


.aviva-btn-primary:hover {
    background: #e5b965;
    color: #111111;
}


.aviva-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}


.aviva-btn-outline:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #111111;
}


.aviva-hero-scroll {
    position: absolute;
    z-index: 2;

    right: 32px;
    bottom: 30px;

    display: flex;
    align-items: center;
    gap: 10px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    writing-mode: vertical-rl;
}


.aviva-hero-scroll span {
    width: 1px;
    height: 44px;

    background: rgba(255, 255, 255, 0.6);
}


/* =========================================================
   TRUST SECTION
========================================================= */

.aviva-trust-section {
    padding: 120px 0;

    background: #ffffff;
}


.aviva-section-heading {
    max-width: 720px;

    margin-bottom: 60px;
}


.aviva-section-heading h2,
.aviva-founder-content h2,
.aviva-contact-heading h2 {
    margin: 0;

    color: #111111;

    font-size: clamp(38px, 4.5vw, 60px);
    font-weight: 600;

    line-height: 1.05;
    letter-spacing: -0.04em;
}


.aviva-section-heading p {
    max-width: 560px;

    margin: 24px 0 0;

    color: #64748b;

    font-size: 16px;
    line-height: 1.7;
}


.aviva-trust-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


.aviva-trust-card {
    position: relative;

    min-height: 250px;

    padding: 32px;

    background: #f8f7f4;

    border: 1px solid #ebe8e1;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.aviva-trust-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.08);
}


.aviva-trust-number {
    display: block;

    margin-bottom: 50px;

    color: #c39a46;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.12em;
}


.aviva-trust-card h3 {
    margin: 0 0 12px;

    color: #111111;

    font-size: 22px;
    font-weight: 600;
}


.aviva-trust-card p {
    margin: 0;

    color: #64748b;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   FOUNDER
========================================================= */

.aviva-founder-section {
    padding: 120px 0;

    background: #f6f5f2;
}


.aviva-founder-grid {
    display: grid;

    grid-template-columns:
        minmax(280px, 0.75fr)
        minmax(0, 1.25fr);

    gap: 80px;

    align-items: center;
}


.aviva-founder-image-wrapper {
    position: relative;

    overflow: hidden;

    background: #e9e7e2;
}


.aviva-founder-image {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 4 / 5;

    object-fit: cover;
}


.aviva-founder-content h2 {
    max-width: 700px;

    margin-bottom: 28px;
}


.aviva-founder-content p {
    max-width: 700px;

    margin: 0 0 18px;

    color: #526070;

    font-size: 15px;
    line-height: 1.8;
}


.aviva-founder-signature {
    display: flex;
    flex-direction: column;

    margin-top: 30px;
    padding-top: 20px;

    border-top: 1px solid #d8d5ce;
}


.aviva-founder-signature strong {
    color: #111111;

    font-size: 14px;
    letter-spacing: 0.08em;
}


.aviva-founder-signature span {
    margin-top: 4px;

    color: #64748b;

    font-size: 13px;
}


/* =========================================================
   CONTACT
========================================================= */

.aviva-contact-section {
    padding: 120px 0;

    background: #ffffff;
}


.aviva-contact-heading {
    margin-bottom: 60px;
}


.aviva-contact-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


.aviva-contact-card {
    display: flex;
    flex-direction: column;

    min-height: 190px;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.aviva-contact-card:hover {
    transform: translateY(-4px);

    border-color: #d6a84f;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.07);
}


.aviva-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    margin-bottom: 24px;

    background: #f6f1e6;

    color: #b68b3c;

    border-radius: 50%;

    font-size: 18px;
}


.aviva-contact-label {
    margin-bottom: 8px;

    color: #111111;

    font-size: 18px;
    font-weight: 600;
}


.aviva-contact-value {
    margin-top: auto;

    color: #64748b;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 782px) {

    .aviva-container {
        width: min(100% - 32px, 1180px);
    }


    /* HERO */

    .aviva-hero {
        min-height: 680px;

        background-position: 60% center;
    }


    .aviva-hero-content {
        width: min(100% - 32px, 1180px);

        padding-top: 20px;
    }


    .aviva-hero-title {
        font-size: clamp(44px, 13vw, 64px);
    }


    .aviva-hero-description {
        font-size: 15px;
        line-height: 1.65;
    }


    .aviva-hero-actions {
        align-items: stretch;
        flex-direction: column;

        max-width: 240px;
    }


    .aviva-btn {
        width: 100%;
    }


    .aviva-hero-scroll {
        display: none;
    }


    /* TRUST */

    .aviva-trust-section,
    .aviva-founder-section,
    .aviva-contact-section {
        padding: 80px 0;
    }


    .aviva-section-heading,
    .aviva-contact-heading {
        margin-bottom: 40px;
    }


    .aviva-section-heading h2,
    .aviva-founder-content h2,
    .aviva-contact-heading h2 {
        font-size: 38px;
    }


    .aviva-trust-grid {
        grid-template-columns: 1fr;
    }


    .aviva-trust-card {
        min-height: auto;
    }


    /* FOUNDER */

    .aviva-founder-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .aviva-founder-image-wrapper {
        max-width: 480px;
        margin: 0 auto;
    }


    /* CONTACT */

    .aviva-contact-grid {
        grid-template-columns: 1fr;
    }


    .aviva-contact-card {
        min-height: 160px;
    }

}


@media (max-width: 480px) {

    .aviva-hero {
        min-height: 650px;
    }


    .aviva-hero-title {
        font-size: 44px;
    }


    .aviva-section-heading h2,
    .aviva-founder-content h2,
    .aviva-contact-heading h2 {
        font-size: 34px;
    }


    .aviva-trust-card,
    .aviva-contact-card {
        padding: 24px;
    }

}

/* =========================================================
   AVIVA PROMOTER LOGIN
========================================================= */

.av-promoter-login {
    width: 100%;
    max-width: 460px;

    margin: 80px auto !important;

    padding: 42px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.08);

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   HEADING
--------------------------------------------------------- */

.av-promoter-login h2 {
    margin: 0 0 30px;

    color: #111827;

    font-size: 30px;
    font-weight: 600;

    line-height: 1.25;

    letter-spacing: -0.02em;
}


/* ---------------------------------------------------------
   ERROR MESSAGE
--------------------------------------------------------- */

.av-promoter-login .av-promoter-login-error {
    margin: 0 0 22px;

    padding: 12px 14px;

    color: #b91c1c;

    background: #fef2f2;

    border: 1px solid #fecaca;

    border-radius: 8px;

    font-size: 14px;

    line-height: 1.5;
}


/* ---------------------------------------------------------
   FORM
--------------------------------------------------------- */

.av-promoter-login form {
    margin: 0;
}


.av-promoter-login form p {
    margin: 0 0 20px;
}


/* ---------------------------------------------------------
   LABEL
--------------------------------------------------------- */

.av-promoter-login label {
    display: block;

    margin-bottom: 8px;

    color: #1e293b;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.4;
}


/* ---------------------------------------------------------
   INPUT
--------------------------------------------------------- */

.av-promoter-login input[type="text"],
.av-promoter-login input[type="password"] {
    display: block;

    width: 100%;

    height: 48px;

    margin: 0;

    padding: 0 14px;

    color: #111827;

    background: #ffffff;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    font-family: inherit;

    font-size: 15px;

    outline: none;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.av-promoter-login input[type="text"]:hover,
.av-promoter-login input[type="password"]:hover {
    border-color: #94a3b8;
}


.av-promoter-login input[type="text"]:focus,
.av-promoter-login input[type="password"]:focus {
    border-color: #3b5bea;

    box-shadow:
        0 0 0 3px rgba(59, 91, 234, 0.12);
}


/* ---------------------------------------------------------
   LOGIN BUTTON
--------------------------------------------------------- */

.av-promoter-login button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 48px;

    margin: px 0 0;

    padding: 0 20px;

    color: #ffffff;

    background: #3b5bea;

    border: 1px solid #3b5bea;

    border-radius: 8px;

    font-family: inherit;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.av-promoter-login button:hover {
    background: #2948d8;

    border-color: #2948d8;

    box-shadow:
        0 8px 20px rgba(59, 91, 234, 0.20);

    transform: translateY(-1px);
}


.av-promoter-login button:active {
    transform: translateY(0);
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 600px) {

    .av-promoter-login {
        max-width: calc(100% - 32px);

        margin: 50px auto;

        padding: 30px 22px;

        border-radius: 14px;
    }


    .av-promoter-login h2 {
        font-size: 26px;

        margin-bottom: 24px;
    }


    .av-promoter-login input[type="text"],
    .av-promoter-login input[type="password"] {
        height: 46px;
    }


    .av-promoter-login button {
        min-height: 46px;
    }

}